Results 1 to 15 of 15

Thread: [PYTHON] Save Map

  1. #1
    tywiggins
    Warlord
    Join Date
    11 Nov 2005
    Posts
    106
    Country
    This is tywiggins's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    05:21

    [PYTHON] Save Map

    This is a python file. When you run it from the Civ4 python console it will create a new mapscript based on the current map. It saves goody huts, resources, terrain, features(with feature variety), rivers, and the starting plot for each player.

    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.
    Attached Files Attached Files

  2. #2
    SpookS
    Settler
    Join Date
    05 Aug 2006
    Posts
    3
    Country
    This is SpookS's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    15:21
    Does this also work for the warlords maps? If so then you have made my week....this is exactly what I've been after....an earth map for a 'custom game'. Cheers!

  3. #3
    tywiggins
    Warlord
    Join Date
    11 Nov 2005
    Posts
    106
    Country
    This is tywiggins's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    05:21
    Yes. It works with warlords maps.

    For step 1: Put my savemap.py file into your C:\Program Files\Firaxis Games\Warlords\Assets\Python directory

    The attached python script is identical to my original, except that it saves the mapscript to the warlords Public Maps directory.
    Attached Files Attached Files

  4. #4
    Shadowlord
    Prince Shadowlord's Avatar
    Join Date
    04 Apr 2002
    Posts
    327
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    00:21
    Ooo, nice! (Although I haven't tried it yet)
    "For it must be noted, that men must either be caressed or else annihilated; they will revenge themselves for small injuries, but cannot do so for great ones; the injury therefore that we do to a man must be such that we need not fear his vengeance." - Niccolo Machiavelli

  5. #5
    shakrooph
    Settler
    Join Date
    04 Aug 2006
    Location
    Ankara
    Posts
    1
    Country
    This is shakrooph's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    05:21
    thanks for the info but i cannot open the python console by pressing ~ how can i do that?

  6. #6
    MMC
    King MMC's Avatar
    Join Date
    30 Mar 2006
    Location
    of the wet little isle known as Britain
    Posts
    1,205
    Country
    This is MMC's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    05:21
    That would be Step 2.

    EDIT: Oh, and if you don't have a US keyboard, you'll probably want the ` key (next to the 1, and above the TAB key)
    Ceeforee v0.1 - The Unofficial Civ 4 Editor -= Something no Civ Modder should ever be without =- Last Updated: 27/03/2009
    "Just because I'm paranoid doesn't mean there's no conspiracy"

  7. #7
    Skunky
    Settler
    Join Date
    17 Aug 2006
    Posts
    3
    Country
    This is Skunky's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    06:21
    I tried with a real Earth map with Warlord but the saved map resulted in a full grass land!
    Also "\\My Documents\\.." in the save path should be changed for non english S.O.

  8. #8
    tywiggins
    Warlord
    Join Date
    11 Nov 2005
    Posts
    106
    Country
    This is tywiggins's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    05:21
    Originally posted by Skunky
    I tried with a real Earth map with Warlord but the saved map resulted in a full grass land!
    Also "\\My Documents\\.." in the save path should be changed for non english S.O.
    I haven't seen it do that. Did you do anything in WorldBuilder?

    What is S.O. ?

    Here is the mapscript I made using Rhye's 24 civ Earth map for Warlords.
    Attached Files Attached Files

  9. #9
    MMC
    King MMC's Avatar
    Join Date
    30 Mar 2006
    Location
    of the wet little isle known as Britain
    Posts
    1,205
    Country
    This is MMC's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    05:21
    He probably means OS.
    Ceeforee v0.1 - The Unofficial Civ 4 Editor -= Something no Civ Modder should ever be without =- Last Updated: 27/03/2009
    "Just because I'm paranoid doesn't mean there's no conspiracy"

  10. #10
    Skunky
    Settler
    Join Date
    17 Aug 2006
    Posts
    3
    Country
    This is Skunky's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    06:21
    Originally posted by tywiggins


    I haven't seen it do that. Did you do anything in WorldBuilder?

    What is S.O. ?

    Here is the mapscript I made using Rhye's 24 civ Earth map for Warlords.
    Your attachment seems fine to me, I will play with it since that's what I need it, thanks.
    Maybe I did something wrong with the worldbuilder.

    About the path I mean that the folder "My Documents" exists only on english Windows but on different localized language versions that folder got a different name/path:
    On french is "Mes Documents", on italian is "Documenti" ect. ect.

  11. #11
    tywiggins
    Warlord
    Join Date
    11 Nov 2005
    Posts
    106
    Country
    This is tywiggins's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    05:21
    Originally posted by Skunky
    About the path I mean that the folder "My Documents" exists only on english Windows but on different localized language versions that folder got a different name/path:
    On french is "Mes Documents", on italian is "Documenti" ect. ect.
    Is it "My Games" in non-english versions of windows? Or is that in different languages as well?

  12. #12
    MMC
    King MMC's Avatar
    Join Date
    30 Mar 2006
    Location
    of the wet little isle known as Britain
    Posts
    1,205
    Country
    This is MMC's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    05:21

    Re: [PYTHON] Save Map

    Originally posted by tywiggins
    1. Put my savemap.py file into your C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Assets\Python directory.
    This should be:
    'C:\Documents and Settings\<user>\My Documents\My Games\Sid Meier's Civilization 4\CustomAssets\python'
    or
    'C:\Documents and Settings\<user>\My Documents\My Games\Warlords\CustomAssets\python'
    to protect your game files.

    Also, you might want to add instructions for people to change the details according to their system.
    Last edited by MMC; August 18, 2006 at 19:37.
    Ceeforee v0.1 - The Unofficial Civ 4 Editor -= Something no Civ Modder should ever be without =- Last Updated: 27/03/2009
    "Just because I'm paranoid doesn't mean there's no conspiracy"

  13. #13
    Skunky
    Settler
    Join Date
    17 Aug 2006
    Posts
    3
    Country
    This is Skunky's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    06:21
    "My Games" is correct since this folder is made by Civ, or other games as well, and it's not system folder.

  14. #14
    mikkoam
    Settler
    Join Date
    04 May 2005
    Posts
    1
    Country
    This is mikkoam's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    05:21
    This script is really good news. Finally a way to create Civ 3 style pre-made maps with customizable options that Civ 4 has been missing since the release.

    -- Migo
    Last edited by mikkoam; September 8, 2006 at 09:17.

  15. #15
    cgerdi
    Settler
    Join Date
    03 Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 18, 2013
    Local Time
    23:21
    I can't find CheatCode = 0, can u pls help me

Similar Threads

  1. Python: Why or why not?
    By DriXnaK in forum Off Topic
    Replies: 9
    Last Post: April 4, 2011, 21:54
  2. Python API changes from v1.52 to v1.61
    By Locutus in forum Civilization IV Creation
    Replies: 0
    Last Post: April 13, 2006, 16:33
  3. python import of external python question
    By DougM in forum Civilization IV Creation
    Replies: 0
    Last Post: February 8, 2006, 15:34
  4. [Python] : SD-ToolKit
    By Stone-D in forum Civilization IV Creation
    Replies: 14
    Last Post: December 18, 2005, 06:55
  5. Force python GC?
    By daego in forum Civilization IV General
    Replies: 0
    Last Post: October 29, 2005, 03:30

Visitors found this page by searching for:

python save map

savemap.py

civ4 .py

colonization 4 download py maps

civ python map

civ iv earth python

civ iv earth 18 python

civilization 4 chipotle

civilization 4 colonization maps .py

save to map games

civ4 colonization .py

earth.py civ4

how to use savemap.py

maps civilization py

python save figure with local time and date as filename

civilization colonization download

py-datei maps civilization 4

tywiggin schedule

how to make a world bulder save in civ iv

civ4 world builder save map

civ4 earth map script

civ 5 world builder cant open map

.py files maps colonization downloads

civ 4 python maps for mac

civilization 4 colonization map downloads .py

Bookmarks

Posting Permissions