Bay 12 Games Forum

Please login or register.

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

Author Topic: Maklak's Crop Table data script  (Read 3699 times)

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Maklak's Crop Table data script
« on: May 09, 2013, 03:34:30 pm »

I posted a table of crops in the FoE mod and you asked me if I had a script or if I did it manually. I now kinda have a script, but it is still a work in progress. This is the ouptut for Masterwork v2i. Looking at it, I need to sanitize some missing values. I also plan to have separate tables for aboveground and underground plants. Biofuel will disappear from the tables if if doesn't exist in the mod. I also plan on automatically generating hints and colouring some values (very low or very high). Hm, STALK_WOOD appears to be duplicated, so I wonder what's with that. Also, HELL_TREE_ARMOK, SHADE_THORN, HELL_PLANT_ARMOK, HELL_TREE, CRYSTAL_TREE, GLASS_THORN and are probably trees or "artifficial" wood. Do you have any other comments? I want to error-proof my crawler enough so it works OK for most mods.



Crop table:
   
Name
ID
ValueGrowsSeasonsEatCookBrew (Value)BiofuelProducts (Value)Hints
giants essence
GIANT_STRENGTH_POTION
2YesYesgiant strength potion (100)No
LEAF: large lachmate leaves (1)
TODO
wood stalk
STALK_WOOD
275All yearNoNostalk whisky (2)NoN/ATODO
wood stalk
STALK_WOOD
275All yearNoNostalk whisky (2)NoN/ATODO
taiga pear
FRUIT_PEAR_BOREAL
475Autumn Winter YesYesorcish pear cider (4)No
EXTRACT(Barrel): pear sauce (8)
TODO
icicle mint
HERB_MINT_BOREAL
675Autumn Winter YesYesNoNo
LEAF: icicle mint leaves (6)
EXTRACT(Flask): icicle mint oil (20)
TODO
winter bloodberry
BERRIES_BOREAL
475Autumn Winter YesYesNoNo
DYE: scarlet bloodberry dye (24)
EXTRACT(Barrel): bloodberry jelly (16)
TODO
boreal tuber
VEGETABLE_POTATO_BOREAL
675Autumn Winter NoYesorcish tuber vodka (6)No
DYE: indigo tuber dye (30)
TODO
armok's thorntree
HELL_TREE_ARMOK
50NoNoNoNoN/ATODO
shade thorn
SHADE_THORN
35NoNoNoNoN/ATODO
zombie flower
FLOWER_ZOMBIE_R
3336All yearNoNoNoNo
FLOUR: zombie powder (1)
TODO
whip vine
VINE_WHIP
284Spring Summer Autumn NoNowhip wine (3)No
FLOUR: whip vine flour (25)
TODO
valley herb
HERB_VALLEY
584Spring Summer Autumn NoYesNoNo
EXTRACT(Flask): golden salve (100)
TODO
tree sapling
TREE_SMALL
1336All yearNoNoNoNoN/ATODO
sweet pod
POD_SWEET
2336All yearNoNodwarven rum (2)No
SUGAR: dwarven sugar (20)
CANDY: sweet pod candy (20)
EXTRACT(Barrel): dwarven syrup (20)
TODO
sun berry
BERRY_SUN
384Spring Summer Autumn YesYessunshine (5)NoN/ATODO
strawberry
BERRIES_STRAW_WILD
284Spring Summer Autumn YesYesstrawberry wine (2)NoN/ATODO
steeloak sapling
STEELOAK_SMALL
20336All yearNoNoNoNoN/ATODO
sliver barb
SLIVER_BARB
284Spring Summer Autumn NoNogutter cruor (2)No
DYE: sliver dye (20)
TODO
shadowleaf bush
shadowleaf bush
2336All yearYesYesNoNo
LEAF: shadowleaf bush leaves (2)
EXTRACT(Barrel): shadowleaf poison (25)
OIL: shadowleaf oil (7)
SOAP: shadowleaf soap (7)
PRESSED: shadowleaf seed press cake (1)
TODO
skull frond
SKULL_FRONDS_R
2336All yearNoNoskull juice (3)No
EXTRACT(Barrel): skull essence (1)
TODO
rope reed
REED_ROPE
284Spring Summer Autumn NoNoriver spirits (2)No
THREAD: rope reed thread (2)
TODO
rat weed
WEED_RAT
284Spring Summer Autumn YesYessewer brew (2)NoN/ATODO
quarry bush
BUSH_QUARRY
2336All yearNoNoNoNo
LEAF: quarry bush leaves (5)
OIL: rock nut oil (5)
SOAP: rock nut soap (5)
PRESSED: rock nut press cake (2)
TODO
prickle berry
BERRIES_PRICKLE
284Spring Summer Autumn YesYesprickle berry wine (2)NoN/ATODO
plump helmet
MUSHROOM_HELMET_PLUMP
2336All yearYesYesdwarven wine (2)NoN/ATODO
pig tail
GRASS_TAIL_PIG
2336All yearNoNodwarven ale (2)No
THREAD: pig tail thread (2)
OIL: pig tail oil (5)
SOAP: pig tail soap (5)
TODO
orchid
FLOWER_ORCHID_SPITTING
2All yearNoYesNoNo
EXTRACT(Flask): orchid fragrance (20)
TODO
nether vine
NETHER_VINE
5336All yearNoNonether wine (10)NoN/ATODO
nether creeper
NETHER_CREEPER
5336All yearNoNonether grour (2)NoN/ATODO
nether-cap sapling
NETHER_CAP_SMALL
1336All yearNoNoNoNoN/ATODO
muck root
ROOT_MUCK
2336All yearYesYesswamp whiskey (2)NoN/ATODO
longland grass
GRASS_LONGLAND
284Spring Summer Autumn NoNolongland beer (2)No
FLOUR: longland flour (20)
TODO
lichfinger
LICHFINGER_R
2336All yearNoYesNoNo
FLOUR: lich meal (1)
TODO
kobold bulb
BULB_KOBOLD
284Spring Summer Autumn NoNoNoNo
EXTRACT(Flask): gnomeblight (100)
TODO
ironbark sapling
IRONWOOD_SMALL
10336All yearNoNoNoNoN/ATODO
hide root
ROOT_HIDE
284Spring Summer Autumn NoNoNoNo
DYE: hide root dye (10)
OIL: hide root oil (5)
TODO
fungiwood sapling
FUNGIWOOD_SMALL
1336All yearNoNoNoNoN/ATODO
fisher berry
BERRIES_FISHER
284Spring Summer Autumn YesYesfisher berry wine (2)NoN/ATODO
dimple cup
MUSHROOM_CUP_DIMPLE
2336All yearNoNoNoNo
DYE: dimple dye (20)
TODO
devil mushroom
HELL_PLANT
10336All yearYesYeshell wine (10)NoN/ATODO
cave wheat
GRASS_WHEAT_CAVE
2336All yearNoNodwarven beer (2)No
FLOUR: cave wheat flour (15)
TODO
corpsetongue
CORPSETOUNGE_R
2336All yearNoNocorpse wine (2)NoN/ATODO
bone bush
BUSH_BONE_R
2336All yearNoYesessence of marrow (2)No
FLOUR: bone bush meal (1)
TODO
bloated tuber
TUBER_BLOATED
284Spring Summer Autumn YesYestuber beer (2)NoN/ATODO
blade weed
WEED_BLADE
284Spring Summer Autumn NoNoNoNo
DYE: emerald dye (20)
TODO
bitterroot
bitterroot
284Spring Summer Autumn NoNoNoNo
EXTRACT(Barrel): bitterroot poison (25)
TODO
armok's shroom
HELL_PLANT_ARMOK
50YesYesarmok's wine (50)NoN/ATODO
devil thorn
HELL_TREE
10NoNoNoNoN/ATODO
crystal tree
CRYSTAL_TREE
1NoNoNoNoN/ATODO
glass thorn
GLASS_THORN
1NoNoNoNoN/ATODO

