News:

The forum has been updated to SMF (2.1.3)!
Please be patient as we work to polish up the place and update features as we can.

Main Menu

Mars Lighthouse Torch Despawn Glitch

Started by Plexa, 07, December, 2015, 01:00:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Plexa

I've known about this glitch where you can unload one of the flame torches in Mars Lighthouse but never been able to replicate it until today.



Here's how its done; http://www.twitch.tv/tl_plexa/v/28696965

Essentially you get an encounter approximately on the same frame as when the torch gets lit, and then after the encounter the torch is missing. I don't think this is usable anywhere else but I'm posting it here in case somewhere here is interested in why it happens and if there's any potential for further abuse.

leaf

#1
I keep going over in my brain how they could have coded this for that to happen, and absolutely nothing makes sense. I'm guessing that the unlit torch and the lit torch are different objects in memory, and that for whatever reason the destroy function is called before the battle function, but the instantiation function is called afterward. That's the part that doesn't make sense. I could understand doing a physics check -> battle -> psynergy, but why isn't it just instantiating the new object as the very next call after destroying the old one lol

As for other places this could be useful... I can't think of any. AFAIK you can't get an encounter and cast psynergy on the same frame, so there's very little way to force this to happen outside of rare cases like this where an object in the environment is acting as a psynergy. If there's any other timed events in the game, you might get a similar result. Maybe you could do something with some of the moai in the rocks?
[spoiler=quotes]
[9:00:50 PM] Randel Peltier: Ok...what did I do last night?
[9:01:19 PM] Kain: Something boring, repetitive, and lasted for about sixty seconds.
---
[10:45:08 AM] Salanewt: But yeah, the elemental phalluses are being... Stroked up by Saturos and co., and the energy will go towards... Mt. Muffin, where the Golden Climax will arise.
[7:28:42 PM] Salanewt: An added bonus is that Isaac and co. were trying to stop Saturos and co. because their beliefs state that Mt. Muffin should remain a virgin.
---
[9:54:21 PM] Randel Peltier: Guess the number in my head an you get to pick what I say. Number between 1-10
[9:54:28 PM] leaf: 11
[9:54:36 PM] Randel Peltier: @#$%!
---
[8:38:13 PM] Randel Peltier: Shes like this queen up on a pedastal that I have yet to court.
[8:38:29 PM] Kain: You've tried courting her.
[8:38:43 PM] leaf: and failed spectacularly
[8:38:44 PM] Randel Peltier: Ive tried...shes the best dating game ever.
---
[12:24:35 AM] Salanewt: I need to find a picture of a naked person to put on the Christmas tree next year.
---
[2:19:06 PM] Zeadra: wait... Rief's a guy???
---
[1:09:57 PM] Zeadra: well if you want to know if its a new effect or something weird, just check GS1, if side step is there maby it is the nimble dodge thing
[1:10:35 PM] Kioll: For once, you've contributed something useful.  o.O[/spoiler]

Daddy Poi's Oily Gorillas

#2
Two separate objects... No init/de-init going on, I don't think?
020323EC = Lit object.
0203246C = Unlit object.

Basically, the unlit object is in its place, and the lit one is at (0,0), when lit, the unlit one goes to (0,0), and the lit one takes its original place....
That doesn't fully explain why battles can be executed between both, but I haven't looked at that part yet....
(I could probably figure it out quickly if I looked at the code. - Maybe later. - Before looking, I have a hunch that each object has its own code for their thing, so wouldn't be surprised if object order meant something... I'm thinking the first frame all object code is executed.... the unlit one disappears... and then all object code is executed, and the lit one appears?)
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...

Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
Maybe it is over-analyzing, but it doesn't mean the information is useless.


The only GS Discord servers with significance are:
Golden Sun Hacking Community
GS Speedrunning
/r/Golden Sun
GS United Nations
Temple of Kraden

Can you believe how small the Golden Sun Community is?

2+2=5 Don't believe me? Those are rounded decimal numbers. Take that, flat earth theorists! :)

leaf

Oh, I think I see what's happening. If you watch the video (start around 2:25), it actually does light the torch during the battle init. The battle init saves the state of the room so that it can return to it after the battle, so it probably saves the position of the "lit" torch before the "unlit" torch, which happens the next frame. It makes sense that an object at 0,0 would have its state saved before another arbitrary point, but my explanation isn't quite convincing in that this process shouldn't be spanning multiple frames.
[spoiler=quotes]
[9:00:50 PM] Randel Peltier: Ok...what did I do last night?
[9:01:19 PM] Kain: Something boring, repetitive, and lasted for about sixty seconds.
---
[10:45:08 AM] Salanewt: But yeah, the elemental phalluses are being... Stroked up by Saturos and co., and the energy will go towards... Mt. Muffin, where the Golden Climax will arise.
[7:28:42 PM] Salanewt: An added bonus is that Isaac and co. were trying to stop Saturos and co. because their beliefs state that Mt. Muffin should remain a virgin.
---
[9:54:21 PM] Randel Peltier: Guess the number in my head an you get to pick what I say. Number between 1-10
[9:54:28 PM] leaf: 11
[9:54:36 PM] Randel Peltier: @#$%!
---
[8:38:13 PM] Randel Peltier: Shes like this queen up on a pedastal that I have yet to court.
[8:38:29 PM] Kain: You've tried courting her.
[8:38:43 PM] leaf: and failed spectacularly
[8:38:44 PM] Randel Peltier: Ive tried...shes the best dating game ever.
---
[12:24:35 AM] Salanewt: I need to find a picture of a naked person to put on the Christmas tree next year.
---
[2:19:06 PM] Zeadra: wait... Rief's a guy???
---
[1:09:57 PM] Zeadra: well if you want to know if its a new effect or something weird, just check GS1, if side step is there maby it is the nimble dodge thing
[1:10:35 PM] Kioll: For once, you've contributed something useful.  o.O[/spoiler]