Golden Sun Hacking Community
October 17, 2017, 01:25:20 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
  Home   Forum   DC Wiki Help Search Calendar Downloads Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: I crashed the game in Tret tree  (Read 346 times)
0 Members and 1 Guest are viewing this topic.

Regular Member
**

Coins: 2
Offline Offline

Posts: 135

« on: July 16, 2017, 03:07:38 AM »

https://www.twitch.tv/videos/159498931

I posted about some weird tilesets and stuff being rendered in Tret on emulator a long time ago. Finally found a convenient door to test out what happens on console. It crashes the game.
Logged
View Profile
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 28
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2376

« Reply #1 on: July 16, 2017, 06:27:33 AM »

Tried to do this directly in the map (Using Debug Mode's Walk-Through-Walls instead of Retreat-Glitching... and umm... I think I got lost? (e.g. It looks like you can go right quite a bit. Edit: Although, if you are one tile off, it might just be a tiny bit. ... But then when I go up/left... I get a door/no crash.)

What are the coordinates of the crash? (And maybe the 'tile data' there too...) (The value at 020301B8 or 020301BC , and the value of whatever that points to.)


---
Referring to this topic? http://forum.goldensunhacking.net/index.php?topic=2611.0 ... Looks like I forgot to look it up, huh?

« Last Edit: July 16, 2017, 09:57:35 AM by Fox » Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...
*Cross my fingers and hope we have Big Brother All-Stars next year... with Paulie & Cody Califorie(sp?)... and Vanessa & Tiffany Rousso.... Would be fun? :P Especially if one of the boys got evicted early since there's usually some all-guy alliance in there, right?
View Profile

Regular Member
**

Coins: 2
Offline Offline

Posts: 135

« Reply #2 on: July 16, 2017, 09:47:13 AM »

I probably should have mentioned that this is off of a hard reset .. just in case you soft-resetted to get out of bounds.

After going up for a while (about 10s) you should end up at (36,4250), going right should take you to (37,4250), then the game crashes at (17,4229)
Logged
View Profile
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 28
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2376

« Reply #3 on: July 16, 2017, 10:10:16 AM »

Okay thanks! - It resets.... (Or well, I went directly to the final coordinates first to make sure, so that I could also get the number 0x1D -- Apparently most of that are about setting a tile to the PC's position... I assumed this was calculated with the base address of 06003000, but I will definitely want to do more testing before I go with basic assumptions....


@Hard Reset = I thought I noticed some strange object just barely peeking out on the right side of your screen... so I thought that was strange.....
« Last Edit: July 16, 2017, 10:17:03 AM by Fox » Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...
*Cross my fingers and hope we have Big Brother All-Stars next year... with Paulie & Cody Califorie(sp?)... and Vanessa & Tiffany Rousso.... Would be fun? :P Especially if one of the boys got evicted early since there's usually some all-guy alliance in there, right?
View Profile

Regular Member
**

Coins: 2
Offline Offline

Posts: 135

« Reply #4 on: July 16, 2017, 10:26:08 AM »

Ah yes. That's the Tret sprite. That's what happens when you do this prior to getting Mia apparently. Unfortunately it doesn't do anything functionally - much to my disappointment :D
Logged
View Profile
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 28
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2376

« Reply #5 on: July 16, 2017, 11:02:55 AM »

Oh. Thanks! Sounds interesting, and that is unfortunate...

Update: Meanwhile, I think I see something? Is it accurate?

(+0x100 for the next layer... since the tilemap is made of three layers.)

Layer 1 .... Layer 2
Layer 3 .... Probably nothing?


End of game here we come? (If possible.)

14 and below = (Nothing changed?)
15 = 000003FC
16 = 0000009A ; 00000005 (But also drops down / warps to another room.) ; I like how this is here since it is practically nudging Jenna flag.
17 = 000003FD
18 = 000003FE
19 = 000003FF
1A = 000003FC
1B = 00000400
1C = 00000401
1D = 000003FD
1E = (Nothing changed?)
1F = 000003FF
20 = 00000288

32 = 00000404
33 = 00000402
34 = 00000288
35 = 00000403
36 = 000002EB
37 = 00000405
38 = 00000406
39 = 00000407
3A = 00000359
3B = 00000406

--

Good news is that you can find a path pass the Map Code file, but it gets a little difficult....


* tileglitch.png (16.99 KB, 762x507 - viewed 29 times.)
« Last Edit: July 18, 2017, 04:05:26 AM by Fox » Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...
*Cross my fingers and hope we have Big Brother All-Stars next year... with Paulie & Cody Califorie(sp?)... and Vanessa & Tiffany Rousso.... Would be fun? :P Especially if one of the boys got evicted early since there's usually some all-guy alliance in there, right?
View Profile

Regular Member
**

Coins: 2
Offline Offline

Posts: 135

« Reply #6 on: July 16, 2017, 12:59:46 PM »

Even if its TAS only thats still super interesting. So moving out of bounds can actually influence things, and in a relative (as opposed to absolute) way. So it really might be possible to start writing some convenient bytes to do unintended things.

EDIT: I should probably revive the TAS project I had and get it to Tret tree and find an oob path through the map data.
« Last Edit: July 16, 2017, 01:05:14 PM by Plexa » Logged
View Profile
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 28
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2376

« Reply #7 on: July 16, 2017, 01:35:33 PM »

The thing is... When I posted the previous post, I didn't check to see if it worked the same way out-of-bounds as well... I mean like, the games can be quite clever with limiting functionality.... What is the possibility they check that it is in-bounds first (Like the X/Y location of the PC.), and the crashes being because of something else?
It seems like these events have some sort of activate once only type of mechanic... Eh? EDIT: It does something when [02001000] is not the same as the event id. (Then sets that to the Event ID) ... but if these are shared across event ids... then ... I guess you can only activate it twice since the second time is the drop.
Well, more research has to be done if we can actually do things. (Don't count your chickens before they hatch!)


Seems the numbers they become are at 02014700. (As in "not hard-coded"....) ... For both the "Damaged" leaves" and "Broke/fall through" leaves. ([+0x200])



Functions I am studying:
At the base of the research should be the Event Table in map code, the Event ID in this example shall use 0x1F...
02008560 = Just a call with args. == 02008334(0x209, 0x49, 0x23, 0x1F)
Args:
0x00000209 = r0 = Flag index
0x00000049 = r1 = source x
0x00000023 = r2 = source y
0x0000001F = r3 = event id?

02008334 = ?

This function is called around 02008390 and 020083BA:
080105D4 = I assume it replaces a tile, and transfers the modified tiles from RAM to VRAM.
Args:
r0 = source X
r1 = source Y
r2 = width
r3 = height
sp $44 = destination X
sp $48 = destination Y



EDIT: CONFIRMED!!! OUT-OF-BOUNDS STILL EDITS VALUES THE SAME WAY BUT THIS TIME IN THE OPPOSITE DIRECTION!!!! (-0x100)

Since -0x100 is the case, then there may be good reason to look into using garbage data (map code) from other maps. .... Hm... Although, I get the feeling it is entirely unnecessary. We might have this in the bucket? You think?
« Last Edit: July 18, 2017, 05:02:11 AM by Fox » Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...
*Cross my fingers and hope we have Big Brother All-Stars next year... with Paulie & Cody Califorie(sp?)... and Vanessa & Tiffany Rousso.... Would be fun? :P Especially if one of the boys got evicted early since there's usually some all-guy alliance in there, right?
View Profile
Pages: [1]   Go Up
  Print  
 
Jump to:  

Cbox
Yesterday at 09:57:26 AM
AZVRE: Im pretty okay, what about you?
Yesterday at 01:17:14 AM
Fox: I think the nine is doing a cirno on me, though... Anyway, how is everyone doing today?
Yesterday at 01:12:20 AM
Fox: onesixtwo*
Yesterday at 01:12:00 AM
Fox: Okay... Meanwhile... ah... 162 being a number that has made itself known to me.... I look at the relationships of the numbers.... 162  1+6+2 = 9 ; onesizetwo = alphabetical order = 9 characters ; Distance apart analysis: os = 4 = 1[6][2] , st = 1 = [1]6[2] , ot = 5 = [1][6]2 ; ost = original sound track?
October 15, 2017, 06:31:17 PM
AZVRE: ah okay :D i thought i caused some trouble
October 14, 2017, 07:49:16 AM
Fox: Oh i know... You were messing with yours, and the description says mine. It's kind of a funny bug. :P
October 13, 2017, 08:18:31 PM
AZVRE: I did not edit your profile tho. Just to erase that confusion ^^"
October 12, 2017, 04:49:56 AM
Fox: e.g. this art = http://forum.goldensunhacking.net/Themes/Jupiter/images/catbg.gif (etc.)
October 12, 2017, 04:48:58 AM
Fox: I have a question: Where did the art for the headers come from? (Like the backgrounds to each of these things... "Affiliates", etc... Asking just incase it inspires me to do something... but if Charon made it, then that's cool too.
October 11, 2017, 04:23:02 AM
FoxWas thinking about having something for the editor anniversary, but I believe I had to change my mind....
October 10, 2017, 12:58:36 PM
Fox: That's alright. ;       @AZVRE's profile: "Current Activity:  Editing the profile of Fox." ...Eh... That looks weird.
October 07, 2017, 11:45:16 PM
Atrius: Sorry about that, the auto bot detection is still working, but it also requires an admin to visit the site regularly.
October 04, 2017, 04:17:40 AM
Fox: Yeah, it does bring a small amount of activity. Not good quality activity, but it's still activity, nonetheless.  Now if we can get them to randomly post pictures and vdeios!
October 04, 2017, 02:10:48 AM
Majora: If nothing else, I like how they're copying the content of real posts at random. Interesting to see how they adapt to seem more authentic
October 03, 2017, 08:29:38 PM
Fox: medico6601 = Most likely another bot. :(
September 26, 2017, 03:32:24 PM
Fox: by ten* Excuse me.
September 26, 2017, 03:32:12 PM
Fox: Oh yes... Also multiply all levels by two. (So actually, an adept will have levels of 54, 3, 2, and 1, rather than 5, 0, 0, 0.... if going by those.)
September 26, 2017, 03:29:07 PM
Fox: ...I mean the theory also saves space on the Status Screen.
September 26, 2017, 03:26:11 PM
Fox: Random/fun concept theory: What if we got rid of ePow/eRest, and just made eLevel do everything. :P (A process of cleaning stuff up... Though, could make things less versatile. - Like, if a Djinni add 1 eLevel = Okay, that's understood... by why specifically +5 on the ePow/eRes (Rhetorical))
September 23, 2017, 04:42:08 AM
Fox: Oh nevermind, it does... but I swear I saw that a minute ago.

Affiliates
Temple of Kraden Golden Sunrise
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.055 seconds with 22 queries.