f3cuk / WICKED-AI

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

Running WAI on a headless client #137

Closed h3po closed 7 years ago

h3po commented 9 years ago

Hi,

I've successfully set up WAI to run on a headless client, with surprisingly few changes necessary. To do that, I converted the files to a mod folder that can be packed into pbo and signed. Instead of spawning a thread with WAI\init.sqf from the server monitor, I added it to the mission init.sqf like so:

if (!isDedicated && !hasInterface) then { _wai = [] execVM "z\addons\WAI\init.sqf"; };

I've checked in my changes so far in at https://github.com/h3po/WICKED-AI There's no pull request yet, as there is a few things that need to be considered before making this a release:

With my setup, the server, HC and clients can easily handle missions with AI numbers increased 10-fold without a sweat. The server fps drop minimally (2-3fps) because of the bandwith required, the HC runs fine at 25-40 fps with ~400 AI on the map. The same config without HC on my vanilla Epoch testserver decreases server fps drastically from ~48fps down to 10-20fps.

f3cuk commented 9 years ago

Nice work!

Installation instructions would be a big plus yes. When the HC craps out, don't all the created units etc. automatically get wiped? If not, i guess you could check every x seconds if the HC is up and responding and if not just wipe all the stuff it has created. Just add something like _object setVariable['hc',true]; and the do a { if(_x getVariable['hc',false]) then { remove _x; } } count allUnits + allVehicles;

Impressive numbers, would be great if we could make some more challenging missions without abusing the 50-cals too much.

ReDBaroN1 commented 9 years ago

I have a massive +1 for this as I love the system but, could only re load it back on my server as an HC as my population, object count and combination of other scripts just couldn't run it. My server would slowly start to take a bath from half way through the restart cycle.

h3po commented 6 years ago

@merlijndamman contact me on github, I can't get mail to you because of outlook.com blocklists.

emfirstPJX commented 6 years ago

Hello! And at Epoch 1062 will work?

h3po commented 6 years ago

I dont' understand your question.

emfirstPJX commented 6 years ago

new version released Dayz Epoch 1.0.6.2. works for 1,0,6,2 ? unfortunately I'm not a programmer, but this Headless WAi will help a lot for the server P.S My English Very Very BEST (NO)

h3po commented 6 years ago

No, it will not work. This issue is from the Arma 2 days...

emfirstPJX commented 6 years ago

It's a pity. You can give me this version, you just deleted it, I'll try to adapt it to the new version of A2 EP