Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 533 534 [535] 536 537 ... 544

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

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #8010 on: June 25, 2014, 11:29:03 pm »

What's it supposed to be doing?

Boltgun

  • Bay Watcher
  • [UTTERANCES]
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #8011 on: June 26, 2014, 02:02:26 am »

As anyone managed to get improvement reactions to work ?

I have this reaction :
Code: [Select]
[REACTION:LUA_HOOK_DEFILE_BREASTPLATE]
    [NAME:Defile breastplates]
    [BUILDING:FOOCCUBUS_SOUL_FORGE:CUSTOM_SHIFT_B]
    [REAGENT:soul:1:NONE:NONE:NONE:NONE:NONE][REACTION_CLASS:SOUL][UNROTTEN]
    [REAGENT:target:1:ARMOR:ITEM_ARMOR_BREASTPLATE:NONE:NONE:NONE][NOT_IMPROVED][PRESERVE_REAGENT]
    [IMPROVEMENT:100:target:COVERED:INORGANIC:SOUL_GEM]
    [SKILL:FORGE_ARMOR]

But it crashes world gen right before placing minerals.

The lua hook is currently empty. It is supposed for now to get a breastplate and SOUL class item and stud it with soul gems. Something simple.

I narrowed it down to the IMPROVEMENT line. Replacing the material token with GLASS_GREEN still crashes but removing this line allow world gen to continue. No errorlogs. Any clues?
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #8012 on: June 26, 2014, 04:01:10 am »

Any clues: If a custom inorganic from the raws doesnt work, but a hardcoded material like glass works, I would assume that it crashes, before it reads out the raws. Hardcoded materials would work, materials from raws wouldnt.

Can you do this without a lua_hook? What you describe works perfectly fine, adding a soul gem to an armor. If you want to to get special abilities later, have a look at how the Rune Armory in dwarf mode works. It simply uses a custom materials for the improvements, which use itemsyndrome or SPATTER_ADD.
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 :::

Boltgun

  • Bay Watcher
  • [UTTERANCES]
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #8013 on: June 26, 2014, 05:15:30 am »

I tried removing the hook that captures it but it still crash.

I also tried this :
Quote
[IMPROVEMENT:100:target:COVERED:GLASS_GREEN]
Still crashes.

I'll try removing LUA_HOOK.
Logged

bughunter

  • Bay Watcher
  • Life is like a baby, it has layers.
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #8014 on: June 26, 2014, 09:10:06 am »

What's it supposed to be doing?
Adding a new metal.
Logged
Anyone else here want some kitten leather thongs?
___________________________
"Ye know why it's called "kilt'? 'Cause we kilt anyone who called it "skirt"!"
Yeah, kilts are great!

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #8015 on: June 26, 2014, 09:21:44 am »

Where?

scamtank

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #8016 on: June 26, 2014, 09:22:30 am »

I can't find anything wrong. Does it appear in the arena? Are you modifying the intended set of raws? This is a .txt file you're pushing, right?
Logged

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #8017 on: June 26, 2014, 09:58:42 am »

I can't find anything wrong. Does it appear in the arena? Are you modifying the intended set of raws? This is a .txt file you're pushing, right?
Yes, raw files need to end in .txt (though that does NOT go on the first line inside the file).

Also, I haven't seen color tokens like that before. I think [DISPLAY_COLOR:6:6:2] and [BUILD_COLOR:6:6:3] should be 6:6:1 (yellow on brown) and that you probably meant 2:2:1 (bright green on dark green).
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

deepfreeze78

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #8018 on: June 26, 2014, 10:49:00 am »

Also, I haven't seen color tokens like that before. I think [DISPLAY_COLOR:6:6:2] and [BUILD_COLOR:6:6:3] should be 6:6:1 (yellow on brown) and that you probably meant 2:2:1 (bright green on dark green).

That's probably what it is, because I don't think that anything above 1 is allowed in the third slot.

http://dwarffortresswiki.org/index.php/DF2012:Color#Color_values for more information on the colors.
Logged
Nothing's truly dwarfy until it's been weaponized to kill elves with magma.

FallenAngel

  • Bay Watcher
  • !!x(oᴥo)x!!
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #8019 on: June 26, 2014, 05:06:45 pm »

I've actually never had problems with having something other than 0 or 1 in the third slot.
The game treats any number greater than 1 as 1 when in that slot, as far as I can tell.

bughunter

  • Bay Watcher
  • Life is like a baby, it has layers.
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #8020 on: June 26, 2014, 07:12:51 pm »

Logged
Anyone else here want some kitten leather thongs?
___________________________
"Ye know why it's called "kilt'? 'Cause we kilt anyone who called it "skirt"!"
Yeah, kilts are great!

BossChase

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #8021 on: June 26, 2014, 08:22:25 pm »

I'm trying to make a reaction that will convert 10 random stone into hematite.

Any idea what I need to change? Currently my workshop appears, but the reaction is red and doesn't allow me to produce anything. I think the problem is with y reagent.

Code: [Select]
[REACTION:create_hematite]
[NAME:Hematite]
[BUILDING:CHEAT_WORKSHOP:NONE]
[REAGENT:10:STONE:NO_SUBTYPE:STONE:NO_MATGLOSS]
[PRODUCT:100:20:STONE:NO_SUBTYPE:STONE:hematite]
[FUEL]
[SKILL:SMELT]

Also can I do anything to the product to care hematite blocks?
« Last Edit: June 26, 2014, 08:27:31 pm by BossChase »
Logged

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #8022 on: June 26, 2014, 08:31:26 pm »

Your reagent has no ID. Put something in between REAGENT and 10.

The word hematite in the product line should also probably be in all upper case letters.

To make hematite blocks, the product's item token should be BLOCKS. Or you can go into your stone menu and allow hematite to be used for things other than smelting.
Logged

BossChase

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #8023 on: June 26, 2014, 08:45:12 pm »

Thanks!

Which item in the product line is the token? Is it the 2nd STONE like this?

Code: [Select]
[REACTION:CHEAT_HEMATITE]
[NAME:Hematite]
[BUILDING:CHEAT_WORKSHOP:NONE]
[REAGENT:100:10:STONE:NO_SUBTYPE:STONE:NO_MATGLOSS]
[PRODUCT:100:20:STONE:NO_SUBTYPE:BLOCKS:HEMATITE]
[SKILL:SMELT]

Never mind I believe it was the first stone. I'm trying it out now.
« Last Edit: June 26, 2014, 08:55:53 pm by BossChase »
Logged

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #8024 on: June 26, 2014, 08:47:34 pm »

No, it's the first one.

The product line is organized with PRODUCT:chance to create:amount created:item:item subtype:material:material subtype

So you will want [PRODUCT:100:20:BLOCKS:NO_SUBTYPE:STONE:HEMATITE]
Logged
Pages: 1 ... 533 534 [535] 536 537 ... 544