« Last Edit: May 09, 2013, 03:41:31 pm by smakemupagus »
Logged

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Maklak's Plants data script
« Reply #1 on: May 09, 2013, 03:37:23 pm »

That's awesome!

I think that STALK_WOOD are duplicated because they appear in Kobold and Orc mode but not Dwarf.  So there is a copy of it in each of the mode-exclusive plant raws.

Is it possible to have it extract the biomes, surface/cave and good/normal/evil status?

Maklak

  • Bay Watcher
    • View Profile
Re: Maklak's Crop Table data script
« Reply #2 on: May 09, 2013, 04:18:16 pm »

What do you mean by offtopic? The topic was "Ask me anything," so I did :P 

Well, I didn't want to start a separate thread, because once I got all the functionality going and clean up the code enough not to be too embarrassed about it, I'll post it in the modding section for everyone to see and use. The automatic hint generator is probably going to be a ?fun? part and take a while. This is what I want it to look like: http://www.bay12forums.com/smf/index.php?topic=118893.msg4117958#msg4117958 For now, the clours and hints are added manually. After that there is going to be code cleanup and possibly suggestions.

I had my crawler read "Dwarf Fortress/raw/objects/*", so there really shouldn't be any duplicated RAWs. 

> Is it possible to have it extract the biomes, surface/cave and good/normal/evil status?
I currently separate by aboveground and subterranean, but see a point in adding a column for the Good, Evil, Savage, Neutral. Or just list all the biomes and surroundings by their tags, but that could be long. Hm, there's a lot of them: http://dwarffortresswiki.org/index.php/Biome_tokens Currently I assume "SUBTERRANEAN_" to be underground only and everything else to be surface only. I took a lot of short-cuts like that.

I don't want to have too many columns. Maybe I should combine edible raw and cooked.

If the plants are used for specific reactions, I can print that too. This is what biofuel does, in FoE mod it means alcohol strong enough to burn and has this token: [REACTION_CLASS:PONY_LIVE_BOOZE]. This stuff is mod-specific, but I guess if Masterwork got it's own place on the forum, I can go that extra mile with it too :)

I suppose you could also ask me for a table with animals, their sizes, PET(_EXOTIC), GRAZER, type (vermin, animal, robot, whatever), but I'm not working on it now. I just have things like printing tables in bbcode and reading RAWs done, so putting together another table is a matter of hours, not days.

BTW, I very slightly cheated in the last version of what I put on the forums, but not in anything relevant.

EDIT: I checked the STALK_WOOD anyway:
grep -l "STALK_WOOD" *
plant_kobold.txt
plant_orcfort.txt
reaction_kobold.txt
reaction_orcfort.txt
Yep, it's duplicated in kobold and orc files. That's OK, though. My script takes files to read as parameters, so you will be able to do things like
$ trees.pl `ls *kobold*`
or whatever.
« Last Edit: May 09, 2013, 04:29:51 pm by Maklak »
Logged
Quote from: Omnicega
Since you seem to criticize most things harsher than concentrated acid, I'll take that as a compliment.
On mining Organics
Military guide for FoE mod.
Research: Crossbow with axe and shield.
Dropbox referral

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Maklak's Crop Table data script
« Reply #3 on: May 09, 2013, 04:44:00 pm »

I suppose you could also ask me for a table with animals, their sizes, PET(_EXOTIC), GRAZER, type (vermin, animal, robot, whatever), but I'm not working on it now. I just have things like printing tables in bbcode and reading RAWs done, so putting together another table is a matter of hours, not days.

I did in fact think of asking that but didn't want to be too greedy :D

Already I will use the info from your table to make an Orcish Boreal Plants table on wiki; having the data presented so nicely to look at in bbcode already makes it very nice to quickly copy to a wiki format table.  ... once you have the code cleaned up and posted as you say, maybe I or someone else can tweak it to directly output wikicode.

Maklak

  • Bay Watcher
    • View Profile
Re: Maklak's Crop Table data script
« Reply #4 on: May 09, 2013, 05:40:44 pm »

Already I will use the info from your table to make an Orcish Boreal Plants table on wiki; having the data presented so nicely to look at in bbcode already makes it very nice to quickly copy to a wiki format table.  ... once you have the code cleaned up and posted as you say, maybe I or someone else can tweak it to directly output wikicode.


I currently only output txt / csv (which really isn't csv yet, since products are separated by commas too) and bbcode. I planned for html too, but didn't look up the tags yet. Wiki output is a good idea too. Output is going to be handled by an option that sets a bunch of global varaibles. Kinda stupid, but simple. If you can tell me what those would be for the wiki code or html, that would speed things up. You know, since you either know the wiki tags already or will look them up.
Code: [Select]
    $header = ""; # used for html header
    $brow = "  [table][tr][td]"; # begin table row
    $erow = "[/td][/tr][/table] \n"; # end table row
    $td = " "; # separate columns
    $tds = "  "; # separate columns, using a hidden column for extra space
    $btb = "[table][tr][td][center]\n ";  # begin table
    $etb = "[/center]\n"; # end table.
    $bstb = "[table][tr][td]"; # begin sub-table Sub-tables are used for more control over vertical space.
    $estb = "[/td][/tr][/table]"; # end sub-table
    $stbs = "[/td][/tr] [tr][td]"; # sub-table row separator
    $bbold = "[b]"; # begin bold
    $ebold = "[/b]"; # end bold
    $bgreen = "[color=lime]"; # begin green
    $bred = "[color=red]"; # begin red
    $ecolor = "[/color]"; # end colour
    $bbig = "[size=12pt]"; # begin big font
    $ebig = "[/size]"; # end big font
    $hr = "[hr]\n"; # horizontal separator

EDIT: Well, that certainly looked interesting unquoted.
« Last Edit: May 09, 2013, 05:42:38 pm by Maklak »
Logged
Quote from: Omnicega
Since you seem to criticize most things harsher than concentrated acid, I'll take that as a compliment.
On mining Organics
Military guide for FoE mod.
Research: Crossbow with axe and shield.
Dropbox referral

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Maklak's Crop Table data script
« Reply #5 on: May 09, 2013, 08:20:01 pm »

Code: [Select]
$brow = |-
$tdh = !             #begin table column in the header row
$td = |
$btb = {| class="wikitable sortable"
$etb = |}

$bbold = '''
$ebold = '''

There's no special character to end cells or rows, and I don't know how to do colors :)

