Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 81 82 [83] 84 85 ... 544

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

narhiril

  • Bay Watcher
  • [DUTY_BOUND]
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #1230 on: April 05, 2012, 02:07:05 pm »


This was recorded in the error log


*** Error(s) found in the file "raw/objects/creature_tropical_new_dfmm.txt"
GUARDIAN:Unrecognized Creature Token: COLDDAM_POINT
GUARDIAN:Unrecognized Creature Token: HEATDAM_POINT
GUARDIAN:Unrecognized Creature Token: IGNITE_POINT
GUARDIAN:Unrecognized Creature Token: IF_EXISTS_SET_MELTING_POINT
GUARDIAN:Unrecognized Creature Token: IF_EXISTS_SET_BOILING_POINT


[snip]

Spoiler (click to show/hide)

I've highlighted the cause of your issue - namely, what is missing from the guardian that is present in the arctic wind.  Your SELECT_MATERIAL token isn't working because there aren't any local creature materials - because you're just pulling the raws for regular inorganic steel for use in the tissue definition.  Neither of these creatures are actually receiving the benefit of the SELECT_MATERIAL lines because neither of them have their metal defined as a local material.  The only reason that the error is coming up for one and not the other is because in the arctic wind statue, SKIN is defined, but never actually used.  The SELECT_MATERIAL token is selecting the unused skin, but not the metal.  In this case, you simply forgot to set a tissue layer token for the skin.

To the arctic wind statue, add this...

Code: [Select]
[TISSUE_LAYER_OVER:BY_CATEGORY:ALL:SKIN]

... that will make your cryo fluid-leaking skin layer work.

For both of them to get the temperature benefits you wanted, remove the (bolded) tissue definition and replace it with this...

Code: [Select]
[USE_MATERIAL_TEMPLATE:STEEL:METAL_TEMPLATE] defines a local material "STEEL" with the given properties (all copied from steel).
[STATE_NAME_ADJ:ALL_SOLID:steel]
[STATE_NAME_ADJ:LIQUID:molten steel]
[STATE_NAME_ADJ:GAS:boiling steel]
[DISPLAY_COLOR:0:7:1]
[BUILD_COLOR:0:7:1]
[MATERIAL_VALUE:30]
[SPEC_HEAT:500]
[MELTING_POINT:12718]
[BOILING_POINT:14968]
[SOLID_DENSITY:7850]
[LIQUID_DENSITY:6980]
[MOLAR_MASS:55845]
[IMPACT_YIELD:1505000]
[IMPACT_FRACTURE:2520000]
[IMPACT_STRAIN_AT_YIELD:940]
[COMPRESSIVE_YIELD:1505000]
[COMPRESSIVE_FRACTURE:2520000]
[COMPRESSIVE_STRAIN_AT_YIELD:940] 160
[TENSILE_YIELD:430000]
[TENSILE_FRACTURE:720000]
[TENSILE_STRAIN_AT_YIELD:225] 200
[TORSION_YIELD:430000]
[TORSION_FRACTURE:720000]
[TORSION_STRAIN_AT_YIELD:215]
[SHEAR_YIELD:430000]
[SHEAR_FRACTURE:720000]
[SHEAR_STRAIN_AT_YIELD:215] no data, used 200
[BENDING_YIELD:430000]
[BENDING_FRACTURE:720000]
[BENDING_STRAIN_AT_YIELD:215]
[MAX_EDGE:10000]
[TISSUE:STEEL] defines "STEEL" as a valid local tissue
[TISSUE_NAME:steel:steel]
[TISSUE_MATERIAL:LOCAL_CREATURE_MAT:STEEL] uses the material previously defined
[MUSCULAR]
[FUNCTIONAL]
[STRUCTURAL]
[RELATIVE_THICKNESS:1]
[CONNECTS]
[TISSUE_SHAPE:LAYER]

This should clear up those errors.
« Last Edit: April 05, 2012, 02:12:29 pm by narhiril »
Logged

Ultimuh

  • Bay Watcher
  • BOOM! Avatar gone! (for now)
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #1231 on: April 05, 2012, 05:10:58 pm »

Is there a limit to the ammount of custom workshops in DF?
Or is there something wrong with my own?

Code: [Select]
building_ult

[BUILDING_WORKSHOP:MORPHARIUM]
[NAME:morpharium]
[NAME_COLOR:7:0:1]
[DIM:1:1]
[WORK_LOCATION:1:1]
[BUILD_LABOR:ARCHITECT]
[BUILD_KEY:CUSTOM_A]
[BLOCK:1:0]
[TILE:0:1:207]
[COLOR:0:1:0:7:0]
[TILE:1:1:207]
[COLOR:1:1:MAT]
[BUILD_ITEM:1:SLAB:NONE:NONE:NONE]
[BUILD_ITEM:2:BLOCKS:NONE:NONE:NONE][CAN_USE_ARTIFACT]

I cannot seem to make it appear in the workshop menu and therefore not even able to test if it works.
I have tried tried with and without putting anything in Build_Key.

edit: And yes, It's permitted in the entity file.

edit2: I based it off DF Vanilla's Screw Press.
« Last Edit: April 05, 2012, 05:14:02 pm by Ultimuh »
Logged

trees

  • Bay Watcher
  • [MUNDANE]
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #1232 on: April 05, 2012, 05:47:10 pm »

You're missing [OBJECT:BUILDING] at the top of the file. It should be below building_ult and above the entry for your workshop.
Logged
I am often bad at phrasing things - don't hesitate to ask for clarification if something I said doesn't make sense.

Ultimuh

  • Bay Watcher
  • BOOM! Avatar gone! (for now)
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #1233 on: April 05, 2012, 05:48:42 pm »

