Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Help with Smelting Cheats  (Read 2492 times)

pulsusego

  • Bay Watcher
    • View Profile
Help with Smelting Cheats
« on: May 03, 2015, 12:43:00 am »

Hello, dwarves of the fortresses, I'm a dirty cheater and I need help! I'm trying to set up the old entity_default/reaction_smelter cheats where you can set up the smelter to produce iron and wood, etc. from nothing. I've done this in two previous versions of DF but I can't seem to get it working now, for some reason. I just want to be able to build a glorious colloseum full of tamed giant lions and giant cave spiders to eat goblins and humans and elves (oh my!), and this along with some forced migration waves is the only way I can see this working without some serious effort, which I'd rather avoid if possible, as I'm sure you all understand. I've looked over the internets to no avail, as the solutions I've found don't seem to relate to this problem, whatever it is. Here's an example of my code:

[REACTION:FREE_STONE]
[NAME:create stone]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:2:ROUGH:NO_SUBTYPE:INORGANIC:GRANITE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]


[REACTION:FREE_WOOD]
[NAME:create wood]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:5:WOOD:NO_SUBTYPE:PLANT_MAT:OAK][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

I've also got the entity_default text properly set up, to my knowledge;

          [PERMITTED_REACTION:FREE_IRON]
   [PERMITTED_REACTION:FREE_WOOD]
   [PERMITTED_REACTION:FREE_STEEL]
   [PERMITTED_REACTION:FREE_RUBY]
   [PERMITTED_REACTION:FREE_SAPPHIRE]
   [PERMITTED_REACTION:FREE_STONE]

Any thoughts?
Logged
I got a high master!!!.... animal caretaker... ****.

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: Help with Smelting Cheats
« Reply #1 on: May 03, 2015, 03:15:02 am »

Put the reagent line back in but set the reagent to NONE:NONE:NONE:NONE should work I think.

Yeah, this should do it:    
[REAGENT:A:0:NONE:NONE:NONE:NONE][DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
« Last Edit: May 03, 2015, 03:16:44 am by Max™ »
Logged

Corona688

  • Bay Watcher
    • View Profile
Re: Help with Smelting Cheats
« Reply #2 on: May 03, 2015, 11:00:06 am »

Wood?  Boring.  If you're going to cheat, cheat with vigor.  Let me know when you're smelting cows.
Logged
You never know when you might need a berserk dwarf to set loose somewhere.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Help with Smelting Cheats
« Reply #3 on: May 03, 2015, 11:05:19 am »

Put the reagent line back in but set the reagent to NONE:NONE:NONE:NONE should work I think.

Yeah, this should do it:    
[REAGENT:A:0:NONE:NONE:NONE:NONE][DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
That will make his reactions require an item to be consumed in order to perform the reaction. If a reaction is already "broken", adding that line will not fix it.

I've done this in two previous versions of DF but I can't seem to get it working now, for some reason.
In what way does it not work? Do the reactions not show up in the workshop? Do dwarves refuse to complete the jobs? Do the jobs complete but fail to produce items? Do they produce items which cannot be used properly?

[REACTION:FREE_STONE]
[NAME:create stone]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:2:ROUGH:NO_SUBTYPE:INORGANIC:GRANITE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]
This is wrong - stone is of type BOULDER, not ROUGH (which is for rough gems). Also, PRODUCT_DIMENSION is meaningless here.

[REACTION:FREE_WOOD]
[NAME:create wood]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:5:WOOD:NO_SUBTYPE:PLANT_MAT:OAK][PRODUCT_DIMENSION:150]
[SKILL:SMELT]
This is also wrong - you haven't specified a valid material (you want PLANT_MAT:OAK:WOOD).

For more information, check the wiki - it has more than enough information to show you how to make correctly-formed custom reactions. Also, check your error log - that FREE_WOOD reaction probably generated some errors which would've given you a clue that something was wrong.
« Last Edit: May 03, 2015, 11:08:17 am by Quietust »
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Delioth

  • Bay Watcher
  • Mass Gauntlet Wizard
    • View Profile
Re: Help with Smelting Cheats
« Reply #4 on: May 03, 2015, 11:12:42 am »

For the wood one you're missing a tag at the end: should be:
[PRODUCT:100:5:WOOD:NO_SUBTYPE:PLANT_MAT:OAK:STRUCTURALWOOD]
Right now it's referencing to an oak tree, but there isn't an actual material that it's set to use- should it use the structural material, the leaves, the roots? Put in that last part and wood should work.

And I think ROUGH points to rough gems, if I'm remembering correctly it is. That should be BOULDER or STONE (Unless you want uncut granite 'gems' from that one.)

Also you might be having a problem with where they are (unlikely since you've done this before, but always check to make sure it's plugged in). Is it in a file in the base RAWs with a proper heading and everything? (I'd just put it in the miscellaneous reactions txt, but that's just me.)


When in doubt, the wiki is your friend.
Damnit Quietust.
Logged
Help us write a story!
We're currently setting the scene and world- characters, civilizations, flora/fauna, cities, places, anything setting!
Products of my Boredom (Old)
Quote from: Shawtay
Delioth, you sir, are a wonderful, wonderful person.
When in doubt, Apply Magma

pulsusego

  • Bay Watcher
    • View Profile
Re: Help with Smelting Cheats
« Reply #5 on: May 03, 2015, 01:31:40 pm »

Okay, I fixed everything that was mentioned above, with the exception of the dimension thing (every single reaction already there has product dimension, so I figured it should stay with the new ones? I'll try removing it but I doubt that will change much either), it still doesn't work though. As far as how it doesn't work, it doesn't show up in the query of the smelter at all, none of the reactions do. Is there a new place the permitted reactions need to be placed or something? I'm not sure what I'm missing.

edit: none of the new reactions, anyway.
Also, the wiki doesn't seem to shed any light either, it's also what I used in the first place to put in these smelting reactions. Figured it would be the same process as in earlier DF's.
« Last Edit: May 03, 2015, 01:44:45 pm by pulsusego »
Logged
I got a high master!!!.... animal caretaker... ****.

Delioth

  • Bay Watcher
  • Mass Gauntlet Wizard
    • View Profile
Re: Help with Smelting Cheats
« Reply #6 on: May 03, 2015, 02:45:57 pm »

The dimension thing doesn't matter- it only really applies to things of variable dimension, like thread, cloth, bars, &c.- Wood or boulders don't have dimensions, so it doesn't do anything.

Again, are you sure everything's in the right place? You're not working in save RAWs, they're in a file with a proper heading, you genned a world for them to work in properly, they're in the right entity (heh... I've done this one plenty of times before.), &c., &c.? Not showing up at all sounds like it's not finding them to put there, and it should find them if it just has a name and a building... It'd probably get screwy without any reagents or products or skills, but it should show up. Try switching your key from none to something like CUSTOM_W or something, just to see if it's messing up there (I don't think it should, but it's possible).
« Last Edit: May 03, 2015, 02:48:29 pm by Delioth »
Logged
Help us write a story!
We're currently setting the scene and world- characters, civilizations, flora/fauna, cities, places, anything setting!
Products of my Boredom (Old)
Quote from: Shawtay
Delioth, you sir, are a wonderful, wonderful person.
When in doubt, Apply Magma

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: Help with Smelting Cheats
« Reply #7 on: May 03, 2015, 03:13:21 pm »

Put the reagent line back in but set the reagent to NONE:NONE:NONE:NONE should work I think.

Yeah, this should do it:    
[REAGENT:A:0:NONE:NONE:NONE:NONE][DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
That will make his reactions require an item to be consumed in order to perform the reaction. If a reaction is already "broken", adding that line will not fix it.
I noticed that I had a tool with preserve reagent in there, but I do know this was crapping out free wood earlier when I tried it:
Code: [Select]
[REACTION:CHOP_WOOD_ADV]
        [NAME:Gather Wood]
        [ADVENTURE_MODE_ENABLED]
        [REAGENT:A:1:WEAPON:ITEM_WEAPON_AXE_BATTLE:NONE:NONE][PRESERVE_REAGENT][DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
        [PRODUCT:100:1:WOOD:NONE:PLANT_MAT:NETHER_CAP:WOOD]
        [SKILL:WOODCUTTING]

Just tested this out too, I gave it a wool cap, it gave me the three rocks and left the cap in my hand:
Code: [Select]
[REACTION:GATHER_ROCKS_ADV]
        [NAME:Gather Rocks]
        [ADVENTURE_MODE_ENABLED]
        [REAGENT:A:0:NONE:NONE:NONE:NONE][DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
        [PRODUCT:100:3:ROCK:GRANITE:NONE:NONE]
        [SKILL:KNAPPING]
Logged

pulsusego

  • Bay Watcher
    • View Profile
Re: Help with Smelting Cheats
« Reply #8 on: May 03, 2015, 03:16:59 pm »

Alright, dimension thing gone.
Every time I alter anything I change both the game's raws and the save's raws.
In a file with a proper heading.. what? Like the [REACTION:BRONZE_MAKING] heading? I believe so?
the right entity also confuses me a bit, I have the permitted reactions as such:
     ...[PERMITTED_REACTION:PEWTER_LAY_MAKING]
   [PERMITTED_REACTION:BLACK_BRONZE_MAKING]
   [PERMITTED_REACTION:STERLING_SILVER_MAKING]
   [PERMITTED_REACTION:ROSE_GOLD_MAKING]
          [PERMITTED_REACTION:FREE_IRON]
   [PERMITTED_REACTION:FREE_WOOD]
   [PERMITTED_REACTION:FREE_STEEL]
   [PERMITTED_REACTION:FREE_RUBY]
   [PERMITTED_REACTION:FREE_SAPPHIRE]
   [PERMITTED_REACTION:FREE_STONE]
It's under [ENTITY:PLAINS] If that's what you mean? But this is where the other permitted reactions are by default.

That's why I'm confused, I don't know why it's not finding anything. In case it helps I'm putting up the actual files themselves, here:https://www.mediafire.com/?9iyn2ofze445z6r It's both the entity default and the reaction smelter files.
Though I did just realize these don't have the Dimension removed yet. I hadn't saved them before uploading them. Anywho, I'm gonna just experiment a bit, try and see if I can't find anything obvious that I'm missing.

Oh, also, I don't know what you mean by CUSTOM_W, that's just my ignorance. I don't actually know the coding for DF very well. Something like EU or HoI I've got, but not this, haha. Thank you for the help, by the way!

edit: trying the stuff from max now, too, just to see if it helps. Thanks!
edit2: adding the reagent didn't do anything, still not recognized by the smelter.
« Last Edit: May 03, 2015, 03:27:58 pm by pulsusego »
Logged
I got a high master!!!.... animal caretaker... ****.

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: Help with Smelting Cheats
« Reply #9 on: May 03, 2015, 03:28:23 pm »

Well fartknuckles.
Logged

pulsusego

  • Bay Watcher
    • View Profile
Re: Help with Smelting Cheats
« Reply #10 on: May 03, 2015, 03:29:36 pm »

Well fartknuckles.

I couldn't have put it better myself.
Logged
I got a high master!!!.... animal caretaker... ****.

Dozebôm Lolumzalìs

  • Bay Watcher
  • what even is truth
    • View Profile
    • test
Re: Help with Smelting Cheats
« Reply #11 on: May 03, 2015, 04:21:03 pm »

Are you sure that ENTITY:PLAINS is correct?
Logged
Quote from: King James Programming
...Simplification leaves us with the black extra-cosmic gulfs it throws open before our frenzied eyes...
Quote from: Salvané Descocrates
The only difference between me and a fool is that I know that I know only that I think, therefore I am.
Sigtext!

pulsusego

  • Bay Watcher
    • View Profile
Re: Help with Smelting Cheats
« Reply #12 on: May 03, 2015, 04:26:45 pm »

No, no I'm not at all, it's just where all the other default permitted reactions were before I came along and added anything at all.
Logged
I got a high master!!!.... animal caretaker... ****.

Klisz

  • Bay Watcher
  • Dabbling Modder
    • View Profile
Re: Help with Smelting Cheats
« Reply #13 on: May 03, 2015, 04:58:02 pm »

ENTITY:PLAINS is the human civilization. You need to put it under ENTITY:MOUNTAIN for it to be available to dwarves.
Logged

pulsusego

  • Bay Watcher
    • View Profile
Re: Help with Smelting Cheats
« Reply #14 on: May 03, 2015, 05:12:16 pm »

.... HAHAHAHAHAHAHAHAHAHAH

HAHAHA

...

AHAHAHAHAHAHHA

I'm checking now.

Despite the feelings of idiocy I'm currently feeling, I'd like to thank you all for the help you've given me. I've at least fixed other problems I wouldn't have noticed beyond the Entity problems. I appreciate all of the help!
« Last Edit: May 03, 2015, 05:22:42 pm by pulsusego »
Logged
I got a high master!!!.... animal caretaker... ****.
Pages: [1] 2