[MOD] Humble modding attempt

cobbaut

Warlord
Joined
Mar 21, 2016
Messages
206
Location
Antwerp
I wanted an easier way to make my custom changes to C2C, so instead of editing the files after downloading the SVN, I tried to make a modmod (zip attached) that I could just copy in Caveman2Cosmos/Assets/Modules/

It worked on the first try for MIN_CITY_RANGE.

But my attempts to change the default font size keep failing. I get no errors when starting C2C, and the log just says 'SUCCEEDED', but the font sizes don't change. I think it is because they are not in an XML file?

Anyway, I hope I didn't violate anyone's copyright and would really enjoy some hints on how to continue with this.
 

Attachments

  • polmod20211115.zip
    6.4 KB · Views: 29
Font size is defined in Resource\Theme\C2CTheme_Common.thm file
 
Font size is defined in Resource\Theme\C2CTheme_Common.thm file

Yes, that's what I changed, but while my changes in GlobalDefines.xml take precedence over the default values, my C2CTheme_Common.thm file is ignored.
 
Yes, that's what I changed, but while my changes in GlobalDefines.xml take precedence over the default values, my C2CTheme_Common.thm file is ignored.
It won't work if its placed in modules
That is it must replace original file

thm files in mod folder is new thing anyway - when Toffer reworked pedia and UI he added those to mod.
Nothing was done to modularize them, in fact it may be impossible.
 
Top Bottom