Views: 20,066,708 |
Home
| Forums
| Uploader
| Wiki
| Object databases
| IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search |
04-27-24 12:51 AM |
Guest: |
0 users reading SM64DS Editor Help Thread - Post your questions here | 2 bots |
Main - General SM64DS hacking - SM64DS Editor Help Thread - Post your questions here | Hide post layouts | New reply |
FFIVGUY |
| ||
Newcomer Normal user Level: 6 Posts: 3/5 EXP: 586 Next: 321 Since: 10-10-16 From: Baron Castle Last post: 2730 days ago Last view: 1721 days ago |
How would I get to PLAYER->forwardSpeed? |
Sparsite |
| ||
take your dumb self out of here. thank you. Level: 34 Posts: 222/270 EXP: 238838 Next: 14813 Since: 05-20-16 Last post: 2709 days ago Last view: 2569 days ago |
Posted by FFIVGUY Using the asm patch template as previously mentioned. I take it you don't know anything about coding? ____________________ ASMR: *quietly whispers* move r0 r7 push r4 to r14 load register r4 into r0 POP |
FFIVGUY |
| ||
Newcomer Normal user Level: 6 Posts: 4/5 EXP: 586 Next: 321 Since: 10-10-16 From: Baron Castle Last post: 2730 days ago Last view: 1721 days ago |
Well, not very much. I haven't learned much C++ yet and I just started learning Assembly
|
pacmainia&luigi |
| ||
Red Paratroopa Hacker Level: 29 Posts: 130/178 EXP: 132271 Next: 15614 Since: 10-29-15 From: The Grandfather Paradox Time Loop Last post: 1818 days ago Last view: 1458 days ago |
Posted by FFIVGUY Learn C first. TRUST ME, IT'S MUCH EASIER. ____________________ Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka......... |
FFIVGUY |
| ||
Newcomer Normal user Level: 6 Posts: 5/5 EXP: 586 Next: 321 Since: 10-10-16 From: Baron Castle Last post: 2730 days ago Last view: 1721 days ago |
OK thanks |
Sparsite |
| ||
take your dumb self out of here. thank you. Level: 34 Posts: 225/270 EXP: 238838 Next: 14813 Since: 05-20-16 Last post: 2709 days ago Last view: 2569 days ago |
Posted by FFIVGUY Ill send a template in a day or 2 with marios speed modified and instructions on how to patch the code. You can ram search the other values in desmumes ram search and modify them too along with the speed. ____________________ ASMR: *quietly whispers* move r0 r7 push r4 to r14 load register r4 into r0 POP |
FireMario74 |
| ||
Red Paratroopa Setting fire to the rain since 1756 Level: 29 Posts: 166/179 EXP: 132671 Next: 15214 Since: 12-02-15 From: Melty Molten Mountains Last post: 2430 days ago Last view: 2405 days ago |
How would I make it so when for example Luigi goes into his own door Yoshi comes out? How would I make it so Mario comes out instead of Yoshi? Thanks |
pacmainia&luigi |
| ||
Red Paratroopa Hacker Level: 29 Posts: 131/178 EXP: 132271 Next: 15614 Since: 10-29-15 From: The Grandfather Paradox Time Loop Last post: 1818 days ago Last view: 1458 days ago |
Posted by Sparsite Can you send me it, too? ____________________ Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka......... |
Sparsite |
| ||
take your dumb self out of here. thank you. Level: 34 Posts: 245/270 EXP: 238838 Next: 14813 Since: 05-20-16 Last post: 2709 days ago Last view: 2569 days ago |
Posted by FFIVGUY #include "SM64DS.h"
void hook_020e50ac() //The code at this address runs every frame, we hook here so it runs the original code and our code every frame { if (CHARACTER == CHAR_Mario) //Can swap out for CHAR_Luigi, CHAR_Wario, or CHAR_Yoshi { PLAYER->forwardSpeed += 10000; //Set the player speed equal the current speed, plus the modified amount (10000) } } //Modifying a RAM Address: //This will make sure that the player is always Mario. (After any warp is used) //0x0209CAE1 is the character address, you are simply always setting it to 0, which is Mario's character id. //If the address is 1 byte, it is volatile byte, if its 2 bytes, its volatile short, and if its 4 bytes, its volatile int //*((volatile byte*)(0x0209CAE1)) = 0; put that code into a text document and save it as Whatever.cpp (make sure its a CPP file and not a text file) Patching instructions are here If you get stuck anywhere, just ask and I can help. Posted by pacmainia&luigi If you know C, you should already be able to do it yourself. Patching instructions are on the ASMPatchTemplate thread. Posted by FireMario74 In the asm patch template, you would do void hook_020BE1E0_ov_02()
{ asm ( "cmp r1, #0x3 \t\n" "moveq r1, #0x0 \t\n" ); } This hooks the method that is called when the player changes characters. If R1 (which has the character id) is equal to #0x3 (Yoshi's ID), then set it to #0x0, which is Mario's character id. ____________________ ASMR: *quietly whispers* move r0 r7 push r4 to r14 load register r4 into r0 POP |
FireMario74 |
| ||
Red Paratroopa Setting fire to the rain since 1756 Level: 29 Posts: 167/179 EXP: 132671 Next: 15214 Since: 12-02-15 From: Melty Molten Mountains Last post: 2430 days ago Last view: 2405 days ago |
Posted by Could you convert this to hex for me? I have had troubles getting the asm template working. Thanks for the help man! |
pacmainia&luigi |
| ||
Red Paratroopa Hacker Level: 29 Posts: 132/178 EXP: 132271 Next: 15614 Since: 10-29-15 From: The Grandfather Paradox Time Loop Last post: 1818 days ago Last view: 1458 days ago |
Posted by Sparsite I know C, I just don't know how it ties up with assembly. I know that it's easier to learn C first though. ____________________ Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka......... |
Sparsite |
| ||
take your dumb self out of here. thank you. Level: 34 Posts: 248/270 EXP: 238838 Next: 14813 Since: 05-20-16 Last post: 2709 days ago Last view: 2569 days ago |
Posted by FireMario74 Turns out, that hook is completely unnecessary. There is a line of code that detects if a character enters their own door. EUR: 02144588: moveq r1, #0x0 Search 03 10 A0 03 04 00 A0 E1 in your ROM and change the 03 to 00 for Mario, 01 for Luigi, 02 for Wario, and 03 for Yoshi. Posted by pacmainia&luigi Modifying the players speed doesn't involve assembly at all. Just look at the template, and the example Fiachra gave. I am fairly certain you can figure it out. ____________________ ASMR: *quietly whispers* move r0 r7 push r4 to r14 load register r4 into r0 POP |
FireMario74 |
| ||
Red Paratroopa Setting fire to the rain since 1756 Level: 29 Posts: 169/179 EXP: 132671 Next: 15214 Since: 12-02-15 From: Melty Molten Mountains Last post: 2430 days ago Last view: 2405 days ago |
Posted by Sparsite Worked like a charm! Thanks a lot man! New problem. I want to replace the model for the key to Mario's door. Whereabouts would that model be located? Or does anyone know? Thanks |
Sparsite |
| ||
take your dumb self out of here. thank you. Level: 34 Posts: 249/270 EXP: 238838 Next: 14813 Since: 05-20-16 Last post: 2709 days ago Last view: 2569 days ago |
Posted by FireMario74 There is no model as far as I'm aware. I think it just loads a key model and Mario's hat model ontop. Not 100% sure though. If its anywhere it'd probably be in the special_obj folder. ____________________ ASMR: *quietly whispers* move r0 r7 push r4 to r14 load register r4 into r0 POP |
FireMario74 |
| ||
Red Paratroopa Setting fire to the rain since 1756 Level: 29 Posts: 170/179 EXP: 132671 Next: 15214 Since: 12-02-15 From: Melty Molten Mountains Last post: 2430 days ago Last view: 2405 days ago |
No the models are different. You were right about the cap but the mario key also has an M engraved on it. Differences:
EDIT: Via animation editor I found the bowser key but I can't find Mario's key. It's located in the normal_obj folder labeled koopa_key |
Sparsite |
| ||
take your dumb self out of here. thank you. Level: 34 Posts: 250/270 EXP: 238838 Next: 14813 Since: 05-20-16 Last post: 2709 days ago Last view: 2569 days ago |
Use my file system documentation. I think I documented them. Otherwise, its probably in the special_obj folder. ____________________ ASMR: *quietly whispers* move r0 r7 push r4 to r14 load register r4 into r0 POP |
Arisotura |
| ||
Star Mario in this room you have a pile of apple pies Level: 163 Posts: 6970/9020 EXP: 56279758 Next: 207886 Since: 07-03-12 From: in a box Last post: 1 day ago Last view: 1 day ago |
Sparsite |
| ||
take your dumb self out of here. thank you. Level: 34 Posts: 251/270 EXP: 238838 Next: 14813 Since: 05-20-16 Last post: 2709 days ago Last view: 2569 days ago |
Posted by StapleButter Im just used to always pressing quote when replying, ill nuke it. ____________________ ASMR: *quietly whispers* move r0 r7 push r4 to r14 load register r4 into r0 POP |
Arisotura |
| ||
Star Mario in this room you have a pile of apple pies Level: 163 Posts: 6971/9020 EXP: 56279758 Next: 207886 Since: 07-03-12 From: in a box Last post: 1 day ago Last view: 1 day ago |
Sparsite |
| ||
take your dumb self out of here. thank you. Level: 34 Posts: 252/270 EXP: 238838 Next: 14813 Since: 05-20-16 Last post: 2709 days ago Last view: 2569 days ago |
Posted by StapleButter Alright, I'll do that from now on. ____________________ ASMR: *quietly whispers* move r0 r7 push r4 to r14 load register r4 into r0 POP |
Main - General SM64DS hacking - SM64DS Editor Help Thread - Post your questions here | Hide post layouts | New reply |
Page rendered in 0.060 seconds. (2048KB of memory used) MySQL - queries: 28, rows: 232/232, time: 0.021 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |