sonicretro / SonLVL

SonLVL
http://info.sonicretro.org/SonLVL
55 stars 27 forks source link

Sonic CD PC does not load/display path swapping chunks like loops #166

Open Bobblen147 opened 6 months ago

Bobblen147 commented 6 months ago

Hello

When loading a Sonic CD PC level which contains a chunk that does a path swap (such as a loop), this chunk is not displayed on the map.

The loop chunks are still available for selection from the 'chunks' menu and can be placed in the level, but you do not appear to be able to place with double click to toggle the loop flag like you can in Sonic 1 so they don't path swap properly.

Making changes to other parts of a level already containing a loop and saving does not cause the pre-existing loop to be removed from the game itself, it appears to only be a display issue in SonLVL.

Tested so far on PPZ1B and PPZ2A. I'm certainly not ruling out user error here given that I'm rolling my own INI files and ROMulan extract & inject scripts (heavily based on the pre-existing PPZ1A script) to test all this, but as far as I can tell, I'm not missing anything in that regard.

Thanks!

Bobblen147 commented 6 months ago

From looking at the old commits I see this is a pain point with Sonic CD PC's unusual format rather than an oversight.

https://github.com/sonicretro/SonLVL/commit/6bd7ed4f494accae36f1d1e0abefde198026b385

EDIT - and I see in the ROMulan readme that it isn't able to add new chunk ids to the list but does allow you to place new copies of existing flagged chunks into the level.

MainMemory commented 6 months ago

I think it varies depending on whether the level uses loops or not? I seem to recall there being some level that used more than $80 chunks.