Views: 23,103,632 |
Home
| Forums
| Uploader
| Wiki
| Object databases
| IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search |
12-05-24 07:19 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 |
Cackletta |
| ||
Member Permanently banned: taking part in lamer attacks Level: 22 Posts: 2/91 EXP: 54589 Next: 3761 Since: 02-06-14 From: Los angeles california Last post: 3775 days ago Last view: 3775 days ago |
What assembly syntax does the DS use? Like the N64 uses Mips R4300i ____________________ Subscribe to my youtube channel Follow me on twitter My Modification's progress thread here |
Fiachra |
| ||
Local moderator Level: 65 Posts: 277/1065 EXP: 2298195 Next: 37433 Since: 12-15-12 From: Ireland Last post: 2383 days ago Last view: 333 days ago |
It's ARM assembly. It's documented here:
http://nocash.emubase.de/gbatek.htm |
Cackletta |
| ||
Member Permanently banned: taking part in lamer attacks Level: 22 Posts: 3/91 EXP: 54589 Next: 3761 Since: 02-06-14 From: Los angeles california Last post: 3775 days ago Last view: 3775 days ago |
Posted by Fiachra Great! Now what's left to do is to find sm64ds checksum area, I may upload it for the crew to make it easier to asm hack sm64ds ____________________ Subscribe to my youtube channel Follow me on twitter My Modification's progress thread here |
skawo |
| ||
Normal user Level: 32 Posts: 43/216 EXP: 200459 Next: 5983 Since: 01-04-14 Last post: 2704 days ago Last view: 1393 days ago |
I'm having trouble locating where the "what level to return to" values are for the Play Room levels and the Bowser levels (i.e Princess' Slide, Sunshine Islands, Goomboss Battle, Bowser at the Fire Sea). Anyone got any idea? |
Fiachra |
| ||
Local moderator Level: 65 Posts: 294/1065 EXP: 2298195 Next: 37433 Since: 12-15-12 From: Ireland Last post: 2383 days ago Last view: 333 days ago |
After completing getting a star? Is it not just the level you were in before entering it? |
skawo |
| ||
Normal user Level: 32 Posts: 44/216 EXP: 200459 Next: 5983 Since: 01-04-14 Last post: 2704 days ago Last view: 1393 days ago |
That's what happens with levels inside the castle lobby's first floor...but not for the ones listed for some reason. |
Fiachra |
| ||
Local moderator Level: 65 Posts: 295/1065 EXP: 2298195 Next: 37433 Since: 12-15-12 From: Ireland Last post: 2383 days ago Last view: 333 days ago |
It might be hard coded which level to return to for Castle Secret Stars, or it could be hard coded for those levels. If that's the case you'd have to debug through the ROM to find out where. For the EUR ROM the level ID will end up in memory address 0209f2f8 (from AR code to load a particular level). I worked back and was able to find where the 'Exit Course' and starting level ID's were hardcoded. The same could possibly be done for these levels.
It could also be something simpler like the parameters of the Exit objects to those levels. |
skawo |
| ||
Normal user Level: 32 Posts: 45/216 EXP: 200459 Next: 5983 Since: 01-04-14 Last post: 2704 days ago Last view: 1393 days ago |
Well, it's definitely not the entrance settings...
I've tried searching memory for the return value, but it doesn't seem to be always loaded into the same place...Gyah. |
Fiachra |
| ||
Local moderator Level: 65 Posts: 297/1065 EXP: 2298195 Next: 37433 Since: 12-15-12 From: Ireland Last post: 2383 days ago Last view: 333 days ago |
Place a breakpoint at 0209f2f8 for when the level ID of the returned level gets written to it, eg. [0209F2F8]=2 will create a breakpoint for when the level to load is set to 2 (Castle 1st Floor). Then keep working backwards. The value in R14 should usually contain the calling method. |
xjonx |
| ||
Normal user Level: 5 Posts: 1/3 EXP: 326 Next: 203 Since: 02-21-14 Last post: 3939 days ago Last view: 3773 days ago |
when I import a minimap in the minimap editor I get a error:
|
Fiachra |
| ||
Local moderator Level: 65 Posts: 298/1065 EXP: 2298195 Next: 37433 Since: 12-15-12 From: Ireland Last post: 2383 days ago Last view: 333 days ago |
I wasn't able to get the error but it just appeared black - the problem is that your image needs to be indexed (Image>Mode>Indexed for GIMP and Photoshop).
http://www.sendspace.com/file/n8mawq |
skawo |
| ||
Normal user Level: 32 Posts: 46/216 EXP: 200459 Next: 5983 Since: 01-04-14 Last post: 2704 days ago Last view: 1393 days ago |
Uh, heh, I unfortunately must admit I don't really have an idea of what I'm doing there.
I found out that the level value gets put into 0x02097360 in USv1 ROM, and toggled a breakpoint there and it changed where the player went (to Cool Cool Mountain for some reason), but I have no idea where to go from here. I shall try some more I guess. |
xjonx |
| ||
Normal user Level: 5 Posts: 2/3 EXP: 326 Next: 203 Since: 02-21-14 Last post: 3939 days ago Last view: 3773 days ago |
Posted by Fiachra Thanks |
Fiachra |
| ||
Local moderator Level: 65 Posts: 299/1065 EXP: 2298195 Next: 37433 Since: 12-15-12 From: Ireland Last post: 2383 days ago Last view: 333 days ago |
skawo: Decompiling the ROM in IDA Pro with the NDS plugin might make it easier, it'll show you where methods get called from etc. - the problem with it though is that it won't decompile the overlays as well (unless I've been doing something wrong).
I recently updated the patch 'Change Exit Course' to also include the US and JAP ROM's. Debugging through from that value may help give you an understanding of the level loading. |
xjonx |
| ||
Normal user Level: 5 Posts: 3/3 EXP: 326 Next: 203 Since: 02-21-14 Last post: 3939 days ago Last view: 3773 days ago |
How can I make warps, I don't mean tube warps I mean warps the teleport you when staying still? |
skawo |
| ||
Normal user Level: 32 Posts: 47/216 EXP: 200459 Next: 5983 Since: 01-04-14 Last post: 2704 days ago Last view: 1393 days ago |
Allrighty!
0x208FCBC -> Which level to return to value 0x2073310 - Goomboss Battle Map Return 0x2073304 - Bowser Fire Sea return and in ROM that would be... 0x73310 < Goomboss Battle (Original is 2c 32 03...) [2c -> level you're in, 32 -> level to go to, 03 -> entrance to go to) 0x73305 < Bowser Fire Sea (Original is 23 02 0a...) Seems like at that point there's some table with all of these. ...unfortunately this still leaves finding the values that take you to specific entrances when you get the key from those. |
Fiachra |
| ||
Local moderator Level: 65 Posts: 300/1065 EXP: 2298195 Next: 37433 Since: 12-15-12 From: Ireland Last post: 2383 days ago Last view: 333 days ago |
/\/\/-\RI0|_0\/3R: Add objects of type Teleport Source (where you want to teleport from) and Teleport Destination (where you want to teleport to). For Teleport Source parameter 2 should be set to the ID (zero-based index) of the Teleport Destionation followed by zero. Eg. if you wanted a Teleport Source to warp to the third Teleport Destination set parameter 2 to 20.
skawo: Good job! I'll try and include this in the level overlay (like what was done for the music bytes) and (either way) make it editable through the Level Settings form. |
skawo |
| ||
Normal user Level: 32 Posts: 48/216 EXP: 200459 Next: 5983 Since: 01-04-14 Last post: 2704 days ago Last view: 1393 days ago |
20C006C < Goomboss key return level (0xcad50) [32 30 a0 e3 98] (32 is the level you go to)
20C0074 < Goomboss key return entrance (0xcad58) [03 20 a0 e3 20] (03 is the level you go to) 20C0034 < Bowser in the fire sea key return level (0xcad18) [02 30 a0 e3 d0] (02 is the level you go to) 20C003C < Bowser in the fire sea key return entrance (0xcad20) [0a 20 a0 e3 20] (0a is the level you go to) Again, seems like there's some table around there with all the key exits. Just remember that this is for USv1 ROM, so just search for the stuff in []s and you'll know where it is in other roms. |
Fiachra |
| ||
Local moderator Level: 65 Posts: 301/1065 EXP: 2298195 Next: 37433 Since: 12-15-12 From: Ireland Last post: 2383 days ago Last view: 333 days ago |
Posted by me The table doesn't have an entry for each level in the game, it seems to only be for levels such as Bowser and other bosses. I'll add them as patches so you can change them more easily as well as the key return levels. Useful for people making full hacks. |
skawo |
| ||
Normal user Level: 32 Posts: 49/216 EXP: 200459 Next: 5983 Since: 01-04-14 Last post: 2704 days ago Last view: 1393 days ago |
Indeed.
And, yet another issue. It seems that the big star doors...don't have collision? It looks like the barrier that blocks you from entering is...hardcoded. Sigh. Edit: Wait, whaaaa? It actually just has a collision that only lets you through if you're going through a door? That's effing weeeeird. |
Main - General SM64DS hacking - SM64DS Editor Help Thread - Post your questions here | Hide post layouts | New reply |
Page rendered in 0.025 seconds. (2048KB of memory used) MySQL - queries: 26, rows: 143/143, time: 0.011 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |