News:

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

Main Menu

Map changes

Started by Mentlegen, July 27, 2017, 11:21:25 PM

Previous topic - Next topic

Mentlegen

is there a more effecient map editor patch around? I can't seem to get Kej's automap to work in SMILEJX

Mar99troid

There's a Map Save Load Patch by Scyzer which should do the same thing as KejMap (I hope that's the patch you meant). Maybe this works for you.  :wink:
http://old.metroidconstruction.com/ASM/SadiztykSaveLoad.zip

Also there's KejMap 2.0 if you haven't tried that one already:
http://old.metroidconstruction.com/ASM/KejardonKejMap2.zip

Mentlegen

Quote from: Mar99troid on August 07, 2017, 10:46:56 AM
There's a Map Save Load Patch by Scyzer which should do the same thing as KejMap (I hope that's the patch you meant). Maybe this works for you.  :wink:
http://old.metroidconstruction.com/ASM/SadiztykSaveLoad.zip

Also there's KejMap 2.0 if you haven't tried that one already:
http://old.metroidconstruction.com/ASM/KejardonKejMap2.zip

Thanks for these. What exactly do these do?

Mar99troid

copying and pasting parts of the .txt files (old mc):

[spoiler]Save / Load
It completely rewrites the saving and loading routines. Maps are fully saved (meaning Kejmap is useless), $100 bytes extra are saved per file, and another $100 bytes globally. Uses a bunch of free space in $81, but meh. Who uses that bank anyway?[/spoiler]

[spoiler]KejMap 2.0
Smart KejMap. This is a one-time patch-and-forget to handle all auto-map tile saving and loading. This version is slower than the older version of KejMap though - if that works fine for you I recommend sticking to the older one.
Compatibility: Harmless to savestates, sram maps will be garbled (Overwrites map Save/Loading)[/spoiler]

I haven't used these patches yet either, so I can't tell you more. Hope I could help anyway.

Scyzer

To understand what these patches do, you'd have to know how the game originally handles saving the maps.

Normally, Super Metroid tries to save space by only saving the map tiles that are actually used in the original game (IE, the *shape* of the original maps). Any extra tiles placed into the map are NOT saved when saving and reloading, so these tiles will always show up as unexplored when loading.
For example, if you place a room to the right of the bomb torizo room, and place an extra map tile there, that tile will not be saved as explored when loading a game because it is not part of the original shape of the map. If you shifted the entire map 1 tile to the left, then it would be saved because it is now within the original shape (although a ton of other tiles now are not).

KejMap attempts to fix this by rewriting the shape that is saved to match what is currently being used by the map. This means that the extra tile should be saved correctly. I'm not 100% sure on the mechanics or code behind it or how accurate it is. I believe that making the maps too large will still cause errors though.

My Save/Load patch simply fixes this by saving ALL map tiles, regardless of whether they are being used or not. You can use up as much map space as you want.

personitis

Quote from: Scyzer on August 09, 2017, 09:52:12 PMI believe that making the maps too large will still cause errors though.
On this I'll note that of the 64x32 available tiles for the minimap, if you don't want the map to wrap-around at any point (left side of the map showing up on the right side or top wraps to bottom), your actual dimensions are 59x30.

Mettyk25jigsaw

#6
@personitis

Originally I knew that you had to leave space on the left and right side and also the top/bottom side of map, I thought you had to leave 2 tiles both east and west of map and 1 on both north and south. Sounds like I have north and south right, but if I had east and west right that would make it 60x30, obviously either east or west have 3 on one side and 2 on the other that you need to leave spare/empty, which way round is this?

@JAM

Jam you might want to have a look at this post too (above and below this line)

EDIT: I thought I should add that maybe because I have Supermap by Jam on which is based on Scyzer's map load patch that it might increase it to 60x30, cause I remember testing this and since I have the supermap patch, thought this might make the difference...

personitis

There's no specification to which side gets the three spaces and which side gets the two as far as I'm aware.

benox50

That space on the left can scroll up to 5 squares max if you place tiles too far, it does that on the maridia map which  is the only one that did it on both my hack and vanilla.

Right seems to always be 2, top is 1 and bottom is 1.

That 5 on left is quite annoying and yes I checked that they were all hidden empty tiles.
So its a warning for yall