In creating a script for testing a species idea, here's what I found to be missing from the wiki tutorial and from eleazar's old post. (https://www.freeorion.org/forum/viewtop ... 808#p48808 and https://www.freeorion.org/index.php/FOC ... g_Tutorial )
After adding a description for the colony building BLD_COL_NEW_MAN, you must define the colony building itself. Definitions are added in:
/default/scripting/buildings/colonies/col_bld_gen.py
You must define your new species the area with lines like this:
("SP_MUURSH", "icons/species/muursh.png"),
Doing so will allow the colony building for the new species to be generated and all other species' colony buildings to be updated so that they do not clash. Add the following. We assume that you are reusing the human icon.
("SP_NEW_MAN", "icons/species/human.png"),
Now execute the script:
python col_bld_gen.py
To make it buildable, add it to game start to be unlocked for all players. (This does not make it available until a player has obtained a suitable planet of the species.) Without this the colony is never buildable with error "(Failed) building unlocked for empire". In:
/default/scripting/starting_unlocks/items.inf
Add among the similar lines for other species:
Item type = Building name = "BLD_COL_NEW_MAN"
After adding a description for the colony building BLD_COL_NEW_MAN, you must define the colony building itself. Definitions are added in:
/default/scripting/buildings/colonies/col_bld_gen.py
You must define your new species the area with lines like this:
("SP_MUURSH", "icons/species/muursh.png"),
Doing so will allow the colony building for the new species to be generated and all other species' colony buildings to be updated so that they do not clash. Add the following. We assume that you are reusing the human icon.
("SP_NEW_MAN", "icons/species/human.png"),
Now execute the script:
python col_bld_gen.py
To make it buildable, add it to game start to be unlocked for all players. (This does not make it available until a player has obtained a suitable planet of the species.) Without this the colony is never buildable with error "(Failed) building unlocked for empire". In:
/default/scripting/starting_unlocks/items.inf
Add among the similar lines for other species:
Item type = Building name = "BLD_COL_NEW_MAN"
Statistics: Posted by MasterOfRigel — Sun Nov 03, 2024 2:33 pm