C2C Modding Questions (How to?)

Joined
Jul 5, 2004
Messages
23,562
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:
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:
Top Bottom