Converting Maps
From Sandbox Mod Wiki
Converting a map to sandbox is simple.
Just have to make sure your map works in Battlefield 2 and copy it to the sandbox level folder.
init.con
In your map folder open server.zip, then unzip init.con or open it with winrar in a text editor.
Just above the LevelSettings you see endIf and probably run TriggerableTemplates.con above that.
Below run TriggerableTemplates.con paste
run ../../common/levels/sbx_staticObjects.con
run ../../common/levels/sbx_gamePlayObjects.con
run ../../common/levels/sbx_kits.con
So you get
run TriggerableTemplates.con
run ../../common/levels/sbx_staticObjects.con
run ../../common/levels/sbx_gamePlayObjects.con
run ../../common/levels/sbx_kits.con
endIf
Below LevelSettings you find lines as gameLogic.setTeamName, gameLogic,setTeamLanguage, gameLogic.setTeamFlag and gameLogic.setKit.
Now you want to delete all the gameLogic.setKit's.
Your level will load the sandbox kits from the run ../../common/levels/sbx_kits.con that was added before.
You're done now with the init.con, save and zip it.
mapname.desc
Go into the info folder.
Here you find a .desc file with your map name, open it with a text editor.
First we edit the briefing
Unlike battlefield 2, Sandbox won't show a briefing.
The briefing is used to show your maps name on the top left of the loading screen.
You see <briefing locid="LOADINGSCREEN_MAPDESCRIPTION_yourmap">
Change LOADINGSCREEN_MAPDESCRIPTION_yourmap to YOURMAP, make sure its in capitals.
Now for the load music you can take one of the 4 sandbox loading songs.
Change <music></music> to <music> common/music/load1.ogg </music>.
You can change load1 to load2,3 and 4 if you like.
Now for the modes, you want to remove everything in there except <mode type="gpm_cq">.
Then replace the maptypes with only 1 sandbox maptype.
Example:
<map>
<name> My map </name>
<briefing locid="MY MAP">map description for modders maps not localized (english only)</briefing>
<music> common/music/load1.ogg </music>
<modes>
<mode type="gpm_cq">
<maptype players="64" type="headon" locid="GUIDE_LOADSCREEN">Unlocalized test for this mode on this map</maptype>
</mode>
</modes>
</map>
Images
Also in the info folder are the load and preview images.
It's a good idea setting your battlefield 2 settings to high and run the game on a resolution of 1280 x 1024 (17 inch)
After taking a screenshot of your map open the image in photoshop.
Go to Save as and save the image as a jpeg under the name preview, then save it as PNG under the name loadmap.
Now go to Image >> Adjustments and click Desaturate.
Then go to Filter >> Blur >> Gaussian Blur and set it to 1,5.
Now go to Save as and save the image as a PNG under the name loadmap_g.
Move your images to the info folder and you're done.

