Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: need help adding new stone/metal  (Read 377 times)

Sirdrake

  • Bay Watcher
    • View Profile
need help adding new stone/metal
« on: February 15, 2011, 11:16:51 am »

want to add new stone/metal called rune i want it to have the strength and cuttingness of adamantine and for it to be heavy to be heavy
Spoiler (click to show/hide)
Spoiler (click to show/hide)
Logged

Sutremaine

  • Bay Watcher
  • [ETHIC:ATROCITY: PERSONAL_MATTER]
    • View Profile
Re: need help adding new stone/metal
« Reply #1 on: February 15, 2011, 12:50:38 pm »

The material itself looks okay, except for the [METAL_ORE:250] line (the number is a percentage value. 100 means you get ore 100% of the time, not sure how the game handles figures above that) and the [LIQUID_DENSITY:2600] lines. The latter isn't a problem, per se, but it does mean that molten rune / runeite is as light as molten adamantine / raw adamantine.
The ore is missing a place to appear, though, so you'll never see it in-game.

Did you want it to have the same uses as adamantine and for items made out of it to take 3x as much material as regular metal? Not that the [WAFERS] tag is actually working due to the bug that causes all items to take up one unit of metal, but you don't want any nasty surprises in future. :)

To actually add it, all you need to do is paste the ore into inorganic_stone_mineral.txt and the metal into inorganic_metal.txt. The tags will take care of the rest. (In theory both of those could go into any of the inorganic_ files since they all share the same [INORGANIC:<whatever>] format, but that's messy.)

Then it should be available for arena use.
Logged
I am trying to make chickens lay bees as eggs. So far it only produces a single "Tame Small Creature" when a hen lays bees.
Honestly at the time, I didn't see what could go wrong with crowding 80 military Dwarves into a small room with a necromancer for the purpose of making bacon.

Sirdrake

  • Bay Watcher
    • View Profile
Re: need help adding new stone/metal
« Reply #2 on: February 15, 2011, 01:23:32 pm »

Thanks Testing it now
New to modding
 :-[
Logged

Sutremaine

  • Bay Watcher
  • [ETHIC:ATROCITY: PERSONAL_MATTER]
    • View Profile
Re: need help adding new stone/metal
« Reply #3 on: February 15, 2011, 02:08:07 pm »

Ehh, that's what the modding forum is here for.

But even if you are just copying a material and making a few changes, it pays to know what all the existing tags do, or at least know a little about the syntax. For instance, [ITEMS_<whatever>] tells the game what items can be made from a material. Adamantine's kind of a bad example because it gets used for everything, but if you see [ITEMS_WEAPON] in one material and know that it means 'make weapon items', you can look at [ITEMS_BARRED] in another and read it as 'makes barred items' even if you might not know what the game considers to be barred.
Logged
I am trying to make chickens lay bees as eggs. So far it only produces a single "Tame Small Creature" when a hen lays bees.
Honestly at the time, I didn't see what could go wrong with crowding 80 military Dwarves into a small room with a necromancer for the purpose of making bacon.

Sirdrake

  • Bay Watcher
    • View Profile
Re: need help adding new stone/metal
« Reply #4 on: February 16, 2011, 04:39:21 pm »

Okay so how do i make items Race specific and not show up on items menu when embarking
Logged