Discworld

Discussion in 'Civ4 - Map Scripts' started by Terkhen, Oct 2, 2016.

  1. Terkhen

    Terkhen King

    Joined:
    Aug 1, 2011
    Messages:
    916
    Gender:
    Male
    Location:
    Granada
    Discworld is a MapScript based on the Discworld novels by Terry Pratchett. It will generate a flat world shaped like a disc, with warm regions near the border and cold regions in the center.

    The regions of the resulting map are similar to those of the Discworld, but they are so changed that it will not be easy to guess your position in it from the beginning. Their shapes and relative angles and positions to one another are randomized, and the entire disc is rotated with regard to its center in a random angle. Civilizations can only start in the main regions of the Discworld, ensuring that there is plenty of space available to explore and expand.

    Discworld is compatible with Civilization IV: Beyond the Sword, and nearly all mods, except Final Frontier and other similar mods.

    Small size:

    00 - small.png

    Huge size:

    01 - huge.png

    02 - huge.png

    03 - huge.png


    Downloads: The latest version of Discworld can be found in its resource page: http://forums.civfanatics.com/resources/discworld.25372/

    Each version of Discworld can be found in this thread, in the links below.

    0.1.0: http://forums.civfanatics.com/threads/discworld.576214/#post-14461283

    Installation: Put the file contained in the zip file in the PrivateMaps folder of the mod you are playing. You can also put it in the
    C:\Users\[USERNAME]\Documents\My Games\Beyond the Sword\PublicMaps folder.

    Project page: https://github.com/terkhen/discworld-mapscript-civilization4/

    In the project page you can find the Mercurial version control repository in which the Discworld MapScript is hosted.
     
    Last edited: Feb 26, 2017
  2. Terkhen

    Terkhen King

    Joined:
    Aug 1, 2011
    Messages:
    916
    Gender:
    Male
    Location:
    Granada
    Discworld 0.1.0

    This is the initial release of Discworld. Let me know what you think of it! :)
     

    Attached Files:

  3. Zeta Nexus

    Zeta Nexus <{[(Nexus)]}>

    Joined:
    Jan 23, 2014
    Messages:
    4,641
    Gender:
    Male
    Location:
    In a constant brainstorm...
    Too bad no one answered in the past 5 years although it is a really awesome map script. I added it to my mod and really like it. :goodjob:

    One request though: Would it be possible to have a terrain type as the edge of the Discworld instead of feature type, please?
     
  4. Terkhen

    Terkhen King

    Joined:
    Aug 1, 2011
    Messages:
    916
    Gender:
    Male
    Location:
    Granada
    Thank you for your interest in the map script! I am very happy that you decided to include it in your mod :)

    Implementing that request in a way that works for every possible mod is quite tricky, as the code cannot rely on specific terrain types being present in every mod. So unfortunately I cannot implement it in the generic version found here.

    If you do not mind making some modifications and are comfortable with Python coding, tweaking the script to implement what you want for a specific mod would be easy. If you are interested let me know and I can point you to the places that would need to be changed.
     
  5. Zeta Nexus

    Zeta Nexus <{[(Nexus)]}>

    Joined:
    Jan 23, 2014
    Messages:
    4,641
    Gender:
    Male
    Location:
    In a constant brainstorm...
    Oh, I'm okay with any type of terrain. I can replace it with a different terrain type. I can tweak python but it took my blood to figure out how to change the radius of the disc :lol:
    My goal is to make that area space. Than solar systems can added from FF as terrain features to be colonized in the late game :scan:
     
  6. Terkhen

    Terkhen King

    Joined:
    Aug 1, 2011
    Messages:
    916
    Gender:
    Male
    Location:
    Granada
    The border is generated in two passes. The first one is in generatePlotTypes() line 154 and it is setting the plot type to ocean. The second pass is in addFeatures() line 189 and it is setting the feature type to ice.

    You will likely need to modify the first pass to set the plot type to the one you need, move the second pass into generateTerrainTypes(), modify it to use setTerrainType with your chosen terrain type instead of setFeatureType with ice. I do not know how plot types and terrain types work in FF so you may need to make some changes to this.
     
  7. Zeta Nexus

    Zeta Nexus <{[(Nexus)]}>

    Joined:
    Jan 23, 2014
    Messages:
    4,641
    Gender:
    Male
    Location:
    In a constant brainstorm...
    I failed miserably :crazyeye:
    upload_2021-9-22_13-40-0.png
     
  8. Terkhen

    Terkhen King

    Joined:
    Aug 1, 2011
    Messages:
    916
    Gender:
    Male
    Location:
    Granada
    That happens when there is some Python error in the MapScript. Set HidePythonExceptions to 0 in your CivilizationIV.ini file and try again. You should get a message mentioning which line of the Python script is failing and why.
     

Share This Page