Posted: Mon Sep 06, 2010 2:33 am Post subject:
How to Add a Map to Your Mod
How to Add a Map to Your Mod
Requirements: A completed map, notepad, campaign.ini, mapcache.ini, your mod.
Step 1: Your Map.
This tutorial assumes you have a completed map, be it a skirmish or mission map, and you wish to add it to you mod so it becomes one of the “official” maps, or accesable in the campaign mission. If you made your map in World Builder, then you are going to find it with the rest of your custom maps in My Documents-Generals Zero Hour-Maps. For good measure, start the game up and see how your map is. Good, now we can move on.
Step 2: Setting Up.
Your mod will have a directory just for maps, that goes along with the Art and Data folders. In this Maps folder, you will need Mapcache.ini which you can extract from MapsZH.big. If you wish to add a campaign map, you will also need Campaign.ini, which is found in INIZH.big, and in your mod’s directory belongs in Data/INI. Once you have all this set up, you can move on to the next step
Step 3: Adding the Map.
You’ll need to drag and drop your map’s folder into your mod’s Maps directory (If you copy and paste, remember to delete the original in the My Documents-Generals Zero Hour-Maps folder. Next, you will need to open up the Mapcache.ini in the My Documents-Generals Zero Hour-Maps folder and find the entry for your map. Copy the entry, add it to the Mapcache.ini in your mod’s Maps folder, and then delete the original entry. Now you’ll need to edit your map’s entry in your mod’s mapcache.ini.
First thing you want to do is delete the first line from the space after MapCache all the way to the 5C before the word “map”. Everything after that is pretty self explanatory. Change IsOffical from no to yes, and if make a string name for you map if you please and reference it at the appropiate line. The coordinates you see, they are for the minimap (player position selection points, where to draw the stars and dollar signs, etc). Once you have made your edits, save.
Open up campaign.ini you will find a complete list of the campaigns and the missions they include, ranging from the tutorials, the game’s faction based campaigns, and the General’s challenge campaigns (one for each general). What you can do is tack your mission onto the end of one of the campaigns or replace a mission altogether. Creating a new campaign is something you are unable to do at this point. So, pick a campaign and look at the mission list. The codes look as follows:
Code:
Mission Mission04
Map Maps\MD_CHI04\MD_CHI04.map
IntroMovie MD_China04
NextMission Mission05
END
All you have to do is replace the map line to include your map folder and the map it’s name, exactly as they did it above. You can comment out the intro movie ( put ; in front of the line) if you want the map load a lot faster (perfect for testing purposes!). If you add your mission to the end of a campaign, remember to edit the entry of the mission before it to have it go on to your mission.
All you have to do now is compile your mod, and your map is now in your mod!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum