Bay 12 Games Forum

Please login or register.

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

Author Topic: Cheese Fortress  (Read 6969 times)

Cheveux

  • Bay Watcher
    • View Profile
Cheese Fortress
« on: June 17, 2011, 06:22:28 pm »

I'm pretty new to modding and I don't know how to make most of it. So I came here with the intention to learn more about modding while have a blast in a silly DF game.

I want to make a fortress where I can build walls, floors, weapons, armor, almost everything out of soap.

I thought I could add a reaction to transform cheese into cheese boulder and cheese logs to make the construction, furniture, craft, etc. Am I correct?

For the weapons and armors, I heard that when you mod in material that were not metal, stone, wood or bone you get a material with max stats in everything. So I might just mod in cheese bar with iron-like stats and "super-cheese"(temp name) with steel-like stats.

I also want to add a new creature, Cheese Golem, made of the cheese boulder material.


I don't know how to do any of those, so I made this list with the hope that it covers most of DF basic modding.
If anyone can help me set this up so I can study how and why it works I'd be really grateful.
Logged

Cheveux

  • Bay Watcher
    • View Profile
Re: Cheese Fortress
« Reply #1 on: June 18, 2011, 01:21:15 am »

Alright, so far I think I've manage to do the Cheese boulder and the 2 cheese metal. But I don't know how to make a reaction to make the cheese boulder from 2 unit of cheese in the farmer workshop.
Also, I made this reaction to make the stronger cheese metal, but I don't know what would be the correct line of tags to make it so it require 2 units of milk :
Code: [Select]
[REACTION:STRONG_CHEESITE_MAKING]
[NAME:make strong cheesite bars]
[BUILDING:SMELTER:NONE]
[REAGENT:A:150:BAR:NO_SUBTYPE:METAL:CHEESITE]
[b][REAGENT:B:150:BAR:NO_SUBTYPE:METAL:MILK][/b]
[REAGENT:C:1:BOULDER:NO_SUBTYPE:NONE:CHEESE_BOULDER]
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:STRONG_CHEESITE][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]
Logged

kerlc

  • Bay Watcher
    • View Profile
Re: Cheese Fortress
« Reply #2 on: June 18, 2011, 02:35:15 am »

Kerlc, bay watcher cancels admire a fine engraving, eating the wall.
Logged

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: Cheese Fortress
« Reply #3 on: June 18, 2011, 07:10:20 am »

Alright, so far I think I've manage to do the Cheese boulder and the 2 cheese metal. But I don't know how to make a reaction to make the cheese boulder from 2 unit of cheese in the farmer workshop.
Also, I made this reaction to make the stronger cheese metal, but I don't know what would be the correct line of tags to make it so it require 2 units of milk :
Code: [Select]
[REACTION:STRONG_CHEESITE_MAKING]
[NAME:make strong cheesite bars]
[BUILDING:SMELTER:NONE]
[REAGENT:A:150:BAR:NO_SUBTYPE:METAL:CHEESITE]
[b][REAGENT:B:150:BAR:NO_SUBTYPE:METAL:MILK][/b]
[REAGENT:C:1:BOULDER:NO_SUBTYPE:NONE:CHEESE_BOULDER]
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:STRONG_CHEESITE][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]
Assuming your raws aren't severely mutilated, this should work:

[REACTION:CHEESE_BOULDER_MAKING]
[NAME:make cheese boulder]
[BUILDING:SMELTER:NONE]
[REAGENT:A:2:NONE:NONE:NONE:NONE][UNROTTEN][REACTION_CLASS:CHEESE]
[PRODUCT:100:1:BOULDER:NO_SUBTYPE:NONE:CHEESE_BOULDER]
[SKILL:CHEESEMAKING]


The above reaction needs a smelter and someone who is assigned to cheese making.

An alternative to that is to use GET_MATERIAL_FROM_REAGENT:A in the place of the [PRODUCT]'s third slot (the one with color) and change the CHEESE_BOULDER in the fourth slot into NONE.

The alternative will probably name it as "creaturexxx cheesy wall" or something like that.
Logged
Thank you for all the fish. It was a good run.

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: Cheese Fortress
« Reply #4 on: June 18, 2011, 07:26:12 am »

As for the cheese bars, I'll try to fix it.

