Language…
11 users online: anonimzwx, DanMario24YT, howardadam1126, iamtheratio, JPhanto, kurtistrydiz, playagmes169, Rhubarb44230, Saela, TheOrangeToad,  YouFailMe - Guests: 281 - Bots: 336
Users: 64,795 (2,378 active)
Latest user: mathew

GPS/sbtd questions

I was reluctant to switch to GPS as it isn't sa1 compatible, but decided I probley won't need sa1 for what iam doing now anyways . So I tried it, and I must say I do like it and isn't quite as tedious.
However I went to insert some of my fab smb2 blocks but they were rejected as they have no db42 header. Ah one care for explaining how to put one in, or is it a little more complicated then it seems?
If the db header is to much for someone like me, could In theory insert all my gps blocks, then after use btsd for the smb2 blocks, and as long as I don't use GPS again they can co exist?
first of all, SA1 is a question of how the block is coded, not the inserting tool. For all I know, GPS should have no problem with that.

The db $42 header means that the block uses additional offsets or triggers if you like to call them that.
In BTSD this was an optional addition while in GPS it's mandatory.

With triggers I mean the condition as to when the code starts running. Like for example touching the block from above. The additional triggers just allow more bugfree coding.

Normal triggers look like this:

Code
JMP MarioBelow : JMP MarioAbove : JMP MarioSide
JMP SpriteV : JMP SpriteH
JMP MarioCape : JMP MarioFireBall

MarioBelow:
MarioAbove:
MarioSide:
SpriteV:
SpriteH:
MarioCape:
MarioFireBall:

RTL


And the additional ones like this:

Code
db $42

JMP MarioBelow : JMP MarioAbove : JMP MarioSide
JMP SpriteV : JMP SpriteH
JMP MarioCape : JMP MarioFireBall
JMP MarioCorner : JMP MarioBodyInside : JMP MarioHeadInside

MarioBelow:
MarioAbove:
MarioSide:

SpriteV:
SpriteH:

MarioCape:
MarioFireBall:

MarioCorner:
MarioBodyInside:
MarioHeadInside:
RTL


So, if you want to add these offsets, just add "db $42" at the top of the file, and the 3 JMP commands below the existing ones (yours may look different). After that, you still need to add the labels for the code to jump to. Either place them next to another entry point of another trigger you know works or just add them before an RTL statment. Making them useless but work with GPS.
Anime statistic on MyAnimeList:
400 animes completed ✓
6000 episodes completed ✓
100 Days completed ✓
... what even am I doing with my life?
Thanks for taking the time to explain, I read somewhere GPS was not compatible with sa1, and glad to hear its not. The explanation was very helpful though my asm knowledge is very little, but for now ill probley point the jmps to before a rtl.
Thanks for clearing this up.