Mappack stuff, instructions how to:

Mappack stuff, instructions how to:

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

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Mappack stuff, instructions how to:

Post by Forboding Angel »

For those of you with mappacks, here are instructions on how to seperate the maps out without recompiling.

Edit: Read Tobi's explainations. THey are a bit easier to follow.
Last edited by Forboding Angel on 08 Oct 2006, 19:39, edited 1 time in total.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Some tips I found when browsing the source & testing for any obvious errors regarding maps & dependencies.

Don't read if you aren't interested in making your map archive depend on another archive with e.g. the .smt in it.
  • modinfo.tdf, used to specify dependencies, must be in the same archive as the .smf (quite obvious tbh).
  • Name, Description and URL tags are unused for maps as far as I can see.
  • Name tag must be specified though and must not be empty (otherwise dependencies won't be handled).
  • Set ModType=0; otherwise your map probably shows up in the mod choosing list (regardless the archive being placed in maps/). You may leave out ModType entirely as the default is 0.
  • Use the "standard way" to specify dependencies, as described on the wiki.
Good luck and sorry for the inconvenience.
User avatar
IceXuick
Posts: 519
Joined: 14 Mar 2006, 01:46

Post by IceXuick »

Well, i must say, after hearing the mappack-fix mp3, and after reading the above post, i still haven't got a clue how to fix the maps. The mp3 sounds quite easy, but is very vague about map-names and which files should be in which maps.

Can some post a little bit more detailed tutorial about this?

thanks in advance!
User avatar
Quanto042
Basically OTA Developer
Posts: 778
Joined: 22 Feb 2006, 03:01

Post by Quanto042 »

holy crap, Ice returns!
User avatar
IceXuick
Posts: 519
Joined: 14 Mar 2006, 01:46

Post by IceXuick »

lol :-)

i was here all the time.. only on the background. Still busy times.. I have like 5 projects now that need to be finished... all that will take from 1 week to 5 months time (however, in a month or 2 i probably have some spare time again...)

But due to the fact that moonQ20 and DeltasiegeDuo and -Rev, aren't working now, and i've received a couple of PM's of people asking me to fix these packages for the new 73 release, i would like to fix these asap, but i still don't know how!

plz some-one help me out :!:
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Walkthrough with dependencies, if you want to keep the low-bandwidth/disk usage advantage of a map pack (sorry if I'm repeating the mp3, didn't (yet) listen to it):
  • un(7)zip the archive
  • Look which files are shared across all maps in the pack and which are unique to every map.
  • Create temporary directories, one more then the number of maps in the pack. Create a 'maps' directory in each temporary directory. The first temp. dir will be the one for the shared files, the others for the maps (one for each).
  • Move the files shared across maps into tempdir1/maps.
  • (7)zip the contents of tempdir1 (ie just the maps folder) into MyMapBase.sd7, or whatever you want to call it.
  • In all but the first temporary directory create a modinfo.tdf as described in my previous post here. You end up with a maps folder and a modinfo.tdf file in those temp.dirs. Specify 1 dependency in modinfo.tdf:

    Code: Select all

    NumDependencies=1;
    Depend0=MyMapBase.sd7
    
    (use whatever you used in previous step).
  • Move the files unique to each map into the maps folder of their respective temporary directory. This should be at least the .smf and probably the .smd too.
  • (7)zip the contents of each tempdir into an archive with a name for the single map in it.
  • Test!
If you don't care about bandwidth/disk usage but do care about the extra archive and the work needed to create it, you could decide to just duplicate the shared files into each map's archive. In that case you can also skip the modinfo.tdf stuff.

Also I don't care to split one map myself as an example but I'll assume for now that my explanation isn't too bad :wink: (also I want to know which map in that case to prevent duplicate work or worse, duplicate uploads to unknown-files).

Btw, I'll let this to mappers to decide: do you actually want this dependency stuff or do you rather just use a bit more bandwidth & disk space?
User avatar
IceXuick
Posts: 519
Joined: 14 Mar 2006, 01:46

Post by IceXuick »

Thanks for the explaination! it was quite better than the mp3. And yes, i could offcourse also release maps in the package seperatly, causing more disk space... Indeed a good question. Still too the support for mappackages is gone..
Post Reply

Return to “Map Creation”