Maklak

  • Bay Watcher
    • View Profile
Re: Maklak's Crop Table data script
« Reply #6 on: May 10, 2013, 02:29:09 am »

That doesn't help me much. I can't leave tags undefined, they need to be "" at least. This has some info http://en.wikipedia.org/wiki/Help:Table, but I'm not even sure, I'll be able to keep the same structure as for bbcode. Wiki uses rowspan to achieve the same effect I use subtables for and I think html does too, so I may need to rethink how I print the tables. I may end up just making a filtered list of plants and having separate subs for different output types. I'll also be busy for a few days, so don't expect anything soon.

Is there a place I could paste my wikitables and see what happens? I can test html just by opening it in a browser.
Logged
Quote from: Omnicega
Since you seem to criticize most things harsher than concentrated acid, I'll take that as a compliment.
On mining Organics
Military guide for FoE mod.
Research: Crossbow with axe and shield.
Dropbox referral

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Maklak's Crop Table data script
« Reply #7 on: May 10, 2013, 02:39:02 am »

Your own user page on a wiki is a good place to use as a test page.

Maklak

  • Bay Watcher
    • View Profile
Re: Maklak's Crop Table data script
« Reply #8 on: May 12, 2013, 08:41:19 pm »

Dfhack # getplants commands for easy designating tree cutting and plant gathering:

Aboveground bushes: (only edible, cookable or brewable)
# getplants STALK_WOOD STALK_WOOD FRUIT_PEAR_BOREAL HERB_MINT_BOREAL BERRIES_BOREAL VEGETABLE_POTATO_BOREAL VINE_WHIP HERB_VALLEY BERRY_SUN BERRIES_STRAW_WILD SLIVER_BARB REED_ROPE WEED_RAT BERRIES_PRICKLE FLOWER_ORCHID_SPITTING GRASS_LONGLAND BERRIES_FISHER TUBER_BLOATED

Aboveground trees:
# getplants MANGROVE SAGUARO PINE CEDAR OAK MAPLE WILLOW ALDER PALM

Underground bushes: (only edible, cookable or brewable)
# getplants GIANT_STRENGTH_POTION POD_SWEET shadowleaf bush SKULL_FRONDS_R BUSH_QUARRY MUSHROOM_HELMET_PLUMP GRASS_TAIL_PIG NETHER_VINE NETHER_CREEPER ROOT_MUCK LICHFINGER_R HELL_PLANT GRASS_WHEAT_CAVE CORPSETOUNGE_R BUSH_BONE_R HELL_PLANT_ARMOK

Underground trees:
# getplants BLACK_CAP NETHER_CAP FUNGIWOOD_REAL POISON_CAP

Aboveground crop table:
   
Name
 ID
ValueGrowsSeasonsAlignEat
 Cook
Brew (Value)BiofuelProducts (Value)Hints
wood stalk
 STALK_WOOD
275All yearAllNo
 No
stalk whisky (2)NoN/ATODO
wood stalk
 STALK_WOOD
275All yearAllNo
 No
stalk whisky (2)NoN/ATODO
taiga pear
 FRUIT_PEAR_BOREAL
475Autumn Winter AllYes
 Yes
orcish pear cider (4)NoEXTRACT(Barrel): pear sauce (8)
 
TODO
icicle mint
 HERB_MINT_BOREAL
675Autumn Winter AllYes
 Yes
N/ANoLEAF: icicle mint leaves (6)
 EXTRACT(Flask): icicle mint oil (20)
 
TODO
winter bloodberry
 BERRIES_BOREAL
475Autumn Winter AllYes
 Yes
N/ANoDYE: scarlet bloodberry dye (24)
 EXTRACT(Barrel): bloodberry jelly (16)
 
TODO
boreal tuber
 VEGETABLE_POTATO_BOREAL
675Autumn Winter AllNo
 Yes
orcish tuber vodka (6)NoDYE: indigo tuber dye (30)
 
TODO
whip vine
 VINE_WHIP
284Spring Summer Autumn Savage No
 Pr.
whip wine (3)NoFLOUR: whip vine flour (25)
 
TODO
valley herb
 HERB_VALLEY
584Spring Summer Autumn AllNo
 Yes
N/ANoEXTRACT(Flask): golden salve (100)
 
TODO
tree sapling
 TREE_SMALL
1336All yearAllNo
 No
N/ANoN/ATODO
sun berry
 BERRY_SUN
384Spring Summer Autumn Good Yes
 Yes
sunshine (5)NoN/ATODO
strawberry
 BERRIES_STRAW_WILD
284Spring Summer Autumn AllYes
 Yes
strawberry wine (2)NoN/ATODO
steeloak sapling
 STEELOAK_SMALL
20336All yearAllNo
 No
N/ANoN/ATODO
sliver barb
 SLIVER_BARB
284Spring Summer Autumn Evil No
 No
gutter cruor (2)NoDYE: sliver dye (20)
 
TODO
rope reed
 REED_ROPE
284Spring Summer Autumn AllNo
 No
river spirits (2)NoTHREAD: rope reed thread (2)
 
TODO
rat weed
 WEED_RAT
284Spring Summer Autumn AllYes
 Yes
sewer brew (2)NoN/ATODO
prickle berry
 BERRIES_PRICKLE
284Spring Summer Autumn AllYes
 Yes
prickle berry wine (2)NoN/ATODO
orchid
 FLOWER_ORCHID_SPITTING
20All yearAllNo
 Yes
N/ANoEXTRACT(Flask): orchid fragrance (20)
 
TODO
longland grass
 GRASS_LONGLAND
284Spring Summer Autumn AllNo
 Pr.
longland beer (2)NoFLOUR: longland flour (20)
 
TODO
kobold bulb
 BULB_KOBOLD
284Spring Summer Autumn AllNo
 No
N/ANoEXTRACT(Flask): gnomeblight (100)
 
TODO
ironbark sapling
 IRONWOOD_SMALL
10336All yearAllNo
 No
N/ANoN/ATODO
hide root
 ROOT_HIDE
284Spring Summer Autumn AllNo
 No
N/ANoDYE: hide root dye (10)
 OIL: hide root oil (5)
 
TODO
fisher berry
 BERRIES_FISHER
284Spring Summer Autumn AllYes
 Yes
fisher berry wine (2)NoN/ATODO
bloated tuber
 TUBER_BLOATED
284Spring Summer Autumn AllYes
 Yes
tuber beer (2)NoN/ATODO
blade weed
 WEED_BLADE
284Spring Summer Autumn AllNo
 No
N/ANoDYE: emerald dye (20)
 
TODO
bitterroot
 bitterroot
284Spring Summer Autumn AllNo
 No
N/ANoEXTRACT(Barrel): bitterroot poison (25)
 
TODO




Underground crop table:
   
Name
 ID
ValueGrowsSeasonsAlignEat
 Cook
Brew (Value)BiofuelProducts (Value)Hints
giants essence
 GIANT_STRENGTH_POTION
