Page 1 of 1
Custom civs
Posted: 29 Jun 2022, 06:57
by Gonzalo
I wonder whether it's possible to make that custom civilizations can be made available for the ai on skirmish, and on the map editor. I have tried by adding code between triple quotation marks, which is on skirmish code in UI/fe_widgets.csv, into multiplayer code (same file), in the line of code which manages civilization, and in UI/sceneditor_widget.csv, but it doesn't work. It would be so amazing...
Re: Custom civs
Posted: 29 Jun 2022, 11:30
by Dr.MonaLisa
I thought you said you're modding on the normal version of UP1.5? If so, the file you mentioned is incorrect, because a different one is used by UP1.5.
Re: Custom civs
Posted: 29 Jun 2022, 12:58
by Gonzalo
Sorry, thank you for the tiding. If you'd please to write here to me which file is...otherwise I shall ascertain by myself, you know. Thanks!
Added after 1 hour 59 minutes 47 seconds:Thanks, but I think it's impossible, I have checked dbwidget_fe8.csv
Re: Custom civs
Posted: 29 Jun 2022, 16:58
by Dr.MonaLisa
The only hope would be to also add the custom civs possibility in EE2X_hdrs.zip.
Somewhere in "DbPlayerDefs.h":
Code: Select all
//@EE2X part of the West region. cannot be stuck with the rest of the west region because EE2 would not be correct anymore
kPlayerCivilization_French, //16
kPlayerCivilization_Russian, //17
kNumPlayerCivilization,
kPlayerCivilization_Random = -1, // random; list before unused for settings.cfg readability
kPlayerCivilization_Unused = -1,
// @EE2X custom civs are marked thusly
kPlayerCivilization_Custom = -2,
So moving without "-2" under "kPlayerCivilization_Russian" could maybe add it there. Or even changing the order from Random/Unused to be -2 and Custom to be -1.
It's unlikely that it will work anyway, as these are most likely only identifiers and the game displays custom civs using some other hardcoded function once the "-2" ID is found for the random civ. It seems like they added random civs as a "hack" method too.
Re: Custom civs
Posted: 29 Jun 2022, 17:04
by Gonzalo
Sad to read, but thank you, I'll try to tweak a little.
Added after 59 minutes 12 seconds:No, it crashes the game