Requesting Help With Traffic Mod

Forum rules
SCS as a company do not wish to have paid mods on this forum. While we understand that not all paid mods use the Intellectual Property of other companies/people, it is very hard to moderate what is and isn't acceptable when money is involved. There are also concerns that it could look unfavorable to potential work partners going forward if SCS allow mods that may potentially use unlicensed branding.
Posting in the Mods forum (ATS and ETS2) is restricted to sharing free-to-the-public mods and providing support for mods. For more details, please check the Forum Rules.
Post Reply
User avatar
cydonianmystery
Posts: 313
Joined: 03 Jun 2022 02:42
Location: Louisiana, USA
Contact:

Requesting Help With Traffic Mod

#1 Post by cydonianmystery » 09 May 2025 21:34

Moved to help requests as this is not a mod release

For years now I've used my own mod for traffic without any issues. The idea is simple enough; I want to limit all traffic to 65 mph. I don't care about realism here, I just wanted to have a pleasant driving experience while I'm doing WoT jobs and not have the humiliation of being constantly passed by everything on the interstate.

That's it. That's all the mod set out to do.

But no matter what I do, since 1.54 the mod either crashes on load, or causes all traffic in the game to disappear, and my loads to become invisible. I don't know what I'm doing wrong (again; I had used this mod for YEARS with only having to do minor edits to it for certain updates), and I'm about to pull what little hair I have left out trying to troubleshoot it.

This is a direct link to the mod, if anyone wants to look at the files and help me identify the problem. WARNING: Do not put it in your game, it will CTD!

Any help would be appreciated.
User avatar
KrysEmlyn
Posts: 560
Joined: 17 Mar 2017 12:32
Contact:

Re: Requesting Help With Traffic Mod

#2 Post by KrysEmlyn » 09 May 2025 23:02

Just taking a brief look at the files, you are probably getting crashes because the traffic rules for the speed limits are being defined twice with the same name.
I'd ditch your "traffic_rules_speed_limit.sui" file and just change the speed limits in the existing speed limit traffic rules in "traffic_rules.sui" file instead.
All unit names, which include traffic rules, must be unique. Since you have the same traffic rule names in your other file, the game is going "this unit name already exists" and then fails to load the traffic rules all together.
User avatar
cydonianmystery
Posts: 313
Joined: 03 Jun 2022 02:42
Location: Louisiana, USA
Contact:

Re: Requesting Help With Traffic Mod

#3 Post by cydonianmystery » 09 May 2025 23:17

Okay, that makes sense. I had put in the traffic_rules_speed_limit.sui file to override California's 55 mph truck limit, but I'll get rid of it. Thanks for helping out!
User avatar
cydonianmystery
Posts: 313
Joined: 03 Jun 2022 02:42
Location: Louisiana, USA
Contact:

Re: Requesting Help With Traffic Mod

#4 Post by cydonianmystery » 09 May 2025 23:31

Right, so I deleted traffic_rules_speed_limit.sui and added only this to traffic_rules.sui:

Code: Select all

traffic_rule_data : traffic_rule.limit_55_t
{
#	name: "[speed] Speed limit 55 (trucks only)"

	rule: "speed_limit"
	num_params[]: 65
	str_params[]: "truck_all"
}
Instantly crashes on load. Looks like I'm just going to give up entirely on fixing California's loathesome 55 limit.

I made a version of the mod with no World folder at all and it works. Any attempt at editing World files makes is an insta-CTD. What am I doing wrong?
User avatar
justheretolurk
Posts: 107
Joined: 21 Jan 2025 00:13
Location: Vietnam

Re: Requesting Help With Traffic Mod

#5 Post by justheretolurk » 10 May 2025 03:05

This should be in the Help Request section, but anyway, it is better if you can provide game.log with your mod active to help identify what went wrong. The only thing I could think of can cause the game to crash from using a traffic mod is a typo/wrong pointer reference in your traffic_rules.sii and traffic_lanes.sii, one wrong reference will cause a list of road_look error and eventually crash the game. And of course removing the "world" folder won't crash your game, simply because the mod doesn't work because there is no "world" folder for the game to read and it will use its default "world" folder instead.
Cunwad
Posts: 30
Joined: 30 Jun 2020 16:00

Re: Requesting Help With Traffic Mod

#6 Post by Cunwad » 14 May 2025 13:44

Years ago, I created my own traffic mod in which I modified the behavior of AI vehicles and the general traffic density. I modified the following two files:
def\traffic_data.sii
def\world\traffic_rules_spawn.sui
In "traffic_data.sii," you can increase or decrease the overall speed, which I was satisfied with. In "traffic_rules_spawn.sui," you'll find all the spawn groups whose spawn values ​​I adjusted. During updates, SCS might add new groups. I then had to compare the original file with my version and add newly added groups to my file. If a group was missing, the game would crash during loading. However, if there's an excess group and it's no longer present in the map, it's not a problem. It should be the same with "traffic_rules_speed_limit.sui." If a group is missing there but is now included in the map, the game will crash.

So, after every update, or whenever the game crashes, the first thing you need to do is check whether a new group has been added by SCS to one of the files you're using. This is usually the cause of crashes with traffic mods ;)
User avatar
cydonianmystery
Posts: 313
Joined: 03 Jun 2022 02:42
Location: Louisiana, USA
Contact:

Re: Requesting Help With Traffic Mod

#7 Post by cydonianmystery » 15 May 2025 05:00

Makes sense, thanks.
Post Reply

Return to “Help requests”

Who is online

Users browsing this forum: No registered users