20NoneEvil Savage Good Yes
 Yes
giant strength potion (100)NoLEAF: large lachmate leaves (1)
 
TODO
armok's thorntree
 HELL_TREE_ARMOK
500NoneAllNo
 No
N/ANoN/ATODO
shade thorn
 SHADE_THORN
350NoneAllNo
 No
N/ANoN/ATODO
zombie flower
 FLOWER_ZOMBIE_R
3336All yearAllNo
 No
N/ANoFLOUR: zombie powder (1)
 
TODO
sweet pod
 POD_SWEET
2336All yearAllNo
 Pr.
dwarven rum (2)NoSUGAR: dwarven sugar (20)
 CANDY: sweet pod candy (20)
 EXTRACT(Barrel): dwarven syrup (20)
 
TODO
shadowleaf bush
 shadowleaf bush
2336All yearAllYes
 Yes
N/ANoLEAF: shadowleaf bush leaves (2)
 EXTRACT(Barrel): shadowleaf poison (25)
 OIL: shadowleaf oil (7)
 SOAP: shadowleaf soap (7)
 PRESSED: shadowleaf seed press cake (1)
 
TODO
skull frond
 SKULL_FRONDS_R
2336All yearAllNo
 No
skull juice (3)NoEXTRACT(Barrel): skull essence (1)
 
TODO
quarry bush
 BUSH_QUARRY
2336All yearAllNo
 Pr.
N/ANoLEAF: quarry bush leaves (5)
 OIL: rock nut oil (5)
 SOAP: rock nut soap (5)
 PRESSED: rock nut press cake (2)
 
TODO
plump helmet
 MUSHROOM_HELMET_PLUMP
2336All yearAllYes
 Yes
dwarven wine (2)NoN/ATODO
pig tail
 GRASS_TAIL_PIG
2336All yearAllNo
 No
dwarven ale (2)NoTHREAD: pig tail thread (2)
 OIL: pig tail oil (5)
 SOAP: pig tail soap (5)
 
TODO
nether vine
 NETHER_VINE
5336All yearAllNo
 No
nether wine (10)NoN/ATODO
nether creeper
 NETHER_CREEPER
5336All yearAllNo
 No
nether grour (2)NoN/ATODO
nether-cap sapling
 NETHER_CAP_SMALL
1336All yearAllNo
 No
N/ANoN/ATODO
muck root
 ROOT_MUCK
2336All yearAllYes
 Yes
swamp whiskey (2)NoN/ATODO
lichfinger
 LICHFINGER_R
2336All yearAllNo
 Yes
N/ANoFLOUR: lich meal (1)
 
TODO
fungiwood sapling
 FUNGIWOOD_SMALL
1336All yearAllNo
 No
N/ANoN/ATODO
dimple cup
 MUSHROOM_CUP_DIMPLE
2336All yearAllNo
 No
N/ANoDYE: dimple dye (20)
 
TODO
devil mushroom
 HELL_PLANT
10336All yearAllYes
 Yes
hell wine (10)NoN/ATODO
cave wheat
 GRASS_WHEAT_CAVE
2336All yearAllNo
 Pr.
dwarven beer (2)NoFLOUR: cave wheat flour (15)
 
TODO
corpsetongue
 CORPSETOUNGE_R
2336All yearAllNo
 No
corpse wine (2)NoN/ATODO
bone bush
 BUSH_BONE_R
2336All yearAllNo
 Yes
essence of marrow (2)NoFLOUR: bone bush meal (1)
 
TODO
armok's shroom
 HELL_PLANT_ARMOK
500NoneAllYes
 Yes
armok's wine (50)NoN/ATODO
devil thorn
 HELL_TREE
100NoneAllNo
 No
N/ANoN/ATODO
crystal tree
 CRYSTAL_TREE
10NoneAllNo
 No
N/ANoN/ATODO
glass thorn
 GLASS_THORN
10NoneAllNo
 No
N/ANoN/ATODO





Not much progress overall. I added html output. Wiki is next and I'm thinking about LaTeX. I also changed some things around / fixed a few bugs. Alignment for plants is not too exciting; only the vanilla plants and strength potion (which is not a plant at all, so I should work on filtering it out) have anything but "All" in there. Combining the columns for Edible Cooked and Edible RAW was probably a bad idea, so I guess I'll separate them again. Biofuel column is still in, so its automatic removal is still on the TODO list. The hints aren't done. In #getplants for plant gathering I now put only the plants that can be eaten, cooked, brewed or cooked processed, so it will get rid of dye only plants. Another thing on the TODO list are actual options and their processing. Probably just print help, output type and optional output file for now. Removing duplicate plant might look better, but it's probably better to just keep them, so the modder can spot this easily.

Let me know what getplants filters you'd find useful.

For now I'm still using this old thread. I got Masterwork RAWs v3a. Now I can't feed all the files to my script because there is a script inside the "rew/objects" directory called "RandCreatures.kpl" that screws me up, so I just use "*.txt" for glob. I don't even plan on looking into this problem and assume the users will provide sane input. 

I think "shadowleaf bush" has the wrong ID. It is two words and not capitalised. This is valid for DF, but against the convention.

When I get around to writing animaldump.pl what would be useful?
ID, Name, Size, Type {Animal, Robot, Vermin}, Petvalue, Pet / Pet_Exotic, Trainable War / Hunting, Natural Skills, Syndrome (Yes / No only, I'd need to write more code for details)
Is there anything else important? Or is there anything unimportant here?
Logged
Quote from: Omnicega
Since you seem to criticize most things harsher than concentrated acid, I'll take that as a compliment.
On mining Organics
Military guide for FoE mod.
Research: Crossbow with axe and shield.
Dropbox referral

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Maklak's Crop Table data script
« Reply #9 on: May 12, 2013, 09:12:16 pm »

Quote
ID, Name, Size, Type {Animal, Robot, Vermin}, Petvalue, Pet / Pet_Exotic, Trainable War / Hunting, Natural Skills, Syndrome (Yes / No only, I'd need to write more code for details)
Is there anything else important? Or is there anything unimportant here?

Sounds great!  Maybe: 
Milkable, Shearable, Grazer-value?

p.s.
Thanks :)
http://dwarffortresswiki.org/index.php/Masterwork:Orcish_plants
« Last Edit: May 13, 2013, 03:35:05 pm by smakemupagus »
Logged

Maklak

  • Bay Watcher
    • View Profile
Re: Maklak's Crop Table data script
« Reply #10 on: May 20, 2013, 03:19:29 pm »

I screwed around with it some more, but it's still unfinished. The numbers after the name are the plant's score (how good this is) and hopefully make sense. Value is coloured by comparing it to median. Grows (in days) and seasons are coloured by median yield, but for some reason nothing remained uncoloured. Oh well. Biofuel isn't shown unless it is used by the mod (which it isn't by masterwork). Still on the TODO list are colouring products, hints, wiki output, program options, printing help and code cleanup.  Hints are going to be the trickiest part. I can easily divide the tables by subterrean / aboveground, but not for this iteration. Do you have any feedback?

Crop table:
   
Name
 ID
