Im currently trying to add methanol for a mod im making. i can only add the fuel type in the fueltank.lua in the beam dir, but i wanna add methanol in my mods folder instead. How to? I noticed in another lua file that it looks up for a specific lua folder located lua/vehicle/energyStorage is this whats stopping me from making it work in another folder or am i really that noob in lua? What am i missing here?
There's no need to modify any lua files for this. Just configure the existing fuelTank in jbeam with the correct data for these attributes: Code: energyType --set to "methanol" or whatever else you want, need to use the same string in the combustion engine required fueltype energyDensity --MJ/kg fuelLiquidDensity --kg/L The fuelTank code has presets for a bunch of different fuels, but you can just specify whatever you want directly in jbeam
Nice thanks!. Just gonna put this bit of info out there too. I tried adding the fuel density the same way its written in the lua, which is 19.7*1000000 but that ended up giving me errors and wouldnt work. Unless i did something wrong again, it worked if it didnt have to multiply things.