Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Problem with custom race and shops in adventure mode  (Read 1040 times)

Kravick

  • Bay Watcher
    • View Profile
Problem with custom race and shops in adventure mode
« on: December 16, 2008, 03:05:29 pm »

I have very little modding experience and everything I've done so far has been with the help of the DF Wiki.  So far everything is working perfectly except for one thing.  Well, technically 2 things but I think they are related.  I'm trying to get this to work in Adventure Mode.  Fortress Mode I'm not worrying about at this time.

So heres the situation, I have 2 custom races I have added and I am trying to get their respective shops to function so I can buy/sell/trade with them in adventure mode and not have to rely on just humans for buy/sell/trade.  If I change the Dwarves [DEFAULT_SITE_TYPE:CAVE_DETAILED] to [DEFAULT_SITE_TYPE:CITY] they have fully functional shops so I know it should be possible to add a custom race with this function.

The specific problem is both mod races don't start with any furniture, beds, doors, or any wood related items built in their city except the walls the houses are made from.  The shopkeepers themselves actually exist and I am able to trade with them, but they don't have anything for sale and their shops are completely empty.  Both mod races have the [DEFAULT_SITE_TYPE:CITY] token.  Both mod races have the [PERMITTED_JOB:WOODCUTTER], [PERMITTED_JOB:WOODCRAFTER], [PERMITTED_JOB:CARPENTER], [WEAPON:ITEM_WEAPON_AXE_BATTLE] (for cutting down trees), and [USE_MISC_PROCESSED_WOOD_PRODUCTS] tokens.  One race is size 7, same size as humans, the other is size 6, same size as dwarves, so size shouldn't be an issue here.  Both races will start in areas that have trees, in fact when I go to their towns they are always surrounded by trees.  They just won't build tables, chairs, beds, chests or doors.  I believe if I can solve the not making/using wooden furniture problem then items should start appearing in their stores.

I've compared the human and dwarf civilizations with the two modded ones and I just cannot see what tokens I am missing to make this work.  Both mod races themselves function fine as playable characters in adventure mode.  Is there a token I am forgetting?  Any help would be appreciated.

Heres the entity_default for one of the mod civilizations.  They are nearly identical so if I can fix the issue with one I should be able to fix the other:

