Page 1 of 1
Requesting Help With Traffic Mod
Posted: 09 May 2025 21:34
by cydonianmystery
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.
Re: Requesting Help With Traffic Mod
Posted: 09 May 2025 23:02
by KrysEmlyn
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.
Re: Requesting Help With Traffic Mod
Posted: 09 May 2025 23:17
by cydonianmystery
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!
Re: Requesting Help With Traffic Mod
Posted: 09 May 2025 23:31
by cydonianmystery
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?
Re: Requesting Help With Traffic Mod
Posted: 10 May 2025 03:05
by justheretolurk
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.
Re: Requesting Help With Traffic Mod
Posted: 14 May 2025 13:44
by Cunwad
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

Re: Requesting Help With Traffic Mod
Posted: 15 May 2025 05:00
by cydonianmystery
Makes sense, thanks.