ValueGrowsSeasonsEatCookBrew (Value)Products (Value)Hints
giants essence(2)
 GIANT_STRENGTH_POTION
20N/A? NoneYesYesgiant strength potion (100) (Cook)LEAF: large lachmate leaves (1)
 
TODO
wood stalk(4)
 STALK_WOOD
275All yearNoNostalk whisky (2) (Cook)N/ATODO
wood stalk(4)
 STALK_WOOD
275All yearNoNostalk whisky (2) (Cook)N/ATODO
taiga pear(6)
 FRUIT_PEAR_BOREAL
475Autumn Winter YesYesorcish pear cider (4)EXTRACT(Barrel): pear sauce (8)
 
TODO
icicle mint(6)
 HERB_MINT_BOREAL
675Autumn Winter YesYesN/ALEAF: icicle mint leaves (6)
 EXTRACT(Flask): icicle mint oil (20)
 
TODO
winter bloodberry(4)
 BERRIES_BOREAL
475Autumn Winter YesYesN/ADYE: scarlet bloodberry dye (24)
 EXTRACT(Barrel): bloodberry jelly (16)
 
TODO
boreal tuber(6)
 VEGETABLE_POTATO_BOREAL
675Autumn Winter NoYesorcish tuber vodka (6) (Cook)DYE: indigo tuber dye (30)
 
TODO
armok's thorntree(2)
 HELL_TREE_ARMOK
500N/A? NoneNoNoN/AN/ATODO
shade thorn(2)
 SHADE_THORN
350N/A? NoneNoNoN/AN/ATODO
zombie flower(-2)
 FLOWER_ZOMBIE_R
3336All yearNoNoN/AFLOUR: zombie powder (1)
 
TODO
whip vine(6)
 VINE_WHIP
284Spring Summer Autumn NoPr.whip wine (3)FLOUR: whip vine flour (25)
 
TODO
valley herb(4)
 HERB_VALLEY
584Spring Summer Autumn NoYesN/AEXTRACT(Flask): golden salve (100)
 
TODO
tree sapling(-6)
 TREE_SMALL
1336All yearNoNoN/AN/ATODO
sweet pod(-4)
 POD_SWEET
2336All yearNoPr.dwarven rum (2)SUGAR: dwarven sugar (20)
 CANDY: sweet pod candy (20)
 EXTRACT(Barrel): dwarven syrup (20)
 
TODO
sun berry(6)
 BERRY_SUN
384Spring Summer Autumn YesYessunshine (5)N/ATODO
strawberry(2)
 BERRIES_STRAW_WILD
284Spring Summer Autumn YesYesstrawberry wine (2)N/ATODO
steeloak sapling(-2)
 STEELOAK_SMALL
20336All yearNoNoN/AN/ATODO
sliver barb(2)
 SLIVER_BARB
284Spring Summer Autumn NoNogutter cruor (2)DYE: sliver dye (20)
 
TODO
shadowleaf bush(-4)
 shadowleaf bush
2336All yearYesYesN/ALEAF: shadowleaf bush leaves (2)
 EXTRACT(Barrel): shadowleaf poison (25)
 OIL: shadowleaf oil (7)
 SOAP: shadowleaf soap (7)
 PRESSED: shadowleaf seed press cake (1)
 
TODO
skull frond(-2)
 SKULL_FRONDS_R
2336All yearNoNoskull juice (3) (Cook)EXTRACT(Barrel): skull essence (1)
 
TODO
rope reed(4)
 REED_ROPE
284Spring Summer Autumn NoNoriver spirits (2)THREAD: rope reed thread (2)
 
TODO
rat weed(2)
 WEED_RAT
284Spring Summer Autumn YesYessewer brew (2)N/ATODO
quarry bush(-4)
 BUSH_QUARRY
2336All yearNoPr.N/ALEAF: quarry bush leaves (5)
 OIL: rock nut oil (5)
 SOAP: rock nut soap (5)
 PRESSED: rock nut press cake (2)
 
TODO
prickle berry(2)
 BERRIES_PRICKLE
284Spring Summer Autumn YesYesprickle berry wine (2)N/ATODO
plump helmet(-4)
 MUSHROOM_HELMET_PLUMP
2336All yearYesYesdwarven wine (2)N/ATODO
pig tail(-4)
 GRASS_TAIL_PIG
2336All yearNoNodwarven ale (2)THREAD: pig tail thread (2)
 OIL: pig tail oil (5)
 SOAP: pig tail soap (5)
 
TODO
orchid(0)
 FLOWER_ORCHID_SPITTING
20N/A? All yearNoYesN/AEXTRACT(Flask): orchid fragrance (20)
 
TODO
nether vine(0)
 NETHER_VINE
5336All yearNoNonether wine (10) (Cook)N/ATODO
nether creeper(-2)
 NETHER_CREEPER
5336All yearNoNonether grour (2) (Cook)N/ATODO
nether-cap sapling(-6)
 NETHER_CAP_SMALL
1336All yearNoNoN/AN/ATODO
muck root(-4)
 ROOT_MUCK
2336All yearYesYesswamp whiskey (2)N/ATODO
longland grass(2)
 GRASS_LONGLAND
284Spring Summer Autumn NoPr.longland beer (2)FLOUR: longland flour (20)
 
TODO
lichfinger(-4)
 LICHFINGER_R
2336All yearNoYesN/AFLOUR: lich meal (1)
 
TODO
kobold bulb(2)
 BULB_KOBOLD
284Spring Summer Autumn NoNoN/AEXTRACT(Flask): gnomeblight (100)
 
TODO
ironbark sapling(-2)
 IRONWOOD_SMALL
10336All yearNoNoN/AN/ATODO
hide root(2)
 ROOT_HIDE
284Spring Summer Autumn NoNoN/ADYE: hide root dye (10)
 OIL: hide root oil (5)
 
TODO
fungiwood sapling(-6)
 FUNGIWOOD_SMALL
1336All yearNoNoN/AN/ATODO
fisher berry(2)
 BERRIES_FISHER
284Spring Summer Autumn YesYesfisher berry wine (2)N/ATODO
dimple cup(-4)
 MUSHROOM_CUP_DIMPLE
2336All yearNoNoN/ADYE: dimple dye (20)
 
TODO
devil mushroom(0)
 HELL_PLANT
10336All yearYesYeshell wine (10)N/ATODO
cave wheat(-4)
 GRASS_WHEAT_CAVE
2336All yearNoPr.dwarven beer (2)FLOUR: cave wheat flour (15)
 
TODO
corpsetongue(-4)
 CORPSETOUNGE_R
2336All yearNoNocorpse wine (2) (Cook)N/ATODO
bone bush(-4)
 BUSH_BONE_R
2336All yearNoYesessence of marrow (2) (Cook)FLOUR: bone bush meal (1)
 
TODO
bloated tuber(2)
 TUBER_BLOATED
284Spring Summer Autumn YesYestuber beer (2)N/ATODO
blade weed(2)
 WEED_BLADE
284Spring Summer Autumn NoNoN/ADYE: emerald dye (20)
 
TODO
bitterroot(2)
 bitterroot