Code: [Select]
[ENTITY:PLACEHOLDERNAME] (I haven't given them a name yet)
[CREATURE:PLACEHOLDERNAME]
[DEFAULT_SITE_TYPE:CITY]
[LIKES_SITE:CAVE]
[LIKES_SITE:CAVE_DETAILED]
[LIKES_SITE:RUIN]
[LIKES_SITE:TREE_CITY]
[TOLERATES_SITE:CAVE]
[TOLERATES_SITE:CAVE_DETAILED]
[TOLERATES_SITE:RUIN]
[TOLERATES_SITE:TREE_CITY]
[TOLERATES_SITE:DARK_FORTRESS]
[TOLERATES_SITE:CITY]
[PERMITTED_JOB:MINER]
[PERMITTED_JOB:ARCHITECT]
[PERMITTED_JOB:BOWYER]
[PERMITTED_JOB:WOODCUTTER]
[PERMITTED_JOB:ANIMAL_DISSECTOR]
[PERMITTED_JOB:HUNTER]
[PERMITTED_JOB:TRAPPER]
[PERMITTED_JOB:WEAPONSMITH]
  [PERMITTED_JOB:ARMORER]
[PERMITTED_JOB:WOODCRAFTER]
[PERMITTED_JOB:LEATHERWORKER]
[PERMITTED_JOB:BONE_CARVER]
[PERMITTED_JOB:FISHERMAN]
[PERMITTED_JOB:FISH_DISSECTOR]
[PERMITTED_JOB:FISH_CLEANER]
[PERMITTED_JOB:BUTCHER]
[PERMITTED_JOB:TANNER]
        [PERMITTED_JOB:CARPENTER]
        [PERMITTED_JOB:FURNACE_OPERATOR]
        [PERMITTED_JOB:METALCRAFTER]
        [PERMITTED_JOB:BLACKSMITH]
        [PERMITTED_JOB:TRADER]
        [PERMITTED_JOB:MASON]
        [PERMITTED_JOB:ENGRAVER]
[PERMITTED_JOB:WOOD_BURNER]
[START_BIOME:FOREST_TAIGA]
[START_BIOME:ANY_SHRUBLAND]
[START_BIOME:TUNDRA]
[START_BIOME:MOUNTAIN]
[BIOME_SUPPORT:ANY_WETLAND:1]
[BIOME_SUPPORT:ANY_DESERT:1]
[BIOME_SUPPORT:ANY_FOREST:1]
[BIOME_SUPPORT:ANY_OCEAN:1]
[BIOME_SUPPORT:ANY_LAKE:1]
[BIOME_SUPPORT:MOUNTAIN:2]
[BIOME_SUPPORT:ANY_GRASSLAND:1]
[BIOME_SUPPORT:ANY_SAVANNA:1]
[BIOME_SUPPORT:ANY_SHRUBLAND:3]
[BIOME_SUPPORT:ANY_RIVER:1]
[BIOME_SUPPORT:FOREST_TAIGA:3]
[BIOME_SUPPORT:TUNDRA:2]
[CURRENCY:COPPER:1]
[CURRENCY:SILVER:5]
[CURRENCY:GOLD:15]
[USE_ANY_PET_RACE]
[ETHIC:KILL_ENTITY_MEMBER:JUSTIFIED_IF_GOOD_REASON]
[ETHIC:KILL_NEUTRAL:ACCEPTABLE]
[ETHIC:KILL_ENEMY:ACCEPTABLE]
[ETHIC:KILL_ANIMAL:ACCEPTABLE]
[ETHIC:KILL_PLANT:ACCEPTABLE]
[ETHIC:TORTURE_AS_EXAMPLE:ACCEPTABLE]
[ETHIC:TORTURE_FOR_INFORMATION:ACCEPTABLE]
[ETHIC:TORTURE_FOR_FUN:ACCEPTABLE]
[ETHIC:TORTURE_ANIMALS:ACCEPTABLE]
[ETHIC:TREASON:PUNISH_SERIOUS]
[ETHIC:OATH_BREAKING:PUNISH_SERIOUS]
[ETHIC:LYING:PERSONAL_MATTER]
[ETHIC:VANDALISM:NOT_APPLICABLE]
[ETHIC:TRESPASSING:NOT_APPLICABLE]
[ETHIC:THEFT:PERSONAL_MATTER]
[ETHIC:ASSAULT:PERSONAL_MATTER]
[ETHIC:SLAVERY:PERSONAL_MATTER]
[ETHIC:EAT_SAPIENT_OTHER:ACCEPTABLE]
[ETHIC:EAT_SAPIENT_KILL:ACCEPTABLE]
[ETHIC:MAKE_TROPHY_SAME_RACE:ACCEPTABLE]
[ETHIC:MAKE_TROPHY_SAPIENT:ACCEPTABLE]
[ETHIC:MAKE_TROPHY_ANIMAL:ACCEPTABLE]
[ART_FACET_MODIFIER:OWN_RACE:512]
[ART_FACET_MODIFIER:FANCIFUL:512]
[MAX_POP_NUMBER:1500]
[MAX_STARTING_CIV_NUMBER:100]
[MAX_SITE_POP_NUMBER:200]
[START_GROUP_NUMBER:10]
[UNDEAD_CANDIDATE]
[CAN_HAVE_MILITARY_LEADER]
[WANDERER]
[BEAST_HUNTER]
[SCOUT]
[ABUSE_BODIES]
[ACTIVE_SEASON:SUMMER]
[ACTIVE_SEASON:SPRING]
[AMBUSHER]
[SIEGER]
[PROGRESS_TRIGGER_POPULATION: 2]
[PROGRESS_TRIGGER_PRODUCTION:1]
[PROGRESS_TRIGGER_TRADE:2]
[AMMO:ITEM_AMMO_ARROWS]
[WEAPON:ITEM_WEAPON_SPEAR]
[WEAPON:ITEM_WEAPON_BOW]
[WEAPON:ITEM_WEAPON_SCIMITAR]
[WEAPON:ITEM_WEAPON_PIKE]
[WEAPON:ITEM_WEAPON_HALBERD]
[WEAPON:ITEM_WEAPON_SWORD_2H]
[WEAPON:ITEM_WEAPON_SWORD_LONG]
[WEAPON:ITEM_WEAPON_AXE_BATTLE]
[WEAPON:ITEM_WEAPON_HAMMER_WAR]
[WEAPON:ITEM_WEAPON_SWORD_SHORT]
[WEAPON:ITEM_WEAPON_MAUL]
[WEAPON:ITEM_WEAPON_AXE_GREAT]
[WEAPON:ITEM_WEAPON_FLAIL]
[WEAPON:ITEM_WEAPON_MORNINGSTAR]
[ARMOR:ITEM_ARMOR_PLATEMAIL:COMMON]
[ARMOR:ITEM_ARMOR_CHAINMAIL:COMMON]
[ARMOR:ITEM_ARMOR_LEATHER:COMMON]
  [HELM:ITEM_HELM_HELM:COMMON]
[PANTS:ITEM_PANTS_GREAVES:COMMON]
        [GLOVES:ITEM_GLOVES_GAUNTLETS:COMMON]
        [SHOES:ITEM_SHOES_BOOTS_LOW:COMMON]
        [PANTS:ITEM_PANTS_LEGGINGS:COMMON]
[SHIELD:ITEM_SHIELD_SHIELD]
[SHIELD:ITEM_SHIELD_BUCKLER]
[USE_ANIMAL_PRODUCTS]
[USE_ANY_PET_RACE]
[USE_CAVE_ANIMALS]
[USE_EVIL_ANIMALS]
[USE_GOOD_ANIMALS]
[WORLD_CONSTRUCTION:TUNNEL]
[IMPROVED_BOWS]
[EQUIPMENT_IMPROVEMENTS]
        [USE_MISC_PROCESSED_WOOD_PRODUCTS]
[SELECT_SYMBOL:WAR:NAME_WAR]
[SUBSELECT_SYMBOL:WAR:VIOLENT]
[SELECT_SYMBOL:BATTLE:NAME_BATTLE]
[SUBSELECT_SYMBOL:BATTLE:VIOLENT]
[SELECT_SYMBOL:SIEGE:NAME_SIEGE]
[SUBSELECT_SYMBOL:SIEGE:VIOLENT]
[SELECT_SYMBOL:REMAINING:ROAR]
[SELECT_SYMBOL:REMAINING:MAW]
[SELECT_SYMBOL:REMAINING:TAIL]
[SELECT_SYMBOL:REMAINING:PACK]
[SELECT_SYMBOL:REMAINING:BLAZE]
[SELECT_SYMBOL:REMAINING:GORE]
[SELECT_SYMBOL:REMAINING:SNARL]
[SELECT_SYMBOL:REMAINING:FERAL]
[SELECT_SYMBOL:REMAINING:BRUTE]
[SELECT_SYMBOL:REMAINING:UNTAMED]
[SELECT_SYMBOL:REMAINING:MONGREL]
[SELECT_SYMBOL:REMAINING:CLAW]
[SELECT_SYMBOL:REMAINING:DREMAINING]
[SELECT_SYMBOL:REMAINING:SEDUCE]
[SELECT_SYMBOL:REMAINING:TORMENT]
[SELECT_SYMBOL:REMAINING:CRUEL]
[SELECT_SYMBOL:REMAINING:DEVIANT]
[SELECT_SYMBOL:REMAINING:OBSCENE]
[SELECT_SYMBOL:REMAINING:KILLER]
[SELECT_SYMBOL:REMAINING:RAVAGER]
[SELECT_SYMBOL:REMAINING:REND]
[SELECT_SYMBOL:REMAINING:RIP]
[SELECT_SYMBOL:REMAINING:RUIN]
[SELECT_SYMBOL:REMAINING:SEVER]
[SELECT_SYMBOL:REMAINING:SHRED]
[SELECT_SYMBOL:REMAINING:CRAZE]
[SELECT_SYMBOL:REMAINING:CRUSH]
[SELECT_SYMBOL:REMAINING:BREAK]
[SELECT_SYMBOL:REMAINING:BURN]
[SELECT_SYMBOL:REMAINING:GROWL]
[SELECT_SYMBOL:REMAINING:FIERCE]
[SELECT_SYMBOL:REMAINING:ENTRAILS]
[SELECT_SYMBOL:REMAINING:DEVOURER]
[SELECT_SYMBOL:REMAINING:SAVAGERY]
[SELECT_SYMBOL:REMAINING:GORE NOUN]
[SELECT_SYMBOL:REMAINING:GRISTLE]
[SELECT_SYMBOL:REMAINING:RAPE]
[SELECT_SYMBOL:REMAINING:MANGE]
[SELECT_SYMBOL:REMAINING:LUST]
[SELECT_SYMBOL:REMAINING:FROTH]
[SELECT_SYMBOL:REMAINING:FEVER]
[SELECT_SYMBOL:REMAINING:BITCH]
[SELECT_SYMBOL:REMAINING:MONGREL]
[SELECT_SYMBOL:REMAINING:VICTIM]
[SELECT_SYMBOL:REMAINING:LESSER]
[SELECT_SYMBOL:LEADER:ABSOLUTE]
[SELECT_SYMBOL:REMAINING:CREEPY]
[CULL_SYMBOL:ALL:PEACE]
[CULL_SYMBOL:ALL:DOMESTIC]
[CULL_SYMBOL:ALL:FLOWERY]
[SPHERE_ALIGNMENT:FERTILITY:512]
[SPHERE_ALIGNMENT:LIGHTNING:512]
[SPHERE_ALIGNMENT:OATHS:512]
[RELIGION_SPHERE:TORTURE]
[RELIGION_SPHERE:LOYALTY]
[RELIGION_SPHERE:DEPRAVITY]
[RELIGION_SPHERE:CHAOS]
[RELIGION:ANY_APPROPRIATE_POWER]
[CIV_CONTROLLABLE]
[INDIV_CONTROLLABLE]
[ADVENTURE_TIER:5]

I didn't write this race myself.  I just edited it a little for my personal tastes and I in no way take credit for writing the original mod.

EDIT: I'd also like to mention that every time I made any changes I created a new world so these changes would take place.
« Last Edit: December 16, 2008, 03:15:36 pm by Kravick »
Logged

Warlord255

  • Bay Watcher
  • Master Building Designer
    • View Profile
Re: Problem with custom race and shops in adventure mode
« Reply #1 on: December 16, 2008, 03:39:30 pm »

Biome considerations are one factor; are they in a glacial area, by chance, or a tundra?
Logged
DF Vanilla-Spice Revised: Better balance, more !!fun!!
http://www.bay12forums.com/smf/index.php?topic=173907.msg7968772#msg7968772

LeadfootSlim on Steam, LeadfootSlim#1851 on Discord. Hit me up!

Kravick

  • Bay Watcher
    • View Profile
Re: Problem with custom race and shops in adventure mode
« Reply #2 on: December 16, 2008, 04:13:54 pm »

One does have tundra as a starting biome but it also has the mountain biome as well.  The second one does not.  Its biome preferences are this.  They don't like the cold.

Code: [Select]
[START_BIOME:ANY_SHRUBLAND]
[START_BIOME:ANY_SAVANNA]
[START_BIOME:ANY_GRASSLAND]
[START_BIOME:NOT_FREEZING]
[BIOME_SUPPORT:ANY_WETLAND:1]
[BIOME_SUPPORT:ANY_DESERT:1]
[BIOME_SUPPORT:ANY_FOREST:2]
[BIOME_SUPPORT:ANY_OCEAN:1]
[BIOME_SUPPORT:ANY_LAKE:1]
[BIOME_SUPPORT:MOUNTAIN:1]
[BIOME_SUPPORT:ANY_GRASSLAND:2]
[BIOME_SUPPORT:ANY_SAVANNA:2]
[BIOME_SUPPORT:ANY_SHRUBLAND:4]
[BIOME_SUPPORT:ANY_RIVER:1]
[BIOME_SUPPORT:FOREST_TAIGA:1]
[BIOME_SUPPORT:TUNDRA:1]

So you don't have to go looking for it I'll link the biome preferences from up above here.  These guys like colder areas but will still settle in forests and mountainous areas.  They both actually prefer shrub lands the most.

Code: [Select]
[START_BIOME:FOREST_TAIGA]
[START_BIOME:ANY_SHRUBLAND]
[START_BIOME:TUNDRA]
[START_BIOME:MOUNTAIN]
[BIOME_SUPPORT:ANY_WETLAND:1]
[BIOME_SUPPORT:ANY_DESERT:1]
[BIOME_SUPPORT:ANY_FOREST:1]
[BIOME_SUPPORT:ANY_OCEAN:1]
[BIOME_SUPPORT:ANY_LAKE:1]
[BIOME_SUPPORT:MOUNTAIN:2]
[BIOME_SUPPORT:ANY_GRASSLAND:1]
[BIOME_SUPPORT:ANY_SAVANNA:1]
[BIOME_SUPPORT:ANY_SHRUBLAND:3]
[BIOME_SUPPORT:ANY_RIVER:1]
[BIOME_SUPPORT:FOREST_TAIGA:3]
[BIOME_SUPPORT:TUNDRA:2]

I've found them with cities in and around forested areas and they always have trees when I visit or start in their towns.  Can't say there is tons of trees but its definitely there.  Both races are having the same exact problem.
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Problem with custom race and shops in adventure mode
« Reply #3 on: December 16, 2008, 04:22:56 pm »

What about creatures? Can't it be that they are [GOOD] but can't use GOOD plants (or EVIL)?
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Kravick

  • Bay Watcher
    • View Profile
Re: Problem with custom race and shops in adventure mode
« Reply #4 on: December 16, 2008, 05:04:10 pm »

What about creatures? Can't it be that they are [GOOD] but can't use GOOD plants (or EVIL)?

They don't have the [GOOD] or [EVIL] token.  Not sure if it matters but they don't have the [BENIGN] token ether.  Does it matter that they don't have the [INTELLIGENT] token since they both have [CAN_CIV][CAN_LEARN][CAN_SPEAK] tokens?
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Problem with custom race and shops in adventure mode
« Reply #5 on: December 16, 2008, 09:49:53 pm »

I don't know about it, maybe the game doesn't generate furniture for unintelligent races? Also why did you replace 1 token with 3?
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

LegoLord

  • Bay Watcher
  • Can you see it now?
    • View Profile
Re: Problem with custom race and shops in adventure mode
« Reply #6 on: December 16, 2008, 09:54:51 pm »

I don't know about it, maybe the game doesn't generate furniture for unintelligent races? Also why did you replace 1 token with 3?
Yeah, give 'em intelligent and see what happens.
Logged
"Oh look there is a dragon my clothes might burn let me take them off and only wear steel plate."
And this is how tinned food was invented.
Alternately: The Brick Testament. It's a really fun look at what the bible would look like if interpreted literally. With Legos.
Just so I remember

Kravick

  • Bay Watcher
    • View Profile
Re: Problem with custom race and shops in adventure mode
« Reply #7 on: December 17, 2008, 01:09:43 am »

I don't know about it, maybe the game doesn't generate furniture for unintelligent races? Also why did you replace 1 token with 3?
Yeah, give 'em intelligent and see what happens.

Just now tried that and generated a new world.  Didn't work.  I just noticed [DIGGER:ITEM_WEAPON_PICK] token was missing after comparing dwarves/humans with these two races some more.  I figured if they can't dig for metal then maybe that would be the problem since they wouldn't be able to make axes on their own I added the [DIGGER:ITEM_WEAPON_PICK] tag and generated another world.  Unfortunately that didn't work ether.

Meh, I'm really stumped here.  What the heck could it be?  :-\
Logged

LegoLord

  • Bay Watcher
  • Can you see it now?
    • View Profile
Re: Problem with custom race and shops in adventure mode
« Reply #8 on: December 17, 2008, 04:22:48 pm »

I don't know about it, maybe the game doesn't generate furniture for unintelligent races? Also why did you replace 1 token with 3?
Yeah, give 'em intelligent and see what happens.
What the heck could it be?  :-\
The devil is possessing your computer, perhaps?  That sounds very heckish.
Logged
"Oh look there is a dragon my clothes might burn let me take them off and only wear steel plate."
And this is how tinned food was invented.
Alternately: The Brick Testament. It's a really fun look at what the bible would look like if interpreted literally. With Legos.
Just so I remember