[REACTION:STRONG_CHEESITE_MAKING]
[NAME:make strong cheesite bars]
[BUILDING:SMELTER:NONE]
[REAGENT:A:150:BAR:NO_SUBTYPE:METAL:CHEESITE]
[REAGENT:milk:300:LIQUID_MISC:NONE:NONE:NONE][HAS_MATERIAL_REACTION_PRODUCT:CHEESE_MAT]
[REAGENT:milk container:1:NONE:NONE:NONE:NONE]
      [CONTAINS:milk]
      [PRESERVE_REAGENT]
      [DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:C:1:BOULDER:NO_SUBTYPE:NONE:CHEESE_BOULDER] --- or ---- [REAGENT:C:1:NONE:NONE:NONE:NONE][UNROTTEN][REACTION_CLASS:CHEESE]
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:STRONG_CHEESITE][PRODUCT_DIMENSION:150]
[PRODUCT:25:1:BAR:NO_SUBTYPE:METAL:STRONG_CHEESITE][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]


The above reaction should, in theory, require "cheesite" metal bars, 2 drinks worth of milk, needed to be in a container, a cheese boulder or a slab of cheese, depending whether you chose the first or the other and it should yield 2 to 3 bars of strong cheesite.

I haven't tested this, so you should try it. If it doesn't work, try opening the material_definition_template.txt, look for the milk template (ctrl/apple + F should come in handy) add [REACTION_CLASS:MILK] to it somewhere in it's raws, and replace the colored tag with [REACTION_CLASS:MILK]. It should work.
Logged
Thank you for all the fish. It was a good run.

Cheveux

  • Bay Watcher
    • View Profile
Re: Cheese Fortress
« Reply #5 on: June 18, 2011, 01:32:48 pm »

Thanks a lot New Guy, I added everything to my raws and added to required permission in the entity, but when my dwarves try to make a Cheese boulder, it only give them stones. I mean it's an item called stones and the description is "This is stones." Any idea how I can fix this?
Logged

Kweri

  • Bay Watcher
    • View Profile
Re: Cheese Fortress
« Reply #6 on: June 18, 2011, 03:34:10 pm »

[PRODUCT:100:1:BOULDER:NO_SUBTYPE:NONE:CHEESE_BOULDER]
I don't think this works... It will give you boulders, but I'm fairly certain you can't have a material subtype WITHOUT a material type. Pretty sure you'll need to either make a new material called cheese, or go with BOULDER:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE

Also, not terribly important, but milk isn't counted as a drink, even though it's a liquid. Your dwarves could be dying of thirst and milk wouldn't do a thing for them. :(

Logged

Cheveux

  • Bay Watcher
    • View Profile
Re: Cheese Fortress
« Reply #7 on: June 18, 2011, 03:47:10 pm »

Also, not terribly important, but milk isn't counted as a drink, even though it's a liquid. Your dwarves could be dying of thirst and milk wouldn't do a thing for them. :(

I know about that, that's why I will also make a new type of booze made from cheese.

EDIT:
[PRODUCT:100:1:BOULDER:NO_SUBTYPE:NONE:CHEESE_BOULDER]
I don't think this works... It will give you boulders, but I'm fairly certain you can't have a material subtype WITHOUT a material type. Pretty sure you'll need to either make a new material called cheese, or go with BOULDER:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE

I tried changing [PRODUCT:100:1:BOULDER:NO_SUBTYPE:NONE:CHEESE_BOULDER] to [PRODUCT:100:1:BOULDER:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE] but now the dwarves only take to units of cheese and give me an incredibly heavy unit of cheese, about 85 times heavier than the normal weight.
« Last Edit: June 18, 2011, 04:10:48 pm by Cheveux »
Logged

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: Cheese Fortress
« Reply #8 on: June 18, 2011, 07:51:32 pm »

Whoops, whoops and whoops, guess I haven't proofread it enough. You should replace that NONE into INORGANIC. I'm very, very sorry for that mistake.
Logged
Thank you for all the fish. It was a good run.

Cheveux

  • Bay Watcher
    • View Profile
Re: Cheese Fortress
« Reply #9 on: June 18, 2011, 08:13:26 pm »

Whoops, whoops and whoops, guess I haven't proofread it enough. You should replace that NONE into INORGANIC. I'm very, very sorry for that mistake.
Great! Now I can make the boulder and the cheesite bar. Thanks!

Now for the strong cheesite (the steel like metal), the dwarves seem to take the correct reagent to the smelter but they only give me "rock bars".
Code: [Select]
[REACTION:STRONG_CHEESITE_MAKING]
[NAME:make strong cheesite bars]
[BUILDING:SMELTER:NONE]
[REAGENT:A:150:BAR:NO_SUBTYPE:METAL:CHEESITE]
[REAGENT:milk:300:LIQUID_MISC:NONE:NONE:NONE][HAS_MATERIAL_REACTION_PRODUCT:CHEESE_MAT]
[REAGENT:milk container:1:NONE:NONE:NONE:NONE]
      [CONTAINS:milk]
      [PRESERVE_REAGENT]
      [DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:C:1:BOULDER:NO_SUBTYPE:NONE:CHEESE_BOULDER]
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:STRONG_CHEESITE][PRODUCT_DIMENSION:150]
[PRODUCT:25:1:BAR:NO_SUBTYPE:METAL:STRONG_CHEESITE][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]

