Golden Sun Hacking Community
April 20, 2019, 02:49:12 AM *
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: Collision Stuff  (Read 1627 times)
0 Members and 1 Guest are viewing this topic.

Regular Member
**

Coins: 0
Offline Offline

Posts: 135

« on: January 17, 2017, 12:41:03 AM »

https://clips.twitch.tv/tl_plexa/CourageousTigerHassanChop

https://www.twitch.tv/tl_plexa/v/115272846

Mostly this is just for curiosity. My theory for why this is happening is that this is the same as using a switch to interrupt movement and weird sliding happening (you might recall it from Lunpa Cave). Instead of the switch interrupting movement it is the sand rising cutscene and if you're in the right position and/or in the right part of your movement animation you will slide. If you happen to slide into a collision seam or something like that in the right pixel/subpixel then you can go through and clip like I did in the clips there.

If this is the case it might be possible to use elsewhere, but I'm not sure.
Logged
View Profile
Atrius
Programmer Extraordinaire
Web Host

Fear my blades

Veteran Member
*

Coins: 0
Offline Offline

Gender: Male
Emblems: Website Founder
Clan Position: Creation God of Sol
Posts: 1763

« Reply #1 on: January 17, 2017, 01:07:49 AM »

Weird.  I'm not sure why it's letting you slide into the wall, but I do know for sure that movement in Golden Sun is calculated in 3 Dimensions so as soon as you're moved onto the wall tile you're pushed up on the Z-Axis (which visually overlaps the Y-Axis, I play with it some in this video) to the height of the wall.
Logged

I'm shaking my head in general disapproval of everything
View Profile WWW
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 0
Online Online

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

« Reply #2 on: January 17, 2017, 05:07:00 AM »

Probably one of those "Change the collision tiles before we stop Felix from moving."./or/  "Get him moving again before fully updating them"?.. type of things. (e.g. Off by one errors.... ) Not sure, though....

I do know that if you do the code (As a cheat) 020322EC:0802F140 (make sure Felix's pointer @02030024 is 020322EC, though. Since it won't always be that.) , you could do further testing... (movement script pointer... and we want to not have it change to a "Do nothing" script... so we can still move during the sand rising cutscenes.) ... There are many different Movement types, though, so it won't always be the same pointer, in case you try to climb ladders and forget to disable this code, and stuff....


...
I haven't checked to see what happens with the collision tiles/etc. themselves, though. But it is possible that something of that nature could be messed with during the timed cutscenes that allows for the glitching??
« Last Edit: January 17, 2017, 05:35:45 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...

