gruppe-adler / grad-persistence

Save/Load mission progress in server's profileNamespace
26 stars 13 forks source link

Mistake in the Wiki ? Issue for persistent unit ? (editor placed) #19

Open Damsous opened 5 years ago

Damsous commented 5 years ago

on the object description there is 4 option for the object : 0 : disabled 1 : editor-placed objects only 2 : all objects 3 : only objects that were created during the mission (either user placed or by script/module/Zeus)

i have try all the combination and here the result : 0 : disabled 1 : only objects that were created during the mission (either user placed or by script/module/Zeus) 2 : all objects 3 : editor-placed objects only

There an other thing too, so i don't know how its supposed to work, but if i want to save only the editor unit (i give a variable name to all the unit), if a unit move across the map, their position are correctly saved and loaded , but if i kill the unit they are recreated. It is supposed to work like this or its an issue ? cause their is no benefit to make a persistent mission if a cleared zone is repopulated.

By the way the other thing (empty vehicle, static object and contenair) work great thank for this cool script.

McDiod commented 5 years ago

Hi, thanks for your report. The save modes were documented correctly, but not working as intended. Should be fixed in 0.8.0.

if i kill the unit they are recreated

This is something that I had not considered. Previously, if a unit was killed, their data was not saved so on loading it would check the variable name and find nothing. This should also be fixed in 0.8.0.

Please test and report back.

Damsous commented 5 years ago

Hey, sorry for the late reply i wasn't into arma the last few days, i will try that and give a feedback as soon as possible

Damsous commented 5 years ago

So i just do a quick test with editor placed unit and killed with Zeus, everything works fine, the killed unit are not recreated. But i notice 1 thing (because i destroyed a village on my test), the ruins are also saved. When i load the server there is the house + ruins, i think its because i have used ''save all'' for static object, so it save the ruin cause they are considered as spawned static object right ? But its not a big issue i can fix this by adding a line to delete ruins at mission start., but it can be really cool if its possible to delete the house and keep only the ruins.

Thanks for the update :)

McDiod commented 5 years ago

We are talking about editor placed buildings, right? I'm gonna have to test.

Damsous commented 5 years ago

Not the editor placed building, all the building that are part of the map, so if a village is completly destroyed, the server save all the ruins, so there a ruins inside the house after restart, thats happen only if the spawned static object are saved, i think its because the ruins are created when a house is destroyed so the ruins are considered as static object.