Hello everyone - maybe this is a dev topic but as mapconv fixing is discussed here, too:
Is it possible to get the -x and -n params used during compile of a map with mapconv from a map file (smf inside an sd7)? Are they somehow extractable?
Get mapconv x/n parameters from compiled map?
Moderator: Moderators
Re: Get mapconv x/n parameters from compiled map?
sometimes tha smd file contains overrides, you can get it ingame visually or from lua.
- Funkencool
- Posts: 542
- Joined: 02 Dec 2011, 22:31
Re: Get mapconv x/n parameters from compiled map?
I would agree, almost any newer map will use the .smd or mapinfo.lua. mapinfo.lua will be in the root of the archive (sd7 or sdz) and the .smd will be next to the .smf in the /maps folder inside the archive.
On the other hand if for some reason you need the smf values; I know l3dt can decompile maps completely and tell you what you want.
On the other hand if for some reason you need the smf values; I know l3dt can decompile maps completely and tell you what you want.
Re: Get mapconv x/n parameters from compiled map?
If you wanted to write a simple smf reader I re-wrote the file structure page to make more sense.
http://springrts.com/wiki/Mapdev:SMF_format
They are stored at 48 and 52 byte offsets from the start of the file as floats.
http://springrts.com/wiki/Mapdev:SMF_format
They are stored at 48 and 52 byte offsets from the start of the file as floats.
Re: Get mapconv x/n parameters from compiled map?
Damn I like those nice dox :)
Re: Get mapconv x/n parameters from compiled map?
Perfect! Thank you very much, this is exactly what I was looking for.
(And yes, wonderful docs!)
(And yes, wonderful docs!)