maintenance – Train Fever Official Website (archived) Sun, 07 Sep 2014 23:54:31 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 [MOD] Cost Mod (made by Gwinda) /forums/topic/mod-cost-mod-made-by-gwinda/ Wed, 03 Sep 2014 18:40:40 +0000 /forums/topic/mod-cost-mod-made-by-gwinda/ Continue reading ]]> Hello there!

Today it’s MOD day, this was just released by the same modder Gwinda that also made the ‘Cargo Mod’! With this mod it’s possible to change all costs ingame (of vehicles, rails, roads etc.). You can also use the Mod Manager for easier install. With this mod he also released the ‘Lua Console’ which is basically a script mod manager. I think this tool could also be used for other script mods.

The Cost Mod
All credits for making this ‘Cargo Mod’ goes to:
Gwinda from www.train-fever.net

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

”This mod allows you to individually adjust the prices of different group of vehicles, maintenance costs, building cost of roads, tracks, bridges, tunnels and more.”

 

Preparation
This package supports the mod manager.
…or
Drop the “res” folder (from the zip archive) to your TF root folder (where TrainFever.exe” is located). Overwrite files if prompted.

Install
To install this mod we need to load the script and execute the cost_mod.install() function. There are more than one way to do this depending on your preferences.
Since TF don’t have a script console (what I’m aware of) we need TF to load and execute the script somehow.

Method 1
This is the method I prefer because you don’t need to run TF to install the script.
Download and install the Lua console (supports the mod manager).

http://www.train-fever.net/filebase/index.php/Entry/9-Lua-console/

Start Lua.exe (from trainfever/res/scripts folder) and a black console window will open.
To install, type:

Quellcode

  1. require “cost_mod” cost_mod.install()

and hit enter. Done!
You can close the window and run TF as usual.

Method 2
Add the following lines to the costs.lua file in trainfever/res/config.

Quellcode

  1. require “cost_mod”
  2. cost_mod.install()

Run TF and generate a new map (or load a game save). This will run the install function and after this is done you can comment out the lines again:

Quellcode

  1. –require “cost_mod”
  2. –cost_mod.install()

Uninstall
Depending on the install method, repeat as for installation but instead of install() change to uninstall().
If, for some reasons, TF should stop to work you can always bring it back again by “Verify integrity of game cache…” from the Steam client.

Configuration
After installation a new file has been created in the trainfever/res/scripts folder

cost_mod_config.lua

Here you can enable, disable or scale the various cost factors in the game.
Each cost group has its own factor that can be either Disable, Free or a scale factor.
Use Free to make it completely free of charge.
If you use a factor instead, you can scale the cost scale.

0.5 = 50% (half cost)
1.0 = 100% (original cost)
2.0 = 200% (double cost)
0.37= 37%
…and so on.

To disable any feature (returning to its normal function) set it to Disable.

Enjoy!

Version information

newest version
4234.1
Status
Stable
changelog
Fixed the script error in the previous version.

Download:

cost_mod.zip

876 downloads

All credits for making this ‘Cargo Mod’ goes to:
Gwinda from www.train-fever.net

]]>