Language…
11 users online: Alex No,  AmperSam,  Anorakun, DinoMom, Green, Hiro-sofT, Kerd, Papangu, Pizzagamer9791,  Telinc1, yoshisisland - Guests: 293 - Bots: 522
Users: 64,795 (2,368 active)
Latest user: mathew

Line Guide Acts-Like Fix

SMW Patches → Line Guide Acts-Like Fix

Submission Details

Name: Line Guide Acts-Like Fix
Authors: imamelia, worldpeace
Added:
Version History: View
Tool: Asar
Requires Free Space: Yes
Bug Fix: Yes
Featured: No
Description: This patch makes the line guide processsing routine use the "acts like" setting instead of the Map16 number. This makes it possible to use ExGFX for line guides without worrying about where the tiles are in the Map16 pages.

-----
worldpeace's note:
The vanilla code of line guide interaction sometimes tries to restore the sprite's position from backup RAM, even if they aren't properly stored. This results in teleportation of line-guided sprites. (Like other vanilla glitches, this has been regarded as a feature and utilized for vanilla tricks!)

The previous version assumed the correctness of Nintendo's code however, and accessed some invalid "acts like" values as a result. It caused game freezing in some emulators (e.g. higan v092); for those who're interested, the patch got the map16 value outside of the level area and repeated a loop infinitely.

My version fixes the freezing issue, as well as giving some extra option regarding behaviors of line guide. You can choose the frequency of odd behaviors, which are the following:
1) Map16 tiles in the page 1 (or acting like one) work as "line guide end".
2) Those tiles let line-guided sprites teleport to certain position.

(These behaviors have already existed, and can be rarely observed in vanilla; only when the line-guided sprite is at a specific position which is decided by the map16 page of interacting tiles.)


This version also supports SA-1.
Tags: line-guided lorom physics sa-1
Comments: 7 (jump to comments)
Download 1.53 KiB | 614 downloads

Comments (7)

Ragey Link
Currently this patch does not work as intended for map16 on pages 0x40-0x7F.
To fix this, change the first segment of the patch as follows:

Code
LineGuideActFix:
	CMP #$80
	BCS .reject
	PHX
	LDX #$00
	CMP #$40
	BCC +
	LDX #$16
+
-	XBA
	LDA $1693|!addr
	REP #$20
	ASL
	ADC $06F624|!bank,x
	STA $0D
	SEP #$20
	LDA $06F626|!bank,x
	STA $0F
	REP #$20
	LDA [$0D]
	SEP #$20
	STA $1693|!addr
	XBA
	CMP #$02
	BCS -
	PLX
 MarioFanGamer Link
Originally posted by MikeyGTD
This seems to work well but it doesn't allow for switching between 'act as' via, for example, on/off switches. I think this patch would be greatly improved by including this functionality if possible.

I think custom line-guides would be better off as a separate patch.
MikeyGTD Link
This seems to work well but it doesn't allow for switching between 'act as' via, for example, on/off switches. I think this patch would be greatly improved by including this functionality if possible.
JamesD28 Link
Tested with:

• Lunar Magic 3.11
• SA-1 Pack v1.32
• Asar v1.71
• Snes9x v1.60

Works as intended, and the previous issues seem to have been fixed, so, update accepted.
DasFueller From older version: Line Guide Acts-Like Fix Link
Unfortunately mode $01 is definitely not "true vanilla". It changes the behaviour of sprites in a level I already created.

When I choose $00, is there any block that acts like a "line guide end"?

Nintubular From older version: Line Guide Acts-Like Fix Link
Is there a way to make this work with non-vanilla platforms? I tried using a disassembly of a brown platform but it did not work.

Awesome patch btw!
ASMagician Maks From older version: Line Guide Acts-Like Fix Link
Because of this piece of code
Code
LDA $1693|!addr
CMP #$96
BCS .reject

the line guided sprites will ignore line guide end tiles when using glitch setting 0