Bay 12 Games Forum

Dwarf Fortress => DF Modding => Topic started by: Loctavus on June 16, 2008, 01:54:13 am

Title: Iron Weed Help
Post by: Loctavus on June 16, 2008, 01:54:13 am
I am working on an alternative source of iron. This was just to see how possible it was, and I think it almost is. The basis of it is growing plants that are eventually smelted in a reasonable quantity to produce a bar.

Here is the plant and reaction. It's not available to dwarves directly, as it is a surface plant. I was playing humans though so I was able to buy it.

I bought it, grew it and brewed it.

[MATGLOSS_PLANT:WEED_IRON]
[TILE:'i'][COLOR:0:0:1]
[NAME:iron weed][NAME_PLURAL:iron weeds]
[VALUE:2]
[DRINK:iron brew:0:0:1]
[DRINKVALUE:2]
[SEED:4:0:1]
[GENPOWER:2]
[AUTUMN][WINTER]
[FREQUENCY:100]
[CLUSTERSIZE:5]
[BIOME:NOT_FREEZING]
[PREFSTRING:hard leaves]
[WET][DRY]

[REACTION:WEED_IRON_MAKING]
[NAME:make iron bars from weed]
[SMELTER]
[REAGENT:10:PLANT:NO_SUBTYPE:WEED_IRON:PLANT]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:IRON]
[FUEL]

The plant obviously works, I've not really been able to test being able to find it in the wild yet, but the biome is pretty broad.

Something is wrong with the REAGENT line of the reaction, it doesn't show up on my smelter and that was the best approximation I could come up with. Any help would be appriciated.
Title: Re: Iron Weed Help
Post by: Kagus on June 16, 2008, 02:33:06 am
First of all, the smelter is a real pisser when it comes to plants or animals.  It's really just not worth the time and energy spent trying to point to the right thing on the list. 

Second, the smelter cannot detect something that is contained inside of a barrel or bag.  If you put the plants in a barrel, the smelter wouldn't be able to find them (the dwarven smelter, like the dwarves themselves, is not an intelligent beast).
Title: Re: Iron Weed Help
Post by: Loctavus on June 16, 2008, 03:55:23 am
Rats, time for my fall back then, industrial animals...
Title: Re: Iron Weed Help
Post by: Deon on June 16, 2008, 10:22:06 am
For plants material id = id number in the raws. To if your plant is not in the basic raw file and is out of material numbers range you can't use your plant. Try to fit into rules.
Title: Re: Iron Weed Help
Post by: Loctavus on June 16, 2008, 10:38:53 am
It's in the matgloss_plant.txt file.

So you're saying i'd need

[REAGENT:10:PLANT:NO_SUBTYPE:xxx]

where xxx is the numerical id of my plant then? DF counters seem to start with one.

With the problem about barrels and other such bits I'm about giving up on this though, it was a nice idea.
Title: Re: Iron Weed Help
Post by: Deon on June 16, 2008, 10:44:26 am
No, it's something like [REAGENT:10:PLANT:NO_SUBTYPE:WOOD:NO_MATGLOSS] (this is for plant #1)

The relative IDs in exe are:
1   WOOD
2   STONE
3   METAL
4   BONE
5   IVORY
6   HORN
7   AMBER
8   CORAL
9   PEARL
10   SHELL
11   LEATHER
12   SILK
13   PLANT_ALCOHOL
14   GLASS_GREEN
15   GLASS_CLEAR
16   GLASS_CRYSTAL
17   SAND
18   COAL
19   POTASH
20   ASH
21   PEARLASH
22   LYE
23   RENDERED_FAT
24   SOAP_ANIMAL
25   FAT
26   MUD
27   VOMIT
28   BLOOD_NONSPECIFIC
29   BLOOD_SPECIFIC
30   SLIME
31   SALT
32   FILTH_B
33   FILTH_Y
34   UNKNOWN_SUBSTANCE
35   GRIME

So, 35 plants max total in reactions.
Title: Re: Iron Weed Help
Post by: THLawrence on June 16, 2008, 10:45:22 am
This is what you currently have:
[REAGENT:10:PLANT:NO_SUBTYPE:WEED_IRON:PLANT]

