News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

Items in scenery query

Started by Mettyk25jigsaw, September 19, 2015, 08:17:15 AM

Previous topic - Next topic

Mettyk25jigsaw

Anyone know of a way you can make a specific item inside scenery when shot, to make the 'tile' (not the item) not respawn whilst keeping the items you want the tiles to respawn, respawn? And if not, on 2nd preference, is there a way to make all items in Scenery not respawn the tiles? I'm hoping something can be done in bank $84 where the item id pointers point to in order to fill 1st preference...Thanks for any help in advance...

Scyzer

So basically you want a SCE hidden item to not disappear back into the scenery after it's revealed, and just remain out in the open like a Chozo Orb item? If so, then do this:

First get the PLM ID and find it's instruction pointer. PLM IDs point to a 4 byte header for most PLMs. The first 2 bytes form a pointer to ASM which runs when the PLM loads. The second 2 bytes form a pointer to the instructions for that PLM.
For eg, the Missile PLM ID is $EF83. If we look at this location in bank $84, we find [$EE7C][$E949]

Following the instruction pointer in bank $84, we come to $84E949. From here, we need to search for the instruction [$873F] after this location. It should show up very shortly, and it does at $84E964. All you need to do is change the $3F of this instruction to $24, so it reads [$8724] instead.

Do that for each SCE item and you're done.

Mettyk25jigsaw

Thanks Scyzer, you've made my day...