• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Add Material into Forge no work

mers

New member
Hi all

Today i try add material into forge but when i place my forge on ground i receive error "object no found"

Do you have a good tutorial for add new material into forge plz ?

 
Here's some things, that I can remember from the top of my head for you to check. To make it easier to understand, lets call the new material 'gold':

  • materials.xml - define the 'gold' material
  • items.xml - create two items, one 'gold', that has the 'gold' material set as its material and another would be unit_gold item (the item must be named unit_ + MaterialName = unit_gold), that would:
    Code:
    <property name="Extends" value="unit_iron" />
    and also has material set to 'gold'
  • recipes.xml - if you want to be able to scrap items made out of gold material, you must add:
    Code:
    <recipe name="gold" count="1">
     <wildcard_forge_category />
    </recipe>
  • blocks.xml - find forge and add 'gold' to InputMaterials:
    Code:
    <property name="InputMaterials" value="iron,brass,lead,glass,stone,clay,[color="#FFA500"][b]gold[/b][/color]"/>
  • XUi/windows.xml - find windowForgeInput and add your new material:
    Code:
    materials_accepted="iron,brass,lead,glass,stone,clay,[b][color="#FFA500"]gold[/color][/b]"
    also change grid to include new material so that it shows in the list:

    Code:
    <grid rows="[color="#FFA500"][b]7[/b][/color]" ...>
    <forge_material name="0"/>
    </grid>

If I forgot something, someone please correct me.

 
Last edited by a moderator:
Oh yes this work perfect, just some problem with UI but i know how fix it

Thx you very much:02.47-tranquillity:

 
Back
Top