An easy batch script which lets you creaty nearly any metal introducing just some parameters.
Here is the original code:
@echo off
:bucle1
echo NightS' Easy Metal Creator
echo Metal name:
set /p name=
cls
echo %name% ingame value (dorfbucks)
echo Insert value here:
set /p value=
cls
echo %name% specific heat (j/(KgK)) (Joules per kilogram kelvin)
echo Insert value here:
set /p specheat=
cls
echo %name% melting point (farenheit)
echo Insert value here:
set /p rawmelt=
cls
echo %name% boiling point (farenheit)
echo Insert value here:
set /p rawboil=
cls
echo %name% solid density (g/cm3) * 1000
echo Insert value here:
set /p rawdenss=
cls
echo %name% liquid density (g/cm3) * 1000
echo Insert value here:
set /p rawdensl=
cls
echo %name% molar mass (g/mol) * 1000
echo Insert value here:
set /p rawmmass=
cls
echo %name% tensile yield (higher is better for everything)
echo General "hardness", the higher, the more strength it can stand in all ways.
echo Used to estimate all other yields and fractures
echo Orientative values:
echo Iron: 155000
echo Steel: 430000
echo Bronze: 172000
echo Copper: 70000
echo Silver: 100000
echo Tin: 12000
echo Insert value here:
set /p tyield=
cls
echo %name% compressive and impact strain at yield
echo Note: Damage caused by compression and impact if yield is surpassed
echo Low: Bends a lot High: Bends very little
echo Orientative values:
echo Iron: 319
echo Steel: 940
echo Bronze: 547
echo Copper: 175
echo Silver: 350
echo Tin: 724
echo Insert value here:
set /p cistrain=
cls
echo %name% tensile strain at yield
echo Note: resistance to tension
echo Low: Stretches/shrinks a lot High: Stretches/shrinks very little
echo Orientative values:
echo Iron: 73
echo Steel: 225
echo Bronze: 156
echo Copper: 58
echo Silver: 120
echo Tin: 24
echo Insert value here:
set /p tstrain=
cls
echo %name% torsion and shear strain at yield
echo Note: resistance to cuts and torsion
echo The lower, the deeper the scratches a weapon leaves on it
echo Orientative values:
echo Iron: 189
echo Steel: 215
echo Bronze: 156
echo Copper: 145
echo Silver: 333
echo Tin: 66
echo Insert value here:
set /p arbstrain=
cls
echo %name% max edge (default 10000)
echo Note: Maximum edge it can hold, 10000 for most metals, maybe higher for glasses, ceramics, etc.
echo Insert value here:
set /p edge=
cls
echo Please wait...
set /a tfract=%tyield% * 2
set /a melt=%rawmelt% + 9968
set /a boil=%rawboil% + 9968
set /a denss=%rawdenss%
set /a densl=%rawdensl%
set /a mmass=%rawmmass%
set /a iyield2=%tyield% * 7
set /a ifract2=%tfract% * 7
set /a istrain=%cistrain%
set /a cyield2=%tyield% * 7
set /a cfract2=%tfract% * 7
set /a cstrain=%cistrain%
set /a toryield=%tyield%
set /a torfract=%tfract%
set /a torstrain=%arbstrain%
set /a syield=%tyield%
set /a sfract=%tfract%
set /a sstrain=%arbstrain%
set /a byield=%tyield%
set /a bfract=%tfract%
set /a bstrain=%tstrain%
set /a iyield=%iyield2% / 2
set /a ifract=%ifract2% / 2
set /a cyield=%cyield2% / 2
set /a cfract=%cfract2% / 2
echo ======================= >> inorganics_metal_NEMC.txt
echo ======================= >> inorganics_metal_NEMC.txt
echo [INORGANIC:%name%] >> inorganics_metal_NEMC.txt
echo [USE_MATERIAL_TEMPLATE:METAL_TEMPLATE] >> inorganics_metal_NEMC.txt
echo [STATE_NAME_ADJ:ALL_SOLID:%name%] >> inorganics_metal_NEMC.txt
echo [STATE_NAME_ADJ:LIQUID:molten %name%] >> inorganics_metal_NEMC.txt
echo [STATE_NAME_ADJ:GAS:boiling %name%] >> inorganics_metal_NEMC.txt
echo [DISPLAY_COLOR:0:7:1] >> inorganics_metal_NEMC.txt
echo [MATERIAL_VALUE:%value%] >> inorganics_metal_NEMC.txt
echo [SPEC_HEAT:%specheat%] >> inorganics_metal_NEMC.txt
echo [MELTING_POINT:%melt%] >> inorganics_metal_NEMC.txt
echo [BOILING_POINT:%boil%] >> inorganics_metal_NEMC.txt
echo [ITEMS_WEAPON] >> inorganics_metal_NEMC.txt
echo [ITEMS_WEAPON_RANGED] >> inorganics_metal_NEMC.txt
echo [ITEMS_AMMO] >> inorganics_metal_NEMC.txt
echo [ITEMS_DIGGER] >> inorganics_metal_NEMC.txt
echo [ITEMS_ARMOR] >> inorganics_metal_NEMC.txt
echo [ITEMS_ANVIL] >> inorganics_metal_NEMC.txt
echo [ITEMS_HARD] >> inorganics_metal_NEMC.txt
echo [ITEMS_METAL] >> inorganics_metal_NEMC.txt
echo [ITEMS_BARRED] >> inorganics_metal_NEMC.txt
echo [ITEMS_SCALED] >> inorganics_metal_NEMC.txt
echo [SOLID_DENSITY:%denss%] >> inorganics_metal_NEMC.txt
echo [LIQUID_DENSITY:%densl%] >> inorganics_metal_NEMC.txt
echo [MOLAR_MASS:%mmass%] >> inorganics_metal_NEMC.txt
echo [IMPACT_YIELD:%iyield%] >> inorganics_metal_NEMC.txt
echo [IMPACT_FRACTURE:%ifract%] >> inorganics_metal_NEMC.txt
echo [IMPACT_STRAIN_AT_YIELD:%istrain%] >> inorganics_metal_NEMC.txt
echo [COMPRESSIVE_YIELD:%cyield%] >> inorganics_metal_NEMC.txt
echo [COMPRESSIVE_FRACTURE:%cfract%] >> inorganics_metal_NEMC.txt
echo [COMPRESSIVE_STRAIN_AT_YIELD:%cstrain%] >> inorganics_metal_NEMC.txt
echo [TENSILE_YIELD:%tyield%] >> inorganics_metal_NEMC.txt
echo [TENSILE_FRACTURE:%tfract%] >> inorganics_metal_NEMC.txt
echo [TENSILE_STRAIN_AT_YIELD:%tstrain%] >> inorganics_metal_NEMC.txt
echo [TORSION_YIELD:%toryield%] >> inorganics_metal_NEMC.txt
echo [TORSION_FRACTURE:%torfract%] >> inorganics_metal_NEMC.txt
echo [TORSION_STRAIN_AT_YIELD:%torstrain%] >> inorganics_metal_NEMC.txt
echo [SHEAR_YIELD:%syield%] >> inorganics_metal_NEMC.txt
echo [SHEAR_FRACTURE:%sfract%] >> inorganics_metal_NEMC.txt
echo [SHEAR_STRAIN_AT_YIELD:%sstrain%] >> inorganics_metal_NEMC.txt
echo [BENDING_YIELD:%byield%] >> inorganics_metal_NEMC.txt
echo [BENDING_FRACTURE:%bfract%] >> inorganics_metal_NEMC.txt
echo [BENDING_STRAIN_AT_YIELD:%bstrain%] >> inorganics_metal_NEMC.txt
echo [MAX_EDGE:%edge%] >> inorganics_metal_NEMC.txt
cls
echo Want to create another metal?
echo Write y (no caps) to create another one
set /p bucle=
if %bucle%==y GOTO bucle1
cls
echo Thanks for using NightS' Easy Metal Creator
pause
exit
And here is the new one, improved by Putnam
@echo off
:bucle1
echo Putnam's Easy Metal Converter (Based on NightS easy metal creator, most of file is from NightS)
echo Metal name:
set /p name=
cls
echo %name% ingame value (dorfbucks)
echo Insert value here:
set /p value=
cls
echo %name% specific heat (j/(KgK)) (Joules per kilogram kelvin)
echo Insert value here:
set /p specheat=
cls
echo %name% melting point (farenheit)
echo Insert value here:
set /p rawmelt=
cls
echo %name% boiling point (farenheit)
echo Insert value here:
set /p rawboil=
cls
echo %name% solid density (g/cm3) * 1000
echo Insert value here:
set /p rawdenss=
cls
echo %name% liquid density (g/cm3) * 1000
echo Insert value here:
set /p rawdensl=
cls
echo %name% molar mass (g/mol) * 1000
echo Insert value here:
set /p rawmmass=
cls
echo %name% Young's Modulus
set /p tyield=
cls
echo %name% Bulk Modulus
set /p cistrain=
cls
echo %name% Shear Modulus
set /p arbstrain=
cls
echo %name% max edge (default 10000)
echo Note: Maximum edge it can hold, 10000 for most metals, maybe higher for glasses, ceramics, etc.
echo Insert value here:
set /p edge=
cls
echo Please wait...
set /a tyieldone=%tyield% * 1000
set /a arbstrainone=%arbstrain% * 1000
set /a cistrainone=%cistrain% * 1000
set /a testimateone=155000 * ( %tyieldone% / 211 )
set /a testimate=%testimateone% / 1000
set /a tfract=%testimate% * 2
set /a melt=%rawmelt% + 9968
set /a boil=%rawboil% + 9968
set /a denss=%rawdenss%
set /a densl=%rawdensl%
set /a mmass=%rawmmass%
set /a iyield2=%testimate% * 7
set /a ifract2=%tfract% * 7
set /a istrain=319 * (%cistrainone% / 170 )
set /a cyield2=%testimate% * 7
set /a cfract2=%tfract% * 7
set /a cstrain=319 * ( %cistrainone% / 170 )
set /a toryield=%testimate%
set /a torfract=%tfract%
set /a torstrain=189 * ( %arbstrainone% / 82 )
set /a syield=%testimate%
set /a sfract=%tfract%
set /a sstrain=189 * ( %arbstrainone% / 82 )
set /a byield=%testimate%
set /a bfract=%tfract%
set /a bstrain=73 * ( %tyieldone% / 211 )
set /a iyield=%iyield2% / 2
set /a ifract=%ifract2% / 2
set /a cyield=%cyield2% / 2
set /a cfract=%cfract2% / 2
set /a shearbasedone=sstrain / 1000
set /a youngbasedone=bstrain / 1000
set /a bulkbasedone=cstrain / 1000
echo [INORGANIC:%name%] >> inorganics_metal_NEMC.txt
echo [USE_MATERIAL_TEMPLATE:METAL_TEMPLATE] >> inorganics_metal_NEMC.txt
echo [STATE_NAME_ADJ:ALL_SOLID:%name%] >> inorganics_metal_NEMC.txt
echo [STATE_NAME_ADJ:LIQUID:molten %name%] >> inorganics_metal_NEMC.txt
echo [STATE_NAME_ADJ:GAS:boiling %name%] >> inorganics_metal_NEMC.txt
echo [DISPLAY_COLOR:0:7:1] >> inorganics_metal_NEMC.txt
echo [MATERIAL_VALUE:%value%] >> inorganics_metal_NEMC.txt
echo [SPEC_HEAT:%specheat%] >> inorganics_metal_NEMC.txt
echo [MELTING_POINT:%melt%] >> inorganics_metal_NEMC.txt
echo [BOILING_POINT:%boil%] >> inorganics_metal_NEMC.txt
echo [ITEMS_HARD] >> inorganics_metal_NEMC.txt
echo [ITEMS_METAL] >> inorganics_metal_NEMC.txt
echo [ITEMS_BARRED] >> inorganics_metal_NEMC.txt
echo [ITEMS_SCALED] >> inorganics_metal_NEMC.txt
echo [SOLID_DENSITY:%denss%] >> inorganics_metal_NEMC.txt
echo [LIQUID_DENSITY:%densl%] >> inorganics_metal_NEMC.txt
echo [MOLAR_MASS:%mmass%] >> inorganics_metal_NEMC.txt
echo [IMPACT_YIELD:%iyield%] >> inorganics_metal_NEMC.txt
echo [IMPACT_FRACTURE:%ifract%] >> inorganics_metal_NEMC.txt
echo [IMPACT_STRAIN_AT_YIELD:%bulkbasedone%] >> inorganics_metal_NEMC.txt
echo [COMPRESSIVE_YIELD:%cyield%] >> inorganics_metal_NEMC.txt
echo [COMPRESSIVE_FRACTURE:%cfract%] >> inorganics_metal_NEMC.txt
echo [COMPRESSIVE_STRAIN_AT_YIELD:%bulkbasedone%] >> inorganics_metal_NEMC.txt
echo [TENSILE_YIELD:%testimate%] >> inorganics_metal_NEMC.txt
echo [TENSILE_FRACTURE:%tfract%] >> inorganics_metal_NEMC.txt
echo [TENSILE_STRAIN_AT_YIELD:%youngbasedone%] >> inorganics_metal_NEMC.txt
echo [TORSION_YIELD:%toryield%] >> inorganics_metal_NEMC.txt
echo [TORSION_FRACTURE:%torfract%] >> inorganics_metal_NEMC.txt
echo [TORSION_STRAIN_AT_YIELD:%shearbasedone%] >> inorganics_metal_NEMC.txt
echo [SHEAR_YIELD:%syield%] >> inorganics_metal_NEMC.txt
echo [SHEAR_FRACTURE:%sfract%] >> inorganics_metal_NEMC.txt
echo [SHEAR_STRAIN_AT_YIELD:%shearbasedone%] >> inorganics_metal_NEMC.txt
echo [BENDING_YIELD:%byield%] >> inorganics_metal_NEMC.txt
echo [BENDING_FRACTURE:%bfract%] >> inorganics_metal_NEMC.txt
echo [BENDING_STRAIN_AT_YIELD:%youngbasedone%] >> inorganics_metal_NEMC.txt
echo [MAX_EDGE:%edge%] >> inorganics_metal_NEMC.txt
cls
echo Want to create another metal?
echo Write y (no caps) to create another one
set /p bucle=
if %bucle%==y GOTO bucle1
cls
echo Thanks for using Putnam's Easy Metal Converter (made first by NightS)
pause
exit
To use it: Paste it in a .txt document, save as *put name here*.bat
Try it and report any bugs ^^
Also, one little problem: The metal names don't appear in caps, so you'll have to modify that manually