Transport Fever 2

Transport Fever 2

AI Builder
204 Comments
xXTENNESIEXx Jun 21 @ 1:57am 
French please
etvanluijk1 May 17 @ 3:51am 
@imam_vov i get those as well but that doesn't stop me to retry it again on wich it works fine.
but when i use train and refresh game freezing and shuts then off.
@Okeating please fix that including any parts that involves it.
iman_vov Apr 27 @ 2:18am 
Error in lines:
107,
1663,
16285,
1107,
4625.
4802
iman_vov Apr 27 @ 2:16am 
Have deleted and installed AI builder again. But not helping.
Got this error when tried to build Road connection between two cities:

https://imgur.com/a/EFXRsl5
lauramayhew104 Apr 17 @ 1:23pm 
can i change the ai station track ammount
etvanluijk1 Apr 9 @ 4:54am 
np just whant everyone full experience of the game with this mod.
there are still some issues but have not found them yet
okeating  [author] Apr 8 @ 8:03am 
@etvanluijk1 thanks for reporting, I was able to replicate and have pushed a fix
etvanluijk1 Apr 7 @ 8:54pm 
now getting game error and shuts down the game completely, by trying bus lines between city's
okeating  [author] Apr 6 @ 12:05pm 
Thanks for reporting, I have pushed a fix, let me know if you have any more issues
etvanluijk1 Apr 5 @ 11:19am 
got same error when trying to get bus lines in city's, when i build train station into it.
before update of april 2 2025 didn't got this issue
Ohkyuu Apr 3 @ 4:44pm 
"D:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai builder_script.lua"]:605: in function < [string "D:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_ builder_script.lua"l:563>
E[C): in function 'xpcall'
E[string "D:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:4442: in function < [string "D:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:4425>
B[C): in function 'xpcall'
E[string "D:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:4615: in function < [string "D:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:4615>

3/3
Ohkyuu Apr 3 @ 4:44pm 
ED:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_vehicle_util.lua:1006: in function 'findVehiclesOfType' RD:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_vehicle_util.lua:1150: in function 'getWaggonsByCargoType' RD:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_vehicle_util.lua:2255: in function 'estimateThroughputPerConsist'
RD:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua: 1518: in function 'estimatelnitialConsist' RID:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_line_manager.lua: 1585: in function 'setupTrainLineParams'
E[string

2/3
Ohkyuu Apr 3 @ 4:44pm 
Hey, got this error while trying to build a railway between 2 industries where does it comes from ?

An error occurred while executing: Connecting industry Genève Carrière with Jonage Usine de matériaux de construction using rail
D:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_vehicle_util.lua:902: attempt to index field 'railVehicle' (a nil value)stack traceback:
[string "D:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/config/game_script/ai_builder_script.lua"]:106: in function'
ED:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_vehicle_util.lua:902: in function discoverVehich index
ED:/SteamLibrary/steamapps/workshop/content/1066780/2820656841/res/scripts/ai_builder_vehicle_util.lua:987: in function 'getAlIVehiclesByType'


1/3
Mike Crosley Feb 9 @ 7:34pm 
This sounds AWESOME! I can't wait to try it on my next map!
kenkee Jan 21 @ 5:55am 
Hi, after launching a construstion the game does not reset to play. I can click on the cities to continue building but it's like in constant pause.
Melon_Lord Dec 18, 2024 @ 6:29am 
Hey, I have an issue or maybe im not understanding this mod.

When ever I try and build something it either takes ages to start (initialling) or never completes. If I use Global it starts immediately but never finishes. If i use the within circle mode it never starts.

Should it take this long. I also cant place or remove anything whilst this process is happening.

Any help would be awesome
okeating  [author] Dec 7, 2024 @ 5:35am 
PLEASE NOTE: Comments that just say "mod is broken" are not helpful and will be deleted. If you encounter an issue please create a forum post above describing what you were doing, what mods you have installed, and what went wrong. Remember this is a free community mod so please be part of the community and try to help make it better.
okeating  [author] Dec 7, 2024 @ 5:35am 
@FrozenHands try it now I have pushed an update
Tommyc86 Dec 2, 2024 @ 3:26am 
is there a way to either make the signals go in the opposite direction or turn them off when building Railways.
Frozenhands Oct 19, 2024 @ 10:22am 
The mod is broken and can't create bus lines between cities, while the road is available.
joe-frosch Sep 18, 2024 @ 9:12am 
nachtrag es geht gar nix
joe-frosch Sep 18, 2024 @ 9:03am 
brauche Hilfe es zeigt an An error occurred while excuting bulding Complete route
WingusMcDingus Jul 28, 2024 @ 9:32am 
@op there is a thread, i will update it with the errors i receive
okeating  [author] Jul 28, 2024 @ 9:28am 
@WingusMcDingus could you start a thread in the discussions above? It would be useful to get some more information and clarity about what is working and what is not working for you.

@Einstein, when I was testing this with some of the industry mods, I found that resources would end up flowing all over the place if vehicles (particularly trucks) at "auto load". I did want use the line load filter to solve this, but there is a bug in the api that won't let this be set, so instead I locked the cargo type. I could make a checkbox to opt out of this feature in the params screen.
WingusMcDingus Jul 26, 2024 @ 1:07pm 
scripts dont like creating new intercity bus routes, has trouble analyzing train stations with multiple lines, cant create highways, cant create air routes
Einstein Jul 22, 2024 @ 1:11pm 
Lines are created with vehicles only being able to do the resource we define first, but there's often a chance to bring back a non-empty haul, which we could edit manually, but because the trucks are define with a single resource I usually need to replace all vehicles for the same vehicle to unlock all other resources options. Is this expected?
WingusMcDingus Jul 21, 2024 @ 1:05pm 
im still getting bugs on trying to build tram/bus lines, something on line manager.lua 3220, an error in ai_builder_script.lua 4152 and 4315
doug Jul 21, 2024 @ 3:28am 
I'm wondering if the error only occurs if debug mode is not active.
okeating  [author] Jul 21, 2024 @ 3:08am 
Apologies, I have just pushed an update, the check lines has been fixed, the global assignments have also been fixed (I don't understand why I don't encounter this error myself)
WingusMcDingus Jul 19, 2024 @ 3:00pm 
Most recent update completely bricked mod's ability to check lines, returning an error whenever analyzing lines
Justinian89627 Jul 18, 2024 @ 10:26pm 
I am also facing an error while trying to build a rail connection between two cities. I have not been able to get this to work at all. https://paste.pics/7eaee2ec8a24f8172bb412393d50b9a8
okeating  [author] Jul 17, 2024 @ 10:04pm 
I have pushed a new version that should fix some issues, @Einstein could you recheck if it is an issue, if it is then yes it would be helpful
NonNegative Jul 17, 2024 @ 3:15pm 
I asked AI to build me a highway between two towns - it built me a fookin NURBURGRING lmaoo:steamthumbsup:
ReluctantGamer96 Jun 23, 2024 @ 1:34am 
This is a great mod, although shipping is broken and airports are regularily build on streets.

Is it possible to deactivate passenger line merging? I dislike having these super long lines, and instead would prefer point on point travel.
I'd also really like an option to force create a completely new separate line that doesn't use preexisting railroads as this causes massive unsolvable traffic jams on short distance industries with high production.
Einstein May 18, 2024 @ 4:19am 
Nice work!

The auto-detect vehicles is not working, playing with European the script is adding Asian vehicles to start with. Not a huge issue, but would be nice to get it fixed.

What should I do if I want to replace an early truck delivery by a train one? I tried deleting all the old infra and lines, let transport go down to 0, but it won't suggest me as a train (or truck) option anymore.

I'm also getting a crash when trying to build a specific route into a city where another good is already delivered. If I delete the first good truck stop then it builds it. Do you want the save game/logs to check?
IHRTCorsairHardware May 6, 2024 @ 3:53am 
incredible work thank you. very impressive codding/modding
agunter999 Apr 16, 2024 @ 4:20am 
Sooo this is a bit of an overstretch but what about AI field placement?
CryptedRandom Mar 30, 2024 @ 10:00pm 
how do you use it
gsh.tls Feb 17, 2024 @ 5:45pm 
every time I try new line it freezes on autosave
jsieczkar Jan 14, 2024 @ 4:15pm 
It seems like the train line creator ignores grain farms, they show up on the road creator. Is this intentional?
Ferocious Jan 10, 2024 @ 11:26pm 
@Eobard it's probably worth mentioning that before destination of a cargo shows up the industry you want to deliver cargo from must have at least some resources to start working. Say you want to deliver tools from a tool factory to a town — then you must first deliver planks and steel (or only planks for early date) to the tool factory for it to start working then the consumers will appear in AI builders list
Eobard Thawn Jan 10, 2024 @ 2:20pm 
@rolf968 Thanks! works now, that was not obvious to me.
rolf968 Jan 10, 2024 @ 10:24am 
@Eobard you don’t need to build a cargo point. Choose „within circle“ and place only the industry you want to send your cargo from within this circle. After that click the „refresh“ button within the industry to industry section, the cities with a demand for this cargo should show up as a valid destinaton.
Eobard Thawn Jan 4, 2024 @ 2:37pm 
Hi, is there a good tutorial on how to use this mod? I can get it to connect two industries or two cities, but not an industry to a city. I can see that it is an option to build a cargo point in the cities, but it is grayed out. is that because it isn't implemented or am I doing something wrong?
okeating  [author] Dec 25, 2023 @ 4:37am 
Yup, should be an easy fix, will push that shortly
Lyncho El Patron Dec 22, 2023 @ 3:03pm 
Hi, I've been trying to build a cicular elevated train route between 5-8 cities at a time, I will often get this error and was wondering if there is a fix? I was thing I may just be pushing the AI to hard lol

https://prnt.sc/WfArAUUPkRdy
Canadian_67 Nov 18, 2023 @ 10:55am 
@Victor im not sure if this will help, and sure enough i know its very late, but maybe try to wait till the station names have gone away? the red line under the popup tells how much time is left, its like that so you can rebuild a station and keep the same name/lines
Victor Aug 31, 2023 @ 5:15am 
Hello @okeating I really enjoy this mod! However i have encountered a quite annoying issue. Let's say that I for example want to build a truck line between two industries in early game, but then later want to change to a train line with the same industries. When I remove all the truck stations and etc the AI builder seems to think it is still there and can therefore not make a new line for them.
l10reader Aug 25, 2023 @ 9:56am 
hi all i seem to be encountering a lot of errors with train lines is there a limit to it.
level2347 Aug 21, 2023 @ 1:06pm 
Is there any known mods that not will work with your mod? This mod isnt working great for me. specially for train line building. Initializing........................ .
How do I debug what is wrong? where is the logs?