Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: I need help getting free coke  (Read 1523 times)

quellek2

  • Escaped Lunatic
    • View Profile
I need help getting free coke
« on: June 12, 2010, 03:26:52 pm »

because all of the dealers are WAY too expensive.

But seriously, I keep trying to mod my game to allow to get free coke.

So far i've tried: (in reaction_smelter)
-Removing the reagent and fuel tags from the existing lignite to coke reaction
-Creating a new reaction
-making a new world after each of these
-making sure each reaction is in entity_default

However, i still don't have a create coke option in my smelters... any suggestions?
If you do have an answer, is there a way to do it so that i don't have to make a new world?
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: I need help getting free coke
« Reply #1 on: June 12, 2010, 03:34:55 pm »

Did you regenerate the world?

Did you add the reaction to the list of permitted reactions in the entity_default.txt?

The reaction should be:
Code: [Select]
[REACTION:FREE_COKE_FOR_ALL_COMMIES]
[NAME:make free coke (not drug)]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:1:BAR:NO_SUBTYPE:COAL:COKE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

quellek2

  • Escaped Lunatic
    • View Profile
Re: I need help getting free coke
« Reply #2 on: June 12, 2010, 03:37:26 pm »

Did you regenerate the world?

Did you add the reaction to the list of permitted reactions in the entity_default.txt?

The reaction should be:
Code: [Select]
[REACTION:FREE_COKE_FOR_ALL_COMMIES]
[NAME:make free coke (not drug)]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:1:BAR:NO_SUBTYPE:COAL:COKE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

regenerate the world? no?

yes i did.

and my code is pretty much exactly the same except instead of 100:1 mine has 100:10

I still don't understand why modding the original lignite to coke wouldnt work though :/
Logged

Psieye

  • Bay Watcher
    • View Profile
Re: I need help getting free coke
« Reply #3 on: June 12, 2010, 03:45:33 pm »

Did you edit the default raws, as opposed to the raws of a specific save?
Logged
Military Training EXP Analysis
Congrats, Psieye. This is the first time I've seen a derailed thread get put back on the rails.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: I need help getting free coke
« Reply #4 on: June 12, 2010, 03:51:26 pm »

Psieye is totally right. You probably edited /raw/objects/ while you need to go to /data/save/region*/raw/objects/ to change your existing world.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: I need help getting free coke
« Reply #5 on: June 12, 2010, 03:53:19 pm »

Ninja'd...

but yeah...

There is two spots to edit raws now. There is in the normal location and then there is in the save region raw location.

If you edit the normal raws, your changes won't show until a gen of a new world.

If you edit the save raws, typically your changes should show up.

Code: [Select]
[REACTION:LIGNITE_TO_COKE]
[NAME:make coke from lignite]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:2:BAR:NO_SUBTYPE:COAL:COKE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

This change alone (removal of fuel and reagent) should make it work.

However if you want to make a new reaction...

Code: [Select]
[REACTION:FREE_COKE]
[NAME:Free Coke]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:BAR:NO_SUBTYPE:COAL:COKE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

Then you have to add in the entity_default

[PERMITTED_REACTION:FREE_COKE]

If that's not working, I'm not too sure what to tell you.

We are of course assuming you're running 0.31.01-0.31.06

If you're running 40d, I think it is more or less the same thing (removal of fuel and reagent) but the product line would look different.
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!

quellek2

  • Escaped Lunatic
    • View Profile
Re: I need help getting free coke
« Reply #6 on: June 12, 2010, 03:56:58 pm »

Psieye is totally right. You probably edited /raw/objects/ while you need to go to /data/save/region*/raw/objects/ to change your existing world.

I did it in both actually
Logged

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: I need help getting free coke
« Reply #7 on: June 12, 2010, 05:36:15 pm »

Did you get it working?
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!

Psieye

  • Bay Watcher
    • View Profile
Re: I need help getting free coke
« Reply #8 on: June 12, 2010, 05:55:32 pm »

Assuming it's still not working... do you have a typo? In fact, at this point it's best if you copy paste your code so we can look over it with multiple eyes.
Logged
Military Training EXP Analysis
Congrats, Psieye. This is the first time I've seen a derailed thread get put back on the rails.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: I need help getting free coke
« Reply #9 on: June 12, 2010, 06:13:39 pm »

Or just use the example I provided, it works 100%.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

magikarcher

  • Bay Watcher
  • Competent Poster
    • View Profile
Re: I need help getting free coke
« Reply #10 on: June 15, 2010, 03:12:48 am »

The title of this thread cracks me up. Just saying.
Logged