—
## A Note from the Developer##
This project is dedicated to the glory of God. Every mile driven and every line of code written is an expression of gratitude for the journey. May this mod bring a little more order, peace, and grace to the virtual highways we all travel.
— Built by a driver, for drivers.
**Full Release Log:** https://github.com/insanity35/Smart-Gates-Parking-and-Safety-Buffers
—
🛑 The Problem: “Gate Lag” & Sterile Truck Stop/Yards
For long-haul truckers across American Truck Simulator, immersion is everything. Nothing shatters the flow of a meticulous delivery faster than “gate lag”—that frustrating hitch at the yard threshold where you wait for a sluggish barrier to crawl open while your multi-ton rig idles out. Couple that with sterile, ghost-town truck stops, parking lots and getting flagged down at 60% of weigh stations. With that long-haul pacing takes a heavy hit.
✅ The Solution: SGSB
Smart Gates, Dynamic Parking and Safety Buffers (SGSB) is an environmental and traffic modification for American Truck Simulator designed to enhance the realism of rest stops, parking lots, loading zones, and world gate interactions.
🚦Smart Gate & Infrastructure Overhaul
*Extended Trigger Ranges: Increased activation distances (125m for panoramas, custom industrial ranges) so gates open smoothly as you roll up, protecting your momentum.
*Collider Fixes: Repointed broken base-game geometry files to proper colliders so multi-axle setups and heavy loads pass through without clipping.
*Streamlined Logic: Purged legacy references, entirely focusing on automated gate routines, security checkpoints, and border crossings across all map DLCs.
🚛 Advanced Dynamic Parking System
Immerse yourself in a living roadside ecosystem. Parking lot, Rest stops and yards/drop off parked vehicle code has been completely rewritten. Everything will feel more realistic. As in empty truck stops with two trucks at night or parking lots with one car in it are gone. SGSB introduces a massive expansion across 85 granular industrial, commercial, and rural sectors:
*Context-Aware Spawning: Lots reflect their local environment—populating grain co-ops with farm pickups and classic sedans, marine ramps with trailer-towing haulers, and oilfields with heavy-duty service rigs.
*Hybrid Temporal Scheduling: Banishes the “mass-extinction” pop-in effect. Personal vehicles utilize controlled dawn and dusk bleed-over, while commercial and industrial fleets use strict deterministic shift separation.
*Operational Graveyard Shifts: Municipal fleets—including street sweepers and garbage trucks—truly own the overnight hours before clearing out for daytime traffic.
*Optimized VRAM Performance: Industrial yards and truck stops are densely populated without frame-rate hits, leveraging forced low-poly background rendering (low_poly_only: true).
*Precise Physical Alignment: Unattached yard trailers and heavy wreckers utilize strict rear_align: true protocols, ensuring assets lock securely onto pads without floating.
⚖️ Weigh Station Flow Control
*Scale house check probabilities have been dropped from the base-game default (60%) down to a realistic 20% check frequency for smooth, uninterrupted long-haul pacing.
—
⚠️ Important Developer Notices & Load Order
**Recommended Load Order**
To ensure the custom safety buffer parameters take priority over world geometry data, organize your Mod Manager as follows:
**— TOP —**
1. Background Maps
2. Smart Gates, Parking and Safety Buffers (SGSB) *(Notice: Needs to be ABOVE SoundFixes to keep hookups from being erased)*
3. SoundFixes
4. Global Traffic & AI Density Mods
5. Map Expansion Mods (ProMods, Reforma, etc.)
**— BOTTOM —**
**❌Prefab Limitations (The “Hardcoded” Gates):**
I cannot change values on prefab/hardcoded gates unless someone can teach me the ATS Map Editor. Ex:
* Army Gate next to O’Hare Airport (IL)
* Union Pacific Gate Albuquerque
* DOW Gate (IL)
* Newmont (Houma, Louisiana)
*Note: Toll booths are part of tollgate.sii and gate_trigger.sii. If I edit these, the gates fail to open. Toll booths currently remain stock.*
**Conflict Notice:** This is a standalone global logic override. It will conflict with other mods that attempt to modify the same global gate animation or trigger definitions (an…
Credits:
Meanshadows35
DOWNLOAD 47.83 KB

WE need spots to sleep in every place we load or unload freight.
Also in the right shoulder area of every Exit and Entrance of every Interstate And even at the curb on streets in town and cities. In real life I’ve all three both while tired or I’ve run out of driving hours. Or waiting to load or unload. 90% of all businesses have certain hours of the day they operate and require waybills to be signed. Sundays are days off so you can’t deliver or pickup loads. And that’s usually the 7th day you take off to pickup hours to drive for your log book. And Saturday is also usually a day off to pick up hours. You cannot legally drive 7 days a week and 30 days straight each month.
Today you can drive 11 hours a day and work a total of 14 hours. But still need to take at least one day off to get back driving hours.
What is really need is a place to sleep at every place where you load or unload. Just like in real life I’ve done. Even on the right shoulder of all Exit and Entrance ramps of the Interstate highways.