Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 389 390 [391] 392 393 ... 544

Author Topic: [MODDING] 0.34. QUESTIONS THREAD  (Read 999444 times)

Jaso11111

  • Bay Watcher
  • The Emperor protects...
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #5850 on: August 23, 2013, 06:00:21 am »

Ok thanks i fixed the numbers problem but now i have an other: Is there a way to exclude a kind of reagent from the reaction so that it dosent just make scrap into scrap?
Logged

Boltgun

  • Bay Watcher
  • [UTTERANCES]
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #5851 on: August 23, 2013, 07:51:07 am »

Giving your metals a reaction class (like RECYCLABLE_SCRAP) and requiring the class for the reaction will exclude scrap.
Logged

Jaso11111

  • Bay Watcher
  • The Emperor protects...
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #5852 on: August 23, 2013, 10:03:00 am »

Giving your metals a reaction class (like RECYCLABLE_SCRAP) and requiring the class for the reaction will exclude scrap.
Cheers that worked ;)
Logged

iamthelol

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #5853 on: August 23, 2013, 10:27:01 am »

I want a batman adventurer. How do I do that?
Logged

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #5854 on: August 23, 2013, 12:13:07 pm »

Add [INDIV_CONTROLLABLE] to the cave people's entity raws. They're at the bottom of entity_default.txt
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #5855 on: August 23, 2013, 01:39:39 pm »

I have a civ with these entries in the entity. All kinds of armors to chose from.

Code: [Select]
entity_dwarf_m

[OBJECT:ENTITY]

[ENTITY:DWARF_M]
[CREATURE:DWARF_M]
[TRANSLATION:DWARF]
[DIGGER:ITEM_WEAPON_PICK]

//melee
[WEAPON:ITEM_WEAPON_HALBERD:FORCED] spear
[WEAPON:ITEM_WEAPON_HAMMER_METEOR:FORCED] hammer
[WEAPON:ITEM_WEAPON_SWORD_HANDER_ZWEI:FORCED] sword
[WEAPON:ITEM_WEAPON_PIKE:FORCED] pike
[WEAPON:ITEM_WEAPON_MAUL:FORCED] mace
[WEAPON:ITEM_WEAPON_AXE_GREAT:FORCED]

//ranged
[WEAPON:ITEM_WEAPON_CROSSBOW_UPGRADE_THREE:FORCED]
[WEAPON:ITEM_WEAPON_JAVELINE_UPGRADE_THREE:FORCED]
[AMMO:ITEM_AMMO_JAVELINS_ONE:FORCED]
[AMMO:ITEM_AMMO_JAVELINS_TWO:FORCED]
[AMMO:ITEM_AMMO_JAVELINS_THREE:FORCED]
[AMMO:ITEM_AMMO_BOLTS_ONE:FORCED]
[AMMO:ITEM_AMMO_BOLTS_TWO:FORCED]
[AMMO:ITEM_AMMO_BOLTS_THREE:FORCED]

//armor, is ignored. Only wear helm, breastplate, thats it.
[SHIELD:ITEM_SHIELD_TOWER:FORCED]
[SHIELD:ITEM_SHIELD_KITE:FORCED]
[ARMOR:ITEM_ARMOR_PLATEMAIL:FORCED]
[HELM:ITEM_HELM_HELM:FORCED]
[HELM:ITEM_HELM_HOOD:FORCED]
[ARMOR:ITEM_ARMOR_BREASTPLATE:FORCED]
[HELM:ITEM_HELM_HELM:FORCED]
[HELM:ITEM_HELM_CROWN:FORCED]
[GLOVES:ITEM_GLOVES_GAUNTLETS_D:FORCED]
[SHOES:ITEM_SHOES_BOOTS_D:FORCED]
[PANTS:ITEM_PANTS_GREAVES_D:FORCED]
[SHOES:ITEM_SHOES_BOOTS_MAIL:FORCED]
[HELM:ITEM_HELM_MAIL:FORCED]
[GLOVES:ITEM_GLOVES_GAUNTLETS_MAIL:FORCED]
[PANTS:ITEM_PANTS_LEGGINGS:FORCED]
[PANTS:ITEM_PANTS_LEGGINGS_PADDED:FORCED]
[GLOVES:ITEM_GLOVES_PADDED_MITTENS:FORCED]
[SHOES:ITEM_SHOES_SHOES_PADDED:FORCED]

[PERMITTED_REACTION:DWARF_M] => gives metals and leathers.

The tags are correct, but whenever I spawn a caravan, the bodyguards only wear 1 weapon, 1 shield, 1 helm, 1 breastplate. No greaves. No gauntlets. No boots. Anyone got any ideas what might cause this?

They do have access to these items, because the traders trade steel boots with me, its just that the guards dont wear any.  ???
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Jaso11111

  • Bay Watcher
  • The Emperor protects...
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #5856 on: August 23, 2013, 02:01:37 pm »

