thevisad / DayZ-Private-master

Reality DayZ - replaced Bliss for DayZ servers
GNU General Public License v2.0
44 stars 84 forks source link

db_spawn_vehicles.pl not spawn vehicles anymore #82

Closed madrigo64 closed 11 years ago

madrigo64 commented 11 years ago

After today updating db_spawn_vehicles.pl not spawn vehicles anymore but with old version all is ok I use this command perl db_spawn_vehicles.pl --cleanup bounds --limit 25 fix this please

thevisad commented 11 years ago

This has not changed at all, this is the same as it was when this was forked.

p-schneider commented 11 years ago

not changed at all?

The script does no longer clean up the old destroyed vehicles (when using --cleanup bounds), so it does no longer spawn new vehicles when the limit was already reached.

thevisad commented 11 years ago

Yeah, my bad, I am really tired... too many late coding nights, been getting about 3-4 hours a night since I started with this. Your options are as follows, note, that you must execute the spawn function after this as this only executes the cleanup function. --cleanup with nothing cleans the destroyed vehicles, tents only does tents, bounds checks for items outside the bounds and all does everything.

perl db_spawn_vehicles.pl --instance 1 --host localhost --user changeme --pass changeme --name dayz --port 3306 --cleanup damaged perl db_spawn_vehicles.pl --instance 1 --host localhost --user changeme --pass changeme --name dayz --port 3306 --cleanup tents perl db_spawn_vehicles.pl --instance 1 --host localhost --user changeme --pass changeme --name dayz --port 3306 --cleanup bounds perl db_spawn_vehicles.pl --instance 1 --host localhost --user changeme --pass changeme --name dayz --port 3306 --cleanup all

madrigo64 commented 11 years ago

I have clear table instance_vehicle if I run perl db_spawn_vehicles.pl it's not spawn any vehicles spawn

but with old version all is ok check it please

thevisad commented 11 years ago

Corrected a small issue, it wasn't supposed to be none, it was supposed to be damaged.

madrigo64 commented 11 years ago

So now vehicles spawn only with this option --cleanup damaged but Is it logical? I think no I think vehicles should spawn by default when I run db_spawn_vehicles.pl

thevisad commented 11 years ago

Too many things at once --cleanup was designed to remove items from the game, so this was corrected to handle just that aspect. If you want to spawn a vehicle do it without the --cleanup command. I just uploaded a fix for the file. --cleanup damaged will cleanup any damaged vehicles with nothing will spawn vehicles

madrigo64 commented 11 years ago

now is ok, thanks. Update please readme.md about this