284Spring Summer Autumn NoNoN/AEXTRACT(Barrel): bitterroot poison (25)
 
TODO
armok's shroom(4)
 HELL_PLANT_ARMOK
500N/A? NoneYesYesarmok's wine (50)N/ATODO
devil thorn(2)
 HELL_TREE
100N/A? NoneNoNoN/AN/ATODO
crystal tree(-2)
 CRYSTAL_TREE
10N/A? NoneNoNoN/AN/ATODO
glass thorn(-2)
 GLASS_THORN
10N/A? NoneNoNoN/AN/ATODO

Logged
Quote from: Omnicega
Since you seem to criticize most things harsher than concentrated acid, I'll take that as a compliment.
On mining Organics
Military guide for FoE mod.
Research: Crossbow with axe and shield.
Dropbox referral

Maklak

  • Bay Watcher
    • View Profile
Re: Maklak's Crop Table data script
« Reply #11 on: May 24, 2013, 04:18:25 pm »

I'm pretty close to being done. All that's left is final tweaks to colouring and hints (lots of messy code), wiki output and some code cleanup. These tables include some debug output. For example the numbers after the name represent how useful that plant seems. If there is something wrong with this, please let me know.



Dfhack # getplants commands for easy designating tree cutting and plant gathering:

Aboveground bushes: (only edible, cookable or brewable)
# getplants STALK_WOOD STALK_WOOD FRUIT_PEAR_BOREAL HERB_MINT_BOREAL BERRIES_BOREAL VEGETABLE_POTATO_BOREAL VINE_WHIP HERB_VALLEY BERRY_SUN BERRIES_STRAW_WILD SLIVER_BARB REED_ROPE WEED_RAT BERRIES_PRICKLE FLOWER_ORCHID_SPITTING GRASS_LONGLAND BERRIES_FISHER TUBER_BLOATED

Aboveground trees:
# getplants MANGROVE SAGUARO PINE CEDAR OAK MAPLE WILLOW ALDER PALM

Underground bushes: (only edible, cookable or brewable)
# getplants GIANT_STRENGTH_POTION POD_SWEET shadowleaf bush SKULL_FRONDS_R BUSH_QUARRY MUSHROOM_HELMET_PLUMP GRASS_TAIL_PIG NETHER_VINE NETHER_CREEPER ROOT_MUCK LICHFINGER_R HELL_PLANT GRASS_WHEAT_CAVE CORPSETOUNGE_R BUSH_BONE_R HELL_PLANT_ARMOK

Underground trees:
# getplants BLACK_CAP NETHER_CAP FUNGIWOOD_REAL POISON_CAP


Median yield:1.62 Best yield:4.48 Median value:2 Median drink:2 Median dye:20 Median flour:17.5 Median leaves:5 Median thread:2

Aboveground crop table:
 
Name
 ID
ValueGrowsSeasonsYieldEatCookBrew (Value) (Cook)Products (Value)Hints
wood stalk (4)
 STALK_WOOD
275All year4.48NoNostalk whisky (2) (Y)N/ABrew
wood stalk (4)
 STALK_WOOD
275All year4.48NoNostalk whisky (2) (Y)N/ABrew
taiga pear (4)
 FRUIT_PEAR_BOREAL
475Autumn Winter 2.24YesYesorcish pear cider (4)EXTRACT(Barrel): pear sauce (8)
 
Brew
icicle mint (4)
 HERB_MINT_BOREAL
675Autumn Winter 2.24YesYesN/ALEAF: icicle mint leaves (6)
 
EXTRACT(Flask): icicle mint oil (20)
 
Leaves
winter bloodberry (2)
 BERRIES_BOREAL
475Autumn Winter 2.24YesYesN/ADYE: scarlet bloodberry dye (24)
 
EXTRACT(Barrel): bloodberry jelly (16)
 
Cook
boreal tuber (4)
 VEGETABLE_POTATO_BOREAL
675Autumn Winter 2.24NoYesorcish tuber vodka (6) (Y)DYE: indigo tuber dye (30)
 
Brew
whip vine (6)
 VINE_WHIP
284Spring Summer Autumn 3.00NoPr.whip wine (3)FLOUR: whip vine flour (25)
 
Brew Mill
valley herb (4)
 HERB_VALLEY
584Spring Summer Autumn 3.00NoYesN/AEXTRACT(Flask): golden salve (100)
 
Cook
tree sapling (-6)
 TREE_SMALL
1336All year1.00NoNoN/AN/A--
sun berry (6)
 BERRY_SUN
384Spring Summer Autumn 3.00YesYessunshine (5)N/ABrew
strawberry (2)
 BERRIES_STRAW_WILD
284Spring Summer Autumn 3.00YesYesstrawberry wine (2)N/ABrew
steeloak sapling (-2)
 STEELOAK_SMALL
20336All year1.00NoNoN/AN/A--
sliver barb (2)
 SLIVER_BARB
284Spring Summer Autumn 3.00NoNogutter cruor (2)DYE: sliver dye (20)
 
Brew
rope reed (4)
 REED_ROPE
284Spring Summer Autumn 3.00NoNoriver spirits (2)THREAD: rope reed thread (2)
 
Thread
rat weed (2)
 WEED_RAT
284Spring Summer Autumn 3.00YesYessewer brew (2)N/ABrew
prickle berry (2)
 BERRIES_PRICKLE
284Spring Summer Autumn 3.00YesYesprickle berry wine (2)N/ABrew
orchid (0)
 FLOWER_ORCHID_SPITTING
20N/A? All year0.00NoYesN/AEXTRACT(Flask): orchid fragrance (20)
 
Cook
longland grass (2)
 GRASS_LONGLAND
284Spring Summer Autumn 3.00NoPr.longland beer (2)FLOUR: longland flour (20)
 
Mill
kobold bulb (2)
 BULB_KOBOLD
284Spring Summer Autumn 3.00NoNoN/AEXTRACT(Flask): gnomeblight (100)
 
--
ironbark sapling (-2)
 IRONWOOD_SMALL
10336All year1.00NoNoN/AN/A--
hide root (2)
 ROOT_HIDE
284Spring Summer Autumn 3.00NoNoN/ADYE: hide root dye (10)
 
OIL: hide root oil (5)
 
--
fisher berry (2)
 BERRIES_FISHER
284Spring Summer Autumn 3.00YesYesfisher berry wine (2)N/ABrew
bloated tuber (2)
 TUBER_BLOATED
284Spring Summer Autumn 3.00YesYestuber beer (2)N/ABrew
blade weed (-8)
 WEED_BLADE
284Spring Summer Autumn 3.00NoNoN/ADYE: emerald dye (20)
 
Useless Dye
bitterroot (2)
 bitterroot
284Spring Summer Autumn 3.00NoNoN/AEXTRACT(Barrel): bitterroot poison (25)
 
--


Subterranean crop table:
 
Name
 ID
ValueGrowsSeasonsYieldEatCookBrew (Value) (Cook)Products (Value)Hints
giants essence (2)
 GIANT_STRENGTH_POTION
20N/A? None0.00YesYesgiant strength potion (100) (Y)LEAF: large lachmate leaves (1)
 
