[MOD] Cost Mod (made by Gwinda)

Home Forums Modding [MOD] Cost Mod (made by Gwinda)

Viewing 15 posts - 16 through 30 (of 40 total)
  • Author
    Posts
  • #14248
    Anonymous
    Inactive

    Hello! I get the following error when I start a new World with this mod installed:

    File: res/config/cost.lua

    res/config/COSTs.lua:21: <eof> expected near ‘end’

    I wonder if this can be fixed or if it is caused by Another mod? (I have Timeless mod and Gwindas signal pack included.)

     

    Thank you 😀

    #15747
    Gwinda
    Participant

    I have released a hotfix v2.10 to fix the issue that v2.0 didn’t uninstall the previous version correctly.

    http://www.train-fever.net/filebase/index.php/Entry/10-Cost-mod-v2-0/

    #18193
    Gwinda
    Participant

    Cost_mod v3.2 for TF 5541.

    #18198
    Szynsz
    Participant

    Hello

    I try to install this mod by method 1 and 2 but i dont have file LUA.exe in first method and `cost_mod_config.lua in second method.
    `

    • This reply was modified 9 years ago by Szynsz.
    #18200
    Szynsz
    Participant

    I cant edit my post. I try one more time and i get this error (method 2)

     

    My cost.lua file:

    function data()
    cost_mod.install()
    require “cost_mod”
    return {
    — per m^3
    terrainRaise = 6.0,
    terrainLower = 7.0,

    railroadTrack = 50.0,                — per m
    railroadHighSpeedTrack = 80.0,        — per m
    railroadCatenary = 15.0,            — per m
    railroadSwitch = 5000.0,            — per instance
    railroadBridge = 10000.0,            — per instance
    railroadBridgeVol = 11.0,            — per m^3
    railroadTunnel = 25000.0,            — per instance
    railroadTunnelLen = 1000.0,            — per m

    — fraction of the road cost
    roadBusLane = .1,
    roadTramLane = .4,

    }
    end

     

     

    #18205
    Szynsz
    Participant

    Ok it work, my mistake, i looking this files in wrong directory. Now i must reinstall game because i generate some trash 😛

    #18207
    Gwinda
    Participant

    The mod has been adopted to the new mod system. You should not use LuaTF.exe.

    I don’t own this thread so I can’t change the instructions in the first post. You will always find the latest news and instructions here:

    http://www.train-fever.net/filebase/index.php/Entry/10-Cost-mod-v2-0/

     

    #18211
    Szynsz
    Participant

    Fortunately, the method of trial and errors I managed to run 🙂

    #18215
    Traian Trante
    Participant

    Gwinda, could you please expand your cost mod so that we can alter the tonnage and the capacity to all the vehicles ?

    I’m thinking of soething like: trains carry 50% less cargo, are 75% lighter and they cost 50% less to maintain. This should be fun 😀

    #18234
    Gwinda
    Participant

    No problem, as soon I get some time I can make a load mod in the same style as the time and cost mod.

    #18242
    Traian Trante
    Participant

    Awesome, thank you a lot for looking into this !!!!!!

    #18414
    Traian Trante
    Participant

    Me again.

     

    I tried doing it myself. I took your file from the cost mod : main.lua and added this:

      if c == ‘model/vehicle/waggon’ then

    data.metadata.transportVehicle.capacities.capacity = data.metadata.transportVehicle.capacities.capacity / 4

      end

    to the metadataHandler function. however, as expected, it got an error. My guess is the error is because the data.metadata.transportVehicle.capacities is actually an array, not a variable.

    How do i sole this ? How do i call all the variables in the array ?

     

    For reference, the open wagon ‘s metadata looks like this:

    capacities = {

    { type = “COAL”, capacity = 32, loadIndicator = { type = “LEVEL”, params = { id = 2, maxHeight = 0.88 } } },

    { type = “IRON_ORE”, capacity = 32, loadIndicator = { type = “LEVEL”, params = { id = 3, maxHeight = 0.88 } } },

    },

     

    #21601
    Gwinda
    Participant

    Released Cost mod v3.3

    ​* Updated for TF 7753
    * Added UI Configuration script for TFGM
    * Added factor for placeable assets​

    #21811
    Theboss0104
    Participant

    #21812
    Theboss0104
    Participant

    I need help ;-;

Viewing 15 posts - 16 through 30 (of 40 total)
  • The forum ‘Modding’ is closed to new topics and replies.