Iron weed is not a matgloss class. PLANT is.
This is what you should have:
[REAGENT:10:PLANT:NO_SUBTYPE:PLANT:WEED_IRON]
Title: Re: Iron Weed Help
Post by: Deon on June 16, 2008, 11:08:16 am
Quote
[REAGENT:10:PLANT:NO_SUBTYPE:PLANT:WEED_IRON]
It is not working in DF.
Title: Re: Iron Weed Help
Post by: Sean Mirrsen on June 16, 2008, 02:14:33 pm
You could use thread or cloth from the plant though. Or indeed any object made from the plant. So thresh it first and then use the thread.

Also, "iron brew"? You mean like that "energy drink"? It only just hit me what it meant. :)
Title: Re: Iron Weed Help
Post by: Wiles on June 16, 2008, 02:53:54 pm
I think you can only use plant products if they aren't stored in a barrel or bag.
Title: Re: Iron Weed Help
Post by: Loctavus on June 16, 2008, 03:30:11 pm
Well, rope reed thread is stored in bins, so I think you have something there. Let me try this.

[REACTION:WEED_IRON_MAKING]
[NAME:make iron bars from weed]
[SMELTER]
[REAGENT:10:THREAD:NO_SUBTYPE:PLANT:WEED_IRON]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:IRON]
[FUEL]

[MATGLOSS_PLANT:WEED_IRON]
[TILE:'i'][COLOR:0:0:1]
[NAME:iron weed][NAME_PLURAL:iron weeds]
[VALUE:2]
[DRINK:iron brew:0:0:1]
[DRINKVALUE:2]
[SEED:4:0:1]
[GENPOWER:2]
[THREAD]
[AUTUMN][WINTER]
[FREQUENCY:100]
[CLUSTERSIZE:5]
[BIOME:NOT_FREEZING]
[PREFSTRING:hard leaves]
[WET][DRY]

I'm still a novice at this reaction stuff though, so your help is much appriciated all of you. Going to try it now.

And yes, I did mean like the energy drink  ;D
Title: Re: Iron Weed Help
Post by: Deon on June 17, 2008, 03:53:25 am
This should work properly. I didn't check it for typos though -).

Quote
[NAME:make iron bars from weed]
Your dwarves should be strongly stoned to do this... :2)
Title: Re: Iron Weed Help
Post by: Sean Mirrsen on June 17, 2008, 03:57:08 am
Yeah, probably "extract iron from ironweed thread" would be better, if a bit long.
Title: Re: Iron Weed Help
Post by: Loctavus on June 17, 2008, 04:11:54 am
It didn't work, but I like your extract idea. Perhaps I could make a metal bar of 'weed extract' from each leaf, and smelt ten of those into iron.
Title: Re: Iron Weed Help
Post by: Sean Mirrsen on June 17, 2008, 05:14:14 am
Wait, what do you mean "didn't work"? It should have worked!

The reactions can reference plant thread, the carbon fibers on my minerals mod are proof of this!
Title: Re: Iron Weed Help
Post by: Loctavus on June 17, 2008, 07:28:29 am
I'll try it again, but I made a whole fortress just to test it and the reaction never showed up in the smelter, even when I had enough weed.

Could you show me the reaction you made that you were talking about?

Definately doesn't work. I took 20 rolls of iron weed thread and charcoal out with me and built a smelter in the wilds. Definately won't let me make iron out of the thread.
Title: Re: Iron Weed Help
Post by: Sean Mirrsen on June 17, 2008, 08:43:33 am
Uh, did you try to look in the manager for the job?

Sometimes the thing gets glitchy. The manager has all available jobs listed. They should appear, and then the dwarves'll tell you what exactly is missing.
Title: Re: Iron Weed Help
Post by: Deon on June 17, 2008, 09:59:53 am
Also did you remake the whole world to test the thing?
Title: Re: Iron Weed Help
Post by: pushy on June 17, 2008, 10:50:01 am
I'll try it again, but I made a whole fortress just to test it and the reaction never showed up in the smelter, even when I had enough weed.
When you say this, did you just have "iron weed", or "iron weed thread"? Assuming nothing's changed from the smelter reaction you posted earlier, you have to take the iron weed and process it into thread at a Farmer's Workshop, same as if you were making pig tail thread or rope reed thread for clothesmaking :) The smelter reaction is looking for thread made of iron weed ;)
Title: Re: Iron Weed Help
Post by: Loctavus on June 17, 2008, 02:45:17 pm
Definately had the thread, fuel and a smelter. I've not tried it through the manager though. I'll try that maybe.

