Pages: 1
Stunt_LP |
Posted on 07-29-14, 08:53 am
|
Red Cheep-cheep
Permanently Banned: Rereged Karma: 13 Posts: 157/214 Since: 03-04-13 |
I tried to insert the noCoin hack from the ASM tutorial. And it worked fine. But then I tried to insert one of my hacks (it was a very simple hack) and it told me that NSMBe has stopped. The code is
extern "C" { void loseOneLife; } void nsub_0x21022B4 { loseOneLife; } I named it "noJumping.cpp" and put it in the source folder. Does anyone know how I can solve this? And btw sorry, if I ask that much stupid questions... _________________________ Thanks ~~~Stunt_LP~~~ ASM Hack we're making in the moment: - Info Block from SMW It will be shared with the community |
Dirbaio |
Posted on 07-29-14, 09:12 am
|
Super Mario
( ͡° ͜ʖ ͡°) Karma: 10020 Posts: 4105/4457 Since: 06-08-11 |
loseOneLife()
nsub_021022B4 |
Stunt_LP |
Posted on 07-29-14, 09:33 am
|
Red Cheep-cheep
Permanently Banned: Rereged Karma: 13 Posts: 158/214 Since: 03-04-13 |
For some reason it doesn't work.
extern "C" {
void loseOneLife(); } void nsub_021022B4 { loseOneLife(); } _________________________ Thanks ~~~Stunt_LP~~~ ASM Hack we're making in the moment: - Info Block from SMW It will be shared with the community |
CreativiPie |
Posted on 07-29-14, 12:58 pm
|
Pokey
me some orange juice my hand Karma: 674 Posts: 559/699 Since: 09-24-12 |
Maybe some stuff in your code needs arguments? (I don't know, I cannot look at such ROM with such IDA Pro but... maybe.) |
Dirbaio |
Posted on 07-29-14, 02:08 pm
|
Super Mario
( ͡° ͜ʖ ͡°) Karma: 10020 Posts: 4106/4457 Since: 06-08-11 |
It doesn't compile? Then post the compilation errors.
It compiles but doesn't work? Then please explain what are you trying to do, how are you trying to do it, what's the function that you're replacing at that address, etc. If you just say "It doesn't work" I can do nothing to help you, lol. |
Stunt_LP |
Posted on 07-29-14, 05:17 pm (rev. 1 by ImageBot on 11-21-16, 03:01 am)
|
Red Cheep-cheep
Permanently Banned: Rereged Karma: 13 Posts: 159/214 Since: 03-04-13 |
The compilation error:
Then, if I press any key, Microsoft .NET Framework says that it got an fatal error. I can ignore the error or I can exit NSMBe. The code: extern "C" {
void loseOneLife(); } void nsub_021022B4 { //replace MarioActor_Jump loseOneLife(); } _________________________ Thanks ~~~Stunt_LP~~~ ASM Hack we're making in the moment: - Info Block from SMW It will be shared with the community |
Dirbaio |
Posted on 07-29-14, 08:42 pm
|
Super Mario
( ͡° ͜ʖ ͡°) Karma: 10020 Posts: 4109/4457 Since: 06-08-11 |
nsub_021022B4()
It's a function with no parameters. BTW I think you should learn a bit of c/c++ before trying to do ASM hacking. Most of these are basic C++ errors, and the compilation errors actually tell you what's wrong and in what line |
Stunt_LP |
Posted on 07-29-14, 09:00 pm
|
Red Cheep-cheep
Permanently Banned: Rereged Karma: 13 Posts: 162/214 Since: 03-04-13 |
Well, I learned a bit C++ before, but mostly the errors are because of my inattention
_________________________ Thanks ~~~Stunt_LP~~~ ASM Hack we're making in the moment: - Info Block from SMW It will be shared with the community |
Pages: 1