Mod Title: Smart Gates, Parking and Safety Buffers (SGSB)

![Project Header](SGSB410.jpeg)


# Smart Gates, Parking and Safety Buffers (SGSB)

### v4.1.4 (Midnight Train) β€” "The House That Code Built"


---


## 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. 


This is our first mod ever, so please extend us some grace! 

β€” Built by a driver, for drivers.


**Full Release Log:** https://github.com/insanity35/Smart-Gates-Parking-and-Safety-Buffers


---


## The Problem: "Gate Lag" & Empty Highways

After years of long-haul trucking in American Truck Simulator, we know that immersion is everything. Nothing kills the flow of a delivery faster than "gate lag"β€”that frustrating moment when you are at the yard threshold, waiting for a barrier to crawl open while your multi-ton rig is already stalled out. We also hated pulling into completely abandoned truck stops or getting pulled into 6 out of 10 weigh stations on a cross-country run.


## The Solution: SGSB

SGSB is the definitive logic overhaul for world infrastructure. We have stripped away the inconsistent, immersion-breaking triggers of the base game and replaced them with a standardized, high-performance logic set for gates, parking, and scale houses.


### 🚦 Smart Gate Overhaul

* **Extended Trigger Ranges:** Increased activation distances (125m for panoramas, custom distances for industrial yards) 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.

* **Seamless Tolls & Checkpoints:** Optimized spatial triggers for cash tolls, security checkpoints, and borders across all map DLCs.


### πŸš› Native Dynamic Parking System (New in v4.1)

* **Built From Scratch:** A standalone parking framework engineered to eliminate legacy mod conflicts, utilizing custom-isolated namespaces to manage rest area snapping and high-precision loading bays.

* **7% Global Density Bump:** Subtly populates empty background lots, depots, and scenic turnouts without model spam.

* **Broadened Time Windows:** Completely eliminates the "mass-extinction" pop-in effect. Vehicles now "bleed over" during dawn and dusk. Truck stops stay packed at night, and lots don't magically empty at sunrise.

* **Municipal Night Shift:** City sweepers and garbage trucks now realistically own the graveyard shift, dominating the overnight hours and clearing out by day.


### βš–οΈ Weigh Station Flow Control (New in v4.1.4)

* Scale house checks have been dropped from the frustrating default (60%) down to a highly realistic **20% check probability** for smoother long-haul pacing.


---


## βš™οΈ Required Engine Optimization (Highly Recommended)

To get the absolute best visual experience out of the parking density without background models popping into existence, open your game's **config.cfg** file (or use the in-game developer console) and apply this specific parameter:


uset g_lod_factor_parked "1.1"


*Render Distance Optimization: Established this optimal engine parameter as the official recommended setting to pull background parked vehicle culling distances out just far enough to catch assets before entering your immediate field of view, without tanking your FPS or VRAM.*


---


## ⚠️ 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 for custom gate sound files!)*

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. The following gates remain vanilla because of this engine limitation:

* Army Gate next to O'Hare Airport (IL)

* Union Pacific Gate

* DOW Gate (IL)

* Group 1 Guard Gates (e.g., Coca-Cola in Albuquerque, General Mills in Roswell)


*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 (animated_gate blocks).


---


## Bug Reporting & Support

If you encounter a specific yard, toll plaza, or logistics depot anywhere on the map that still feels "off" or doesn't trigger correctly, please drop the **City and Company Name** in the comments section. Feedback will be logged and prioritized for our upcoming maintenance hotfixes.


## Credits & Technical Acknowledgments

* **Development Group:** Smoke Show Studios, Smoke Show Creations & Harambes Children

* **Lead Developer & Tester:** meanshadows35

* **Co-Developer:** mrh368

* **Technical Consultant:** Overdrive


A massive shout-out to our three-person team for pulling this together, and special thanks to the entire trucking community for the incredible passion and feedback that keeps our virtual roads moving forward. We pray this turns into an excellent long-term resource for the community!


*Developed natively on Ubuntu 26.04 LTS*

*Mod extraction powered by sk-zk Extractor*

*Built using the official SCS Uploader tool running under Proton*

*Thank you to SCS Software for the robust modding ecosystem*


**Soli Deo Gloria**


License
All Rights Reserved
Initial Release
2026-07-14
Current Version
v4.1.4-82326
Compatibility
1.60
Last Updated
2026-08-23
Downloads
689
Meanshadows35 - All rights reserved. Any reupload or redistribution of this file without the author's prior written consent is forbidden.
This American Truck Simulator add-on was created by Meanshadows35 and shared in Other for American Truck Simulator.