Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Digging implements and [WOOD_PREF]  (Read 1090 times)

Ramirez

  • Bay Watcher
    • View Profile
Digging implements and [WOOD_PREF]
« on: May 01, 2008, 01:33:00 am »

Sorry if this has been brought up before, but its something that I found interesting enough.

Testing some random things for a mod that I have in development, I found an odd conflict between picks and wood preference for different entities. If an entity has both wood preference and a digging implement it doesnt use wood to make its picks, instead using metal.

The choice of metal is the oddest part though. Wood pref entities will make their picks out of any metal in the glossary files, even ones including the [DEEP] tag, so they can turn up with adamantine picks.

Heres the relevant entity entry:

code:
 [ENTITY:WIZARD]
   [INDIV_CONTROLLABLE]
   [CREATURE:MAGE]
   [TRANSLATION:HUMAN]
   [DIGGER:ITEM_WEAPON_PICK]
   [WEAPON:ITEM_WEAPON_STAFF]
   [WEAPON:ITEM_WEAPON_WAND]
   [WEAPON:ITEM_WEAPON_GLOVES]
   [WEAPON:ITEM_WEAPON_DAGGER]
   [WEAPON:ITEM_WEAPON_BOW]
      [AMMO:ITEM_AMMO_MARROWS]
   [ARMOR:ITEM_ARMOR_PLATEMAIL:UNCOMMON]
   [ARMOR:ITEM_ARMOR_CHAINMAIL:COMMON]
   [ARMOR:ITEM_ARMOR_LEATHER:COMMON]
   [ARMOR:ITEM_ARMOR_COAT:COMMON]
   [ARMOR:ITEM_ARMOR_SHIRT:COMMON]
   [ARMOR:ITEM_ARMOR_CLOAK:COMMON]
   [ARMOR:ITEM_ARMOR_TUNIC:COMMON]
   [ARMOR:ITEM_ARMOR_TOGA:UNCOMMON]
   [ARMOR:ITEM_ARMOR_CAPE:COMMON]
   [ARMOR:ITEM_ARMOR_VEST:COMMON]
   [ARMOR:ITEM_ARMOR_DRESS:COMMON]
   [ARMOR:ITEM_ARMOR_ROBE:COMMON]
   [HELM:ITEM_HELM_UHELM:COMMON]
   [HELM:ITEM_HELM_CAP:COMMON]
   [HELM:ITEM_HELM_HOOD:COMMON]
   [HELM:ITEM_HELM_TURBAN:UNCOMMON]
   [HELM:ITEM_HELM_MASK:RARE]
   [HELM:ITEM_HELM_VEIL_HEAD:COMMON]
   [HELM:ITEM_HELM_VEIL_FACE:RARE]
   [HELM:ITEM_HELM_SCARF_HEAD:UNCOMMON]
   [GLOVES:ITEM_GLOVES_GAUNTLETS:UCOMMON]
   [GLOVES:ITEM_GLOVES_GLOVES:COMMON]
   [GLOVES:ITEM_GLOVES_MITTENS:COMMON]
   [SHOES:ITEM_SHOES_SHOES:COMMON]
   [SHOES:ITEM_SHOES_BOOTS:COMMON]
   [SHOES:ITEM_SHOES_BOOTS_LOW:COMMON]
   [SHOES:ITEM_SHOES_SANDAL:COMMON]
   [SHOES:ITEM_SHOES_CHAUSSE:UNCOMMON]
   [SHOES:ITEM_SHOES_SOCKS:COMMON]
   [PANTS:ITEM_PANTS_PANTS:COMMON]
   [PANTS:ITEM_PANTS_GREAVES:UNCOMMON]
   [PANTS:ITEM_PANTS_LEGGINGS:COMMON]
   [PANTS:ITEM_PANTS_LOINCLOTH:COMMON]
   [PANTS:ITEM_PANTS_THONG:UNCOMMON]
   [PANTS:ITEM_PANTS_SKIRT:COMMON]
   [PANTS:ITEM_PANTS_SKIRT_SHORT:COMMON]
   [PANTS:ITEM_PANTS_SKIRT_LONG:COMMON]
   [PANTS:ITEM_PANTS_BRAIES:UNCOMMON]
   [SHIELD:ITEM_SHIELD_BUCKLER]
   [SHIELD:ITEM_SHIELD_SHIELD]
   [TOY:ITEM_TOY_PUZZLEBOX]
   [TOY:ITEM_TOY_BOAT]
   [TOY:ITEM_TOY_HAMMER]
   [TOY:ITEM_TOY_AXE]
   [INSTRUMENT:ITEM_INSTRUMENT_FLUTE]
   [INSTRUMENT:ITEM_INSTRUMENT_TRUMPET]
   [INSTRUMENT:ITEM_INSTRUMENT_HARP]
   [INSTRUMENT:ITEM_INSTRUMENT_DRUM]
   [INSTRUMENT:ITEM_INSTRUMENT_PICCOLO]
   [CLOTHING]
   [CURRENCY:COPPER:1]
   [CURRENCY:SILVER:5]
   [CURRENCY:GOLD:15]
   [CULL_SYMBOL:ALL:SUBORDINATE]
   [CULL_SYMBOL:ALL:EVIL]
   [CULL_SYMBOL:ALL:UNTOWARD]
   [CULL_SYMBOL:ALL:NEGATIVE]
   [CULL_SYMBOL:ALL:UGLY]
   [CULL_SYMBOL:ALL:NEGATOR]
   [SELECT_SYMBOL:CIV:NAME_ENTITY_KINGDOM]
   [SELECT_SYMBOL:SITE:NAME_ENTITY_TOWN_FOUNDER]
   [RIVER_PRODUCTS]
   [OCEAN_PRODUCTS]
   [OUTDOOR_FARMING]
   [USE_ANIMAL_PRODUCTS]
   [COMMON_DOMESTIC_PACK]
   [COMMON_DOMESTIC_PULL]
   [COMMON_DOMESTIC_MOUNT]
   [COMMON_DOMESTIC_PET]
   [USE_MISC_PROCESSED_WOOD_PRODUCTS]
   [EQUIPMENT_IMPROVEMENTS]
   [SPHERE_ALIGNMENT:WAR:512]
   [ART_FACET_MODIFIER:FANCIFUL:640]
   [ART_FACET_MODIFIER:OWN_RACE:512]
   [ADVENTURE_TIER:1]
   [FRIENDLY_COLOR:7:0:1]
   [UNDEAD_CANDIDATE]
   [DEFAULT_SITE_TYPE:CITY]
   [LIKES_SITE:CITY]
   [TOLERATES_SITE:CITY]
   [TOLERATES_SITE:TREE_CITY]
   [TOLERATES_SITE:CAVE_DETAILED]
   [CAN_HAVE_MILITARY_LEADER]
   [SITE_LEADER_TYPE:STANDARD]
   [START_BIOME:ANY_GRASSLAND]
   [START_BIOME:ANY_SAVANNA]
   [START_BIOME:ANY_SHRUBLAND]
   [BIOME_SUPPORT:ANY_WETLAND:1]
   [BIOME_SUPPORT:ANY_DESERT:1]
   [BIOME_SUPPORT:ANY_FOREST:3]
   [BIOME_SUPPORT:ANY_OCEAN:8]
   [BIOME_SUPPORT:ANY_LAKE:8]
   [BIOME_SUPPORT:ANY_GRASSLAND:4]
   [BIOME_SUPPORT:ANY_SAVANNA:4]
   [BIOME_SUPPORT:ANY_SHRUBLAND:3]
   [BIOME_SUPPORT:ANY_RIVER:3]
   [DIPLOMAT]
   [MERCHANT_NOBILITY]
   [DIPLOMAT_BODYGUARDS]
   [MERCHANT_BODYGUARDS]
   [ACTIVE_SEASON:SPRING]
   [ENTITY_GROUPING:FRIENDLY]
   [SIEGER]
   [MAX_STARTING_CIV_NUMBER:10]
   [START_GROUP_NUMBER:10]
   [MAX_POP_NUMBER:1000]
   [MAX_SITE_POP_NUMBER:200]
   [RELIGION:PANTHEON]
   [MAYOR]
   [WOOD_PREF]
   [PROGRESS_TRIGGER_PRODUCTION:1]

