Kuribo64
Views: 19,850,617 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
03-28-24 12:15 PM
Guest:

0 users reading SM64DS Editor Help Thread - Post your questions here | 1 bot

Main - General SM64DS hacking - SM64DS Editor Help Thread - Post your questions here Hide post layouts | New reply

Pages: 1 2 3 4 5 ... 53 54 55 56 57 58 59 60 61 62 63 64 65 66
FFIVGUY
Posted on 11-02-16 08:24 PM Link | #79428
How would I get to PLAYER->forwardSpeed?

Sparsite
Posted on 11-02-16 11:32 PM Link | #79431
Posted by FFIVGUY
How would I get to PLAYER->forwardSpeed?


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
Posted on 11-03-16 07:25 PM (rev. 2 of 11-03-16 07:26 PM) Link | #79454
Well, not very much. I haven't learned much C++ yet and I just started learning Assembly

pacmainia&luigi
Posted on 11-03-16 09:06 PM Link | #79457
Posted by FFIVGUY
Well, not very much. I haven't learned much C++ yet and I just started learning Assembly

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
Posted on 11-04-16 01:29 AM Link | #79461
OK thanks

Sparsite
Posted on 11-04-16 02:01 AM Link | #79462
Posted by FFIVGUY
OK thanks


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
Posted on 11-12-16 06:00 AM (rev. 2 of 11-12-16 06:00 AM) Link | #79661
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
Posted on 11-12-16 06:51 PM Link | #79664
Posted by Sparsite
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.

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
Posted on 11-12-16 08:35 PM (rev. 6 of 11-12-16 08:38 PM) Link | #79665
Posted by FFIVGUY
OK thanks


#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
Can you send me it, too?

If you know C, you should already be able to do it yourself. Patching instructions are on the ASMPatchTemplate thread.

Posted by FireMario74
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


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
Posted on 11-12-16 10:08 PM (rev. 2 of 11-12-16 10:09 PM) Link | #79666
Posted by
Sparsite
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.


Could you convert this to hex for me? I have had troubles getting the asm template working. Thanks for the help man!

pacmainia&luigi
Posted on 11-12-16 10:51 PM Link | #79667
Posted by Sparsite
If you know C, you should already be able to do it yourself. Patching instructions are on the ASMPatchTemplate thread.

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
Posted on 11-13-16 12:02 AM (rev. 3 of 11-13-16 12:04 AM) Link | #79671
Posted by FireMario74
Could you convert this to hex for me? I have had troubles getting the asm template working. Thanks for the help man!

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
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.


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
Posted on 11-13-16 06:37 AM (rev. 2 of 11-13-16 10:01 PM) Link | #79674
Posted by Sparsite
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.


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
Posted on 11-13-16 10:09 PM Link | #79686
Posted by FireMario74
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

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
Posted on 11-13-16 11:24 PM (rev. 2 of 11-13-16 11:28 PM) Link | #79687
No the models are different. You were right about the cap but the mario key also has an M engraved on it. Differences:
[image]
[image]
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
Posted on 11-14-16 12:42 AM (rev. 2 of 11-14-16 12:53 AM) Link | #79688
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
Posted on 11-14-16 12:46 AM Link | #79689
did you really need to quote the post right above yours, including the two images?

____________________
NSMBHD - Kafuka - Jul
melonDS the most fruity DS emulator there is

zafkflzdasd

Sparsite
Posted on 11-14-16 12:52 AM Link | #79690
Posted by StapleButter
did you really need to quote the post right above yours, including the two images?


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
Posted on 11-14-16 12:54 AM Link | #79691
it's generally a good idea to snip big images/videos when quoting a post. or parts of the post irrelevant to what you're replying, if the post is big.

____________________
NSMBHD - Kafuka - Jul
melonDS the most fruity DS emulator there is

zafkflzdasd

Sparsite
Posted on 11-14-16 01:16 AM Link | #79692
Posted by StapleButter
it's generally a good idea to snip big images/videos when quoting a post. or parts of the post irrelevant to what you're replying, if the post is big.


Alright, I'll do that from now on.

____________________
ASMR:
*quietly whispers*
move r0 r7
push r4 to r14
load register r4 into r0
POP
Pages: 1 2 3 4 5 ... 53 54 55 56 57 58 59 60 61 62 63 64 65 66

Main - General SM64DS hacking - SM64DS Editor Help Thread - Post your questions here Hide post layouts | New reply

Page rendered in 0.045 seconds. (2048KB of memory used)
MySQL - queries: 26, rows: 234/234, time: 0.017 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.