Ok, I added it in the manager.

It shows up on the manager and the smelter itself.

However there's no job on the job list for it, and certainly nobody has bothered to lift a finger to attend to it. No cancellations, nobody really seems to care at all and most of them have 'no job' inlcuding the three that have furnace duty designated.

Mind you, the same thing happened when I ordered some mechanisms, what's going wrong there?
Title: Re: Iron Weed Help
Post by: Sean Mirrsen on June 17, 2008, 03:44:05 pm
You sure you have some furnace operators?
Title: Re: Iron Weed Help
Post by: Loctavus on June 17, 2008, 06:58:17 pm
Three, one I brought with me and two I designated when the first guy didn't wake up and do his job.
Title: Re: Iron Weed Help
Post by: Sean Mirrsen on June 17, 2008, 11:07:46 pm
Btw, how much iron weed did you take? The reaction says 10, but that's not 10 "units" it's 10 "stacks".
Title: Re: Iron Weed Help
Post by: Loctavus on June 18, 2008, 01:44:34 am
The reaction now uses thread, which doesn't stack and is stored in bins. I took twenty rolls of thread. I also have a fortress that physically made about 35. Neither could be persuaded to smelt them.

To double check, this is the current reaction :

[REACTION:WEED_IRON_MAKING]
[NAME:make iron bars from weed]
[SMELTER]
[REAGENT:10:THREAD:NO_SUBTYPE:PLANT:WEED_IRON]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:IRON]
[FUEL]

and this is the weed:

[MATGLOSS_PLANT:WEED_IRON]
[TILE:'i'][COLOR:0:0:1]
[NAME:iron weed][NAME_PLURAL:iron weeds]
[VALUE:2]
[DRINK:iron brew:0:0:1]
[DRINKVALUE:2]
[SEED:4:0:1]
[GENPOWER:2]
[THREAD]
[AUTUMN][WINTER]
[FREQUENCY:100]
[CLUSTERSIZE:5]
[BIOME:NOT_FREEZING]
[PREFSTRING:hard leaves]
[WET][DRY]
Title: Re: Iron Weed Help
Post by: Sean Mirrsen on June 18, 2008, 02:52:21 am
Alright, I'll shove it into a game and see how it works out.
Title: Re: Iron Weed Help
Post by: Sean Mirrsen on June 18, 2008, 03:08:34 am
Works fine for me.

(http://i30.tinypic.com/2j35naf.jpg)

(checking if multipost merging was implemented...)
(guess it wasn't)
Title: Re: Iron Weed Help
Post by: Deon on June 18, 2008, 06:31:57 am
Loctavus, you didn't answer, DID YOU regenerated a new world with this reaction to work?
It works fine for me too.
Title: Re: Iron Weed Help
Post by: Loctavus on June 18, 2008, 10:00:43 am
I thought I had but I must have changed something in the mean time.

It works!

Okay, I have now and it honestly does work now. Thanks for your help all of you, and I apologise if I came across as impatient  :(

If anyone wants to add these, please do.

Also, Sean what screen size setup are you using? I really don't like the oblong characters of the default resolution I'm using.
Title: Re: Iron Weed Help
Post by: Deon on June 18, 2008, 01:00:52 pm
I suppose it's Dystopian graphics tileset.
Title: Re: Iron Weed Help
Post by: Sean Mirrsen on June 18, 2008, 03:27:56 pm
Nope, Herrbdog's 12x12.
Title: Re: Iron Weed Help
Post by: Kagus on June 18, 2008, 04:57:04 pm
Sorry, thread hijack, but it's somewhat along the same lines.

Sean, I just came across a peasant in your mod who was wearing graphite fiber sandals.  As cool as that might be, they kind clashed with his rope reed socks.