Remember kids! Before you go on that interview, remember to wash your hands in teawater! *Coughs on hand* (Excuse me, I just coughed up a little teawater, so they're still clean!) You wouldn't want that hiring manager to be unimpressed.

May the force be with you!
Shoo! Why does it smell in here?
Maybe that's the wrong kind of force. *smirk*
View Profile

Regular Member
**

Coins: 0
Offline Offline

Posts: 135

« Reply #3 on: January 17, 2017, 08:03:01 AM »

Weird.  I'm not sure why it's letting you slide into the wall, but I do know for sure that movement in Golden Sun is calculated in 3 Dimensions so as soon as you're moved onto the wall tile you're pushed up on the Z-Axis (which visually overlaps the Y-Axis, I play with it some in this video) to the height of the wall.
Yeah, I think its the same as this: https://www.twitch.tv/tl_plexa/v/50609265
Although in that instance the game decides to correct my position for some reason.

@Fox, I know collision is variable (which honestly is one of the most annoying things in this game since it prevents precise movement) but how exactly does it work?

For this instance the slide is the unusual behavior which I've only seen at Lemuria/Tolbi Fountain and with buttons e.g. like in the video above. I haven't seen a cutscene interrupt it until now. I'm going to play around with it a bit and see what else I can find.
Logged
View Profile
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 0
Online Online

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

« Reply #4 on: January 17, 2017, 09:25:14 AM »

@Lunpa Cave : I do not know yet... Why that happens... and I will have to do some thinking...

 I can get Isaac to be walking during the dialogue... the theory on that is the movement function decides the animation, and when you switch that to the Do Nothing function... there's nothing resetting/changing the animation... so it stays whatever it was. (Walking, running, etc.)  However, when it gets switched back to the movement function again, it stays updated.

As for the wall-clipping part... now that does sound like a bug. Unfortunately, I'm not sure what is going on there.
It does seem as you walk/run + interact, you can go a bit further then you could otherwise... (Even if you don't auto-get on top of wall.)
As it has been made obvious in your video. But you can also see it in my image....  I assume that is what you mean by "sliding"? (I guess that's basically what you said, but doesn't hurt to put things in my own words when I'm trying to think about it.)


Talking to NPCs seem to do the same (With setting PC script to do nothing.), but I don't get the walking animation... so I'm guessing it may be manually set there....? (I wonder if it sets anything else.... like a running speed to 0....? If assuming PC Movement function sets a number that gets evaluated by a global/used everywhere function....? .... Hmm... I will need to investigate. If this were the case, though... then anywhere where they forget to reset the value(s) could be exploited. - But again, this is a theory, and I'm not sure if it works that way yet.)


* collisiondifference.png (40.6 KB, 484x212 - viewed 187 times.)
« Last Edit: January 17, 2017, 12:09:54 PM 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...

Remember kids! Before you go on that interview, remember to wash your hands in teawater! *Coughs on hand* (Excuse me, I just coughed up a little teawater, so they're still clean!) You wouldn't want that hiring manager to be unimpressed.

May the force be with you!
Shoo! Why does it smell in here?
Maybe that's the wrong kind of force. *smirk*
View Profile

Regular Member
**

Coins: 0
Offline Offline

Posts: 135

« Reply #5 on: January 17, 2017, 07:28:07 PM »

I called it a slide because it's literally a slide :D https://clips.twitch.tv/tl_plexa/BeautifulFinchKappaWealth
Logged
View Profile
Ark
Guest
« Reply #6 on: January 22, 2017, 04:36:05 AM »

This type of clipping happens in a lot of other games. What I think is happening is similar to how other games handle it: player character has a speed value that accelerates and decelerates, cutscene starts and input stops being calculated, collision event is disabled for some reason, and the deceleration from the cutscene starts allows the character to clip into a wall a couple pixels which then zips the character based on the game's natural push calculations. In theory this could be used in any cutscene that allows movement to initiate. As for the Lunpa Cave I think it occurs like that because you're doing it into the seam of the wall and the gate.

Would be nice to see if that is backed up by the data, though.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Cbox
April 18, 2019, 01:18:08 AM
Fox: Thinking.... meme topics.....    Isaac: Stop calling me a sack! Also, don't call me sick either!
April 03, 2019, 08:24:45 PM
Fox: Really don't see the point in the Crystal or even the crown conversation, but whatever... (I mean, if you want to do it, then just do it. - Doesn't need to be at GSHC, because there are no longer clan leaders at GSHC.)
April 03, 2019, 03:59:33 AM
squizzy44: We all need to band together to take down Crystal.
April 02, 2019, 12:00:09 AM
Fox: Your clan?  You can't edit it manually, so you have to tell an admin so they can do it. There's actually a topic for when you pick a clan... but uhh... I've no idea if an admin will see it via that, though. (Kain will certainly see id you ping him on GSHC Discord.)
April 01, 2019, 05:28:42 PM
squizzy44: How do I change my position on my profile? I haven't used the site in nearly 10 years...
March 31, 2019, 10:10:15 PM
Fox: I still wonder if a Tret glitch for speedrunning exists... I don't think I looked into if the PC was on one of the other layers. (Which basically the second layer edits @-0x200 instead of @-0x100... in the event you are going up (y-axis) out of bounds.) Hm.
March 31, 2019, 06:18:43 PM
Fox: Not me.
March 31, 2019, 02:59:38 PM
Salanewt: I don't know of any, although if there were then we'd have to send it as a patch file. I think someone is working on it at least!
March 29, 2019, 07:51:48 PM
MaxiPower: no such thing exists
March 26, 2019, 03:38:42 AM
reeZ931: I would really appreciate it 
March 26, 2019, 02:39:38 AM
reeZ931: Anyone have a golden sun rom where you can play as saturos and menardi properly? 
March 25, 2019, 09:31:15 PM
Fox: It would explain why everyone leaves so quickly after taking our bananas.
March 24, 2019, 10:36:10 PM
Fox: Wouldn't bananas increase agility the more you have? Like... Diddy Kong Racing reference.
March 22, 2019, 11:19:11 PM
Average Wind Seer: Banana: Restores 50PP to user. Restores 40PP to Isaac if Jenna uses this item.
March 22, 2019, 09:57:53 PM
Salanewt: Lol. I mean, I am thinking of adding a banana item to GS so...
March 22, 2019, 09:48:42 PM
Fox: Ooh! Sala's back!  I think he wants a banana.  All this banana talk must have attracted him.
March 22, 2019, 08:56:52 PM
Fox: :O I just notice I have no Coins to buy bananas with! (You know, the coins feature this forum has.)
March 04, 2019, 08:45:44 PM
Fox: Aw.  I kind of want to suggest dressing up in a banana costume.  No wait, that's a bad idea.
March 04, 2019, 04:24:10 AM
Average Wind Seer: *angry gorilla noises that roughly translates to "Stay the [redacted] off my island and don't touch my [redacted] bananas"*
March 04, 2019, 03:06:07 AM
Fox: Gosh. This is like playing whack-a-mole! What's taking you so long with the bananas?! :D

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.109 seconds with 22 queries.