Is there an INORGANIC missing somewhere?
Logged

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: Cheese Fortress
« Reply #10 on: June 18, 2011, 08:33:42 pm »

Now for the strong cheesite (the steel like metal), the dwarves seem to take the correct reagent to the smelter but they only give me "rock bars".
Code: [Select]
[REACTION:STRONG_CHEESITE_MAKING]
[NAME:make strong cheesite bars]
[BUILDING:SMELTER:NONE]
[REAGENT:A:150:BAR:NO_SUBTYPE:METAL:CHEESITE]
[REAGENT:milk:300:LIQUID_MISC:NONE:NONE:NONE][HAS_MATERIAL_REACTION_PRODUCT:CHEESE_MAT]
[REAGENT:milk container:1:NONE:NONE:NONE:NONE]
      [CONTAINS:milk]
      [PRESERVE_REAGENT]
      [DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:C:1:BOULDER:NO_SUBTYPE:NONE:CHEESE_BOULDER]
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:STRONG_CHEESITE][PRODUCT_DIMENSION:150]
[PRODUCT:25:1:BAR:NO_SUBTYPE:METAL:STRONG_CHEESITE][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]

Is there an INORGANIC missing somewhere?

[REACTION:STRONG_CHEESITE_MAKING]
[NAME:make strong cheesite bars]
[BUILDING:SMELTER:NONE]
[REAGENT:A:150:BAR:NO_SUBTYPE:METAL:CHEESITE]
[REAGENT:milk:300:LIQUID_MISC:NONE:NONE:NONE][HAS_MATERIAL_REACTION_PRODUCT:CHEESE_MAT]
[REAGENT:milk container:1:NONE:NONE:NONE:NONE]
      [CONTAINS:milk]
      [PRESERVE_REAGENT]
      [DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:C:1:BOULDER:NO_SUBTYPE:INORGANIC:CHEESE_BOULDER]
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:STRONG_CHEESITE][PRODUCT_DIMENSION:150]
[PRODUCT:25:1:BAR:NO_SUBTYPE:METAL:STRONG_CHEESITE][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]


The above reaction has it's changes marked in orange.

I can't seem to find any mistakes in the product part of the reaction though, check your metals if STRONG_CHEESITE matches with what you named it over there.
Logged
Thank you for all the fish. It was a good run.

Cheveux

  • Bay Watcher
    • View Profile
Re: Cheese Fortress
« Reply #11 on: June 18, 2011, 09:35:41 pm »

Everything is working, you were right, I made a typo in the metal section of the raw for the strong cheesite.

I started working on the new creature, but I also realized I don't know what would be the product tokens to make a reaction that would give me a cheese log (to make beds).
Anyone know them?
Logged

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: Cheese Fortress
« Reply #12 on: June 18, 2011, 09:47:03 pm »

[REACTION:MAKE_CHEDDAR_LOGS] -- cheddar/cedar, get it? hehehe...
[NAME:shape cheese boulders into logs]
[BUILDING:INSERT_BUILDING_HERE:NONE]
[REAGENT:A:1:BOULDER:NO_SUBTYPE:INORGANIC:CHEESE_BOULDER]
[PRODUCT:100:1:WOOD:NO_SUBTYPE:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:CHEESEMAKING]


The above reaction creates a log of cheese from 1 boulder of cheese. The number that's marked green can be changed to higher amounts to produce more logs per boulder of cheese.

Remember to set the things colored orange to your liking.
Logged
Thank you for all the fish. It was a good run.

Cheveux

  • Bay Watcher
    • View Profile
Re: Cheese Fortress
« Reply #13 on: June 19, 2011, 08:54:59 pm »

I was trying to make the new creature for a while and finally said "fuck it" and just copy pasted the bronze colossus and changed some of his tags, but I think they're a little too weak :
Spoiler (click to show/hide)


