GHOST TRAFFIC (+150 cars) 1.2
2/5,
3
votes
Updates
latest
Version
1.2
· GHOST TRAFFIC
· BeamNG.drive
0.40.x
5 hours ago
GHOST TRAFFIC 1.2
==============================================
FILES
ghosttraffic.zip the mod (code without comments)
ghosttraffic_nfs.zip 11 extra ghost models (nfs_*)
INSTALL (game closed)
Copy both zips into <user folder>/current/mods/
If the folder <user folder>/current/ghosttraffic/extra/ already holds the
nfs_* folders, do not add ghosttraffic_nfs.zip (same files twice).
IN GAME (Alt+G)
Extra ghost models the NFS cars drive among the ghosts
Only extra models as ghosts every ghost is an NFS car
then Load.
NEW SINCE THE PUBLIC 1.2
- Extra models are solid near you: an invisible car of the game carries the
body. You can hit and push them; they do not bend.
- Brake lights and blinkers light the car's real lamps (no more discs).
- Cars setting off no longer turn on the spot.
KNOWN LIMITS
- With every physics car in use, an extra model you touch still vanishes.
- Wheels of a carried body do not follow the suspension.
==============================================
FILES
ghosttraffic.zip the mod (code without comments)
ghosttraffic_nfs.zip 11 extra ghost models (nfs_*)
INSTALL (game closed)
Copy both zips into <user folder>/current/mods/
If the folder <user folder>/current/ghosttraffic/extra/ already holds the
nfs_* folders, do not add ghosttraffic_nfs.zip (same files twice).
IN GAME (Alt+G)
Extra ghost models the NFS cars drive among the ghosts
Only extra models as ghosts every ghost is an NFS car
then Load.
NEW SINCE THE PUBLIC 1.2
- Extra models are solid near you: an invisible car of the game carries the
body. You can hit and push them; they do not bend.
- Brake lights and blinkers light the car's real lamps (no more discs).
- Cars setting off no longer turn on the spot.
KNOWN LIMITS
- With every physics car in use, an extra model you touch still vanishes.
- Wheels of a carried body do not follow the suspension.
GHOST TRAFFIC
Huge cosmetic traffic for BeamNG.drive 0.40
150 cars around you for the CPU of about 9 of the game's traffic cars.
WHAT IT IS
The game's traffic simulates every car as a full soft body: about 0.15 CPU core per car, so a busy street costs a
lot. Ghost Traffic fills the roads around you with up to 1000 cars and keeps only the handful that can touch you as
real cars.
All the others are "ghosts": rigid copies of the game's own traffic cars (same models, paints, wheels and lights),
driven by one shared brain. They have no physics, which is why they cost almost nothing.
It is COSMETIC traffic, made for screenshots, cinematics, cruising and video. It looks full and alive, but it is not a
crash-test playground. The cars you can actually hit are the real ones near you, as in the normal game. Ghosts further
away cannot be crashed into: they turn into real cars before you reach them.
WHAT'S NEW IN 1.1
- The swap from ghost to real car is much harder to spot:
- on a slope the real car now arrives tilted with the road (it used to arrive tilted the wrong way, dug its nose
into the hill and braked hard);
- the real car keeps the ghost's paint finish (a silver ghost used to turn two shades lighter);
- ghosts wear the map's licence plate instead of a yellow blank (without the number: it is a few pixels at the
distance ghosts live).
- Taxis, delivery vans, box trucks and a heavy pickup join the traffic, in their own liveries (option "Taxis, vans
and trucks", on by default). 27 car models to choose from instead of 20.
- Paint fix: several models (the Bastion among them) were always white.
- Teleporting, resetting far away or switching to a distant car fills the streets around you at once (they used to
fill slowly from the horizon).
- Traffic no longer runs into you after a teleport or a reset: real cars could be left coasting with their driver
switched off, and you could land on a ghost that then turned real inside your car.
- A crash between traffic cars no longer closes the street for good: after 45 s the cars drive on (repaired), a
wreck that cannot is taken away after 90 s. If your own car is damaged the wrecks stay, as before.
- Real cars see a queue of ghosts from further away, and a car that was hit comes back repaired.
- Looping maps: on a map that loops by moving everything one loop length (Endless Avenue), the ghosts move with
you: the traffic around you stays the same across the seam. Map scripts can call
extensions.ghostTraffic.worldShifted(dx, dy, dz).
- Faster brain: about a quarter less time per frame (1.3 ms for 425 ghosts in a city). Ghosts 160-300 m away are
updated every other frame, turning wheels are only kept for the ghosts you can see, and the ground under the
wheels is probed half as often beyond 25 m.
- The first start after the update bakes every car model again (a few seconds each, once).
GETTING STARTED
1. Drop "ghosttraffic.zip" into your BeamNG mods folder, without unzipping it.
2. Load any map in Free Roam. The cars appear on their own.
3. Alt+G opens the options.
First time only: each car model is "baked" from the real car, by day and with its lights on (a few seconds per
model, a short wait once the map has loaded; saved in your user folder under ghosttraffic/shapes). After that the cars
are ready during the loading screen.
WHAT THE GHOSTS DO
- Follow the lanes, keep their distance and slow down for bends.
- Stop at red lights (and at yellow if they can), halt at stop signs, take turns at junctions.
- Never wait in the middle of a crossing when the queue ahead is full.
- Stop for real cars, yours included.
- Each driver is a little different: their own speed, gap, acceleration and place in the lane.
- They sit on the road with its slopes and camber, their wheels turn near you, and you can see the seats through
the windows: the swap to a real car is hard to spot.
- Headlights and tail lights at night; daytime running lights by day. Far away, every car keeps glowing lamp points,
so a city at night shows its streams of headlights and tail lights even from the air.
- A ghost that comes into your path, or right beside you, turns into a real car on the spot: same place, speed and
paint, driven by the game's traffic AI. A real car that drives off out of sight turns back into a ghost. The swap
costs about 0.2 ms, with no hitch.
OPTIONS (Alt+G)
Enabled on
Ghost cars 150 0 - 1000
Radius 450 m ghosts live within this distance of you
Real cars (physics) 10 the real cars at most: the main CPU cost (~0.15 core each)
Real within 100 m ghosts closer than this may become real cars
Car models 10 1 - 27 different simple traffic cars
Taxis, vans, trucks on service vehicles among the models
Aggression 0.3 of the real cars' AI
Show stats off small overlay
Settings are saved in settings/ghosttraffic.json.
GOOD TO KNOW
- Free Roam only: career, scenarios and missions are left alone.
- You do not need the game's own traffic on. Ghost Traffic brings its own cars.
- On a very busy street with few "Real cars", a ghost can end up in your way and you drive through it. Raise
"Real cars" if it happens.
- Ghosts do not light the road at night (their lamps glow, but there is no beam), and they have no brake lights or
turn signals.
- The game's AI does not see ghosts. When a real car is about to run into a ghost, the ghost turns real (if that car
is near you) or the car turns back into a ghost and queues behind it.
- In very dense traffic (several hundred ghosts) a ghost that has waited long at a crowded junction goes on anyway,
so ghosts can cross through each other there now and then: it keeps the traffic from locking up.
- The baked shapes take about 34 MB per car model in your user folder (ghosttraffic/shapes and the game's compiled
copies in temp/ghosttraffic): about 340 MB with the default 10 models. Delete both folders to free the space; they
are rebuilt when needed.
- The lights follow the game's own day / night switch (sunset to sunrise). A change of time swaps every car within a
few seconds.
Measured on west_coast_usa (whole game, CPU cores): no traffic 1.1; the game's traffic, 8 cars 2.5, 16 cars 4.4;
Ghost Traffic, 150 ghosts + 10 real cars 2.7 (6 real cars 2.35). The ghosts' brain itself takes about 1 ms per frame
for 150 cars, 1.5 ms for 1000.
To uninstall, delete the zip from your mods folder.
Huge cosmetic traffic for BeamNG.drive 0.40
150 cars around you for the CPU of about 9 of the game's traffic cars.
WHAT IT IS
The game's traffic simulates every car as a full soft body: about 0.15 CPU core per car, so a busy street costs a
lot. Ghost Traffic fills the roads around you with up to 1000 cars and keeps only the handful that can touch you as
real cars.
All the others are "ghosts": rigid copies of the game's own traffic cars (same models, paints, wheels and lights),
driven by one shared brain. They have no physics, which is why they cost almost nothing.
It is COSMETIC traffic, made for screenshots, cinematics, cruising and video. It looks full and alive, but it is not a
crash-test playground. The cars you can actually hit are the real ones near you, as in the normal game. Ghosts further
away cannot be crashed into: they turn into real cars before you reach them.
WHAT'S NEW IN 1.1
- The swap from ghost to real car is much harder to spot:
- on a slope the real car now arrives tilted with the road (it used to arrive tilted the wrong way, dug its nose
into the hill and braked hard);
- the real car keeps the ghost's paint finish (a silver ghost used to turn two shades lighter);
- ghosts wear the map's licence plate instead of a yellow blank (without the number: it is a few pixels at the
distance ghosts live).
- Taxis, delivery vans, box trucks and a heavy pickup join the traffic, in their own liveries (option "Taxis, vans
and trucks", on by default). 27 car models to choose from instead of 20.
- Paint fix: several models (the Bastion among them) were always white.
- Teleporting, resetting far away or switching to a distant car fills the streets around you at once (they used to
fill slowly from the horizon).
- Traffic no longer runs into you after a teleport or a reset: real cars could be left coasting with their driver
switched off, and you could land on a ghost that then turned real inside your car.
- A crash between traffic cars no longer closes the street for good: after 45 s the cars drive on (repaired), a
wreck that cannot is taken away after 90 s. If your own car is damaged the wrecks stay, as before.
- Real cars see a queue of ghosts from further away, and a car that was hit comes back repaired.
- Looping maps: on a map that loops by moving everything one loop length (Endless Avenue), the ghosts move with
you: the traffic around you stays the same across the seam. Map scripts can call
extensions.ghostTraffic.worldShifted(dx, dy, dz).
- Faster brain: about a quarter less time per frame (1.3 ms for 425 ghosts in a city). Ghosts 160-300 m away are
updated every other frame, turning wheels are only kept for the ghosts you can see, and the ground under the
wheels is probed half as often beyond 25 m.
- The first start after the update bakes every car model again (a few seconds each, once).
GETTING STARTED
1. Drop "ghosttraffic.zip" into your BeamNG mods folder, without unzipping it.
2. Load any map in Free Roam. The cars appear on their own.
3. Alt+G opens the options.
First time only: each car model is "baked" from the real car, by day and with its lights on (a few seconds per
model, a short wait once the map has loaded; saved in your user folder under ghosttraffic/shapes). After that the cars
are ready during the loading screen.
WHAT THE GHOSTS DO
- Follow the lanes, keep their distance and slow down for bends.
- Stop at red lights (and at yellow if they can), halt at stop signs, take turns at junctions.
- Never wait in the middle of a crossing when the queue ahead is full.
- Stop for real cars, yours included.
- Each driver is a little different: their own speed, gap, acceleration and place in the lane.
- They sit on the road with its slopes and camber, their wheels turn near you, and you can see the seats through
the windows: the swap to a real car is hard to spot.
- Headlights and tail lights at night; daytime running lights by day. Far away, every car keeps glowing lamp points,
so a city at night shows its streams of headlights and tail lights even from the air.
- A ghost that comes into your path, or right beside you, turns into a real car on the spot: same place, speed and
paint, driven by the game's traffic AI. A real car that drives off out of sight turns back into a ghost. The swap
costs about 0.2 ms, with no hitch.
OPTIONS (Alt+G)
Enabled on
Ghost cars 150 0 - 1000
Radius 450 m ghosts live within this distance of you
Real cars (physics) 10 the real cars at most: the main CPU cost (~0.15 core each)
Real within 100 m ghosts closer than this may become real cars
Car models 10 1 - 27 different simple traffic cars
Taxis, vans, trucks on service vehicles among the models
Aggression 0.3 of the real cars' AI
Show stats off small overlay
Settings are saved in settings/ghosttraffic.json.
GOOD TO KNOW
- Free Roam only: career, scenarios and missions are left alone.
- You do not need the game's own traffic on. Ghost Traffic brings its own cars.
- On a very busy street with few "Real cars", a ghost can end up in your way and you drive through it. Raise
"Real cars" if it happens.
- Ghosts do not light the road at night (their lamps glow, but there is no beam), and they have no brake lights or
turn signals.
- The game's AI does not see ghosts. When a real car is about to run into a ghost, the ghost turns real (if that car
is near you) or the car turns back into a ghost and queues behind it.
- In very dense traffic (several hundred ghosts) a ghost that has waited long at a crowded junction goes on anyway,
so ghosts can cross through each other there now and then: it keeps the traffic from locking up.
- The baked shapes take about 34 MB per car model in your user folder (ghosttraffic/shapes and the game's compiled
copies in temp/ghosttraffic): about 340 MB with the default 10 models. Delete both folders to free the space; they
are rebuilt when needed.
- The lights follow the game's own day / night switch (sunset to sunrise). A change of time swaps every car within a
few seconds.
Measured on west_coast_usa (whole game, CPU cores): no traffic 1.1; the game's traffic, 8 cars 2.5, 16 cars 4.4;
Ghost Traffic, 150 ghosts + 10 real cars 2.7 (6 real cars 2.35). The ghosts' brain itself takes about 1 ms per frame
for 150 cars, 1.5 ms for 1000.
To uninstall, delete the zip from your mods folder.
External Download Links:
- Mods.to - ghosttraffic.zip [50 KB]
- Mods.to - ghosttraffic_nfs.zip [30.01 MB]
About Mod
| Latest Version | 1.2 |
| Game | BeamNG.drive |
| Category | Other |
| Game Version | 0.40.x |
| Downloads | 466 |
| Created | 1 day ago |
| Last Updated | 5 hours ago |
Download Latest Version
Version: 1.2Updated: 5 hours ago
Total Size: 30.06 MB ghosttraffic.zip external download · 50 KB · added 5 hours ago ghosttraffic_nfs.zip external download · 30.01 MB · added 5 hours ago
neat update! just another complaint, some cars just end up stopping while turning into real cars. not a big deal, but it is slightly immersion breaking
update posted, nfs pack added, these are of course non-destructible, it is above all a cosmetic mod, hard to keep the balance with collisions, ghost cars etc...
@zephability waiting moderation approval :(
@loupp is it still being uploaded or?
what is this absolute dog**** of a download link bro
Is this compatible with the agents traffic mod?
@loupp Righto, I was lwk trying to replace the vanillas with other traffic packs, thanks for the information though.
@Akrez ▎ Not tested together yet, but it should work: Ghost Traffic doesn't use or change the game's traffic system, so Agent's mod keeps its own cars. The best way to combine them is the new "Ghosts only beyond" option (next version): Agent's traffic around you, ghosts only from ~400 m out. The ghosts use vanilla traffic models though, not Agent's EU/JP cars.
You should make it so that there’s an option to have ghost at a distance, but not close so that you can have your regular real traffic close to you but the ghost cars only spawn in a quarter mile away or something like that…
@loupp sounds good 👍🏾
@Bub for the next update :
New slider, "Ghosts only beyond (m)", to the Alt+G window. It goes from 0 to 800 m, and its tooltip says 400 m is about a quarter mile.
- At 0 (the default), the mod works exactly as before.- Above 0, the mod spawns no real cars of its own. Ghosts only fill the area between that distance and the ghost radius. Players turn on the game's own traffic for the cars around them.- Ghost radius: if it's too small, it's pushed out to at least the slider value + 200 m, so there's always a band of ghosts.- Ghosts driving inward are removed once they cross the limit, as soon as they're out of sight. Even if they stay in view, they go by 70 % of the distance. At that range they're only a few pixels, so the pop should hardly show.- Ghosts next to a game traffic car (within 30 m) are removed. The game's AI can't see ghosts and would drive into them.- Loading is faster in this mode. It only spawns one car per model, just to bake its shape.- It applies on Load, like the other slow settings from the previous change.
I also checked the game's traffic code: when the player spawns the game's traffic, it only takes its own cars and leaves the mod's hidden cars alone.
and one last thing, it can take very long to load depending on what settings you choose so i suggest adding a load button somewhere in the ui once the user has selected all their settings. otherwise great mod! it makes roads much livelier than default beamng traffic
@zephability for the next update :
Changes in the Alt+G window (mod/lua/ge/extensions/ghostTraffic.lua):- Settings that wait for Load: Ghost cars, Real cars, Car models and Taxis/vans/trucks. Before, every slider release restarted the whole preparation. Now, when one of them differs from what's loaded, a yellow line appears ("…applied on Load") with a Load button, so players can set everything first and load once.- Enabled: unticking it switches traffic off right away. Ticking it waits for Load like the slow settings.- Defaults: it resets the values without reloading. The slow settings then wait for Load.- Unchanged: Radius, Real within, Aggression and Show stats still apply at once.- Reload button: it appears while traffic is running and nothing is waiting to load.
oh also im noticing the cars are either kind of stupid and rear end each other a LOT or their parts randomly fly off
Thanks! Found two causes: cars were sometimes switched from ghost to real slightly inside another car (that's the parts flying off), and real cars couldn't see a ghost ahead when the swap came too late. Both are fixed for the next version: real cars now slow down for the ghost in front of them, and a car is never switched on overlapping another.
@zephability found out that this happens once they come close enough to the player
peak, though is there any way to use lightweight traffic packs like the fh and nfs traffic packs?
@zephability thanks, i will check , i saw these packs while making the mod, I will definitely try