Bay 12 Games Forum

Please login or register.

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

Author Topic: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.  (Read 13131 times)

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.
« Reply #30 on: February 16, 2013, 08:02:46 pm »

No.

Item tokens are the first two things in the REAGENT; what you want is this:

[REAGENT:A:1:PLANT:NONE:NONE:NONE]

The reagent article on the wiki says as much.

Eggman360

  • Bay Watcher
    • View Profile
    • Green Gel Mod
Re: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.
« Reply #31 on: February 16, 2013, 08:06:14 pm »

oh for the love of....

lol

Right, I'll get right on that, man it gets annoying having to change one line of text, delete your old world and gen a new pocket world just to test one reaction...and to have it go wrong xD lol.

Thank you for your patience and insight Putnam :)

****EDIT**** i have that page open now and re-reading it I have to say sorry, it all seems so clear now ive looked into it and understand the structure and how tags refere to each other.

on the reagents page for example the line
"item token: The type (and subtype) of the item you require" was greek to me when i read it first off. Now i think i get it :)
« Last Edit: February 16, 2013, 08:13:31 pm by Eggman360 »
Logged
Victory Smells So Sweet...It smells like Green Gel and Plump Helmets Mixed Together....

Eggman360

  • Bay Watcher
    • View Profile
    • Green Gel Mod
Re: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.
« Reply #32 on: February 16, 2013, 08:17:37 pm »

Right, so i have the Building, i have a reaction that grabs a plant item and takes it to the workshop, now it's problem time.