Brew
armok's thorntree (2)
 HELL_TREE_ARMOK
500N/A? None0.00NoNoN/AN/A--
shade thorn (2)
 SHADE_THORN
350N/A? None0.00NoNoN/AN/A--
zombie flower (-2)
 FLOWER_ZOMBIE_R
3336All year1.00NoNoN/AFLOUR: zombie powder (29)
 
Mill
sweet pod (-4)
 POD_SWEET
2336All year1.00NoPr.dwarven rum (2)SUGAR: dwarven sugar (20)
 CANDY: sweet pod candy (20)
 EXTRACT(Barrel): dwarven syrup (20)
 
Brew
shadowleaf bush (-4)
 shadowleaf bush
2336All year1.00YesYesN/ALEAF: shadowleaf bush leaves (2)
 
EXTRACT(Barrel): shadowleaf poison (25)
 OIL: shadowleaf oil (7)
 SOAP: shadowleaf soap (7)
 PRESSED: shadowleaf seed press cake (1)
 
--
skull frond (-2)
 SKULL_FRONDS_R
2336All year1.00NoNoskull juice (3) (Y)EXTRACT(Flask): skull essence (10)
 
Brew
quarry bush (-4)
 BUSH_QUARRY
2336All year1.00NoPr.N/ALEAF: quarry bush leaves (5)
 
OIL: rock nut oil (5)
 SOAP: rock nut soap (5)
 PRESSED: rock nut press cake (2)
 
Leaves
plump helmet (-4)
 MUSHROOM_HELMET_PLUMP
2336All year1.00YesYesdwarven wine (2)N/ABrew
pig tail (-4)
 GRASS_TAIL_PIG
2336All year1.00NoNodwarven ale (2)THREAD: pig tail thread (2)
 
OIL: pig tail oil (5)
 SOAP: pig tail soap (5)
 
Thread
nether vine (0)
 NETHER_VINE
5336All year1.00NoNonether wine (10) (Y)N/ABrew
nether creeper (-2)
 NETHER_CREEPER
5336All year1.00NoNonether grour (2) (Y)N/A--
nether-cap sapling (-6)
 NETHER_CAP_SMALL
1336All year1.00NoNoN/AN/A--
muck root (-4)
 ROOT_MUCK
2336All year1.00YesYesswamp whiskey (2)N/ABrew
lichfinger (-4)
 LICHFINGER_R
2336All year1.00NoPr.N/AFLOUR: lich meal (7)
 
--
fungiwood sapling (-6)
 FUNGIWOOD_SMALL
1336All year1.00NoNoN/AN/A--
dimple cup (-14)
 MUSHROOM_CUP_DIMPLE
2336All year1.00NoNoN/ADYE: dimple dye (20)
 
Useless Dye
devil mushroom (0)
 HELL_PLANT
10336All year1.00YesYeshell wine (10)N/ABrew
cave wheat (-4)
 GRASS_WHEAT_CAVE
2336All year1.00NoPr.dwarven beer (2)FLOUR: cave wheat flour (15)
 
--
corpsetongue (-4)
 CORPSETOUNGE_R
2336All year1.00NoNocorpse wine (2) (Y)N/ABrew
bone bush (-4)
 BUSH_BONE_R
2336All year1.00NoPr.essence of marrow (2) (Y)FLOUR: bone bush meal (8)
 
--
armok's shroom (4)
 HELL_PLANT_ARMOK
500N/A? None0.00YesYesarmok's wine (50)N/ABrew
devil thorn (2)
 HELL_TREE
100N/A? None0.00NoNoN/AN/A--
crystal tree (-2)
 CRYSTAL_TREE
10N/A? None0.00NoNoN/AN/A--
glass thorn (-2)
 GLASS_THORN
10N/A? None0.00NoNoN/AN/A--


Fake plant table:
 
Name
 ID
ValueGrowsSeasonsYieldEatCookBrew (Value) (Cook)Products (Value)Hints
cyclops eye (4)
 TRUE_SIGHT_POTION
500N/A? None0.00NoNotrue sight potion (100) (Y)N/ABrew
cotton (0)
 COTTON
20N/A? None0.00NoNoN/ATHREAD: cotton thread (1)
 
--
voodoo poison (2)
 VOODOO
100N/A? None0.00NoNoN/AEXTRACT(Barrel): voodoo poison (5)
 
--
greenskin bane (2)
 GREENSKIN_BANE
100N/A? None0.00NoNoN/AEXTRACT(Barrel): greenskin bane (5)
 
--
everdream (2)
 EVERDREAM
100N/A? None0.00NoNoN/AEXTRACT(Barrel): everdream (5)
 
--
nether horror (2)
 NETHER_HORROR
100N/A? None0.00NoNoN/AEXTRACT(Barrel): nether horror (5)
 
--
carmine (-10)
 CARMINE
20N/A? None0.00NoNoN/ADYE: carmine dye (10)
 
Useless Dye
fatty (0)
 OIL
20N/A? None0.00NoNoN/AOIL: fatty oil (5)
 SOAP: fatty soap (5)
 
--
mineral (0)
 OIL_MINERAL
20N/A? None0.00NoNoN/AOIL: mineral oil (5)
 SOAP: mineral soap (5)
 
--
black draught (2)
 BLACK_DRAUGHT
20N/A? None0.00NoYesblack draught (6) (Y)N/ABrew
firewater (2)
 FIREWATER_DRAUGHT
20N/A? None0.00NoYesfirewater (6) (Y)N/ABrew
pinkskin bane (2)
 PINKSKIN_BANE
100N/A? None0.00NoNoN/AEXTRACT(Barrel): pinkskin bane (50)
 
--
cadaverine blight (2)
 CADAVERINE_BLIGHT
100N/A? None0.00NoNoN/AEXTRACT(Barrel): cadaverine blight poison (50)
 
--
tears of armok (0)
 ARMOK_DRINK
20N/A? None0.00NoNotears of armok (2) (Y)N/ABrew
silphium (4)
 SILPHIUM
40N/A? None0.00NoYessterility draught (4) (Y)N/ABrew
philosophum (4)
 PHILOSOPHUM
40N/A? None0.00NoYeseternal youth potion (4) (Y)N/ABrew
norrium (4)
 NORRIUM
60N/A? None0.00NoYeswarriors shot (6) (Y)N/ABrew
insomnium (4)
 INSOMNIUM
40N/A? None0.00NoYesinsomnia wine (4) (Y)N/ABrew
elixir of life (0)
 PHILOSOPHER_DRINK
20N/A? None0.00NoNoelixir of life (2) (Y)N/ABrew
cure-all (4)
 CURE_ALL
40N/A? None0.00NoYesdisease resistance draught (4) (Y)N/ABrew
pure evil (4)
 EVIL_CM
500N/A? None0.00NoNoliquid evil (50) (Y)N/ABrew
fungiwood bark (2)
 FUNGIWOOD_BARK
20N/A? None0.00YesYesdwarven fungi brew (5)N/ABrew
ironbark (2)
 IRONWOOD
100N/A? None0.00NoNoN/AN/A--
steeloak (2)
 STEELOAK
