Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Getting my first mod to work  (Read 508 times)

konzill

  • Bay Watcher
    • View Profile
Getting my first mod to work
« on: October 14, 2010, 05:04:11 pm »

Hi,

I tried to add a new mineral but when I generate a new world it doesn't appear to get used. TO do this I added the following:

A file inorganic_stone_zill.txt
Quote

[INORGANIC:ANTHRACITE]
[USE_MATERIAL_TEMPLATE:STONE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:bituminous coal][DISPLAY_COLOR:1:7:1][TILE:151]
[ENVIRONMENT:METAMORPHIC:VEIN:100]
[ITEM_SYMBOL:'"']
[SPEC_HEAT:368]
[IGNITE_POINT:15152]
[MELTING_POINT:NONE]
[BOILING_POINT:16708]
[SOLID_DENSITY:2019]
[IS_STONE]


A file called reaction_zill.txt

Quote

[REACTION:ANTHRACITE_TO_COKE]
[NAME:make coke from anthracite]
[BUILDING:SMELTER:NONE]
[REAGENT:A:1:BOULDER:NO_SUBTYPE:INORGANIC:ANTHRACITE]
[PRODUCT:100:4:BAR:NO_SUBTYPE:COAL:COKE][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]



I also added the following line to entity_defaults (for Dwarves):
Quote

[PERMITTED_REACTION:ANTHRACITE_TO_COKE]


but when I build a new world no Anthracite appears on any of the stone lists.  What is missing and or wrong?

Logged

Jordrake

  • Bay Watcher
  • Swabbie-Poet of the Good Ship Urist
    • View Profile
Re: Getting my first mod to work
« Reply #1 on: October 14, 2010, 05:10:15 pm »

First thing you ought to check is that the files start with

inorganic_stone_zill

[OBJECT:INORGANIC]

at the top, altered to be relevant to the file. Everything seems to be in order, so if that's not the problem I'm not sure what is.
Logged

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Getting my first mod to work
« Reply #2 on: October 14, 2010, 05:11:48 pm »

Your file inorganic_stone_zill.txt needs the lines:

Code: [Select]
inorganic_stone_zill

[OBJECT:INORGANIC]

at the start, before any other lines.  reaction_zill.txt needs similar lines declaring its file name and object type.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.

konzill

  • Bay Watcher
    • View Profile
Re: Getting my first mod to work
« Reply #3 on: October 14, 2010, 08:35:34 pm »

Yes that was it. Added the header lines and Now I can schedule the make coke from Anthracite job. Now I just have to play long enough to actually find some  :)
Logged

JoRo

  • Bay Watcher
    • View Profile
Re: Getting my first mod to work
« Reply #4 on: October 15, 2010, 01:02:06 am »

Yes that was it. Added the header lines and Now I can schedule the make coke from Anthracite job. Now I just have to play long enough to actually find some  :)

If your dwarven civilization is large enough or you've made anthracite common enough, you should be able to bring some on embark.
Logged
You have been struck down.
The giant cave spider spits out your head.