The majority of it is simply copy+paste from humans so other than the addition of [WOOD_PREF] I don't know what else could cause this behavior.

Logged

Kagus

  • Bay Watcher
  • Olive oil. Don't you?
    • View Profile
Re: Digging implements and [WOOD_PREF]
« Reply #1 on: May 01, 2008, 02:06:00 am »

Yeah, Sean Mirrsen was having some troubles with that in his own mod.  I'm not sure what he did to fix it though, or even if he did fix it.

Cosmonot

  • Bay Watcher
    • View Profile
Re: Digging implements and [WOOD_PREF]
« Reply #2 on: May 01, 2008, 02:39:00 am »

I don't think you can really fix the issue, but I seem to recall that if you give the civ [MINOR_METAL] they'll always take copper digging implements. Of course, this would also allow the player to take copper equipment on embark, but computer-generated equipment will always be wood if possible.
Logged
Kobolds carry copper crossbows.

Sean Mirrsen

  • Bay Watcher
  • Bearer of the Psionic Flame
    • View Profile
Re: Digging implements and [WOOD_PREF]
« Reply #3 on: May 01, 2008, 03:34:00 am »

Yeah, that was the way I fixed it. MINOR_METAL is the only way to restrain those without material preference other than wood. If you don't want elves to use copper, make a DIGGER-only metal that's worse than copper, and remove DIGGER from copper. The elves will end up always using the stuff for picks and only picks (or shovels, as with my mod's case), but other races will almost never ever use it, and in adventure mode, it will not appear at all.
Logged
Multiworld Madness Archive:
Game One, Discontinued at World 3.
Game Two, Discontinued at World 1.

"Europe has to grow out of the mindset that Europe's problems are the world's problems, but the world's problems are not Europe's problems."
- Subrahmanyam Jaishankar, Minister of External Affairs, India

Torak

  • Bay Watcher
  • God of Gods of Blood.
    • View Profile
Re: Digging implements and [WOOD_PREF]
« Reply #4 on: May 01, 2008, 08:13:00 am »

I once got an adamantine shovel from the Elves. Most satisfying 's' keystroke I've ever made.
Logged
As you journey to the center of the world, feel free to read the death announcements of those dwarves that suffer your neglect.

One billion b-balls dribbling simultaneously throughout the galaxy. One trillion b-balls being slam dunked through a hoop throughout the cosmos. I can feel every single b-ball that has ever existed at my fingertips, I can feel their collective knowledge channeling through my veins. Every jumpshot, every rebound and three-pointer, every layup, dunk and free throw.

Mephansteras

  • Bay Watcher
  • Forger of Civilizations
    • View Profile
Re: Digging implements and [WOOD_PREF]
« Reply #5 on: May 01, 2008, 04:59:00 pm »

Oh, is that what causes that? I was wondering, but didn't care enough to look into it.

Thanks!

Logged
Civilization Forge Mod v2.80: Adding in new races, equipment, animals, plants, metals, etc. Now with Alchemy and Libraries! Variety to spice up DF! (For DF 0.34.10)
Come play Mafia with us!
"Let us maintain our chill composure." - Toady One