Transport Fever 2

Transport Fever 2

AI Builder
sickness01 Aug 8, 2022 @ 8:12pm
Road building error
I get this error quite often (happens with trains and trucks).

EDIT: It seems to be happening less often after i resubscribed to mod


I have been doing some playthroughs with road vehicles only (usually with an 1850 start)

What Happens:
Use AI Builder to find route, and build road route.
It places truck stations, a "Road Depot" at either end of the line.
Sets up and names the line.
Fails to buy vehicles for the line, and throws error.

This does NOT always happen, sometimes it will buy the vehicles at both road depots and send them on their way


****************************************************************************** Connecting industry Masham Iron ore mine #2 with Masham Steel mill using road ****************************************************************************** About to build proposal attempt command result was true Existing route used, checking for upgrade An error was caught res/scripts/init.lua:128: creating globals by assignment is not allowed (variable was depotOptions) Did you forget to add 'local' before your variable? stack traceback: [string "G:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:61: in function <[string "G:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:59> [C]: in function 'error' res/scripts/init.lua:128: in function '__newindex' G:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:1806: in function <G:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:1785> [C]: in function 'xpcall' [string "G:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:2453: in function <[string "G:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:2451>
Last edited by sickness01; Aug 8, 2022 @ 10:42pm
< >
Showing 1-2 of 2 comments
okeating  [developer] Aug 12, 2022 @ 11:55am 
Thanks for reporting, it should be fixed in the latest update
sickness01 Aug 13, 2022 @ 5:36pm 
Originally posted by okeating:
Thanks for reporting, it should be fixed in the latest update

seem to be getting error with trains too, where the depot doesnt attach onto the end of the station (leaves a tiny gap that you need to connect yourself). and then it does not setup line, or buy train
< >
Showing 1-2 of 2 comments
Per page: 1530 50