150N/A? None0.00NoNoN/AN/A--
royal plump helmet (4)
 MUSHROOM_HELMET_PLUMP_UPGRADE
6336N/A? None0.00YesYesroyal dwarven wine (10)N/ABrew
royal pig tail (4)
 GRASS_TAIL_PIG_UPGRADE
6336N/A? None0.00NoNoroyal dwarven ale (10)N/ABrew
royal cave wheat (4)
 GRASS_WHEAT_CAVE_UPGRADE
683N/A? None0.00NoNoroyal dwarven beer (10)N/ABrew
royal sweet pod (4)
 POD_SWEET_UPGRADE
683N/A? None0.00NoNoroyal dwarven rum (10)N/ABrew
royal muck root (0)
 ROOT_MUCK_UPGRADE
10N/A? None0.00NoNoroyal swamp whiskey (5)N/ABrew
royal bloated tuber (4)
 TUBER_BLOATED_UPGRADE
60N/A? None0.00YesYesroyal tuber beer (10)N/ABrew
royal prickle berry (2)
 BERRIES_PRICKLE_UPGRADE
60N/A? None0.00YesYesroyal prickle berry wine (2)N/ACook
royal strawberry (4)
 BERRIES_STRAW_WILD_UPGRADE
60N/A? None0.00YesYesroyal strawberry wine (10)N/ABrew
royal longland grass (4)
 GRASS_LONGLAND_UPGRADE
60N/A? None0.00NoNoroyal longland beer (10)N/ABrew
royal rat weed (4)
 WEED_RAT_UPGRADE
60N/A? None0.00YesYesroyal sewer brew (5)N/A--
royal fisher berry (4)
 BERRIES_FISHER_UPGRADE
60N/A? None0.00YesYesroyal fisher berry wine (10)N/ABrew
royal rope reed (2)
 REED_ROPE_UPGRADE
60N/A? None0.00NoNoroyal river spirits (2)N/A--
royal sliver barb (4)
 SLIVER_BARB_UPGRADE
50N/A? None0.00NoNoroyal gutter cruor (5)N/ABrew
royal sun berry (4)
 BERRY_SUN_UPGRADE
50N/A? None0.00YesYesroyal sunshine (15)N/ABrew
royal whip vine (4)
 VINE_WHIP_UPGRADE
60N/A? None0.00NoNoroyal whip wine (10)N/ABrew
boozebelly rum (0)
 GOAT_MILK
284N/A? None0.00NoNoboozebelly rum (2) (Y)N/ABrew
glass splitter (-2)
 POISON
10N/A? None0.00NoNoN/AN/A--

Logged
Quote from: Omnicega
Since you seem to criticize most things harsher than concentrated acid, I'll take that as a compliment.
On mining Organics
Military guide for FoE mod.
Research: Crossbow with axe and shield.
Dropbox referral

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Maklak's Crop Table data script
« Reply #12 on: May 24, 2013, 07:31:46 pm »

It looks great!  The only small feedback I notice is that it seems a little strange that the dye plants all seem to say "useless" and have such a negative debug-value, but it does mention the dye in the table after all, so it is fine. 

Some of the specialty uses in custom reactions are not captured of course, there's no way the raw combing script could know about those, so in the wiki there will be at least one more column for manual notes.

Maklak

  • Bay Watcher
    • View Profile
Re: Maklak's Crop Table data script
« Reply #13 on: May 25, 2013, 03:43:25 am »

> it seems a little strange that the dye plants all seem to say "useless" and have such a negative debug-value.
I penalize only plants that produce dye and nothing else, because they annoy me to no end when gathering plants and I would never want to farm them. They clog up my plant stockpile next to brewery, unless I specifically disable them, and have to be either atom-smashed or milled into small stacks of dye using up sacks. When I want dye (and I usually don't), I can get stacks of 10 from caravans. It is kinda the same with flour, but at least flour can be cooked all at once (for a valuable food stack) and the plants can usually be brewed instead.

Another annoying product is Extract to Flask. I had my pony dwarf soldiers pick up heavy flasks with golden salve to use as waterskins, because hey, they're more valuable than empty flasks.  ::)

> Some of the speciality uses in custom reactions are not captured of course, there's no way the raw combing script could know about those, so in the wiki there will be at least one more column for manual notes.
I can add an option to add an extra column, but you might as well use my "Hints" column for this.
I only read plant data and without analysing reactions too (which is out of scope for this script), I can only look at REACTION_CLASS tokens. I only found 3: BITTERROOT_POISON (but the extract is already called poison), SHADOWLEAF_POISON (same) and UNSEASONED, which I think means this is used for better alcohol reactions. I could add an extra column "Seasoning (Yes/No)", like I did for FoEs biofuel. 

While I'm still tweaking the rules for colours and hints, sadly it looks like they will remain somewhat wonky and the code to handle them is a mess, so they're just a suggestion.

BTW, here is what I print for $ perl -w crops.pl -h

This program reads Dwarf Fortress RAWs for plants and prints commands for
  dfhack getplants commands for easy designating of trees and bushes to be cut.
  More importantly, it also prints formatted tables with crops. This is useful
  for DF mods and was originally developed for FoE mod. Usage:
$ perl -w plants.pl <options> files
  Options:
-o=<arg>  --o=<arg>  --<arg>       where <arg> is txt|csv|bbcode|html|wiki.
       Sets output to that file format. The default is txt/csv.
       Wiki doesnt work for this version. Bay12 forum uses bbcode.
-h  --help     Print this help and exit.
-d  --debug    Print much more information.
--nodebug      Dont print debug information.
--nogetplants  Wont print getplants commands for dfhack.
--nocrops      Wont print crop tables
--yield        Print yield per year.
--freq         Print frequencies of crops for plant gathering.
--align        Print alignment of plants (Good / Evil / Savage / All)
       Since this is "All" for almost all plants, it is off by default.
--             End options. Everything else is treated as a RAW file.

There is no option to set output file, so just redirect output stream for that.

Examples:
$ perl -w ../../../Scripts/plants.pl --bbcode *plant*.* > ../../../Scripts/out.txt
Will process all files in the current directory matching *plant*.* and write an
  output file suitable to paste on the forum.

$ perl -w ../../../../Scripts/plants.pl -o=html *.txt  >../../../../Scripts/out.html
Process all *.txt files in the current directory (raw/objects) and write
  the output to a html file.
Logged
Quote from: Omnicega
Since you seem to criticize most things harsher than concentrated acid, I'll take that as a compliment.
On mining Organics
Military guide for FoE mod.
Research: Crossbow with axe and shield.
Dropbox referral

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Maklak's Crop Table data script
« Reply #14 on: May 30, 2013, 08:15:29 am »

Quote
could add an extra column "Seasoning (Yes/No)
Dont, it serves no purpose atm anyway.

Dyes are rather important for the kobold camp update I am writing.

Is there any third-party program that needs to be installed to run this script, like perl or python?

It looks all very awesome, especially when I think about slightly altering the code afterwards to read out creatures and items as well ;) I could add so much more info to the manual this way, and all in compressed form.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::
Pages: [1] 2