f3cuk / WICKED-AI

Wicked AI missions for your server
30 stars 59 forks source link

wai_clean_mission_time not functioning #121

Closed Markokil321 closed 9 years ago

Markokil321 commented 9 years ago

Hello, i am using this version of WAI with a couple of changes and additions to some missions, but no changes that i believe would cause this issue. Running Epoch Chernarus 1.0.5.1 / 125548.

In config.cfg i have:

    wai_clean_mission       = true; // clean all mission buildings after a certain period
    wai_clean_mission_time  = 30; // time after a mission is complete to clean mission buildings

and in each mission (where applicable) i have: _baserunover = createVehicle blah and _complete = [ [_mission,_crate], // mission number and crate ["crate"], // ["crate"], or ["kill"], or ["assassinate", _unitGroup], [_vehicle,_baserunover], // cleanup objects

Now the objects/vehicles get cleaned up perfectly if the mission was to time out. However the mission doesn't get cleaned up if it gets completed. I tested by completing a mission, waiting for over 10 minutes and returning to the mission pos, everything was still there. I would like all the stuff to get cleaned up approx 5-10 mins after mission completion.

Anyone confirm this or am i doing something incorrectly. Haven't gotten any errors and i doubt my changes would cause this. (lets hope)

f3cuk commented 9 years ago

It´s time in seconds. If you want missions buildings to despawn after 10 minutes use 600 instead. Furthermore, no players can be in a 400m vicinity of the mission center in order for it to clear. If you pass both those conditions then it should despawn, if it doesnt -> Please supply us with a RPT log (enable debug_mode).

Markokil321 commented 9 years ago

Am aware of the time/seconds, had set it low just to test. Checked now with the president in town mission.

The mission spawned and i teleported there, completed the mission then teleported away (over 1km away). Waited for some time and after a while the next mission spawned, i then returned to the location of the first president mission and the buildings/crate etc were still there.

This is my .RPT from that time: http://pastebin.com/y81dMWTk (61 attempts, lol. strange it was taking so many attempts for the president/mayor missions. Other missions it was taking far less to find a position.)

in config.cfg had this set: wai_clean_mission = true; // clean all mission buildings after a certain period wai_clean_mission_time = 40; // time after a mission is complete to clean mission buildings

and in the mission it was set to clean up _baserunover. (the building) As i said in first post missions get cleaned up fine if they time out :o :octopus:

f3cuk commented 9 years ago

Ah yeah, missions don't despawn while there are still AI left alive from that particular mission.

The 61 attempts are normal. The president missions asks for a lot of space so it's harder to find a suitable place.

Markokil321 commented 9 years ago

Allright, so completing the mission AND killing all Ai should do it? Thats good to know i like to have the missions cleared after completion for various reasons. :)