1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

C2C Modding Questions (How to?)

Discussion in 'C2C mod mods' started by Dancing Hoskuld, Jul 21, 2017.

  1. Dancing Hoskuld

    Dancing Hoskuld Chieftain

    Joined:
    Jul 5, 2004
    Messages:
    22,870
    Gender:
    Male
    Location:
    Canberra, Australia
    This thread is for modders who want to know how to mod Caveman2Cosmos it is not about playing the game or how mechanics work in game.

    I will try and keep the first posts up to date, probably in the for of a FAQ for other modders.

    See also:
    1. [TUTORIAL] Modular XML Modding with C2C

    2. C2C - Basic Modding School - XML is easy!
    From the Player perspective there are four types of mods
    1. Mods that can be activated by moving them into or out of the My_Mods folder

      These are "simple" XML and graphical mods that don't rely on being loaded in any particular order.

      This means mods that are XML only or XML and graphics where the graphics are in the folder in sub folders and the XML required for these graphics is also in the module.

    2. Mods that require some simple editing of one or two files but don't overwrite anything.

      These include type 1 mods that do require loading in a particular order (uses MLF) and simple modular Python mods that do not replace files but do add some functionality in Python (uses BUG modular python)

    3. Mods that replace existing files.

      This includes some Scenarios because they need to overwrite the animal spawn file.

    4. Mods that are basically new games based on the C2C game.

      These go in a totally new game folder, ie not Mods/Caveman2Cosmos.


    Things that need to be covered
    • Why and when

    • MLF - and optional modules

    • WoC and modular XML

    • BUG and modular Python

    • Tips for the unwary
     
    Last edited: Jul 22, 2017
  2. Dancing Hoskuld

    Dancing Hoskuld Chieftain

    Joined:
    Jul 5, 2004
    Messages:
    22,870
    Gender:
    Male
    Location:
    Canberra, Australia
    When and Why

    Mod Mods are used extensively in Caveman2Cosmos by both the main moders of C2C and others. They are a way of developing a new component or trying out a change and getting it out to players without changing the core game for people currently playing a game.

    Such bits may be moved in and out quickly and mostly wont break save games.

    If a mod mod gets support it may be moved int the core of C2C either completely or as an optional mod.​

    MLF and optional modules

    WoC and modular XML

    BUG and modular Python

    Tips for the unwary

    • buttons for units and buildings must to be 64x64 pixels or the game will crash to desktop due to the way they are displayed by the exe the city bar

    • BULL, a component C2C uses from BUG can't handle any white space in the path or file name of art assets. Therefor we do not use spaces in any path or file names either removing the space replacing it with an underscore
     
    Last edited: Jul 21, 2017
  3. Dancing Hoskuld

    Dancing Hoskuld Chieftain

    Joined:
    Jul 5, 2004
    Messages:
    22,870
    Gender:
    Male
    Location:
    Canberra, Australia
    reserved for later expansion
     
  4. Dancing Hoskuld

    Dancing Hoskuld Chieftain

    Joined:
    Jul 5, 2004
    Messages:
    22,870
    Gender:
    Male
    Location:
    Canberra, Australia
    reserved for later expansion
     

Share This Page