The dwarf carried a 5 item stack to the workshop, started working with the plant..... and the game crashed after a coupe of seconds, i think the game game doesn't like something I'm doing. :(

[REACTION:PLANTS_TO_GREEN]
   [NAME:Make green gel]
   [BUILDING:BOILING_POT:CUSTOM_A]
   [REAGENT:A:1:PLANT:NONE:NONE:NONE]
   [PRODUCT:100:1:TOOL:ITEM_GEL:PLANT_MAT:GREEN:STRUCTURAL] <----This line seems very...unusual to me :S
   [SKILL:COOK]
Logged
Victory Smells So Sweet...It smells like Green Gel and Plump Helmets Mixed Together....

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.
« Reply #33 on: February 16, 2013, 08:21:23 pm »

Post the tool.

Eggman360

  • Bay Watcher
    • View Profile
    • Green Gel Mod
Re: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.
« Reply #34 on: February 16, 2013, 08:23:51 pm »

I have both a tool and a plant made.
(Reaction)
************
[REACTION:PLANTS_TO_GREEN]
   [NAME:Make green gel]
   [BUILDING:BOILING_POT:CUSTOM_A]
   [REAGENT:A:1:PLANT:NONE:NONE:NONE]
   [PRODUCT:100:1:TOOL:ITEM_GEL:PLANT_MAT:GREEN:STRUCTURAL]
   [SKILL:COOK]
************
(Tool) <--- Pasted into the "item_tool.txt" file
************
[ITEM_TOOL:GEL]
[NAME:gel:gel]
[HARD_MAT]
[EDIBLE_VERMIN]
[EDIBLE_RAW]
[EDIBLE_COOKED]
************
(Plant) <--- pasted in the "plant_standard.txt"
************
[PLANT:GREEN]
   [NAME:green][NAME_PLURAL:greens][ADJ:green]
   [USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]
   [MATERIAL_VALUE:2]
   [BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]
   [EDIBLE_VERMIN]
   [EDIBLE_RAW]
   [EDIBLE_COOKED]
   [PICKED_TILE:161][PICKED_COLOR:6:13:0]
   [GROWDUR:300][VALUE:2]
************

Do i not need a "[PRODUCT_DIMENSION:X]" Value?
« Last Edit: February 16, 2013, 08:29:12 pm by Eggman360 »
Logged
Victory Smells So Sweet...It smells like Green Gel and Plump Helmets Mixed Together....

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.
« Reply #35 on: February 16, 2013, 08:26:32 pm »

The name you declared for your ITEM_TOOL is "GEL".  But you tried to reference it in the reaction as if its name were "ITEM_GEL".  Do you not have something in your error log like "ITEM_GEL does not actually exist"?

Tool tokens are here
http://dwarffortresswiki.org/index.php/DF2012:Tool_token
See how "EDIBLE_VERMIN" doesn't appear on that list?  That means, don't put it on a tool, it doesn't make any sense.

Plants - never mind, looks like you just accidentally double pasted the tool at first so my orginal comment doesn't apply :)
« Last Edit: February 16, 2013, 08:36:34 pm by smakemupagus »
Logged

Eggman360

  • Bay Watcher
    • View Profile
    • Green Gel Mod
Re: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.
« Reply #36 on: February 16, 2013, 08:28:10 pm »

Damn, the error log is spammed with;

*** Error(s) found in the file "data/save/region1/raw/objects/item_tool.txt"
GEL:Unrecognized Item Token: EDIBLE_VERMIN
GEL:Unrecognized Item Token: EDIBLE_RAW
GEL:Unrecognized Item Token: EDIBLE_COOKED

over and over, :/ this is a mess by the looks of it :(

Should i change;
[PRODUCT:100:1:TOOL:ITEM_GEL:PLANT_MAT:GREEN:STRUCTURAL]
to
[PRODUCT:100:1:TOOL:GEL:PLANT_MAT:GREEN:STRUCTURAL]
?
« Last Edit: February 16, 2013, 08:31:04 pm by Eggman360 »
Logged
Victory Smells So Sweet...It smells like Green Gel and Plump Helmets Mixed Together....

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.
« Reply #37 on: February 16, 2013, 08:30:45 pm »

Those go in the material, not the item.

http://dwarffortresswiki.org/index.php/Item_definition_token
http://dwarffortresswiki.org/index.php/Material_definition_token

If you want it edible, you want it to be a plant or cheese or something, not a tool.

Eggman360

  • Bay Watcher
    • View Profile
    • Green Gel Mod
Re: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.
« Reply #38 on: February 16, 2013, 08:32:21 pm »

Right, so should I delete the tool thing, and just have it as a plant called "Green Gel" or something?

i don't have anything invested in it being a plant or anything specific all my green gel needs to be is

Edible
Craftable
and
be able to be used as a reagent later.

Having it as a "Cheese" seems like it would be simpler?
« Last Edit: February 16, 2013, 08:35:38 pm by Eggman360 »
Logged
Victory Smells So Sweet...It smells like Green Gel and Plump Helmets Mixed Together....

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.
« Reply #39 on: February 16, 2013, 08:36:08 pm »

it would be as simple as replacing TOOL:GEL with PLANT:NONE or CHEESE:NONE and changing the name of the material to "green gel".

Eggman360

  • Bay Watcher
    • View Profile
    • Green Gel Mod
Re: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.
« Reply #40 on: February 16, 2013, 08:43:56 pm »

it would be as simple as replacing TOOL:GEL with PLANT:NONE or CHEESE:NONE and changing the name of the material to "green gel".

i see, i'd like to change the product into a single specific item, because once i have that Gel, i then need to write about a dozen "pretty much the same" reactions to turn the Gel into other plants. What ever would make this more straight forward. I'd rather do all the hard work and complicated typing now than have to do it 20 times later lol.

im just worried that when it comes time to make the next reaction it will need to be so specific, or even worse, not specific enough and the dwarves will use "any type of cheese" instead of the green Gel.

Ideally what i want is (this is obviously over simplified)

Reaction, building blah blah
        Reagent:-1x Plump Helmet (just a normal Plump helmet, like one harvested in a farm plot)
        Product:- 1x Green gel

Then once the dwarves have the gel....

Reaction, building blah blah
        Reagent:-2x Green gel (only green gels accepted)
        Product:- 1x Plump Helmet (just a normal Plump helmet, just like one harvested in a farm plot)

the other reactions would be;

Reaction, building blah blah
        Reagent:-2x Green gel (only green gels accepted)
        Product:- 1x Pig Tail (just a normal Pig Tail, just like one harvested in a farm plot, so it can be turned into thread)

One for every plant, and maybe i'll make one like;

Reaction, building blah blah
        Reagent:-10x Green gel (only green gels accepted)
        Product:- 1x Fungiwood Log (or something like that, a way to make wood)

Is any of this this even possible? lol
« Last Edit: February 16, 2013, 09:02:06 pm by Eggman360 »
Logged
Victory Smells So Sweet...It smells like Green Gel and Plump Helmets Mixed Together....

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.
« Reply #41 on: February 16, 2013, 09:03:30 pm »

That would be a lot of copy+pasting, mostly. Just make the reagent pretty much identical to the product of the one that makes the green gel and you'll be good.

That's not even remotely oversimplified, btw.

   [NAME:Turn green gel into plump helmets] Name of reaction.
   [BUILDING:BOILING_POT:CUSTOM_P] Press "p" in the boiling pot's 'q' screen to use this reaction.
   [REAGENT:A:2:PLANT:NONE:PLANT_MAT:GREEN:STRUCTURAL] Uses 2 green gel (assuming green gel is a plant at this point)
   [PRODUCT:100:1:PLANT:NONE:PLANT_MAT:MUSHROOM_HELMET_PLUMP:STRUCTURAL] Makes 1 plump helmet.
   [SKILL:COOK]

Copy paste that a few times and then you're pretty much done with those reactions.

Eggman360

  • Bay Watcher
    • View Profile
    • Green Gel Mod
Re: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.
« Reply #42 on: February 16, 2013, 09:06:52 pm »

EURIKA!!!!!!!!

it works!!

I just turned a strawberry and a root into two gels, then turned those into one plump helmet.

the only issue that remains is guess what, the gel is a plant, so it tries to used gel to make another gel :/ lol, is there a way to make a reaction ignore a specific item?
« Last Edit: February 16, 2013, 09:45:53 pm by Eggman360 »
Logged
Victory Smells So Sweet...It smells like Green Gel and Plump Helmets Mixed Together....

Eggman360

  • Bay Watcher
    • View Profile
    • Green Gel Mod
Re: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.
« Reply #43 on: February 16, 2013, 09:38:46 pm »

EUREKA!!!!!!!!!!!!!!!!!

It works! but we're not out of the woods yet, there is one small unforseen snag...

by using the;

[REAGENT:A:1:PLANT:NONE:NONE:NONE]

line....it uses one green to make one green :/ lol, is there a way to tell a reaction to ignore one item?
Logged
Victory Smells So Sweet...It smells like Green Gel and Plump Helmets Mixed Together....

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I'm working on a "Soylent Green"-ish mod, but need a few pointers please.
« Reply #44 on: February 16, 2013, 09:51:20 pm »

No

maybe the tool was a good idea...
Pages: 1 2 [3] 4 5 6