Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Need help with adding a new civilization  (Read 583 times)

earthexe

  • Escaped Lunatic
    • View Profile
Need help with adding a new civilization
« on: March 22, 2010, 10:39:56 pm »

So, I've been trying to add a new sapient creature into my game, but whenever I try to generate a new map, it crashes once it reaches the history part.



This presumably means that when my new civilization comes into existence, something goes wrong. I tried generating again with just the creature file, and that works fine.

All I know right now is that it doesn't like the new entity file that I added. I am entirely new to modding, so I don't know what to look for when I'm proofreading. Do tokens have to be in a certain order or something?

Have a look.
Code: [Select]
entity_newbies

[OBJECT:ENTITY]

[ENTITY:SIMOIA]
[CIV_CONTROLLABLE]
[CREATURE:SIMOIA_GUARD]
[TRANSLATION:HUMAN]
[ADVENTURE_TIER:4]
[INDIV_CONTROLLABLE]
[START_BIOME:MOUNTAIN]
[BIOME_SUPPORT:MOUNTAIN:3]
[BIOME_SUPPORT:ANY_WETLAND:2]
[BIOME_SUPPORT:ANY_DESERT:1]
[BIOME_SUPPORT:ANY_FOREST:2]
[BIOME_SUPPORT:ANY_LAKE:3]
[BIOME_SUPPORT:ANY_GRASSLAND:1]
[BIOME_SUPPORT:ANY_SAVANNA:1]
[BIOME_SUPPORT:ANY_SHRUBLAND:1]
[BIOME_SUPPORT:ANY_RIVER:3]
[BIOME_SUPPORT:ANY_OCEAN:3]
[DEFAULT_SITE_TYPE:CAVE_DETAILED]
[LIKES_SITE:CITY]
[TOLERATES_SITE:CAVE_DETAILED]
[TOLERATES_SITE:CITY]
[TOLERATES_SITE:CAVE]
[TOLERATES_SITE:TREE_CITY]
[WORLD_CONSTRUCTION:BRIDGE]
[START_GROUP_NUMBER:9]
[MAX_POP_NUMBER:10000]
[MAX_SITE_POP_NUMBER:200]
[MAX_STARTING_CIV_NUMBER:100]
[PERMITTED_JOB:MINER]
[PERMITTED_JOB:WOODWORKER]
[PERMITTED_JOB:CARPENTER]
[PERMITTED_JOB:BOWYER]
[PERMITTED_JOB:WOODCUTTER]
[PERMITTED_JOB:STONEWORKER]
[PERMITTED_JOB:ENGRAVER]
[PERMITTED_JOB:MASON]
[PERMITTED_JOB:RANGER]
[PERMITTED_JOB:ANIMAL_CARETAKER]
[PERMITTED_JOB:ANIMAL_TRAINER]
[PERMITTED_JOB:TRAPPER]
[PERMITTED_JOB:METALSMITH]
[PERMITTED_JOB:FURNACE_OPERATOR]
[PERMITTED_JOB:WEAPONSMITH]
[PERMITTED_JOB:ARMORER]
[PERMITTED_JOB:BLACKSMITH]
[PERMITTED_JOB:METALCRAFTER]
[PERMITTED_JOB:JEWELER]
[PERMITTED_JOB:GEM_CUTTER]
[PERMITTED_JOB:GEM_SETTER]
[PERMITTED_JOB:CRAFTSMAN]
[PERMITTED_JOB:WOODCRAFTER]
[PERMITTED_JOB:STONECRAFTER]
[PERMITTED_JOB:WEAVER]
[PERMITTED_JOB:GLASSMAKER]
[PERMITTED_JOB:CLOTHIER]
[PERMITTED_JOB:FISHERY_WORKER]
[PERMITTED_JOB:FISHERMAN]
[PERMITTED_JOB:FISH_DISSECTOR]
[PERMITTED_JOB:FISH_CLEANER]
[PERMITTED_JOB:ANIMAL_DISSECTOR]
[PERMITTED_JOB:FARMER]
[PERMITTED_JOB:COOK]
[PERMITTED_JOB:THRESHER]
[PERMITTED_JOB:MILLER]
[PERMITTED_JOB:BUTCHER]
[PERMITTED_JOB:DYER]
[PERMITTED_JOB:PLANTER]
[PERMITTED_JOB:HERBALIST]
[PERMITTED_JOB:SOAP_MAKER]
[PERMITTED_JOB:POTASH_MAKER]
[PERMITTED_JOB:LYE_MAKER]
[PERMITTED_JOB:WOOD_BURNER]
[PERMITTED_JOB:ENGINEER]
[PERMITTED_JOB:MECHANIC]
[PERMITTED_JOB:SIEGE_ENGINEER]
[PERMITTED_JOB:SIEGE_OPERATOR]
[PERMITTED_JOB:PUMP_OPERATOR]
[PERMITTED_JOB:CLERK]
[PERMITTED_JOB:ARCHITECT]
[PERMITTED_JOB:ADMINISTRATOR]
[PERMITTED_JOB:TRADER]
[PERMITTED_JOB:PHILOSOPHER]
[PERMITTED_JOB:ALCHEMIST]
[PERMITTED_JOB:DUNGEONMASTER]
[PERMITTED_JOB:MERCHANT]
[PERMITTED_JOB:DIPLOMAT]
[PERMITTED_JOB:GUILDREP]
[PERMITTED_JOB:HAMMERMAN]
[PERMITTED_JOB:MASTER_HAMMERMAN]
[PERMITTED_JOB:SPEARMAN]
[PERMITTED_JOB:MASTER_SPEARMAN]
[PERMITTED_JOB:SWORDSMAN]
[PERMITTED_JOB:MACEMAN]
[PERMITTED_JOB:PIKEMAN]
[PERMITTED_JOB:MASTER_PIKEMAN]
[PERMITTED_JOB:BOWMAN]
[PERMITTED_JOB:MASTER_BOWMAN]
[PERMITTED_JOB:RECRUIT]
[PERMITTED_JOB:STANDARD]
[PERMITTED_JOB:CHILD]
[PERMITTED_JOB:MANAGER]
[PERMITTED_JOB:SHOPKEEPER]
[PERMITTED_JOB:PRISONER]
[CURRENCY_BY_YEAR]
[CURRENCY:COPPER:1]
[CURRENCY:SILVER:5]
[CURRENCY:GOLD:15]
[ART_FACET_MODIFIER:OWN_RACE:512]
[ART_FACET_MODIFIER:EVIL:0]
[ART_IMAGE_ELEMENT_MODIFIER:SHAPE:712]
[ART_IMAGE_ELEMENT_MODIFIER:ITEM:512]
[RELIGION:PANTHEON]
[RELIGION_SPHERE:CAVERNS]
[RELIGION_SPHERE:METALS]
[RELIGION_SPHERE:WATER]
[RELIGION_SPHERE:RAINBOWS]
[RELIGION_SPHERE:PEACE]
[RELIGION_SPHERE:FAMILY]
[RELIGION_SPHERE:WIND]
[LEADER_TYPE:DIPLOMAT]
[ETHIC:KILL_ENTITY_MEMBER:PUNISH_EXILE]
[ETHIC:KILL_NEUTRAL:PUNISH_EXILE]
[ETHIC:KILL_ENEMY:ACCEPTABLE]
[ETHIC:KILL_ANIMAL:SHUN]
[ETHIC:KILL_PLANT:ACCEPTABLE]
[ETHIC:TORTURE_AS_EXAMPLE:UNTHINKABLE]
[ETHIC:TORTURE_FOR_INFORMATION:JUSTIFIED_IF_NO_REPERCUSSIONS]
[ETHIC:TORTURE_FOR_FUN:UNTHINKABLE]
[ETHIC:TORTURE_ANIMALS:APPALLING]
[ETHIC:TREASON:PUNISH_EXILE]
[ETHIC:OATH_BREAKING:PUNISH_EXILE]
[ETHIC:LYING:PERSONAL_MATTER]
[ETHIC:VANDALISM:NOT_APPLICABLE]
[ETHIC:TRESPASSING:PUNISH_SERIOUS]
[ETHIC:THEFT:PUNISH_SERIOUS]
[ETHIC:ASSAULT:PUNISH_SERIOUS]
[ETHIC:SLAVERY:UNTHINKABLE]
[ETHIC:EAT_SAPIENT_OTHER:UNTHINKABLE]
[ETHIC:EAT_SAPIENT_KILL:UNTHINKABLE]
[ETHIC:MAKE_TROPHY_SAME_RACE:ACCEPTABLE]
[ETHIC:MAKE_TROPHY_SAPIENT:SHUN]
[ETHIC:MAKE_TROPHY_ANIMAL:ACCEPTABLE]
[WILL_ACCEPT_TRIBUTE]
[DIPLOMAT]
[WANDERER]
[USE_ANIMAL_PRODUCTS]
[USE_GOOD_ANIMALS]
[USE_GOOD_WOOD]
[USE_GOOD_PLANTS]
[SCOUT]
[INVADERS_IGNORE_NEUTRALS]
[PROGRESS_TRIGGER_POPULATION:1]
[INSTRUMENT:ITEM_INSTRUMENT_FLUTE]
[TOY:ITEM_TOY_PUZZLEBOX]
[ARMOR:ITEM_ARMOR_PLATEMAIL:UNCOMMON]
[ARMOR:ITEM_ARMOR_CHAINMAIL:UNCOMMON]
[ARMOR:ITEM_ARMOR_VEST:COMMON]
[DIGGER:ITEM_WEAPON_PICK]
[WEAPON:ITEM_WEAPON_HAMMER_WAR]
[WEAPON:ITEM_WEAPON_SPEAR]
[WEAPON:ITEM_WEAPON_MACE]
[WEAPON:ITEM_WEAPON_PIKE]
[WEAPON:ITEM_WEAPON_SWORD_SHORT]
[WEAPON:ITEM_WEAPON_BOW]
[AMMO:ITEM_AMMO_ARROWS]
[HELM:ITEM_HELM_HELM:COMMON]
[SHIELD:ITEM_SHIELD_SHIELD]
[RIVER_PRODUCTS]
[OCEAN_PRODUCTS]
[INDOOR_FARMING]
[OUTDOOR_FARMING]