Here's the raw for them :
Code: [Select]
[CREATURE:COLOSSUS_CHEESE]
[DESCRIPTION:A gigantic magic statue made of cheese and bent on imposing it's cheesy supremacy.]
[NAME:cheese colossus:cheese colossuses:cheese colossus]
[CASTE_NAME:cheese colossus:cheese colossuses:cheese colossus]
[CREATURE_TILE:'C'][COLOR:6:7:1]
[MEGABEAST][DIFFICULTY:10] 11 or higher does not get assigned as adv mode quests
[ATTACK_TRIGGER:50:8000:80000]
[FANCIFUL]
[NOPAIN][EXTRAVISION][NOBREATHE][NOSTUN][NONAUSEA][NOEMOTION]
[NOTHOUGHT][NOEXERT]
[NO_DIZZINESS]
[NO_FEVERS]
[BUILDINGDESTROYER:2]
[LARGE_PREDATOR]
[NO_DRINK][NO_EAT][NO_SLEEP]
[SPHERE:FOOD]
[SPHERE:STRENGTH]
[SPHERE:WAR]
[CANNOT_UNDEAD]
[CANOPENDOORS]
[NOT_BUTCHERABLE]
[BIOME:ANY_LAND]
[EQUIPS]
[NOFEAR]
[PREFSTRING:cheesy features]
[NOBONES]
[BODY:HUMANOID:2EYES:2EARS:NOSE:HUMANOID_JOINTS:5FINGERS:5TOES]
[NO_THOUGHT_CENTER_FOR_MOVEMENT]
[TISSUE:CHEESE]
[TISSUE_NAME:cheese:cheese]
[TISSUE_MATERIAL:INORGANIC:CHEESE_CUSTOM]
[MUSCULAR]
[FUNCTIONAL]
[STRUCTURAL]
[RELATIVE_THICKNESS:1]
[CONNECTS]
[TISSUE_SHAPE:LAYER]
[TISSUE_LAYER:BY_CATEGORY:ALL:CG]
[BODY_SIZE:0:0:20000000]
[BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110]
[BODY_APPEARANCE_MODIFIER:BROADNESS:90:95:98:100:102:105:110]
[ATTACK:PUNCH:BODYPART:BY_TYPE:GRASP]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:punch:punches]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:MAIN]
[ATTACK:KICK:BODYPART:BY_TYPE:STANCE]
[ATTACK_SKILL:STANCE_STRIKE]
[ATTACK_VERB:kick:kicks]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:SECOND]
[ITEMCORPSE:STATUE:NO_SUBTYPE:INORGANIC:CHEESITE]
[ITEMCORPSE_QUALITY:5]
[DIURNAL]
[LAIR:SHRINE:100]
[SWIMS_LEARNED][SWIM_SPEED:2500]

And this is CHEESE_CUSTOM in inorganic_other :
Code: [Select]
[INORGANIC:CHEESE_CUSTOM]
[USE_MATERIAL_TEMPLATE:STONE_TEMPLATE]
[STATE_NAME_ADJ:ALL:cheese]
[DISPLAY_COLOR:6:7:1][TILE:34]
[SOLID_DENSITY:3403]
[IS_STONE]
[MATERIAL_VALUE:10]
[BLOCK_NAME:block:blocks]
[NO_STONE_STOCKPILE]
Logged

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: Cheese Fortress
« Reply #14 on: June 20, 2011, 12:31:23 am »

While technically there's nothing wrong with that, but I assume you want to strengthen them.

Here's a template and a guide on how to make strong materials:

The Guide

The Template (human skin):

   [IMPACT_YIELD:10000]
   [IMPACT_FRACTURE:10000]
   [IMPACT_STRAIN_AT_YIELD:50000]
   [COMPRESSIVE_YIELD:10000]
   [COMPRESSIVE_FRACTURE:10000]
   [COMPRESSIVE_STRAIN_AT_YIELD:50000]
   [TENSILE_YIELD:10000]
   [TENSILE_FRACTURE:10000]
   [TENSILE_STRAIN_AT_YIELD:50000]
   [TORSION_YIELD:10000]
   [TORSION_FRACTURE:10000]
   [TORSION_STRAIN_AT_YIELD:50000]
   [SHEAR_YIELD:20000]
   [SHEAR_FRACTURE:20000]
   [SHEAR_STRAIN_AT_YIELD:50000]
   [BENDING_YIELD:10000]
   [BENDING_FRACTURE:10000]
   [BENDING_STRAIN_AT_YIELD:50000]
   [MAX_EDGE:0]


To make it work, simply paste it in your custom cheesite raw, and edit it properly to improve it's defense qualities.

EDIT: You might want to look at your creature_subterranean.txt file and find ELEMENTMAN_IRON there. That creature has an internal defensive gas, which you might want to use for rancid cheese gas and stuff.
« Last Edit: June 20, 2011, 12:33:42 am by New Guy »
Logged
Thank you for all the fish. It was a good run.
Pages: [1] 2 3