#How do I convert old template code to new template?
1 messages · Page 1 of 1 (latest)
What is this code for? Only a doubt
If that's what I'm thinking I'll download it
second nintendo logo that can be customized, i need help converting it to the new template
Is that the second boot screen codes?
@hardy stag could you tell me how to do this please? sorry if i pinged.
Away from pc rn srry
At school
For shit that's programmed in c/cpp it's usually a bit more complicated to port cause you gotta find the equivalent functions
YES! THAT ONE I WANT I WILL DOWNLOAD
How do I convert old template code to new template?
Also, what i need to put in my símbols.x? Because i dont want to replace it because it have all the things about my codes
hook_ADDR -> ncp_hook(ADDR)
hook_ADDR_ov_OV -> ncp_hook(ADDR, OV)
nsub_ADDR -> ncp_jump(ADDR)
nsub_ADDR_ov_OV -> ncp_jump(ADDR, OV)
repl_ADDR -> ncp_call(ADDR)
repl_ADDR_ov_OV -> ncp_call(ADDR, OV)
and in NCPatcher the names aren't specified by changing the function names, but rather like attributes
// In NSMBe Patching mode
void hook_ADDR_ov_OV() {
// do something
}
// In NCPatcher patching mode
ncp_hook(ADDR, OV)
void doSomethingPatch() {
// do something
}
i.. dont know what to do though
Do you know how to program in C?
nope.
Such as understanding the concept of a pointer
That isn't enough
i know i have to replace something with something
I'm still learning Python, I'll be covering C next
You need to find what the corresponding functions in the new template are and use those instead
For example
loadSave in the new template is Save::loadMainSave I think
The easiest way of doing this is comparing the symbols in symbols.x
In the old template symbols.x there should be a line like
loadSave = 0x02012E08;
Searching for 2012E08 in the new template gives you this:
The symbol looks much more complicated because it's a C++ symbol instead of a C symbol
But you can see that the corresponding function for that symbol is Save::loadMainSave
I'm still confused about that
as I mentioned before
I'm very inexperienced with the whole code part
yeah i still have no clue
Guess you'll have to insist and do more searching
is this right?
and is 0x83 important?
@hardy stag Again, really very sorry for the ping, but could you help please?
yeah dw gimme a sec
tysm!
Nope, it's wrong
To check for errors easily and understand better what is going on you should probably use an IDE like Visual Studio code
yeah, no. i dont have enough space for it
@hardy stag?
rewriting it
woah
good luck with it
any updates, will smith?
if youre rewriting it, could you make a presses play the a press sound?
like, the sound that plays when you press "Mario Game" on the title screen? And for credits, could I get a higher res version of your profile pic?
soo I was going to rewrite it as a proper scene like how ed_it did with the level previews hack but I got lazy and pretty much just ported it
sorry for the wait I was busy
@sharp pewter
Im so sorry for bothering you, thank you so much though! Could I have. high quality version of your pfp for credits?
np, and I don't think I have a high quality version of my pfp anymore lol it's just a random AI generated peter griffin image I found
oh nice
does this work fine?
LMAO
sure
but I don't really think I need a special thanks tbh
just put me in the credits
lmao yes you did
Looks really cool
LMAO the image goes so hard
That reference that seems wtf there is actually an hardware register, that's why it's at such an high address
oh I assume it's not in the reference then
I swear I tried that and it didn't work
Yeah I used getpressedkeys
(screenshot from tr)
Leaked😳
yeah fix these
Bro I tried but it didn't return key presses
it works, thats the point
LMAO, willsmith2 dont deserve this lol
Usually that's not how code goes
Sometimes just passing the code as is because it just works might come as a surprise later
i really dont care, does it work without interfering with anything else? even if its just barely hanging on? if yes, ok.
thats what the nsmb hacking community calls skawo code 
bc a lot of his codehacks cause other problems
eh idc
skawo is a god anyways
I hope you run into undefined behavior
if i do i'll burn the hack, burn my laptop, burn my ds and erase my past and existence off of the face of earth
lmao
we if erase your existence off of the face of earth make sure u dont fail, its not fun and i know that from experience :3
❌ Asking for help
✅ Burning laptop + DS
me if hack breaks:
i dont think the ds makes that sound
its fine
i think its normal for the ds to make sounds it never was meant to make
but at least the thing sort of works
game then load the dj hallyboo bossfight
AntiPiracy screen reference?!?!?
Somethimes when my DS crashed it made similar sounds
bro please tell me this is fake 💀
i burnt my ds, my computer and shredded all evidence that I ever existed
it was hard to contain my laughter reading this