Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Region Raws  (Read 563 times)

Mortesphere

  • Bay Watcher
    • View Profile
Region Raws
« on: April 23, 2010, 10:29:14 am »

I want to make a reaction at the smelter which allows you to generate Gold from nothing. Can I do this from editing the region raws, or do I have to edit the main raws and then gen a new region, or am I doing something wrong here?


Code: [Select]
[REACTION:MAKE_GOLD_BARS_2]
[NAME:generate gold bars]
[BUILDING:SMELTER:CUSTOM_SHIFT_G]
[REAGENT:A:1:NONE:NONE:NONE:NONE]
[PRODUCT:100:1:GOLD:NO_SUBTYPE:METAL:GOLD][PRODUCT_DIMENSION:150]
[SKILL:SMELT]


I'm really new at modding DF. Am I missing variables or something?


Currently, nothing shows up at the smelter.
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Region Raws
« Reply #1 on: April 23, 2010, 10:52:15 am »

You have to change some existing reaction. When you generate a world, all the reactions form some array and are called from there, so if you add a new reaction, it doesn't exist for the game.

However if you change some existing reaction (like MAKE_FINE_PEWTER), you can make it to work.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

EuchreJack

  • Bay Watcher
  • Lord of Norderland - Lv 20 SKOOKUM ROC
    • View Profile
Re: Region Raws
« Reply #2 on: April 23, 2010, 01:08:54 pm »

I've actually been wondering if that is true.  The raws are now copied when a world is created and stored in the save.  So, in theory one could just copy the new raws (which includes reactions) into the save, and BOOM, new reactions.  Excuse me while I test this....

EDIT: Theory disproven.  When a world is created, the reactions are set into the world.  While it is possible to assign reactions to a civilization that it did not previously have (even in the middle of fortress mode), that reaction must have existed at world creation.  A shame, but it makes sense in that if the world is not one where lead can be turned into gold initially, the laws of physics will not change later on to accomidate the player.

By the way, why did you want to create gold from nothing?  Gold is almost useless in Dwarf Fortress...

Mortesphere

  • Bay Watcher
    • View Profile
Re: Region Raws
« Reply #3 on: April 23, 2010, 05:33:47 pm »

Lol no it's not.

It's about as extravagant as you can get. I'm building a huge gold tower.
Logged

Lazureus

  • Bay Watcher
  • Perfection is Flawed
    • View Profile
Re: Region Raws
« Reply #4 on: April 23, 2010, 07:42:07 pm »

you will want to remove the Regent line as you don't need one.
Logged
Current modding project:Tyranids 2010
Past modding projects:
DF2010: Crematorium
40d: ‼TYRANIDS‼
Quote from: Dark Pegasus
Just when I thought I couldn't despise him any more... He finds a whole new and undiscovered way!!