Transport Fever 2

Transport Fever 2

65 ratings
Hide AI Cars 2.0 [FREE PLAY MODE]
4
4
   
Award
Favorite
Favorited
Unfavorite
Track/Street: Street
Tags: script, Mod
File Size
Posted
69.165 KB
27 Jun, 2020 @ 6:19pm
1 Change Note ( view )

Subscribe to download
Hide AI Cars 2.0 [FREE PLAY MODE]

Description
UPDATE: As of May 2023 there are reports that version 2.0 no longer works with Transport Fever 2. (Danke @DuncanZocktYT und @dt8_fan)

This mod changes the vanilla roads so they only support the different vehicle types, but NO AI CARS!

It works for new games you start in FREE GAME mode. (just make sure you enable "Hide AI Cars" before starting the game)

KNOWN ISSUES

1. GAME CRASHES

Don't enable this mod before year 1920 or whatever the year before bus lanes were available. It will crash the game. The crash occurs after passing 1921. (thanks to 女乃豆頁身寸米青 for reporting this issue).

2. COMPATIBILITY ISSUES

This mod is known to cause issues when used with "SMP2.0 - Street Modpack". (thank you to Namikaze for the bug report). We advise not to use it with SMP2.0 until a fix can be developed.

HOW TO USE

1. On Transport Fever 2 main menu, click FREE GAME.
2. Wait for map to generate, then click Next button.
3. Make sure "Custom" is ticked. (top right)
4. Click on Settings button.
5. In the list of mods shown, turn on the "Hide AI Cars" mod with the toggle button. (in the Enabled column)
6. Click Save.
7. Click START.

IMPORTANT: This mod is ported directly from Transport Fever 1 to Transport Fever 2, and has not undergone much testing. Please report any issues you encounter. The original mod for Transport Fever 1 is available here:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1548167195

If you already have a save game made in FREE GAME mode, that did not have "Hide AI Cars" enabled when you created that game, you may still be able to get it working, but there are some manual steps involved.

ACKNOWLEDGEMENTS

Thank you to 两个大胖子 for requesting a port of this mod to Transport Fever 2 back in February 2020. I must apologize for the extended delay due to work commitments this year. Thank you also to Gunzi and Namikaze for requesting a port to TF2 as well -- it's now late June 2020, and I've finally got my act together!

MANUAL STEPS TO GET IT WORKING:

1. Load the save game and add "Hide AI Cars" to the list of mods.

2. After the save game loads in, you will need to use the Road upgrade tool, and go around the map looking for cars and/or people. I recommend starting in the towns, selecting the Upgrade road tool, and selecting another road OF THE SAME SIZE AS THE ROADS YOU WISH TO REMOVE CARS FROM.

ie. In my towns I have modern medium width roads, so I replace them with medium country dirt roads with the upgrade tool. Then I select the modern medium width road type from the roads panel, and upgrade the medium country dirt roads back to the modern medium road type. (ie. what they were originally).

3. Repeat step #2 for each road segment containing cars. You should see the cars disappear if they are on the road segment you are upgrading when you upgrade it. I know this is a pain to go through each road with a car on it, but there's no alternative I know of.

4. Once finished, save your game WITH A DIFFERENT FILENAME just in case we discover any bugs with this mod in the near future.

Any issues, please let me know.
71 Comments
joe-frosch 21 Feb @ 7:11am 
geiler Mod liebe es endlich keine scheiß stau Mehr das ist für mich wie ein Schatz der das Spiel geiler macht und Freude bringt
[1stGLI]Misaka 9 Dec, 2024 @ 5:24pm 
Nice mod ,I could finally dont need to focus on AI cars who Blow up the traffic in the City ,Could make me think i was playing Transport Fever 2 not City Skyline 2.
At least ,for me this mod still working ,i just finish a really fun gamesaving for testing this mod. thank you for making this mod.
Cant wait to start a new gamesave tomorrow.:steamthumbsup:
woz62 3 May, 2024 @ 12:37am 
does it work with custom maps from workshop?
Driver Kaldie 19 Mar, 2024 @ 6:52am 
I have already mixed your mod with "Marc's Street and Trampack" mod. Now I can use his streets (without the red priority lines) together with your mod so that no AI traffic is on the roads. It works like a charm...
Driver Kaldie 19 Mar, 2024 @ 4:49am 
Well, I looked at this part of the code:

addModifier( "loadStreet", function (fileName, data)
if (data.transportModesStreet == nil) then
data.transportModesStreet = { "TRUCK", "BUS" }
-- we do not include "ELECTRIC_TRAM", "TRAM" here because those are already set for dedicated tram tracks,
-- or added to the transportMods list when an upgrade takes place
end

It basicly says that the roads can only be used by Trucks and Busses...That makes them private roads and causes that red priority line. I already tried to change that code by removing "BUS" from the line, but that crashed the game after a few roads that I changed in the game.

I hope that somebody who knows a little bit more about these things can change the road-graphics somehow and change it, because the mod "as is" works fine...It's just the roads that look so silly and ugly :)
c64gamer  [author] 19 Mar, 2024 @ 2:11am 
@Driver Kaldie: I completely agree -- the red priority roads look terrible! I haven't played the game in a year or two, so this mod is effectively provided "as is" -- but it might be possible for someone to create a fork of the code that includes custom skins to override the default priority road skins. I looked into this a long time ago but couldn't figure out how to get the effect I was after. Since then, the API has been updated by the creators of the game once or twice, so there might be more functions/options available to implement such an update.
Driver Kaldie 18 Mar, 2024 @ 4:05pm 
Can't you make this mod so that it has the normal color in the road ? All of my roads have those ugly red priority color and that is real ugly...

Thanks !
c64gamer  [author] 13 Nov, 2023 @ 12:54am 
@DuncanZocktYT und @dt8_fan : Vielen Dank, dass Sie mich über das Problem informiert haben.
dt8_fan 12 Nov, 2023 @ 9:40am 
Funktioniert bei mir auch nicht.
DuncanZocktYT 13 May, 2023 @ 5:05am 
Funktioniert leider nicht.