Ah, dammit. I thought that wouldn't happen. It's still there, I changed (*) to Select to make the buttons look more consistent. Eventually, I'd like to have a feature to easily save and load vehicle groups. Multi-vehicle spawning is so useful, and it can be improved in several ways.
I'm not sure what is causing it, but it seems like every time there is a moonhawk spawned with the traffic tool it will stop on the road as soon as it spawns and reverse as if something is infront of it, does this happen to anyone else? I'm running the game in safe mode with just this mod enabled. With the moonhawks removed it runs fine. They also seem to get stuck in gear weirdly
Interesting, so it won't spawn any vehicles and freezes the game? Keep in mind that if you spawn in a lot of vehicles at the same time, it can lock up the game window, making it think it stopped working while it's still processing. Hmm, I got this issue to happen. Very weird; this didn't happen in 0.15 (every base model car worked perfectly). What makes this weirder is that my script loads the default config (moonhawk/v8a.pc) and it won't drive (even if you switch to it), but if you spawn v8a.pc manually in the vehicles menu, it works just fine. Gonna dig deeper with this. For now, if you want, you can edit out "moonhawk" at the top of the dynamicTraffic.lua file.
I saw this error: Code: 875.47780|E|libbeamng.lua.V.jbeam.fillSlots|slot "moonhawk_differential_R" left empty as part "moonhawk_differential_R_A" was not found It looks like a slight mishap in the .jbeam file. What I don't understand is, why does the Moonhawk drive normally when you spawn it in with the vehicles menu? I'm not an expert with anything related to vehicle files and contents.
Happens here too. Really makes a mess of things..lol. Additionally I have a couple of non-responsive buttons in the app (AI behavior,AI awareness) but I want to really clear my game up before making noise about it. EDIT: Moonhawk jbeam issue still there as is missing color mode and AI mode buttons in the app. Anyone have the missing buttons as well or is it likely my issue?
Does anyone else have trouble with .16 using the vehicle configuration dropdowns when other cars are spawned? The menu tends to disappear every time I make a selection, and the whole car changes to a completely different configuration if I try to select a new part. My vehicle sometimes disappears as well. I’m not completely sure yet if it’s related to this mod, or general bugginess, but I dont think its happened with the AI app off.
Yeah, it seems to happen whenever any car gets respawned. Hmm, I don't have a fix. For now, try setting the AI mode to "Disabled" before using the part config menu. Now there's less traffic jams . Oh yeah, and for the app dropdown menus, make sure that the mod is updated; I had to fix a few things for 0.16.
You can also hit J key to pause game after opening parts menu, it did glitch out at times, but most of the time that helps to switch parts to car while AI cars are active on map. If pressing J key around point in time where respawn is imminent, that kinda glitched it out, I think, my memory is shot but have faint traces of such memories
May I ask why you lowered the maximum respawn rate from 4 to 3? I was quite enjoying the ridiculous congestion without murdering my pc with more than 4 cars at once.
Heh, I wasn't expecting a comment like this. I was thinking that rate 4 was too absurd; cars would despawn 50 m behind you and spawn in around 100 m in front of you (depending on other variables). I think I got too serious with that decision, sorry. If you want, you can override the respawn rate by pasting this into the command console (~): Code: freeroam_dynamicTraffic.setRespawnRate(4) Also, you can edit and save the cap in the .html file within the mod files (the max="3" bit). I'm not really intending to do updates to this mod; I'm getting more focused on internal work.
Hey @Gamergull I was thinking, what if player could switch vehicle when AI vehicle is withing certain range, would not necessarily work with police cars, but with other cars it would allow kinda get new wheels and continue the run by pressing one key or button?
As in, take over an AI vehicle as a player vehicle? I was actually testing that a while back, and I got it to work, but for some reason the other cars wouldn't respawn anymore. I like that idea, though; I'll have to try again. I'm a bit smarter now . For now though, this mod is staying this way.
I found one issue with the mod - if a node from an AI car is attached to your own vehicle/one that isn't controlled by the Traffic Tool, the moment the AI car respawns somewhere else, the node is detached BUT the game goes unstable and pauses and resets vehicles.
The "Custom" group has two purposes; it will spawn any mod vehicles that you have, or you can define a custom list: https://www.beamng.com/threads/traffic-tool.60967/page-14#post-1003927 Hmm, actually, it looks like I broke some of the custom functionality in the latest version, so that second thing won't work. Just my luck. I'm not really working on this mod anymore, but I'd like to improve this feature; it wasn't user friendly enough anyways.
Make sure you have latest version of the tool and the game, that usually happens if you have old version of the game, afaik.
So, going back to this, I was able to get it working! You can have AI spawning and driving while racing against an AI with the path you set. Unfortunately the AI do not avoid anything in their way, which can lead to some very spectacular crashes...or end the race in the first corner. Depends how lucky you are with the spawning AI lol. To do this is fairly simple, but as far as I can tell it has to be in this order, otherwise it won't work correctly. Replace your car with the one you want to race against. (Only one car should be on the map at this point) Drive the route you want it to follow. Set up the traffic tool as you normally would, # of cars, type, etc. Spawn the cars and enable AI. Press J to pause the physics. Now spawn the car you want to drive. J to unpause DRIVE! At this time you can hit Play in the AI Script and the car will run the route you drove while the other AI spawn around you!! NOTE: only you, if you let the AI Script vehicle go too far ahead it will not have vehicles spawning near it.