Musciculus
Jun 27, 2007, 07:03 AM
How do I convert my WBS map to a .py file so it can be used in the default map list in Warlords .
|
View Full Version : Convert WBS to .PY file ? Musciculus Jun 27, 2007, 07:03 AM How do I convert my WBS map to a .py file so it can be used in the default map list in Warlords . illram Jul 15, 2007, 01:26 PM I forget where I got this, think it was on an earth18 civ thread... anyways it worked for me: (use the savemap.py I attached) Instructions: 1. Put my savemap.py file into your C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Assets\Python directory. 2. In the CivilizationIV.ini file, enable cheating by changing CheatCode = 0 to CheatCode = chipotle 3. Run CIV4. Load a scenario or load a game with the map you want to save. 4. If you want, use WorldBuilder to make any changes to the map. 5. Open up the python console by pressing Shift ~ 6. Type "import savemap" 7. Here you have several options depending on what you want the filename to be. 7a)If you want the filename to be civ4map.py, type "savemap.savemap()" 7b)If you want the filename to be civ4mapx.py, where x is a number, type "savemap.savemap(x)" Example: savemap.savemap(8) will make a file named civ4map8.py 7c)If you want to set the filename yourself(.py will be added on at the end), type "savemap.savemap("filename")" Example: savemap.savemap("Earth") will make a file named Earth.py 8) Quit Civ4 9) Run Civ4 10) You can now select the map when you start a new game. Wish I could remember who wrote that so I could properly credit them... illram Jul 15, 2007, 01:28 PM Ooops here's the attachment Jeckel Jul 15, 2007, 08:35 PM Nice, thanx for that illram, I've been looking for just that kind of thing. Is it specific to one version or will it work for vanilla and warlords? illram Jul 16, 2007, 05:20 PM Not sure if it works in vanilla, I used it for warlords. I don't know if they use compatible .py scripts or not. 0d1n3oo3Broad Jul 21, 2007, 03:07 PM Sadly this tool doesn't work for me. I play with warlords and everytime i get this message after i typed save.savemap(x): 0d1n3oo3Broad Jul 30, 2007, 11:01 AM :bump: No one here with an answer? :( MontyLaremane Jul 31, 2007, 05:26 AM It looks to me like an issue with non-English versions. There's mention of it in the original Save Map thread over on Apolyton (http://apolyton.net/forums/showthread.php?postid=4554508). It should be a case of opening up the .py file in your favourite plain text editor (notepad is just fine), then editing the line containing the "My Documents" path into the equivalent on your system ("Meine Dokumente" perhaps?). Remember to keep the double-backslashes in there. It's a little ugly, but it should work! 0d1n3oo3Broad Jul 31, 2007, 10:23 AM Ahh. Of course. Thanks. Now it works perfect :goodjob: |
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.