Transport Fever 2

Transport Fever 2

AI Builder
SindSieEcht 9 Jul, 2022 @ 10:21am
Error spam
Didn't want to keep spamming the comments with anything thing I find, so I'm creating a discussion.

~The builder seems to be unable to purchase road vehicles after route completion. Fixed :)
An error was caught A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:401: 'for' limit must be a number stack traceback: [string "A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:60: in function <[string "A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:58> A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:401: in function 'buyAndAssignVechicles' A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:1300: in function <A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:1267> [C]: in function 'xpcall' [string "A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:2318: in function <[string "A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:2316>

~Line reports aren't working for me. This is the error I get. Fixed :)
An error was caught A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:738: attempt to perform arithmetic on global 'cargoType' (a nil value) stack traceback: [string "A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:60: in function '__add' A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:738: in function 'getDemandRate' A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:771: in function 'addMoreVehicles' A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:1919: in function 'getLineReport' A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:2101: in function 'getLinesReport' A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:2367: in function <A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:2364> [C]: in function 'xpcall' [string "A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:2407: in function <[string "A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:2404>

~Looking at a route in the vehicles tab produces an error. Fixed :)
An error was caught A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:2570: stack index 2, expected number, received number: not a numeric type (bad argument into 'std::basic_string<char,std::char_traits<char>,std::allocator<char> >(sol::basic_table_core<0,sol::basic_reference<0> >, __int64)') stack traceback: [string "A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:60: in function <[string "A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:58> [C]: in function 'formatNumber' A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:2570: in function <A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua:2529> [C]: in function 'xpcall' [string "A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:2407: in function <[string "A:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:2404>
Last edited by SindSieEcht; 9 Jul, 2022 @ 12:52pm
< >
Showing 1-1 of 1 comments
okeating  [developer] 9 Jul, 2022 @ 11:58am 
Thank you @DidNothing for these reports - it looks like I introduced one of those errors in the previous update, I have just pushed an update - all three should be fixed now
< >
Showing 1-1 of 1 comments
Per page: 1530 50