Banner
The Overworld Design Contest ends in
1 MONTH, 5 DAYS, 30 MINUTES AND 25 SECONDS
Views: 897,755,156
Time:
11 users online: BlueToad, Eduard, grisu, h.carrell, Lush_50, mateochips, mish1, Misterfan2000, MLGKuba11, NerDose, qantuum - Guests: 57 - Bots: 75 Users: 50,366 (2,286 active)
Latest: theray
Tip: If you're using the original SMW ending, remember that Level 104 (Yoshi's House) will appear during it.
Not logged in.
A frame rule patch or sprite interaction patch for a specific level?
Forum Index - SMW Hacking - SMW Hacking Help - A frame rule patch or sprite interaction patch for a specific level?
Pages: « 1 » Link
Hello!

I was hoping someone could tell me if it would be possible to rewrite a regular SMW patch, the frame rule / sprite interaction patch, as an UberASM patch for only a specific level. I'm unsure of how to present this in the best way, and there is a video detailing all this below, but here is the problem I'm having:

- I'm using the Slide attack UberASM in one of my levels ( https://www.smwcentral.net/?p=section&a=details&id=20165 )

- Fairly often, Mario will be killed despite being in the middle of this sliding attack

- Seems to happen randomly, and my only theory is that it's caused during the overlapping of Mario's hitbox, and an enemies hitbox. Essentially, I believe that if Mario's hitbox "enters" an enemy during a frame which is not being checked for sprite interaction, by the next frame, which SMW checks for the interaction, the "killing" part of Mario's hitbox has passed through the enemy, which allows him to die to it. (I hope I explained that in a comprehensible manner)

- The frame rule patch seems to fix it reliably, however, as shown in the video below, there are a few jumps throughout the hack that only work WITHOUT the frame rule patch, which is why I only want it for this specific level in question

In this 90sec video: The level in question as intended / examples of Mario dying while sliding correctly / and a jump that is ruined by the frame rule patch in a different level

https://www.youtube.com/watch?v=3Y01S5J5q-g

Thank you for taking the time to read, and any help or information you might be able to provide me
Originally posted by slopcore
Hello!

I was hoping someone could tell me if it would be possible to rewrite a regular SMW patch, the frame rule / sprite interaction patch, as an UberASM patch for only a specific level. I'm unsure of how to present this in the best way, ahttps://www.smwcentral.net/images/banner.pngnd there is a video detailing all this below, but here is the problem I'm having:

- I'm using the Slide attack UberASM in one of my levels ( https://www.smwcentral.net/?p=section&a=details&id=20165 )

- Fairly often, Mario will be killed despite being in the middle of this sliding attack

- Seems to happen randomly, and my only theory is that it's caused during the overlapping of Mario's hitbox, and an enemies hitbox. Essentially, I believe that if Mario's hitbox "enters" an enemy during a frame which is not being checked for sprite interaction, by the next frame, which SMW checks for the interaction, the "killing" part of Mario's hitbox has passed through the enemy, which allows him to die to it. (I hope I explained that in a comprehensible manner)

- The frame rule patch seems to fix it reliably, however, as shown in the video below, there are a few jumps throughout the hack that only work WITHOUT the frame rule patch, which is why I only want it for this specific level in question

In this 90sec video: The level in question as intended / examples of Mario dying while sliding correctly / and a jump that is ruined by the frame rule patch in a different level

https://www.youtube.com/watch?v=3Y01S5J5q-g

Thank you for taking the time to read, and any help or information you might be able to provide me


Some sprites have an option called Can't be killed by sliding, you can disable this using Tweaker.

And if you want you can report this glitch to the creator of the patch.

--------------------
Originally posted by Batata Douce
Originally posted by slopcore
Hello!

I was hoping someone could tell me if it would be possible to rewrite a regular SMW patch, the frame rule / sprite interaction patch, as an UberASM patch for only a specific level. I'm unsure of how to present this in the best way, ahttps://www.smwcentral.net/images/banner.pngnd there is a video detailing all this below, but here is the problem I'm having:

- I'm using the Slide attack UberASM in one of my levels ( https://www.smwcentral.net/?p=section&a=details&id=20165 )

- Fairly often, Mario will be killed despite being in the middle of this sliding attack

- Seems to happen randomly, and my only theory is that it's caused during the overlapping of Mario's hitbox, and an enemies hitbox. Essentially, I believe that if Mario's hitbox "enters" an enemy during a frame which is not being checked for sprite interaction, by the next frame, which SMW checks for the interaction, the "killing" part of Mario's hitbox has passed through the enemy, which allows him to die to it. (I hope I explained that in a comprehensible manner)

