poly
New member
Hi all,
Just want to throw out a question to more experienced modders as I've ran into a dilemma while updating something.
In materials.xml I can write the following command:
<set xpath="/materials/material[@id='MresourceForgedSteel']/property[@name='forge_category']/@value">clay</set>
This enables me to put Forged Steel into the Forge and it converts it to clay (just as an exercise in practicality). I can also Scrap the item for clay.
However, simply changing it from 'clay' to 'lead' seems to break it and it no longer works - ie it doesn't convert to lead in the Forge.
Is there any other line(s) of code that factor in to this conversion?
I have created a new Forge input category as 'Steel' and I'm trying to get it so that you can put Forged Steel into the Forge and then create something else, at the moment I can only do it with workarounds (creating a new item, which you convert Forged Steel too), but I'd like to be able to put Forged Steel itself into the Forge - Is this possible?
Secondly, is there any rule (case sensitivity for example) when creating new input materials in XUi/windows.xml?
This is a part of the code I'm referring too:
<window name="windowForgeInput" width="228" height="204" panel="Right"
controller="WorkstationMaterialInputWindow" materials_accepted="iron,brass,lead,glass,stone,clay" valid_materials_color="[green]" invalid_materials_color="[red]" cursor_area="true" >
I have tried spaces:
materials_accepted="forged steel,iron,brass,lead,glass,stone,clay"
Gives errors
It only seems to work when using single words.
If that's the limitation - can you customize this section in a localization file?
Thanks!
Just want to throw out a question to more experienced modders as I've ran into a dilemma while updating something.
In materials.xml I can write the following command:
<set xpath="/materials/material[@id='MresourceForgedSteel']/property[@name='forge_category']/@value">clay</set>
This enables me to put Forged Steel into the Forge and it converts it to clay (just as an exercise in practicality). I can also Scrap the item for clay.
However, simply changing it from 'clay' to 'lead' seems to break it and it no longer works - ie it doesn't convert to lead in the Forge.
Is there any other line(s) of code that factor in to this conversion?
I have created a new Forge input category as 'Steel' and I'm trying to get it so that you can put Forged Steel into the Forge and then create something else, at the moment I can only do it with workarounds (creating a new item, which you convert Forged Steel too), but I'd like to be able to put Forged Steel itself into the Forge - Is this possible?
Secondly, is there any rule (case sensitivity for example) when creating new input materials in XUi/windows.xml?
This is a part of the code I'm referring too:
<window name="windowForgeInput" width="228" height="204" panel="Right"
controller="WorkstationMaterialInputWindow" materials_accepted="iron,brass,lead,glass,stone,clay" valid_materials_color="[green]" invalid_materials_color="[red]" cursor_area="true" >
I have tried spaces:
materials_accepted="forged steel,iron,brass,lead,glass,stone,clay"
Gives errors
It only seems to work when using single words.
If that's the limitation - can you customize this section in a localization file?
Thanks!