Get mapconv x/n parameters from compiled map?

Get mapconv x/n parameters from compiled map?

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
p4wl
Posts: 6
Joined: 20 Oct 2013, 23:50

Get mapconv x/n parameters from compiled map?

Post by p4wl »

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?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Get mapconv x/n parameters from compiled map?

Post by Beherith »

sometimes tha smd file contains overrides, you can get it ingame visually or from lua.
User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: Get mapconv x/n parameters from compiled map?

Post by Funkencool »

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.
User avatar
enetheru
Posts: 627
Joined: 11 Jun 2010, 07:32

Re: Get mapconv x/n parameters from compiled map?

Post by enetheru »

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.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Get mapconv x/n parameters from compiled map?

Post by Beherith »

Damn I like those nice dox :)
p4wl
Posts: 6
Joined: 20 Oct 2013, 23:50

Re: Get mapconv x/n parameters from compiled map?

Post by p4wl »

Perfect! Thank you very much, this is exactly what I was looking for.

(And yes, wonderful docs!)
Post Reply

Return to “Map Creation”