Ok then new problem: I just finished my first dfhack reaction too spawn an ork. But everytime i try to generate a new world (just presing the new world butons on the main menu) crashes the game! Tell me if you want me to post the reaction and rock that i made.

EDIT: Verry well here it is:
The rock
Code: [Select]
[INORGANIC:ORK_SPAWN_ROCK]
[USE_MATERIAL_TEMPLATE:STONE_VAPOR_TEMPLATE]
[STATE_NAME_ADJ:Spawn Ork]
[STATE_NAME_ADJ:Spawn Ork]
[STATE_NAME_ADJ:GAS:Spawn Ork]
    [SYNDROME]   
 [SYN_CLASS:\COMMAND] autosyndrome command begins here
   [SYN_CLASS:\LOCATION] [SYN_CLASS:\ALLOW_MULTIPLE_TARGETS]
   [SYN_CLASS:\REACTION_INDEX] [SYN_NAME:animation]
         [SYN_CONTACT]
         [SYN_CONTACT][SYN_INHALED]
         [CE:CREATURE:ORK:BOY]
   [CE_SPEED_CHANGE:SPEED_PERC:100:START:0:END:1]
[DISPLAY_COLOR:4:4:1][TILE:'*']
[MELTING_POINT:900]
[BOILING_POINT:905]
[SOLID_DENSITY:55520]
[MATERIAL_VALUE:1]
The reaction
Code: [Select]
[REACTION:SPAWN_BOY
        [NAME:Spawn an Ork boy]
        [BUILDING:FUNGUS_PITS:NONE]
        [REAGENT:A:3:PLANT:NONE:NONE:ORK_SPAWN_PODS]
        [PRODUCT:100:1:BOULDER:NONE:INORGANIC:ORK_SPAWN_ROCK]

I used the masterwork golem spawn as a base.

EDIT 2: NVM i found my mistake.
« Last Edit: August 23, 2013, 03:55:19 pm by Jaso11111 »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #5857 on: August 23, 2013, 02:03:30 pm »

Always.

iamthelol

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #5858 on: August 23, 2013, 02:27:40 pm »

Add [INDIV_CONTROLLABLE] to the cave people's entity raws. They're at the bottom of entity_default.txt
I did, I wrote that right below [LAYER_LINKED]
Edit:  after I put it on top It might have worked, I'm just assuming that they will be available from the screen where you select elf, dwarf, ect or is there Something else I need to do to play them after the raw edit?
« Last Edit: August 23, 2013, 02:32:57 pm by iamthelol »
Logged

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #5859 on: August 23, 2013, 02:29:55 pm »

Put it at the top of their entry.
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

iamthelol

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #5860 on: August 23, 2013, 02:35:21 pm »

put it at the top, where do I select the race to play them?
Logged

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #5861 on: August 23, 2013, 02:38:34 pm »

It gives access to ALL the races in that entity for adventure mode.
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #5862 on: August 23, 2013, 02:50:57 pm »

I have a civ with these entries in the entity. All kinds of armors to chose from.
Spoiler (click to show/hide)

The tags are correct, but whenever I spawn a caravan, the bodyguards only wear 1 weapon, 1 shield, 1 helm, 1 breastplate. No greaves. No gauntlets. No boots. Anyone got any ideas what might cause this?

They do have access to these items, because the traders trade steel boots with me, its just that the guards dont wear any.  ???

This is a vanilla issue, I believe. Whenever I raid a caravan or peek into inventories I've noticed that every race has guards with only 1 weapon, shield, helm, and body armour, in addition to random "civilian" clothes. Except ranged units, which never have shields but usually have ~20-30 bolts/arrows, assuming some random bunny didn't catch their attention.
Logged

Jaso11111

  • Bay Watcher
  • The Emperor protects...
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #5863 on: August 23, 2013, 03:56:51 pm »

Hey can someone help me here? I wana spawn a creature without tranforming an other creature but whenever i try too take out ,from the rock raw, the [CE_BODY_TRANSFORMATION:START:0] it crashes the game. Any ideas?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #5864 on: August 23, 2013, 04:08:02 pm »

Code: [Select]
    [SYNDROME]   
 [SYN_CLASS:\COMMAND] autosyndrome command begins here
   [SYN_CLASS:\LOCATION] [SYN_CLASS:\ALLOW_MULTIPLE_TARGETS]
   [SYN_CLASS:\REACTION_INDEX] [SYN_NAME:animation]
         [SYN_CONTACT]
         [SYN_CONTACT][SYN_INHALED]
         [CE:CREATURE:ORK:BOY]
   [CE_SPEED_CHANGE:SPEED_PERC:100:START:0:END:1]

The CE:CREATURE is part of CE_BODY_TRANSFORMATION. You don't actually have a command here; what are you trying to do?
Pages: 1 ... 389 390 [391] 392 393 ... 544