Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Cheat Mods >.>  (Read 3051 times)

Briggs

  • Bay Watcher
    • View Profile
Cheat Mods >.>
« on: March 15, 2012, 03:55:52 pm »

So in previous versions of DF, when I just wanted to goof around, I could modify the files so that my Smelter could spit our Adamantine or Iron or Steel with no input needed.

However, those edits do not seem to be working anymore. Does anyone know of a way to get this to work again? :(
Logged

darklord92

  • Bay Watcher
  • [CREATURE:SERGALNORTH]
    • View Profile
Re: Cheat Mods >.>
« Reply #1 on: March 15, 2012, 04:02:28 pm »

could you post the reaction raws?

also did you add the permission tokens to the entity files?
Logged
Form walking potato man out of corpse. Absorb anyone else in the house.
We have a successful derail.
The Vilous Mod - Jingle berries!

dree12

  • Bay Watcher
    • View Profile
Re: Cheat Mods >.>
« Reply #2 on: March 15, 2012, 04:02:47 pm »

So in previous versions of DF, when I just wanted to goof around, I could modify the files so that my Smelter could spit our Adamantine or Iron or Steel with no input needed.

However, those edits do not seem to be working anymore. Does anyone know of a way to get this to work again? :(
You are probably modding the global raws, in DF's raw/objects folder. Try modding the world raws, located in data/save/world/raw/objects.
Logged

Briggs

  • Bay Watcher
    • View Profile
Re: Cheat Mods >.>
« Reply #3 on: March 15, 2012, 04:04:28 pm »

Unfortunately I am at work right now. Just was thinking about DF and had a spare moment. I'll post the reaction raws when I get home. Will also make sure I allowed the reactions.
Logged

Alexander86

  • Bay Watcher
    • View Profile
Re: Cheat Mods >.>
« Reply #4 on: March 15, 2012, 04:21:46 pm »

Wouldn't he have to regen if he was editing the reaction raws?
Logged

BigD145

  • Bay Watcher
    • View Profile
Re: Cheat Mods >.>
« Reply #5 on: March 15, 2012, 04:40:01 pm »

I think it's fine if you put them in existing buildings. I think you do have to add them to the entity, though.
Logged

Briggs

  • Bay Watcher
    • View Profile
Re: Cheat Mods >.>
« Reply #6 on: March 16, 2012, 07:11:11 am »

So I made sure the permissions were in entity_default as well as the reactions in reaction_smelter, still no go. Below are the entries.

reaction_smelter:

[REACTION:FREE_ADAMANTINE_WAFERS]
[NAME:create adamantine wafers]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:BAR:NO_SUBTYPE:METAL:ADAMANTINE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

[REACTION:FREE_ADAMANTINE_THREAD]
[NAME:create adamantine thread]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:1:THREAD:NO_SUBTYPE:METAL:ADAMANTINE][PRODUCT_DIMENSION:15000]
[SKILL:SMELT]

[REACTION:FREE_IRON]
[NAME:create iron]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:IRON][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

[REACTION:FREE_STEEL]
[NAME:create steel]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:STEEL][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

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

entity_default:
[PERMITTED_REACTION:FREE_IRON]
   [PERMITTED_REACTION:FREE_STEEL]
   [PERMITTED_REACTION:FREE_ADAMANTINE_THREAD]
   [PERMITTED_REACTION:FREE_ADAMANTINE_WAFERS]
   [PERMITTED_REACTION:FREE_WOOD]
Logged

Kogut

  • Bay Watcher
  • Next account: Bulwersator
    • View Profile
Re: Cheat Mods >.>
« Reply #7 on: March 16, 2012, 07:13:32 am »

Make sure that you changed global raws and create a new world + check errorlog.
Logged
The worst bug - 34.11 poll
Tired of going decades without goblin sieges? Try The Fortress Defense Mod
Kogut, the Bugfixes apostle of Bay12forum. Every posts he makes he preaches about the evil of Bugs.

Briggs

  • Bay Watcher
    • View Profile
Re: Cheat Mods >.>
« Reply #8 on: March 16, 2012, 07:21:11 am »

Generated a new world after adding those entries. Only errors in errorlog are a few pathing errors for some aquatic creatures.
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Cheat Mods >.>
« Reply #9 on: March 16, 2012, 09:41:13 am »

A few notes:
1. There is no METAL material type - you should be using INORGANIC. It only works because the raw parser has a special case to treat METAL as INORGANIC.
2. The product dimension for thread should be 10000, not 15000.
3. Wood logs don't have a product dimension.
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.

Briggs

  • Bay Watcher
    • View Profile
Re: Cheat Mods >.>
« Reply #10 on: March 17, 2012, 10:55:29 pm »

A few notes:
1. There is no METAL material type - you should be using INORGANIC. It only works because the raw parser has a special case to treat METAL as INORGANIC.
2. The product dimension for thread should be 10000, not 15000.
3. Wood logs don't have a product dimension.

Still no good. I also noted, in reference to 1 that the default entries for the metal smelting has "METAL" instead of "INORGANIC"
Logged

Radiant_Phoenix

  • Bay Watcher
  • [CREATURE_CLASS:MODDER]
    • View Profile
Re: Cheat Mods >.>
« Reply #11 on: March 17, 2012, 11:15:16 pm »

So, things I would check if you haven't already:
  • Did you add the reaction to the right entity? i.e., did you make sure you added it to Dwarves and not, say... elves?
  • Did you add the reaction to the right place in the entity? i.e., did you make sure you didn't put it in the middle of a position definition? (not sure if that would do it)
  • Are the reactions showing up at all? If not, do any of the normal reactions from the same raw file appear? If not, does the file begin with reaction_* and "[OBJECT:REACTION]"?
  • Did you generate a new world after altering entity_*.txt?
  • Did you edit the raw files in the correct location? This would be {DF directory}/raw/objects/{filename} if you're going to generate a new world (which you are)
Logged