- The frame rule patch seems to fix it reliably, however, as shown in the video below, there are a few jumps throughout the hack that only work WITHOUT the frame rule patch, which is why I only want it for this specific level in question

In this 90sec video: The level in question as intended / examples of Mario dying while sliding correctly / and a jump that is ruined by the frame rule patch in a different level

https://www.youtube.com/watch?v=3Y01S5J5q-g

Thank you for taking the time to read, and any help or information you might be able to provide me


Some sprites have an option called Can't be killed by sliding, you can disable this using Tweaker.

And if you want you can report this glitch to the creator of the patch.


I downloaded and opened the tweaker, and opened my rom in it. None of the sprites used in the level had the "can't be killed by sliding" option checked. They all already allowed killing by sliding.

Did you watch the video? Dying while sliding happens randomly. One try on the level you might be able to kill every enemy, then on the next try you might die to any one of them.

I appreciate the suggestion however, and the time you took to respond. I will try to contact the creator of the UberASM patch.

Thank you.
Originally posted by slopcore
- Seems to happen randomly, and my only theory is that it's caused during the overlapping of Mario's hitbox, and an enemies hitbox. Essentially, I believe that if Mario's hitbox "enters" an enemy during a frame which is not being checked for sprite interaction, by the next frame, which SMW checks for the interaction, the "killing" part of Mario's hitbox has passed through the enemy, which allows him to die to it. (I hope I explained that in a comprehensible manner).

For clarification, this patch doesn't add any sliding hitbox but rather puts Mario temporarily in the star state (which is why Mario is flashing during the slide).
In fact, this attack has nothing to do with the actual sliding attack as enemies, unless they're set to be explicitely immune (such as Chucks) or use a custom interaction which doesn't take account for sliding (such as Rexes), sliding actually makes Mario completely immune against other sprites.

Either way, what actually happens here is that the star timer is set to twelve frames but only refreshes it if it runs out. However, the routine to refresh the timer (both, patch and UberASM) runs before the game decrements it and that routine runs before it handles sprites (and therefore interaction with Mario) which is where the single frame of vulnerability is coming from. This does prevent cheesing the level from being immune to spikes and Munchers (and other hurt blocks) but has got the possibility to fail against sprites.
Either way, this definitively is a bug which needs to be fixed.

--------------------
Okay, my layout looks ugly.
Originally posted by MarioFanGamer
Originally posted by slopcore
- Seems to happen randomly, and my only theory is that it's caused during the overlapping of Mario's hitbox, and an enemies hitbox. Essentially, I believe that if Mario's hitbox "enters" an enemy during a frame which is not being checked for sprite interaction, by the next frame, which SMW checks for the interaction, the "killing" part of Mario's hitbox has passed through the enemy, which allows him to die to it. (I hope I explained that in a comprehensible manner).

For clarification, this patch doesn't add any sliding hitbox but rather puts Mario temporarily in the star state (which is why Mario is flashing during the slide).
In fact, this attack has nothing to do with the actual sliding attack as enemies, unless they're set to be explicitely immune (such as Chucks) or use a custom interaction which doesn't take account for sliding (such as Rexes), sliding actually makes Mario completely immune against other sprites.

Either way, what actually happens here is that the star timer is set to twelve frames but only refreshes it if it runs out. However, the routine to refresh the timer (both, patch and UberASM) runs before the game decrements it and that routine runs before it handles sprites (and therefore interaction with Mario) which is where the single frame of vulnerability is coming from. This does prevent cheesing the level from being immune to spikes and Munchers (and other hurt blocks) but has got the possibility to fail against sprites.
Either way, this definitively is a bug which needs to be fixed.


Ahhh, okay! That's very interesting. I was way off. I certainly can't claim to be very knowledgeable about this stuff at all haha

Thank you for your response. I have just made a comment about it on the page for the patch, and linked this thread. Hopefully it isn't too difficult to fix, it's an awesome patch/mechanic as it is.
For anyone else who may encounter this problem with this UberASM patch, the fine gentlemen by the names of Binavik, as well as Monkeyfist01, have helped me to understand and resolve this issue.

The fix can be found in my comment on the page for the patch, which I have linked below.

https://www.smwcentral.net/?p=section&a=details&id=20159
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - A frame rule patch or sprite interaction patch for a specific level?

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2021 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks