Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: new stand-alone raw files?  (Read 771 times)

CulixCupric

  • Bay Watcher
    • View Profile
new stand-alone raw files?
« on: September 16, 2015, 01:54:24 pm »

I have been modding for a while, been playing for over a year, and i wanted to make my mods separate from the main files so i can easily sort them and not edit the vanilla raws.

when i put them in the raw/objects folder, they seem to not affect the generated world. they raws exist in the save files raw/objects folder... but they don't seem to be doing anything. am I doing something wrong? are the files not formatted correctly? is it not possible to make custom stand-alone raws?

some examples... i will use my metals/reactions, because they are short.

culix_inorganic_materials.txt
Code: [Select]
culix_inorganic_materials

[OBJECT:INORGANIC]

[INORGANIC:TELUMITE]
[USE_MATERIAL_TEMPLATE:STONE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:telumite][DISPLAY_COLOR:4:4:1][TILE:139]
[ENVIRONMENT:SEDIMENTARY:VEIN:100]
[ENVIRONMENT:IGNEOUS_EXTRUSIVE:VEIN:100]
[ENVIRONMENT:IGNEOUS_INTRUSIVE:VEIN:100]
[ENVIRONMENT:METAMORPHIC:VEIN:100]
[ITEM_SYMBOL:'*']
[METAL_ORE:TELUMIUM:100]
[SOLID_DENSITY:5260]
[MATERIAL_VALUE:45]
[IS_STONE]
[MELTING_POINT:12736]

[INORGANIC:TELUMIUM]
[USE_MATERIAL_TEMPLATE:METAL_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:telumium]
[STATE_NAME_ADJ:LIQUID:molten telumium]
[STATE_NAME_ADJ:GAS:vaporous telumium]
[DISPLAY_COLOR:4:4:1]
[BUILD_COLOR:4:7:1]
[MATERIAL_VALUE:45]
[SPEC_HEAT:500]
[MELTING_POINT:17500]
[BOILING_POINT:55000]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
[SOLID_DENSITY:8750]
[LIQUID_DENSITY:7000]
[MOLAR_MASS:55845]
[IMPACT_YIELD:1505000]
[IMPACT_FRACTURE:2520000]
[IMPACT_STRAIN_AT_YIELD:940]
[COMPRESSIVE_YIELD:1505000]
[COMPRESSIVE_FRACTURE:2520000]
[COMPRESSIVE_STRAIN_AT_YIELD:940] 160
[TENSILE_YIELD:430000]
[TENSILE_FRACTURE:720000]
[TENSILE_STRAIN_AT_YIELD:225] 200
[TORSION_YIELD:430000]
[TORSION_FRACTURE:720000]
[TORSION_STRAIN_AT_YIELD:215]
[SHEAR_YIELD:430000]
[SHEAR_FRACTURE:720000]
[SHEAR_STRAIN_AT_YIELD:215] no data, used 200
[BENDING_YIELD:430000]
[BENDING_FRACTURE:720000]
[BENDING_STRAIN_AT_YIELD:215]
[MAX_EDGE:22500]
[ITEMS_HARD]
[ITEMS_METAL]
[ITEMS_BARRED]
[ITEMS_SCALED]
[STATE_COLOR:ALL_SOLID:CRIMSON]

culix_reactions_smelter.txt
Code: [Select]
culix_reactions_smelter

[OBJECT:REACTION]

[REACTION:TELUMIUM_MIX_IRON_INTO]
[NAME:fold telumium w/iron (bars)]
[BUILDING:SMELTER:NONE]
[REAGENT:A:150:BAR:NO_SUBTYPE:METAL:IRON]
[REAGENT:B:150:BAR:NO_SUBTYPE:METAL:TELUMIUM]
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:TELUMIUM][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]
[AUTOMATIC]

[REACTION:TELUMIUM_MIX_GRAPHITE]
[NAME:split telumium w/graphite]
[BUILDING:SMELTER:NONE]
[REAGENT:A:150:BAR:NO_SUBTYPE:METAL:TELUMIUM]
[REAGENT:B:1:BOULDER:NONE:INORGANIC:GRAPHITE]
[REAGENT:C:150:BAR:NO_SUBTYPE:COAL:NO_MATGLOSS]
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:TELUMIUM][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]

culix_reactions_other.txt
Code: [Select]
culix_reactions_other

[OBJECT:REACTION]

[REACTION:COLLECT_SEEDS_TO_BAG]
[NAME:harvest seeds]
[BUILDING:FARMER:CUSTOM_D]
[REAGENT:plant:1:PLANT:NONE:NONE:NONE]
[UNROTTEN]
[PRODUCT:100:3:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]
[SKILL:PLANT]

[REACTION:BURN_THE_BODIES]
[NAME:cremate corpse]
[BUILDING:SMELTER:NONE]
[REAGENT:corpse:1:CORPSEPIECE:NONE:NONE:NONE][USE_BODY_COMPONENT]
[PRODUCT:100:1:BAR:NO_SUBTYPE:COAL:CHARCOAL][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]

[REACTION:BURN_THE_PLANTS]
[NAME:burn plants]
[BUILDING:SMELTER:NONE]
[REAGENT:plants:8:PLANT:NONE:NONE:NONE]
[PRODUCT:100:4:BAR:NO_SUBTYPE:COAL:CHARCOAL][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]

[REACTION:BURN_THE_BUGS]
   [NAME:burn dead vermin]
   [BUILDING:SMELTER:NONE]
   [REAGENT:vermin:5:REMAINS:NONE:NONE:NONE]
   [PRODUCT:20:1:BAR:NO_SUBTYPE:COAL:CHARCOAL][PRODUCT_DIMENSION:150]
   [SKILL:SMELT]
   [AUTOMATIC]

[REACTION:CREATE_CLAYSTONE_STONE]
[NAME:create claystone]
[BUILDING:KILN:NONE]
[REAGENT:clay:1:BOULDER:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:FIRED_MAT]
[PRODUCT:100:1:BOULDER:NONE:INORGANIC:CLAYSTONE]
[FUEL]
[SKILL:POTTERY]

[REACTION:CREATE_SANDSTONE_STONE]
[NAME:create sandstone]
[BUILDING:KILN:NONE]
[REAGENT:clay:1:BOULDER:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:FIRED_MAT]
[REAGENT:sand:150:POWDER_MISC:NONE:INORGANIC:SAND]
[PRODUCT:100:1:BOULDER:NONE:INORGANIC:SANDSTONE]
[FUEL]
[SKILL:POTTERY]

[REACTION:CREATE_SILTSTONE_STONE]
[NAME:create siltstone]
[BUILDING:KILN:NONE]
[REAGENT:clay:1:BOULDER:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:FIRED_MAT]
[REAGENT:sand:150:POWDER_MISC:NONE:INORGANIC:SAND]
[PRODUCT:100:1:BOULDER:NONE:INORGANIC:SILTSTONE]
[FUEL]
[SKILL:POTTERY]

[REACTION:CREATE_QUARTZITE_STONE]
[NAME:create quartzite]
[BUILDING:KILN:NONE]
[REAGENT:sandstone:1:BOULDER:NONE:INORGANIC:SANDSTONE]
[PRODUCT:100:1:BOULDER:NONE:INORGANIC:QUARTZITE]
[FUEL]
[SKILL:POTTERY]

[REACTION:CREATE_GRAPHITE_STONE]
[NAME:create graphite]
[BUILDING:KILN:NONE]
[REAGENT:clay:1:BOULDER:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:FIRED_MAT]
[REAGENT:coal:150:BAR:NO_SUBTYPE:COAL:NO_MATGLOSS]
[PRODUCT:100:1:BOULDER:NONE:INORGANIC:GRAPHITE]
[FUEL]
[SKILL:POTTERY]
« Last Edit: September 16, 2015, 01:58:26 pm by CulixCupric »
Logged
Don't know what to put here... let me know if you have any ideas...

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: new stand-alone raw files?
« Reply #1 on: September 16, 2015, 02:03:23 pm »

Did you generate a new world after editing the raws?

Oh, wait. I see your problem. Change the file name to "inorganic_culix_materials.txt". DF requires that the file name starts with certain strings based on what kind of raws the file contains, it's stupid, basically a result of a retarded raw loader (I could write a better one in my sleep).
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS

qorthos

  • Bay Watcher
    • View Profile
Re: new stand-alone raw files?
« Reply #2 on: September 16, 2015, 02:10:36 pm »

Does your entity have the correct PERMITTED_REACTIONs?
Logged

CulixCupric

  • Bay Watcher
    • View Profile
Re: new stand-alone raw files?
« Reply #3 on: September 16, 2015, 02:15:07 pm »

i will try it...
..and it worked. checked under a new pocket world in legends for the civs... and my customs are in there now. thanks milo!

Does your entity have the correct PERMITTED_REACTIONs?

it does, its a new custom race that was also not appearing. i have new creatures and civs as well but didn't post them because they are very long and still a WIP.
Logged
Don't know what to put here... let me know if you have any ideas...

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: new stand-alone raw files?
« Reply #4 on: September 16, 2015, 02:20:56 pm »

That one bit me once a long time ago.

Don't ask how long it took to figure out what the problem was, I may have to hurt you :)
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS

scamtank

  • Bay Watcher
    • View Profile
Re: new stand-alone raw files?
« Reply #5 on: September 19, 2015, 04:11:52 am »

For the sake of completion, here's the deal as taken straight from the string dump:

Code: [Select]
objects/text/book_instruction.txt
objects/text/book_art.txt
objects/text/secret_death.txt
objects/language_*.txt
objects/descriptor_shape_*.txt
objects/descriptor_color_*.txt
objects/descriptor_pattern_*.txt
objects/material_template_*.txt
objects/inorganic_*.txt
objects/plant_*.txt
objects/tissue_template_*.txt
objects/item_*.txt
objects/building_*.txt
objects/b_detail_plan_*.txt
objects/body_*.txt
objects/c_variation_*.txt
objects/creature_*.txt
objects/entity_*.txt
objects/reaction_*.txt
objects/interaction_*.txt
Logged