Damaged Vehicle Respawn

TheGurth

New Member
Hey all!

I started working on a Bliss private hive that we want to make live soon, but we are hitting one snag - getting destroyed vehicles to respawn.

We basically want to have a whole bunch of vehicles, so I went through and set each instance as a 1.000 chance and 100 max per type...so as it sits now, when I do db_spawn_vehicles.pl when I've deleted all vehicles, all 88 vehicles (we added another SUV into the database) spawn into the map. Now, when I blow one of these vehicles up (heli, boat, car, bike, doesn't matter), when the server restarts, it will nto respawn. I check the v_vehicles and instance_vehicles and they are successfully deleted on restart, as we run the --cleanup all command when the server is supposed to respawn the vehicles.

I am literally out of ideas. I've given the server 4 restarts as scheduled (been running for 24 hours), just incase maybe me doing it manually was giving us the issue, but even then, it still will not show up in our map until I run "cleanvehicles" through db_utility.pl. We've removed the variable for the odds by having it set at a 100% spawn chance everytime, and there is no limit on how many vehicles spawn...

We're al new to this, so it's very possible that we are all missing something here...but this is the only thing that is stopping us from making this server live to people to play on (other than the few of us who have the password for testing purposes)....

Thanks guys!
Gurth
 
Figured it out. I had to drop the vehicle minimum to 0, otherwise the database got really confused...all good now!
 
Figured it out. I had to drop the vehicle minimum to 0, otherwise the database got really confused...all good now!
This forces them to respawn if destroyed every restart? Because I've been trying to get that working forever now
 
The way vehicles respawn is they are simply deleted out of the database when they are destroyed (IE damage col = 1), then when the respawn script runs it just generates the vehicle again, since you dont aways get 100% respawns you have to run the db_spawn_vehicles script multiple times until it wont spawn vehicles anymore. (typically because you ran out of spots).

Just run the script that respawns the vehicles multiple times, currently on bliss vehicle spawns are not determined by the mod they are based on the db, there is no "respawn" because all "spawns" are done on server start up. If you don't have mutliple restarts you wont see new vehicles.

Also by "spawn" i mean add the record of a vehicle to the instance_vehicle table.
 
Back
Top