You're missing [OBJECT:BUILDING] at the top of the file. It should be below building_ult and above the entry for your workshop.

Ooh.. so that was it.. I feel kinda dumb now..



edit: IT'S WORKING!
IT'S ALIIIVE! MUWAHAHAHA!


*ahem*

Let's just say.. I made something nice for once.
Now all I have to figure out is what tiles to use for the workshop.
« Last Edit: April 05, 2012, 06:28:47 pm by Ultimuh »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #1234 on: April 05, 2012, 06:52:49 pm »

Remind me--if two different civilizations have the same creature, can both show up in one world?

Ultimuh

  • Bay Watcher
  • BOOM! Avatar gone! (for now)
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #1235 on: April 05, 2012, 06:57:48 pm »

Remind me--if two different civilizations have the same creature, can both show up in one world?

I would believe so.. I think you have to have slightly different names for the races tough?
Just don't take my word for it.
Logged

Cocoprimate

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #1236 on: April 05, 2012, 07:09:46 pm »

Can someone detail to me how can I make it so that there is a secret (like necromancy), passed down by a god, stored in towers, etc, etc, but instead of giving the animate dead power it makes it so that you can breathe fire like a dragon? So I can go in adventure mode, and enter a tower and learn firebreathing from a slab, and other firebreathers write books about that with names related to fire, etc.  And healing?

Because I really want that, but I suck at modding and couldn't find any thread explaining it. I would really appreciate it!
Logged
The story of Aban Diamondtowns the Charms of Society, dwarf legend, and his descent into the depths. (SPOILER)
http://www.bay12forums.com/smf/index.php?topic=79229.0

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #1237 on: April 05, 2012, 07:42:24 pm »

Can someone detail to me how can I make it so that there is a secret (like necromancy), passed down by a god, stored in towers, etc, etc, but instead of giving the animate dead power it makes it so that you can breathe fire like a dragon? So I can go in adventure mode, and enter a tower and learn firebreathing from a slab, and other firebreathers write books about that with names related to fire, etc.  And healing?

Because I really want that, but I suck at modding and couldn't find any thread explaining it. I would really appreciate it!

Code: [Select]
[INTERACTION:DRAGONFIRE_SECRET]
[I_SOURCE:SECRET]
[IS_NAME:the secret of dragonfire]
[IS_SPHERE:FIRE]
[IS_SECRET:SUPERNATURAL_LEARNING_POSSIBLE]
[IS_SECRET:MUNDANE_RESEARCH_POSSIBLE]
[IS_SECRET:MUNDANE_TEACHING_POSSIBLE]
[IS_SECRET:MUNDANE_RECORDING_POSSIBLE:objects/text/book_instruction.txt:objects/text/secret_death.txt]
[I_TARGET:A:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[IE_ARENA_NAME:Firebreather]
[SYNDROME]
[CE_DISPLAY_NAME:NAME:firebreather:firebreathers:firebreathing:START:0]
[CE_CAN_DO_INTERACTION:START:0]
[CDI:INTERACTION:MATERIAL_EMISSION]
[CDI:ADV_NAME:Breath fire]
[CDI:USAGE_HINT:ATTACK]
[CDI:BP_REQUIRED:BY_CATEGORY:MOUTH]
[CDI:FLOW:DRAGONFIRE]
[CDI:TARGET:C:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:C:15]
[CDI:MAX_TARGET_NUMBER:C:1]
[CDI:WAIT_PERIOD:50]
« Last Edit: April 05, 2012, 07:45:09 pm by Putnam »
Logged

Cocoprimate

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #1238 on: April 05, 2012, 07:49:57 pm »

Thanks! Where do I put that in the folders? Also, should the whole "secret_death.txt" line be there?
Logged
The story of Aban Diamondtowns the Charms of Society, dwarf legend, and his descent into the depths. (SPOILER)
http://www.bay12forums.com/smf/index.php?topic=79229.0

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #1239 on: April 05, 2012, 07:51:30 pm »

The secret_death is just to refer to the default "book writing" list in the raws. You could potentially customize one specifically for this secret IIRC, but unless you do you need to refer back to the default one.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #1240 on: April 05, 2012, 08:20:25 pm »

Weird, I can't get my custom secret users to build towers
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?

Cocoprimate

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #1241 on: April 05, 2012, 08:29:00 pm »

Where does that interaction go? Does it go in the interaction examples folder or in the interaction_standard.txt?
Logged
The story of Aban Diamondtowns the Charms of Society, dwarf legend, and his descent into the depths. (SPOILER)
http://www.bay12forums.com/smf/index.php?topic=79229.0

Ultimuh

  • Bay Watcher
  • BOOM! Avatar gone! (for now)
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #1242 on: April 05, 2012, 08:37:10 pm »

Good news everyone!
And thanks for those who have helped.

I have now successfully made my very own workshop.
This beauty can create metal bars from ice and plump helmets!

Now I know how it feel to be a mad scientist! >:D
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #1243 on: April 05, 2012, 08:46:08 pm »

Where does that interaction go? Does it go in the interaction examples folder or in the interaction_standard.txt?

interaction_standard

Cocoprimate

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #1244 on: April 05, 2012, 09:34:39 pm »

The interaction is not working :/ . I copypasted it to the bottom of interaction_standard.txt in the original raws, and genned about 6 worlds, checked for slabs in all of them in legends mode and there were only secrets of life and death slabs.

Could someone please look over it and see what is wrong?
Logged
The story of Aban Diamondtowns the Charms of Society, dwarf legend, and his descent into the depths. (SPOILER)
http://www.bay12forums.com/smf/index.php?topic=79229.0
Pages: 1 ... 81 82 [83] 84 85 ... 544