Logged

Ohtar

  • Bay Watcher
    • View Profile
Re: Need help with adding a new civilization
« Reply #1 on: March 23, 2010, 10:55:25 am »

One thing you could try changing is having the "Likes_site" entry only set to city. I'm not sure what that does, but by default all the races have "Likes_site" for their default site type too. Permitted job seems to only include the jobs you can assign- I'd remove "guild rep" and the other added things like that... the various weapon professions too. Those are sort of... acquired by individuals, rather than jobs you can assign, if that makes any sense.

They may not trade either, not sure if you care about that though.

EDIT: You don't have an active season either I think. Not sure what that would do.
« Last Edit: March 23, 2010, 11:14:10 am by Ohtar »
Logged
"He who fights with monsters should take care lest he become a monster… when you gaze long into the abyss, the abyss also gazes into you…"
-Friedrich Nietzsche

sunshaker

  • Bay Watcher
    • View Profile
Re: Need help with adding a new civilization
« Reply #2 on: March 23, 2010, 11:11:24 am »

Ok first off you don't need both [CIV_CONTROLLABLE] and [INDIV_CONTROLLABLE], second your organization is different than the standard entity entries (it likely won't make a difference but it makes it hard to spot things that are missing), so maybe reorganize it so that it is the same as the other templates.
Logged

D_E

  • Bay Watcher
    • View Profile
Re: Need help with adding a new civilization
« Reply #3 on: March 26, 2010, 04:47:05 pm »

Actually, [INDIV_CONTROLLABLE] and [CIV_CONTROLLABLE] do different things. Civ lets you start Forts, and Indiv lets you start unskilled individuals at a random town in adventure mode (as opposed to adventure_tier, which lets you start skilled individuals at a town belonging to their civ).

Also, civs are created at year 1, so I don't know if it's your civ file that's the problem.  Try putting in the likes_site thing suggested earlier, since I'm not sure what not having that'll do either, but if that doesn't work try taking out your civ and changing the human (PLAINs I think) civ to use your creature instead of humans. 

I suspect it may have something to do with your creature def, and that it crashes as soon as the History algo tries to run one through a battle.  If that's the case, it should still crash.  If it doesn't try copying the human civ an slowly mutating it back into your desired civ.

Logged
Mods I've done:
Zelda mod-mod, Beta in the Wild DF 47.04
Illithid Empire mod DF 31.25 (update canceled)
Spotter's Guide to Illithids (Genesis mod-mod) genesis 3.19a4 (update canceled)