#headless_client

1 messages ยท Page 9 of 1

slim lily
#

@solemn hollow same happens for me actually, have you found a fix for it yet? Or what is causing it?

solemn hollow
#

This is a good call, I'll try this later

#

Though, I've not setup any custom rules

slim lily
warm forge
#

also getting the regex error on linux, no mods loaded other than the dlc

#

could it be something with the gcc version?

warm forge
#

what distro are you running this on? also what's the output of ldd --version ?

warm forge
#

@heavy tiger @solemn hollow @slim lily I fixed it by making a new vntest folder (name not important), copying all the stuff from vn and removing addons/emm.pbo, then launching the headless client with that new vntest folder instead of the default vn

#

in short, it's emm.pbo in the dlc that's causing the crash

slim lily
#

@warm forge interesting I'll test it as well in a bit.

slim lily
heavy tiger
#

@shadow kraken ^

shadow kraken
#

@bold python please check

bold python
#

Maybe EMM client checks failing for headless client?

#

But yeah emm dll uses regex's

#

I think the problem just comes from the fact that the Linux machines has no .so to use instead of a .dll

heavy tiger
#

but we are talking about linux here

#

that means the dll is not used

#

that means regex shouldn't possibly be a thing here, I have no idea ๐Ÿ˜„

bold python
#

I mean callExtension should just signal an error without much else in case a compatible extension is not found, right?

shadow kraken
#

@warm forge @slim lily can you please try with -debug startup parameter and see if it creates the emm_api.log (on windows int the arma 3 game folder)

warm forge
#

don't see any emm_api.log

heavy tiger
bold python
#

Probably a hasInterface check in the emm would fix the issue?

bold python
#

fair enough KEKW ยฏ_(ใƒ„)_/ยฏ

shadow kraken
#

@warm forge ty. we will disable the sqf init for servers with the next update

brave frigate
#

Hey people, I'm trying to setup a headless client for my server, I used linuxgsm to easily set stuff up but it doesn't seem to diverge too much from the normal process for arma 3 dedicated servers from what I can see..

#

I am continuing to have issues in general though, actually getting the headless client connected to the actual server running?

sleek apex
#

if the HC is external (not reccomended) then you will need to whitelist its ip.

brave frigate
#

The mission I'm using to test this, has a headless client slot, so it should be getting occupied by it when it connects, right? But yet there's nothin..

sleek apex
#

sorry, you can omit the -ip argument and just use -connect. When your in the server and logged in as admin, you should see the HCs connected.

#

I also like to suggest, duplicating the .exe file and having a separate one with a different name for the HCs just in the case of needing to modify things without shutting everything down. Though that is unlikely to be your issue here.

brave frigate
sleek apex
#

what do the consoles for each say?

brave frigate
#

oh, HC is spamming wrong password was given.

#

but the pass is set with -pass? unless, is that wrong?

sleek apex
#

-password

brave frigate
#

So it was me trying to use both ip and connect?

brave frigate
sleek apex
#

password too

#

that was more likely it

brave frigate
#

Yeah, password too!

#

Now to get some mods in here..

brave frigate
#

I'm really confused why the HC isn't occupying the ONLY headless client slot, especially given that it's playable..

placid gyro
#

did you give the HC slot a name?

#

It does not appear so.

limber grove
#

Anyone seen this issue before? I'm getting this error in the console output of my HCs: ```Error in expression <((0.5safezoneW)-(0.5((((safezoneW/(pixelW * pixelGridBase * 0.50))-10))*(>

#

this is on a linux HC, mod list is admittedly rather long:
mod=vn;@cba_a3;@alive;@rhspkl;@flashlight;@fifty_beard;@jsrs;@aa_tracer;@agc;@align;@crash_landing;@em;@enhanced_missiles;@enhanced_soundscape;@immerse;@mk1_eyeball;@more_smokes;@re;@redis;@remove_stamina;@rpp;@spyder;@suppress;@wmo;@smarter_tanks;@vcom;@lambs_danger;

#

oh you know what it is. I bet it's because the vn files aren't all lowercase.

#

yeah nope I can't load vn on a HC

#

oh huh @warm forge what does emm.pbo do?

#

oh it's an ebo

#

@shadow kraken @heavy tiger sorry to be a bother but what should I do for working around the linux HC crash here? Just delete emm.ebo?

limber grove
#

gotcha. thanks.

#

hmmm now my server is segfaulting

cunning sage
#

copy air_f_vietnam.ebo and vn_structures.ebo from client to server

languid minnow
#

In the Mike force mod my hc is stuck on ''connecting''. it enters the server but doesn't assign itself in the only hc slot that is available.

brave frigate
#

you HAVE to give the HC a name @languid minnow

#

so -name=HC

languid minnow
brave frigate
#

nice

limber grove
#

@cunning sage not sure if that'll fix my segfault but I'll give it a go!

#

alternatively can I just download the workshop compat item and load that as a mod?

#

(on the server)

cunning sage
#

Yes, just remove emm.ebo

balmy root
#

I'm having problems with getting my HC set up. The stuff in the server.cfg is configured correctly (AFAIK) but whenever I try putting command line arguments (or whatever they're called - I'm not the best with coding and scripts) in my batch file, all it does is say "Dedicated client created" and do absolutely nothing else.

#

I put this command in the batch, without quotes and with putting in the right IP and password: -client -connect=xxx.xxx.xxx.xxx -password=yourpass

#

I'm not sure what I'm doing wrong and how to figure it out. Assistance would be greatly appreciated.

mellow bluff
solar seal
#

I need help trying to code in my bat file to start up the HC every time as well, so it's all in one bat file and my HC is started up and connected with each restart.. would anyone be willing to hook a brotha up? ๐Ÿ˜„

balmy root
balmy root
#

So I made not one but two HCs and had them running alongside my server while giving Liberation a go, but it did next to nothing to handle the lag problem (with results such as AI running in place and being able to soak up copious amounts of bullets). I don't know if it's the way I set up the HCs, the mission parameters, or what, but I'd sure love to know what I could do to reduce or remove the lag (could it be a hardware-related issue?).

heavy tiger
cunning sage
#

Deleting emm.ebo solves problem with headless client on linux server

slender ember
#

Can anyone recommend a decent headless client script/framework which handles offloading?

keen vault
#

Zulu Headless client is supposedly quite nice.

slender ember
#

Awesome, thanks

mellow bluff
#

Werthles Headless clients also work really well! Ive been using that for the past month and its brilliant, but I am going to try ZHC also, let us know how it goes!

brave frigate
#

if anything I'd suspect HCs would make it worse since you're runnin even more stuff on the same machine?

keen vault
fast dagger
#

Hey folks... I am so sorry if this has been asked before but I am having a hell of a time figuring it out...

I am running a Dedicated server off an old gaming laptop (fresh install windows 10, PC is only used for dedicated server host).

I am using SteamCMD and TADST to run my server.

When settting up HCs in this environment do I need to download multiple instances of the SteamServer to run each HC?

In other words... Do I need one SteamServer set up for the actual Dedicated Server, then another installed Steam Server running a HC?

I am so sorry if this is a dumb question. I am a dumb so it follows.

cunning sage
#

no, you only need one install

hidden stone
# fast dagger Hey folks... I am so sorry if this has been asked before but I am having a hell ...

No, on HC IPs and Local Clients IPs you type 127.0.0.1,127.0.0.2,127.0.0.3 and so on and then you create a batch file with wordpad : start /min "" "C:\Users\Administrator\Desktop\steamCMD\steamapps\common\Arma 3 Server\arma3server_x64.exe" -client -connect=127.0.0.1 -port=2302 -mod= -enableHT the stuff after -mod you can copy from the Parameters Window. You can also put all the headless clients into one batch file

fast dagger
#

Ok that is kinda what I thought... Man this stuff is just slightly complex. I'm 3k+ hours into my Arma 3 misadventure and just now getting into server hosting..

Love the Community help! You folks are amazing.

foggy phoenix
#

anyone have experience setting up headless client on host havoc followed the guide and its not working?

keen vault
fast dagger
#

I actually built my batch file and got three headless clients up and running last night thanks to @keen radish. Homeboy helped me greatly! Thanks man!

Now I'm just trying to figure out if my antistasi server works better with 1, 2, or 3 HCs. Seemed like three was too many.

cunning sage
#

Assume each instance of Arma consumes at least about 2-3 cores and 2-4gb of memory

#

Depends on what you throw at it

urban juniper
#

There's 5 services in total. 1 Arma server service, 3 hc's and service automatically rebooting server once in 24h configured to activate 5AM. I am considering whether I need to add automatic reboot when system's free RAM starts becoming low (haven't gotten too close yet but ram use has exceeded 25gb few times)

solar seal
foggy phoenix
#

if hc1 in playerlist has an hourglass does that mean its not working?

fervent bramble
#

hey i am using the acex headless client option and TADST on my server

i made it to conntect four headless client to my server, but how do i know, that they have any effect

#

?

west mica
#

@fervent bramble your running a batch file or use TADSt to run the HC's??? Help a brother out im trying to get HC's to connect to my Mike force server (also running TADST)

coral bay
#

Make a batch file, delete tadst

west mica
#

@fervent bramble one test will be the server fps with more than usual AI, you will need to have a way for the mission to offload the AI processing to the HC's so they can do all the work. From client side they will should have the (more or less) the same performance than if there where no AI spawned assuming your not spawning like 100's of AI.

So if the clients stand in a empty field they will/should have good performance...if the mission then spawns say 30 AI then the performance hit should be very little for the clients cause the server, along with HC's will be able to process the AI easily...on client side it will feel butter smooth as if there are very little or no AI on map

#

@coral bay easier said than done cause my batch file does not want to run the VN cDLC folder, any suggestions?
I keep getting HC cant play edit mission.....

keen vault
west mica
#

@keen vault yes, like this -client -connect=localhost -port=2312 -client -nosound -name=HC1 -profile=HC1 -mod=vn;@ACRE2;@CBA_A3;

sleek apex
#

You got -client twice though thatโ€™s likely not the cause of your problem

sleek apex
west mica
#

Yes we have been playing on it for the last week or so...ive tried renaming a copied VN folder to something like @VN_Test to load it as just a mod but still getting cant play/edit mission

#

not sure what im doing wrong tbh

sour badger
#

I need help with my dedciated server im trying to do on my own computer

#

my server config file wont save

#

also I have 2 servers popping up

faint coral
#

@sour badger Did you ever get that figured out?

vague apex
#

I have a problem with a headless client, when I create an AI from a server, bots attack players when there is no headless client, also when transferring from a server to a headless client, any AI does not react to the player in any way if it is controlled by the headless

#

Has anyone encountered such a problem?

fallen hazel
#

I'm running into an issue where the HC connects to the server, but doesn't connect to the slot. I can't force slot it either. This persists after a full server restart as well.

#

Anyone run into this before?

keen vault
#

usually means the HC slot is either missing a name or something else in the mission, try it out with a known good mission with HC slots (like liberation)

toxic mauve
sleek apex
#

So I had someone mention to me the idea of directly spawning ai to HC from Zeus. The idea that I believe would work best would be to take the group spawned from the curator handler, delete and respawn it onto the least loaded HC. This would effectively remove the delay from spawning to offload.

Im just wondering if anyone knows of any complications with this idea? Has anyone tried to do this before?

keen vault
#

@sleek apex I talked about that with joko in the LAMBS discord (asking why there isn't a ZEN option to spawn units directly on the HCs).

He said that's hard-coded vanilla behavior.

There is a "way" to do in ZEN with their custom code module which you can execute scripts in (so basically spawning AI on HCs through script but with some kind of GUI input).

#

Your option sounds doable, probably would need some tweaking to make sure units don't get moved too fast (I think that causes issues).

sleek apex
#

Not sure if speed would be an issue if they are being deleted and respawned. And yeah you would need to spawn them via script directly. He is correct that Zeus itself would not be able to do so as there is no vanilla functionality for it. I think the way I described would be the most seemless way to do so. Though I believe there will still be a slight delay to it.

sleek apex
#

I do need to look at how they do their Zeus menu toggle options as this will likely need that.

keen vault
sleek apex
#

provided it works ๐Ÿ˜‰

verbal frost
#

Hi. I was wondering if there was a way to spawn a Headless Client via scripting/debug console? Or is the only way to place the module down in the editor?

urban juniper
#

Hi everybody. I've been running a dedicated server for a little over a month now and want to add a headless client but the info on it that I can find is pretty limited. I tried to set one up and connect it to my server but get the error, "You were kicked off the game. Steam authentication failed." can someone tell me what I am doing wrong? also is a decent "how to" anywhere online for setting a HC up?

#

also- is it possible to run a HC and player client from the same machine simultaneously?

toxic mauve
#

On top of this, I use Werthles Headless Module as to manage where the AI are processed.

toxic mauve
toxic mauve
#

What is the best Headless Client manager?

#

I tried Werthles Headless Module but it was spamming the RPT a million times and caused memory issues.

#

So I'm probably going to unload that

keen vault
#

ZuluHeadlessClient

toxic mauve
#

But thanks, I'll check out Zulu

#

I saw it before but never tried it coz no reviews

keen vault
#

oh, should be probably review it sweating

toxic mauve
#

Could it have been that maybe?

#

I'm going to test it with debugging off

#

Maybe that might stop RPT spamming

#

I/O operations are expensive

keen vault
#

with werthless? don't think so, what did it spawn the RPT with?

#

RPT logging is async to main thread since 2.00 afaik

toxic mauve
keen vault
#

I mean thats fine, debug shouldn't break anything

toxic mauve
#
[] spawn {
while {true} do
{
sleep (_pause5+5);

[] remoteExec ["Werthles_f>
18:52:59   Error position: <_pause5+5);

[] remoteExec ["Werthles_f>
18:52:59   Error Undefined variable in expression: _pause
18:52:59 File Werthles_WHK\functions\fn_moduleWHM.sqf..., line 124
18:52:59 Trying to call RemoteExec(Call) with 0 targets for func 'werthles_fnc_whksendinfo'. Maximum is 1000
18:52:59 Error in expression <;
#

That is spammed in RPT

keen vault
#

because I could bother the dev of ZHC to implement some features I wanted ๐Ÿ˜„

urban juniper
keen vault
#

werthless has a whole guide linked in the mod description

urban juniper
urban juniper
# toxic mauve Name is an attribute ๐Ÿ™‚

OH! you mean an attribute in the mission editor. GOT IT! I was just trying to get one working with Mike Force beta for starters, simply because I knew it was already set up for one.

vapid moss
#

Any tips for finding a server provider service that can accommodate headless client(s)? Would it make sense to rent two or more game servers, and configure the second and so on as HC's connecting to the first rented server?

exotic coral
#

Pretty sure Armahosts allows you to purchase a headless client for less than 10$ a month? Otherwise I'm not sure of any other hosts that would.

#

Unless of course you are willing to go with a VPS

vapid moss
#

Ok good to know. My current provider doesn't seem to have a HC package. I spoke to another person in DM who said they went with a VPS which works well. I'm starting to think VPS may be the best route. More customizeable and probably more money efficient, but of course more work involved in configuration and maintenance. Anyways, I'm not at the point of actually needing a HC, so I'll leave this on the backburner for now...

haughty turtle
#

Dedicated server*

#

VPS is not the same

exotic coral
#

No, they're not the same. However for the purposes what he wants, and what most people want, a VPS will do the job fine.

haughty turtle
#

Yes for sure, i already said there's no reason to upgrade un less required when we talked.
What i told him is more for like 50-100+ people on his server/s to get the most performance and value for the money spent.

keen vault
#

eeeh, VPS/dedicated are also useful for high AI counts, the normal web hosters tend (for whatever reason) have worse performance then running it on your own server with the same hardware

exotic coral
keen vault
#

yeah VPS are fine for performance, they can't get away with overallocating there (well... shouldn't)

cunning sage
#

Remember that many VPSes use high core count CPUs such as older Xeons. Those are a lot slower, both in terms of frequency and IPC. Not ideal for hosting Arma servers.

#

And of course you can over provision with VPS, most of the time you won't know many tenants that are on one machine ๐Ÿ™‚

#

depending on what kind of hypervisor that is used you might not even know the actual physical CPU

#

assuming they do proper sandboxing, which they should

urban juniper
#

I have a question. I'd like to buy a decent server (better than the repurposed office computer that I have maxed out as my first experiment). What do I need to host large games smoothly?

keen vault
#

High core clock/IPC cpu. So consumer "gaming" are best.

urban juniper
sleek apex
#

Arma is more reliant on the individual core clock speeds than how many cores it has. That said, a server like that could be used for multiple if the clock speed is good.

urban juniper
urban juniper
#

new question. I have all of the dlcs except iron curtain and contact. Are there any missions that are already set up for Hcs so that I can test mine without editing an existing mission ( I am trying to limit variables)?

minor ore
#

I've configured my two headless clients and they successfully connect to the server. However it doesn't appear that they take their headless client slots. They are named headlessclient & the other one is headlessclient(1). The slots on virtual are named HC1, HC2 & HC3. Do I need to tweak something to make them slot up?

placid elbow
#

Dont know if this is the place for this, but ive been having issues on setting up a dedicated server on my computer, the server appears and sometimes I can connect to it but when set to LAN, about 90% of the time it says "Youve been kicked off the server", when trying to connect it to the internet it always says "Youve been kicked off, Steam Authentication Failed"

exotic coral
minor ore
#

Yes and yes ACEX is on the client mods

#

I think it might be because the client is spinning up without the correct mods possibly. I need to find a way to view logs our output of the client I think to see whatโ€™s happening @exotic coral

minor ore
#

Fixed it, it was the mods they were launching without which broke it.

urban juniper
#

how do you make the slots playable? this is my first HC and I am trying to use ZHC with a Mike Force server.

#

HC connects but does not take a role on the virtual.

#

headless client role is greyed out and says "nobody"

keen vault
#

HC module needs to have a variable name be playable

#

HC needs to whitelisted in server.cfg

#

HC needs to have the correct mods loaded

urban juniper
#

I am loading ZHC and CBA_A3

keen vault
#

in the mission file, you cant just connect HCs and use them with random missions ๐Ÿ˜„

#

the mission has to be setup with that in mind

urban juniper
#

that is what I needed to know LMAO. thank you. I jsut figured I did not need to do that if the mission was sewt up for HC already

#

what is the extension for the mission file? .pbo?

keen vault
#

in the mission itself you need to place down "headless client" modules and give them a name, make them playble

#

yup

urban juniper
#

thanks so I do that with what? eden?

keen vault
#

yup

#

but I don't think the mike force mission will like having HCs connected

urban juniper
#

what do you recomend then? Mike force was set up for it from what I read when I setup the server.

#

they suggest 2 to 23 HCs

#

1 to 2 i meant

keen vault
#

oh I just realized that.... I'm running Mike force with a HC myself

urban juniper
#

lol

keen vault
#

well all I did was launch mission with one HC, no config

#

if you're launching your HC manually its most likely some mod missing, check your logs

urban juniper
#

ok thanks again.

#

I'm usinmg FASter and it's HC window or tab or whatever.

keen vault
#

same, so...

urban juniper
#

// HEADLESS CLIENT
headlessClients[] = {
"192.168.1.50"
};
that is all I can find in the server .cfg for my mike force server. should there be more?

keen vault
#

no thats right, if you enabled the HC in faster it'll add that line to the cfg anyway

urban juniper
#

ok. so do i still need to go into the mission file and drop a HC module?

keen vault
#

no

#

check your logs

#

with FASTER there's gonna be two RPT files in the profile folder, one of them is the HCs logs

urban juniper
#

ok. wiil do

#

16:28:04 BattlEye Server: Player #0 headlessclient (127.0.0.1:2316) connected. THIS IS NOT MY IP OR MY Port.

#

what is up with htat lol

keen vault
#

that is your BE port and localhost IP

#

all is fine

urban juniper
knotty compass
#

What are some solutions for spawning units on headless client after creating them in 3den, rather than offloading units using setgroupowner?

grave badge
#

Anyone know the best way to offload Zeus spawned AI to the HC

cunning sage
#

any of the headless managers such as ACEX, werthless etc

#

I think Zen also allowed to spawn directly on HC? think_turtle

keen vault
#

ZuluHeadlessClient ๐Ÿ™‚

#

and afaik ZEN allows you to load custom "modules" that will spawn AI directly on the HC, involves some scripting tho

grave badge
#

See I've tried acex bit it seems to me spotty at best

minor ore
#

Can someone clarify this for me - Do HC need all the same mods as other players when joining the server? I have read the documentation a while ago but forgot and would like someone who actually runs a server to clarify this

#

At the min I just update the HCs to use all the same mods as the players

heavy tiger
#

yes

#

a HC is basically just a player

minor ore
#

thanks

rapid abyss
#

@cunning sage @keen vault do either of you have any more information or leads that I can follow up on regarding spawning directly on HC (rather than transfer after spawn on main server, since that sometimes breaks AI mods)? I've been looking for ways to spawn directly rather than transfer for quite a while, and only thing I've seen is semi-complicated scripts that work but don't scale up very well/easily for use with a large number of AI.

Haven't heard of anything from ZEN either, but sounds like you guys aren't sure if it was ZEN anyways

keen vault
#

If you're looking for a pretty gui/mod that let's you spawn AI directly on HC while in Zeus you're out of luck. @rapid abyss

#

From what I've been told that's impossible due to hard coded Zeus behavior

rapid abyss
#

Nah not on Zeus, since in Zeus I can just use an automatic headless transfer like acex and wait for that to happen then use the sensitive stuff like lambs modules on the AI after transfer

I'm more looking for a semi-automated way to do it in eden

keen vault
#

I guess in theory you could have a pretty gui like the ZEN ones for reinforcement that runs scripts in the background to spawn on HC?

But I haven't seen anything like that.

#

Ooh, ehm

#

There's probably some init order that would make that difficult but idk.

rapid abyss
#

Yep AFAIK one doesn't exist, have to use the scripts in the original HC guide, Monsoon's was it? Kinda unfeasible for large numbers of AI, especially because I have to teach the less-talented mission makers in my unit how to do it as well.

I think I'll just double down on disabling automatic transfer on the units that have HC-sensitive stuff, like units with LAMBS tasks assigned in eden.

keen vault
#

Me no Arma coder.

keen vault
rapid abyss
#

the one linked on the official page

#

oen sec

keen vault
#

Oh

#

:D

keen vault
#

Well my phone doesn't like that PDF

rapid abyss
#

There's a method for spawning on HC but its not worth the effort most of the time unless you have a ton of dev time for one mission

keen vault
#

I know the Lambs guy do it with named way points and then everything spawning is handled by the mission framework script.

rapid abyss
#

I think automatic transfer for most units + transfer blacklist on units that will break AI (mostly LAMBS tasks, allegedly also vanilla waypoints can break but low chance of that for some reason) will work fine

keen vault
#

I guess you could write a script that would scan the whole mission for units with HCs, gather everything that's related for them. Despawn the server side units and respawn them on the HC.

#

But there's probably a reason that such a mod hasn't been done yet

rapid abyss
#

True

#

eh yeah automatic transfer + blacklist for some will probably work fine for my needs, thanks for the help

cunning sage
#

_params remoteExec [my_spawner_func, headless_client_var];

rapid abyss
#

hmm thats intriguing

#

pass it a group, function spawns a copy of the group on HC and uses copyWaypoints on it before deleting existing group

#

wait hang on that doesnt actually solve anything and is worse than just setOwner

keen vault
#

Why?

rapid abyss
#

nvm misunderstood setOwner

rapid abyss
#

this actually isnt that bad of an idea AFAIK

#

probably needs additional capabilities depending on AI mods used though

keen vault
#

As long as you do it right at start their brain should be empty anyway

rapid abyss
#

true

#

Unsure how this would be better than the way current HC systems handle it though, plus i think ZEN has a zeus module for transferring ownership too so this is redundant

#

Seems like a ton of edge cases will start popping up with customized loadouts (which you could solve) and other modifiers in eden that won't transfer

#

intriguing idea but seems to be reinventing the wheel when there's already a ton of headless transfer mods that cover the same stuff, I don't see a way to improve on them that much without also running into edge cases

#

anyways thanks for the help both of you

keen vault
#

AFAIK HC mods mostly just do setOwner, I don't think any takes particular care to fetch any attached way points etc.

#

Discussion in the Lambs discord with the ZHC headless mod to transfer lambs variables aswell.

rapid abyss
#

I wonder if acex or others checks if units are in combat before transferring

keen vault
#

Hm....

rapid abyss
#

yeah thanks for that link, dont think I've seen that entire convo before

#

acex documentation says that it uses "event based transferring" (unit spawn and HC connect/disconnect are the two listed examples) so as long as those are the only two events it looks for it seems like it wouldn't mess with combat

#

might break lambs tasks in editor but as long as a rebalanced isnt forced by a HC disconnect midgame it should be fine (in terms of short-term memory loss from reset of cfgBrain midbattle)

#

I'm not familiar with ZHC but documentation suggests it repeatedly looks for offloading opportunities, which might result in a bit of bad timing for transfers

sleek apex
#

Any HC transfer will break a lambz task. You would need to keep the ai on whatever client it is once your give it a lambz order. As for the other things you looking for, I have been looking into โ€œdirect spawningโ€ ai to HCs recently but my dev time has been taken up recently due to work and a lack of time for testing. As an addition to this, should the system work, it will also include a function that anyone will be able to use for other scripts to just feed a group in and itโ€™ll spawn it to the least loaded HC.

All that said, I canโ€™t really give an expected timeframe atm.

#

The only solutions I can give on the lambz end is to use Zeus holding and/or set the rebalance to a really high value.

rapid abyss
#

Thanks for your work on ZHC! While that direct spawn script would be nice to have, don't stress too much on it, current workarounds are fine for the interim and IRL comes first

sleek apex
#

For the most part, I already got it done. Just havenโ€™t had the time and resources to test it. Testing is usually the longest part of these things for me with complex systems itโ€™s always easy to overlook conflicts.

keen vault
#

Or blacklist them

sleek apex
#

Not sure that would really be viable unless you are using specific units for it.

keen vault
#

Which doesn't take that much effort from mission makers and minimal checking afterwards.

sleek apex
#

Btw, @keen vault you guys try out the dynamic simulation system?

keen vault
sleek apex
#

Ah, yeah there is two ways there, either unit types or by variable names

#

I would suggest variable names in that case

keen vault
#

*add ZHC

sleek apex
#

Lol

keen vault
#

Perfect example of "you write what you read"

sleek apex
#

Idk how useful itโ€™ll be in its current state but do let me know. I would suggest not initially trying it in an important mission.

rapid abyss
#

Is there a way to blacklist units from transfer using Zeus in ZHC btw? I've been looking over it but since the rebalances occur every so often instead of just on unit spawn + emergency I'm wary of it transferring a group I spawned in Zeus and gave a lambs task

sleek apex
#

Only real way atm from Zeus is to use Zeus Holding which will transfer and hold units on the zeusโ€™s local machine.

#

I do plan to add a way to disable rebalance when I can

sleek apex
#

For the time being you could probably just set the rebalance to as high a value as it can go

rapid abyss
#

nvm 600

sleek apex
#

Itโ€™s in seconds and yeah I didnโ€™t really let the rebalance go very high unfortunately.

rapid abyss
#

I mean the time-based rebalances instead of ACEX's event based rebalances are nice because of performance increases after wiping out one objective there can be a rebalance on the surviving units

#

also, dunno if you have this yet, but maybe a check to see if during offloading a group maybe cancel the offload if its in combat stance so no short term memory loss

sleek apex
#

Yeah that was something I was going to look into after my conversation with the lambz devs

#

Itโ€™s a shame that that data isnโ€™t accessible but itโ€™s understandable why it isnโ€™t.

rapid abyss
#

agreed

#

For now I'll probably recommend with staying with ACEX for my unit but I am making a note to check back in with ZHC's progress for our next modpack, very nice features in your mod

#

only reason why I'm not recommending a switch now is concerns about automatic rebalance of lambs tasks

#

clarification: I know you can't run a check to see if they're running a task at the moment and you can blacklist them in eden, but since you cant blacklist units in zeus (yet) arma will inevitably do a funny about transferring units later given a zeus task that arent blacklisted

keen vault
#

I wonder if implementing a similar button to hold Zeus is an option?

#

Simply a key combo to "hold AI on this HC"

rapid abyss
#

Unsure if this is possible but extend the blacklist framework to be a variable you can set via zeus script or module to exclude them from rebalancing was what I was thinking

rapid abyss
sleek apex
#

Understandable, unfortunately there is no way for me to see if a lambz task is present. There just isnโ€™t a flag for it and it wonโ€™t be my place to request such. Best Iโ€™ll be able to do is probably giving an option to disable rebalance and/or the key bind idea.

#

If direct spawning works out, then the Zeus to hc offload wonโ€™t be a factor.

rapid abyss
frail jungle
#

Hi I am interested in making a custom t-shirt mod but cant figure it out i have gotten as far as making the shirt a .paa but cant figure out what to do after that can someone please help me!!!

fierce lantern
#

Hey, so looking for some advice on headless clients since I'm looking into getting one for our unit

#

Firstly, based on my experience I know it's always best to run the HC instance on the same machine (or at least server farm) as the dedicated server instance

#

However, does anyone have any experience with paying for a provider for HC other than the provider you have your Dedicated Server on, and if so, what's your experience, and which providers (Server and HC) did you use?

sleek apex
# fierce lantern However, does anyone have any experience with paying for a provider for HC other...

Unfortunately that'll vary from provider to provider. There are quite a few that offer HCs. If your get it from a provider where you are just renting a specific game server(vm), control for it should be provided through the same panel. If you are renting an actual box(the whole server) then you can set it up how you want and you can host other games as well. That said, the latter option is(usually) more expensive and will require the experience/skills needed to set up your own game servers. And you are correct that the optimal case would be an HC on the same machine.

In the end it'll be up to what fits your needs and preferences. Most providers will have their issues, none of them are perfect. That said, the most popular/biggest are not necessarily the best. Dont forget to think about location as well. Just things to keep in mind when looking.

fierce lantern
#

Aye, for sure

#

We use ServerBlend and have been very happy with it so far

south linden
#

Hi there!
Can anyone give me a full documentation/manual for install headless client?
I'm from Russian, in our sector-community information like gold. Yeap, her is to not enough.

cunning sage
#

Headless client is included with regular client and server binary, there is nothing extra to install.

To start an headless client use the -client -connect=$ip -password=$password with either client or server binary.

For headless client to be able to connect you'll need to add a slot for it in your mission. By default it won't do anything in your mission, its needs to support headless client. Either you'll need to script spawning AI on it yourself or use a framework such as ACEX which can automatically move AIs to headless clients.

You can find the same info here, https://community.bistudio.com/wiki/Arma_3:_Headless_Client

south linden
#

And another question: if i start arma3 on linux-server? How i can start headless-client?

cunning sage
south linden
#

arma3server start -client etc... right?

cunning sage
#

start is not a valid argument for the server binary, ./arma3server -client ...

south linden
#

Oh, i get it. Thank.

south linden
#

Hey again!

south linden
#

On official documentation i can't find information about headless-client-unit.

#

I can't understand how i can configure it.

cunning sage
#

configure?

south linden
#

Yeap.

cunning sage
#

you can select a name to reference it with. rest is done in sqf

fierce lantern
#

Hey, so quick question

#

I've gotten a HC set up for our server and I'm looking to run some diagnostics

#

Also I lied, multiple questions

#
  1. What machine network ID number will the HC show up as, assuming it is on a different machine/farm than the host? Will it be 0, 2 or another number?
heavy tiger
#

another number, the HC is just a client

fierce lantern
#
  1. I know HC is best with zero ping, but is a ping of 23 23 23 fast enough for reliable performance with HC?
heavy tiger
#

Engine wise HC should have infinite bandwidth and zero ping.
It will work, but not optimally. But still way better than with no HC at all

fierce lantern
#

Gotcha

#

We're currently trying out a ruthless economy Headless Client set up before trialing an option with more bells and whistles

#
  1. Also, assuming I have a mod like Zeus Enhanced which adds debug boxes for AI units in Zeus, how do I check whether an AI unit is being calculated on Server or HC?
#
  1. If AI is being calculated on an HC with 23 ping, then the ultimate ping to player will be 23 + player's ping, right?
heavy tiger
#

how do I check whether an AI unit is being calculated on Server or HC?
Zeus units usually are not on server, Zeus units are on the client that spawned them. Unless a HC mod moves them or the zeus disconnects.

You'd check who owns a unit via the owner command, which only works on server. so the debug script boxes won't be that helpful there, or atleast not with a single line

#
  1. If AI is being calculated on an HC with 23 ping, then the ultimate ping to player will be 23 + player's ping, right?
    somewhat... but it doesn't really work like that
fierce lantern
fierce lantern
#

Also 5) Is there a way to transfer units to HC via script?

heavy tiger
#

Also 5) Is there a way to transfer units to HC via script?
setGroupOwner, thats what the HC mods do too

fierce lantern
#

Sorry, I meant like a TL;DR version, like whether an HC with 23 pint will severely negatively impact the game

heavy tiger
#

Again with HC is better than without HC

#

and local HC is better than remote HC

fierce lantern
#

Hmmm, okay

#

Okay, so then next question here

#

I know that the main purpose of HC is to offload AI calculations from server

#

However, I'm doing some diagnostic testing with our server, HC, and my player client online the server at once

#

Basically having a large-scale battle with a crapton of AI, and using the script {{group _x setGroupOwner 7} forEach units _x} forEach [east, west];to bounce the locality of AI units across different machines

#

However, CPU usage on all machines (server, HC, and PC) stays at about the same when I switch them

#

As well as FPS

#

Is there an ideal way to stresstest HC on server besides just running a ton of AI at once?

heavy tiger
fierce lantern
#

Yes, server execute from debug console

#

Returns true when I'm changing units to new machine

heavy tiger
#

if the HC/Server are fps unlocked they'll always run at maximum cpu load

fierce lantern
#

Hmm okay

#

How do I check if they are FPS unlocked?

heavy tiger
#

fps > 50

#

you'd know if you were doing that

#

dunno, maybe the transfer doesn't work somehow

fierce lantern
#

Seemed to work okay, I had an AI local to HC that was bugging out, when I swapped to Server again he sorted himself out

#

Is server FPS capped by default?

heavy tiger
#

yes

fierce lantern
#

Hmm okay, how would I go about uncapping it?

#

I mean, is that even a setting I can change? ๐Ÿ˜…

heavy tiger
#

-limitFPS= start parameter

fierce lantern
#

Legendary, thanks

heavy tiger
#

why is it not listed ๐Ÿ˜ 

#

-limitFPS=200

fierce lantern
#

๐Ÿ‘€

#

Added the parameter to our server, so far no serverside FPS increase

#

But yeah anyways, will this work on dedicated server?

heavy tiger
#

ye

#

maybe it was -maxFPS? I don't remember notlikemeow

mellow bluff
#

Iโ€™ve never seen it affect a headless client though via an in-game FPS monitor.
But looking at the stats via Zulu Headless client it shows it higher

fierce lantern
#

Huh

#

Does it work on Dedicated Server?

#

Don't have an option for it with our current HC provider but I'm keen to try it on our dedicated

heavy tiger
#

its supposed to atleast

fierce lantern
#

I tried it on our server, no noticable FPS increase

#

It was 47 before and 47 after I set it to -limitFPS = 200

heavy tiger
#

if you can't even reach the limit, then it won't run better with the limit removed

fierce lantern
#

I know, was just curious to see if it'd make a difference

keen vault
mellow bluff
#

Yea, the ZHC shows the increased numbers. But the Zeus FPS monitor is incorrect it seems

#

The point being, what are you using to find your values?

fierce lantern
#

Hey, question for HC folks

#

Are trigger evaluations ever offloaded to the HC?

#

Like say, if I set a trigger to be server-only?

heavy tiger
#

if the trigger is on the HC yes

#

no, a server only trigger is on the server, not the HC

fierce lantern
#

Hmmm... okay

#

Is it possible for an HC disconnecting suddenly to break triggers?

#

Had reports of it from my missionmakers today when we turned off our testbed HC for safety sake

#

It broke some AI (which was expected and remediable) but it caused issues with triggers

heavy tiger
fierce lantern
#

What about a global trigger, e.g. player present in area?

heavy tiger
#

these run on every machine

fierce lantern
#

Alright gotcha

nimble iron
#

Are there any FPS unlocked exe available?

keen vault
#

you just add -limitFPS=1000 to the startup params

tidal parcel
#

Everytime I add the ip on my server.cfg for my headless client and I restart the server it gets removed any idea why?

cunning sage
#

sounds like you're using some manager that updates server.cfg, vanilla game server does not touch it

fierce lantern
#

Question- is there any way to check remotely via scripts if a client is Headless or Player?

#

E.g. if I want to evaluate (!hasInterface && !isServer) from server

#

Say for example, if I wanted to have a server function that would grab an array of machine network IDs used by HCs by using allPlayers findIf {code}

#

Or some other related function like that, findIf obviously isn't best for that

fierce lantern
#

Also, is there any way to have a Headless Client turn itself off via scripts? E.g. if I wanted to make a server/admin script to safely deactivate HC from a mission if it's causing problems

cunning sage
balmy root
#

Should headless clients be run on the same machine as the game, the server, or neither? I only have two computers (my desktop, for Arma 3, and my laptop, for the server), and whenever I run the HC on my desktop, Arma 3 itself lags, but without it, the server lags.

heavy tiger
#

same machine as server

balmy root
#

Are there any risks I should be aware of for doing that?

#

Like I said, my server's on a laptop (a decent laptop with at least one, I think two SSDs).

fierce lantern
#

Hey, so I'm trying to run my server as a Headless Client, but it isn't wanting to work

#
18:17:54 InitSound - complete
18:17:54 PhysX3 SDK Init started ...
18:17:54 PhysX3 SDK Init ended.
18:17:57 Loading movesType CfgGesturesMale
18:17:57 Creating action map cache
18:17:57 MovesType CfgGesturesMale load time 44.0 ms
18:17:57 Loading movesType CfgMovesMaleSdr
18:17:57 Creating action map cache
18:18:01 Warning: looped for animation: a3\anims_f_epa\data\anim\sdr\cts\hubcleaned\briefing\hubbriefing_loop.rtm differs (looped now 1)! MoveName: hubbriefing_loop
18:18:01 Warning: looped for animation: a3\anims_f_epa\data\anim\sdr\cts\hubcleaned\briefing\hubbriefing_loop.rtm differs (looped now 0)! MoveName: hubbriefing_ext
18:18:01 Warning: looped for animation: a3\anims_f_epa\data\anim\sdr\cts\hubcleaned\spectator\hubspectator_stand.rtm differs (looped now 0)! MoveName: hubspectator_stand
18:18:01 MovesType CfgMovesMaleSdr load time 4700.0 ms```
#

It always stops short on this last line in the webconsole

#

Any ideas?

fierce lantern
#

Nvm, got it working

balmy root
#

I moved my HC onto my laptop but it keeps crashing every time I boot it up. I launch the server first, and then when that's up and running I try starting the HC; it'll briefly open but then immediately close.

keen vault
#

what do the logs say?

balmy root
#

Lemme go fetch one. One sec.

#

Actually, I can't seem to find where the HC logs are. Do they create logs?

cunning sage
#

yes, same place as always on Windows

fierce lantern
#

Hey question, what is the best way to transfer AI from Zeus client to Headless/Server?

#

Just setGroupOwner or...?

mellow bluff
fierce lantern
#

Sweet, thanks

fierce lantern
mellow bluff
fierce lantern
#

Sweet, okay

fierce lantern
#

Hey, so only technically an issue for Headless Client but since IDK where else to post:

#

ErrorMessage: Data file too short 'C:\SERVICES[...]\arma3\@1572627279\addons\optre_archipelago.pbo'. Expected 49727103 B, got 9437184 B

#

And

#
Version 2.04.147719
Fault time: 2021/08/22 04:44:46
Fault address:  CC7D9689 00:CC7D9689 Unknown module
file:     
world:    
Prev. code bytes: 4A 2B 05 00 48 8D 4C 24 20 48 FF 15 8F 21 16 00
Fault code bytes: 0F 1F 44 00 00 48 8B 8C 24 C0 00 00 00 48 33 CC
=======================================================
note: Minidump has been generated into the file config\arma3server_x64_2021-08-22_04-41-49.mdmp```
#

Our HC won't start, any ideas what could be causing it?

keen vault
#

Sounds like that mentioned pbo is corrupted

idle granite
#

is there still issue with using setGroupOwner of an empty group ?

rare peak
#

Has anyone got a link to a HC Guide?

I'm using faster to launch the server

keen vault
#

in faster just turn on HC?

mellow arrow
#

Is it possible to connect a HC to a Multiplayer Editor Preview?

#

Keeps telling me that the connection has been refused as denied. But the mission itself doesn't have that as an option. And in normal operation this would be in the server config, but I don't see how I might do this for an editor preview. It's not the end of the world, but would make some mission debugging a lot easier.

urban juniper
#

Easier to just launch server and HC through respective bat files tbh

exotic coral
urban juniper
exotic coral
#

FAST2 looks fairly similar to a point. The issue with FAST2 is the language it was written in has a maximum INT limit that steam workshop was over. FASTER is written in a different language so isn't an issue.

urban juniper
# keen vault definitely not

These GUI driven tools have ALWAYS some fuckin setting you want to alter (or lack some) but can't because it would instantly overwrite config files and nullify your change(s). So you end up with text editor and bat files regardless

#

And after new CDLC it always takes quite a bit time before tools get adjusted to new CDLC. Until then you have to do your thing through text files

keen vault
#

I just added -mod;=vn; to command line arguments and done ๐Ÿ˜„

queen grove
#

Hey yall, is it possible to get a headless client to join a locally hosted arma 3 server with mods included?

#

I tried using fast and couldn't get it to work and keep my playthrough without bugging out and we're very deep

sleek apex
#

are you giving it 127.0.0.1 as the connection ip?

clever dagger
#

A general question if someone can help I m trying to get HC (headless client ) to work on my server with the mod ravage but it just make the server lag a lot

toxic stone
#

Are you including the mods in the bat file?

queen grove
#

I got it all figured out, took me a bit I didn't have the right setup

full meadow
#

Has anyone had trouble with headless clients on Linux? We've been having desync issues on a Linux server, and someone suggested it might be that.

meager holly
#

If server has mods (-mod) and the HC also have those mods, i need to specify "-mod" in the HC or it will auto use it?

keen vault
#

you need to specify

toxic stone
#

Yea HC has to have all the same mods listed or it'll throw errors just like a player joining with missing mods.

young palm
#

Hi, just a quick and perhaps stupid question - is it worth running a HC on the same machine as the dedicated server? Will it have any benefits, utilizing more available resources than normally, or will it just eat away what the dedicated server could otherwise use?
I'm talking about a Linux VPS with 6 CPU cores and 16 gigs of RAM

keen vault
#

That's basically the only place where you should run HCs. If they are not on the same machine you're looking at trouble (AFAIK).
Iirc Arma server uses up to three cores usually around 5GB max of RAM.

So you could run one HC (needs 4-5GB of Ram).

mellow bluff
#

Out of curiosity. What do you think this scenario would result in?

Set up two Virtual machines on the same node, give them both high speed networking. Use one to host Arma, and the other to host HCs.
How much of a performance loss would you get compared to the same instance?

keen vault
#

I don't think you'd loose performance but rather run into networking issues and experience the naked unit bug more often.

fierce lantern
#

You can mitigate naked unit bug a bit with mods like Zulu Headless Client

#

Speaking from experience on remote HCs, you need to make sure it has rock solid ping, since AI units will be local to the HC

#

If it's on the same network, good, same machine, better

young palm
#

okay, thank's for all the tips!

jagged ruin
#

Do headless clients have to authenticate through steam in order to connect to a local hosted server? I keep on getting You were kicked off the game. Steam authentication failed. when my HCs try to connect to a server hosted on the same box. The server is hosted in Dallas and I saw that Dallas is having some issues according to Steam DB

keen vault
#

Don't think so since they run of the server.exe which doesn't require you to own the game.

jagged ruin
#

ahh never mind. I'm an idiot who deleted the HCs from the server config file and still expected them to connect

#

not sure why I got a steam auth error though on the HCs. Tried it again this morning and I didn't get that error

ivory spoke
#

Sooo, one of our HCs disconnects on load because of an error

#

from rpt:

ErrorMessage: File /home/steam/.local/share/Arma 3 - Other Profiles/hc1\hc1.Arma3Profile, line 21: '.il': 'l' encountered instead of '='
Application terminated intentionally
15:40:45  > Player headlessclient disconnected

if I log that file:

$ cat hc1.Arma3Profile
version=2;
blood=1;
singleVoice=0;
gamma=1;
brightness=1;
class MainMap
{
        class Compass
        {
                inBack=0;
                position[]={-0.068000004,-0.063750006,0.2};
                positionBack[]={0.010000003,0,0.1};
        };
};
lastMPMission="Mission Stalking Lion";
volumeCD=5;
volumeFX=5;
volumeSpeech=5;
volumeVoN=5;
soundEnableEAX=1;
soundEnableHW=0;
#

I don't see any issues in here?

molten cargo
#

You have this two in a3 profile or you added ? soundEnableEAX=1; soundEnableHW=0;

ivory spoke
#

I also never made profiles for the HCs, they make their own clean profile

heavy tiger
#

$ cat hc1.Arma3Profile
Are you sure thats the right file?

#

do this

cat /home/steam/.local/share/Arma\ 3\ -\ Other\ Profiles/hc1\hc1.Arma3Profile

ivory spoke
#

So I'm thinking, on server launch, we should clear the other profiles folder each time

fervent bramble
#

Hey i Connected the headless client to my Server, but he is refusing to Connect if i use a Moded map (like ruha/chernarus)

#

"This Mission can not be Played it depends on downloadable content..."

#

Any ideas?

sonic vortex
#

HC needs to be launched with the same -mod parameter as the server

fervent bramble
#

It is, the hc is not loading the mods

ebon shale
#

Hey guys im trying to set up a headless client for my dedicated server. The problem is that the headless client is just creating its own server instead of trying to connect to the existing server. This is my .bat for launching the server
https://gyazo.com/e9067d0752f5e9192a4105aecb74d196

cunning sage
#

is that a cmd file?

#

arguments should be on same line as the binary

#

so move line 3-5 to after line 2

ebon shale
#

Ahhh that made it work. thank you!

fervent bramble
#

Oh thanks

#

I hope this will work

ebon shale
#

So I got my headless client working and I'm noticing a significant performance increase. But if I place units in zeus are they spawned as part of the he or as the server? I was reading somewhere that I it's have to be spawned in via script to be controlled by the hc.

keen vault
#

By default (without any HC mod like ACEX, ZHC or Werthless) AI stay on whichever machine that spawned them.

If you want to move them off to a HC either use one of the mods (I recommend ZHC) or spawn them directly on the HC (via Script or a scripted module in ZEN).
Just be aware AI loose their short term memory whenever they get moved between machines.

ebon shale
#

I Already have AceX installed so I'm going to give that one a try first. But I may install ZHC if it makes a noticeable difference.

#

Will that also make units placed in Eden move to the HC?

cunning sage
#

Yes, with some exceptions

fierce lantern
#

Hey, can someone look over this commandline entry for me? Our HC isn't wanting to start up at all and idk why

#

-mod=@450814997;@463939057;@708250744;

keen vault
#

the RPT would me more helpful ๐Ÿ˜…

fierce lantern
#

We have a crap server provider for our HC, I'm not even sure if it's even saving an RPT file or if I'd be able to access it ๐Ÿ˜‚

#

Wait, I lied, found it, wait one

#

Nope, can't find where HC logs are stored

#

Either that or it doesn't log when I start it

#

I've been trying to get the commandline for our Nitrado HC set up for like, days now, can't figure out what's wrong with it

#

-mod=@450814997;@463939057;@708250744;@751965892;@583496184;@583544987;@769440155;@1267657613;@1572627279;@1659590037;@1933244792;@1572642262;@1790880882;@1643720957;@686802825;@2193296534;@1224892496;@1412917989;@1767731032;@753946944;@1883956552;@1388192893;@1876589191;@2020940806;@1858075458;@1808238502;@1770265310;@1923321700;@2343931760;@2016312756;@1763651451;@1989514815;@1960024802;@1983487115;@1673595418;@925018569;@1779063631;@2018593688;@2291129343;@2450921295;

#

^Full commandline

#

I've tried it with and without -mod= since it does it with one of those weird textbox things

keen vault
#

aaah one of these

fierce lantern
#

Trying to start it as server instead of HC now so I can get a decent RPT

keen vault
#

probably without the -mod= then

fierce lantern
#

I've tried that

#

I'll try it again, though

keen vault
#

the server RPT should have some proof of the HC connecting

fierce lantern
#

The HC tries to connect to main server when I have no mods loaded, or only CBA

keen vault
#

because the HC should start even with that malformed modline (it just won't have any mods running)

fierce lantern
#

Yeah, that's what's weird to me

#

I think it starts, but it provides no RPT logs

keen vault
#

try accessing it via FTP and have a look

#

or ask nitrado support

#

or rent a dedicated server, might be cheaper at this point ๐Ÿ˜„

fierce lantern
#

Ah okay, got an RPT file

#

I've redacted the IP

#

Wait

#

Can't send it here I don't think

#

:/

#

Mind if I send it to you via DM @keen vault?

keen vault
#

sure

fervent bramble
#

is the headless client working with vcom?

keen vault
#

not really the place to ask but yes

#

it works

fervent bramble
#

ok

deep kite
#

can someone help me write a headless client scripted for my arma 3 dedicated server aka a .bat file so i can run better

#

mode con: cols=60 lines=10
@echo off

start /min "" C:\ Steram CM\steamapps\common\Arma 3 Server\TADST\default\TADST_config.cfg"
-profiles="C:\ Steram CM\steamapps\common\Arma 3 Server\TADST\default" -name=default -filePatching
-client
-connect=****
-port=****
-password=***
"-Mod=

#

thats the bat^

#

-port=2302 "-config=C:\Server\steamapps\common\Arma 3 Server\TADST\default\TADST_config.cfg" "-cfg=C:\Server\steamapps\common\Arma 3 Server\TADST\default\TADST_basic.cfg" "-profiles=C:\Server\steamapps\common\Arma 3 Server\TADST\default" -name=default -filePatching "-mod

#

this is TADST^

cunning sage
#

you can't put the arguments on their own lines without escaping the newlines

deep kite
keen vault
fierce lantern
#

Hey, what professional hosters do people recommend for Headless Clients?

#

We're executing our last HC for crimes against humanity and want to know which providers offer the best/cheapest servers to cannibalize as HCs

cunning sage
#

you should ideally host it on same machine as the server to have "infinite" bandwidth

fierce lantern
#

I understand that, but currently our unit doesn't have the resources to spin up a VPS or baremetal server

ivory spoke
#

We started with 4-core processors, which is the main server + 2HCs, now we're on 8-core processors which allow us to easily run 3-5 HCs. Which is more than plenty for our large scale 50-ish people operations

#

If your community uses an invision forum, I can share our server management application with anyone.

fierce lantern
#

I might contact you in DMs about that, actually

#

Interesting idea

keen vault
#

80-90 sounds hefty... Considering you can get 24/7 dedi boxes from hetzner for that money.
Also running 3-5HCs on 8 cores is a bit much (in my opinion, maybe one of the devs can chime in).

ivory spoke
#

You can't get 4 hyper-scalable servers for that :P

keen vault
#

True^^ but idk what kind of hardware AWS instances run on but I'm guessing not on high core clock CPUs.
Happy to be proven wrong tho :D

#

It definitely is a great solution for units with OPs twice a week. Far less wastage compared to renting a box 24/7

clever dagger
#

I bought two servers but can't seems to get the hc to work

#

It's two months now stil can't get the hc to connect

#

I would appreciate some help plz

tidal parcel
#

is it possible to run hc on a different network?

cunning sage
tidal parcel
#

got it thanks will give it another try

fervent bramble
#

is there any option to see how much ai is transfered to an HC

#

?

heavy tiger
#

iterate through all groups and check groupOwner

supple zodiac
#

2 questions,
how do i
extract AI to separate AI script
edit init.sqf to execute an extracted AI on headless client

and how do i change the server.cfg file that the game uses when making a server from the game (the one you can see in the steam store and all that)

#

wait, instead of the server.cfg thing, how do i add launch arguments when a launch a server in game?

supple zodiac
#

how do i put the ai calculations for ai spawned using the spawn ai module onto the headless client?

supple zodiac
#

figured that all out (i think) but issue is, its not connecting, it doesnt show up in the slot nor in the list

supple zodiac
#

all it says is Dedicated Client Created

supple zodiac
supple zodiac
#

update: now its stuck on connecting

supple zodiac
#

now it keeps getting kicked saying steam authentication failed, ive read all the forum posts i can find on this but none work

keen vault
#

have you whitelisted the 127.0.0.1 localhost IP in server.cfg?
and placed down HC modules in the editor (and gave them names?)

heavy tiger
#

localhost is automatically whitelisted

supple zodiac
supple zodiac
meager holly
#

When using -mod=... on server, i never used -mod=... on HC, and since HC is a client, it allways tried to load the mods used by the server.
But now seend HC is not automaticly trying to load the mods and i need to add a -mod=... in it's command line to force it use the mods. Something changed?

heavy tiger
#

No you always had to tell the HC which mods to load

#

just like you tell every client

#

and since HC is a client, it allways tried to load the mods used by the server.
No it doesn't work like that, clients don't detect what mods a server is running and load them even before they connect to the server, that wouldn't work

rich cobalt
#

how long does it usually to setup a headless client?

heavy tiger
#

Same as setting up a server

#

or if you have a server, 2 minutes? (for the client itself, not adding HC modules and slots to your missions, which you also need)
You just have to change two things in the command line, the same that you use for your server

rich cobalt
#

oh ok thank you. yeah im making missions for my team and they do have a server i can use but ive never setup a headless client or something. also im not familiar with any real scripting stuff but if its just a small thing i suppose i will be able to get that done

heavy tiger
#

/home/steam/arma3/arma3server_x64 -server -bandwithAlg=2 -cfg=serverconfig/basic.cfg -config=serverconfig/server_247.cfg -port=2382 -name=arma3_247 -hugePages -mod="mods/@ace;mods/@acex;mods/@cba_a3"
Here is a Arma 3 sever commandline (Linux)
And here is a corresponding client one
/home/steam/arma3/arma3server_x64 -client -connect=127.0.0.1 -port=2382 -name=hc_247 -hugePages -mod="mods/@ace;mods/@acex;mods/@cba_a3"

Some server only things like configs go away (You can keep them except he -server one, it will just ignore the ones it doesn't use)
Two client ones -client and -connect=... get added.
And you change the -name= so that they get seperate profiles.

rich cobalt
#

yeah ok thank you for your help

meager holly
#

@heavy tiger thanks.

supple zodiac
cunning sage
heavy tiger
#

Put quotes around.
I have quotes too but apparently I somehow removed the starting quote in my example ๐Ÿ˜„

supple zodiac
cunning sage
#

all of them should work ๐Ÿ™‚

#

first one is probably the easiest

latent sandal
#

Hey all! I am working on getting a headless client set up, and it is stuck on 'Dedicated Client Connected'. I followed Monsoon's guide. This is the contents of the .bat file - https://pastebin.com/4u5W7ubk

#

If y'all have any suggestions on how to fix, or an easier way, I would love to hear them!

cunning sage
#

mods have spaces in them so it will stop loading mods at first space

#

you need to add quotes around the mods parameter

#

@latent sandal

"C:\Users\Jessica\Desktop\Arma Server Files\Arma Server\arma\arma3server_x64.exe" -client -connect=REDACTED -port=2302 -password=REDACTED "-mod=@CBA_A3;@ace;@ACE 3 Extension (Animations and Actions);@Advanced Rappelling;@Advanced Towing;@Advanced Urban Rappelling;@Blastcore Edited (standalone version);@Enhanced Movement;@JSRS SOUNDMOD;@LAMBS_Turrets;@MRB Air Visibility;@Vcom AI V3.4.0;@Gruppe Adler Trenches;@ACE Compat - RHS Armed Forces of the Russian Federation;@ACE Compat - RHS- GREF;@ACE Compat - RHS- SAF;@ACE Compat - RHS United States Armed Forces;@CUP Terrains - Core;@CUP Terrains - Maps;@Fifty Shades of Female (formerly FEMAL3 Heads);@Fifty Shades of Gen3 (formerly FEMAL3 Uniforms);@FIR AWS(AirWeaponSystem);@Grenade Window Breaker(mod version);@Ivory Car Pack [Official] [OUTDATED];@JSRS SOUNDMOD - RHS  AFRF Mod Pack Sound Support;@JSRS SOUNDMOD - RHS USAF Mod Pack Sound Support;@Not what they seem;@RHSAFRF;@RHSGREF;@RHSSAF;@RHSUSAF;@RwG Addon Mosquito Series;@Su-25SM3 Grach;"
latent sandal
#

I will give that a shot!

frosty birch
#

I have a pretty non-standard question; I'm running two servers. One of them is running a persistent mission so people can connect and make sure their mods work. The other one is a server dedicated to letting mission makers test their missions in a dedicated environment. This server is left on mission selection by default. Both are running headless clients.

The first server left on a persistent mission has no issues with keeping the headless client connected. The second server left on the mission selection screen needs the headless client restarted to connect to loaded missions. We suspect it's because there's a set amount of time the headless client will try to connect to a server and then quit, and it doesn't see the mission selection screen as a valid session.

My question is can we override this behavior, or is there another way to go about this so we can use the server as a testbed without manually restarting the headless client every time it's needed?

unborn robin
frosty birch
#

That is a solution I've considered. Apart from communicating how to use the #missions command, there's not too much of a downside.

urban rock
#

is there a way to make a headless client wait for other players before joining the mission, and when it does join the mission, ready up immediately?

frosty birch
#

If that exists, that'd be a great solution. If not, I'd bet there's a way to make a custom solution using RCON.

strange nymph
#

Is there a reason why a Windows 10 Enterprise dedicated server would be preventing a second headless client from launching? The first instance launches without issue and the second always starts and hangs. I'm really scratching my head on this one.

cunning sage
#

are they using separate profiles directories?

strange nymph
#

No, only different user names

#

Well profile names

#

"-profiles=W:\JSF_HC_Test" -name=hc_1

#

So that and then hc_2, 3, etc

#

Do the profiles all need separate directories?

cunning sage
#

try with different profiles directories, that's where the lock file ends up

strange nymph
#

Cool, will do

#

That was it! I probably would have wasted so much more time trying to really figure out why the heck I couldn't get the additional ones running.

cunning sage
#

๐Ÿ‘

#

I think its fixed with the performance binary included in the profiling branch

strange nymph
#

Ah so if I had have launched the profiling version of the server binary I might have not ran into that issue?

cunning sage
#

you should use the performance binary, not the profiling binary, unless you really need to

#

performance binary is the regular named binary in profiling branch

strange nymph
#

I guess I got confused, I didn't realize there was a separate one. I know on my client system I moved over to the profiling branch, but I guess I didn't know about how to use a different binary.

cunning sage
#

you shouldn't

#

use profiling branch with the regularly named binary, that's the performance binary

strange nymph
#

Ah ok, yeah I am on that and have the server setup on that as well.

keen vault
cunning sage
#

yes, it seems to be inverse atm ๐Ÿ˜›

#

issue resolved at least

strange nymph
#

haha yep, now onto consuming all cpu and ram

idle granite
#

Hi peeps, is this joinUnassigned = 0; still needed for HC now days ?

keen vault
#

never heard of it and mine work fine, so I guess no?

stoic veldt
#

HC assigns itself to corresponding HC slots anyways, so no @idle granite

undone urchin
#

I was wondering if you guys have any recommendations for systems/scripts to automate transfer of units to HC. I have used acex, but units with waypoints are not transfered. I am currently trying werthless, but having issues with symplex support systems (If I can figure out how to use the ignore module but through script that may solve my problem too). Do you guys have any other system that you have used with some success?

idle granite
#

create ai right from HC, transfers are nothing but issues

mellow bluff
undone urchin
#

Thanks, I am playing around with zhc now. Hopefully there is a way to blacklist things through scripts, and make it persist through respawns.

knotty compass
timid tangle
#

how do i show the server and HC fps on the map

#

like in lib if anyone plays that

keen vault
#

Zulu Headless Client mod

urban juniper
#

Hello

placid gyro
mellow bluff
#

It just seems to load balance and perform far better. Havent gathered data from it though.

The experience is super simple, there are more nice features + an FPS monitor on the map.

There isnt really a reason to not use it?

keen vault
#

I think the logging of server and HC ai amount and FPS is still broken.
But thats the only thing really (and no one will notice apart from me who started that feature request :D)

jaunty harbor
#

We got a server and are currently looking into the process of adding a headless client. Can I run multiple instances of arma3server_x64.exe from the same A3Master files? Or should I duplicate and have an extra A3Master folder as a separate instance?

slim lily
#

@jaunty harbor you can have multiple instances within the same folder.

jaunty harbor
#

perfect. Thanks! I assume I need to point it to multiple profiles though

slim lily
#

Yes

#

Also use the -client parameter.

jaunty harbor
#

cheers!
As both server and HC is on same server, do I need to give them the public IP of the server in the config, or can I do "localhost" ?

slim lily
#

Localhost, and really it only requires the port. It should use localhost automatically.

jaunty harbor
#

oh, thats nice. Thanks!

jaunty harbor
#

Is it possible to tell the headless client to create the .rpt file under a different name or folder/location? Currently it posts the rpt log identical to the actual server, which makes it hard for our scripts tracking the .rpt log.
Essential just looking for any way to make the HC .rpt distinguishing from the server .rpt

keen vault
jaunty harbor
#

ahh alright. Let me try that out. Cheers

#

jup that worked. Thanks!

jaunty harbor
#

We are using the AceX feature to unload to the headless. (As our missions are purely Zeus missions). We ticked the box to fix the loadout disappearing when offloading to HC. But we are still seeing something like 10% of AI spawned missing the loadout. Its worst when using a delay of 0, but it still happens with delay of 2 and 4.

What are your experienced with the ZHC and Werthles headless mods? We only have 1 HC currently and only zeus missions, so all AI is placed down during the mission.

mellow bluff
#

Never had an issue with Werthles and ZHC with that bug. But of course did with ACEX.
Donโ€™t bother with werthles now, use ZHC. Itโ€™s the same but with more features and less setup.

jaunty harbor
#

We had the same with ZHC it seemed. We ended with AceX and enabled the CBA setting to help keep loadout on locality change. Seemed to get rid of it.

sleek apex
keen vault
sleek apex
#

Once I can get back to putting more time toward ZHC, I plan to work on finding a more stable solution than the โ€œhackโ€ that is currently used by both mods.

#

Unfortunately, I donโ€™t believe there is any flag I can check for when a unit is fully initialized so best we got is delays. Or the option Iโ€™ve been working on, delete inf and respawning onto the HC directly. Iโ€™ve made some progress here but as I stated, got bogged down with irl atm.

sleek apex
sleek apex
#

I know you used the profile path workaround, but just the different names may be cleaner.

jaunty harbor
#

Thanks for the responses TMZulu!
Yeah, seems like the time has the biggest impact. Currently with both CBA and AceX "fixes" it seems to be quite stable for what we do.

I wonder if you could add eventhandler to all units (Like CBA eventhandler with classnames) for postInit, and set a public flag to see when its fully initialized?

Cheers for the headsup. We used the profile route and got it put into a different folder. Made it rather clean for us. ๐Ÿ™‚

sleek apex
#

AFAIK, no such event handler exists for units unfortunately. Will need to double check though. I believe a better solution atm is deleting and respawning directly onto the HC. Skipping the entire transfer entirely. I have made some progress with this but the two big hurdles atm are stability and how to get it to interact cleanly with Zeus. As I said, Iโ€™ll hopefully come back to it soon once I have more time available to rededicate to ZHC development. And NP always good to know the extra options.

#

This method will also allow mission makers using spawning scripts to just hook into the functions to spawn directly as well. I have already made the hooks and scripts to do so in my development build. Will need to make some documentation once it is ready to go to release.

#

Also, if anyone has questions relating to ZHC in the future, I have no issues with people mentioning me here. I will likely reply.

keen vault
sleek apex
#

should be once fully implemented. Just trying to figure out a way to give the Zeus control over it as well. Likely gonna try to ass a checkbox option in the Zeus ui. But, im worried that it may interfere with ZEN or Achilles as they also do so(the crew in vehicle option)

#

reason for this is because, the keybind toggles can tend to be missed or unutilized

sleek apex
#

Thatโ€™s interesting. Not a bad idea tbh.

#

Though that may cause potential issues with most HCs that maintain flags for what units are loaded where.

#

This includes ZHC ofc.

sleek apex
#

Or at least, itโ€™ll still get flagged as never being transferred

keen vault
#

Interesting, does that mean if I spawn some AI directly on HC via Script ZHC will think they haven't been transferred?

sleek apex
#

Yes, as each group has a few flags added to keep track of it. If it is unflagged, it would be assumed as being freshly spawned and present on either a server or a client.

#

Iโ€™m not sure if ACEX uses flags so it may be fine for that. But most other HC systems will either use flags or a big array of units to keep track of what is where.

#

For ZHC, these flags should stay on server side unless debugging is allowed. That new deep copy feature is the first I have heard of a mod spawning to HC without a separate system so it can be something I can look into adding compatibility for such instances.

lucid pelican
#

I could get all the info immediately from the units, delete them, then respawn them

#

I never make an EH for any zeus spawning though, I would rather do it by changing the UI on the zeus to send the data via event to the HC machine so they can simply locally spawn the units

#

but controlling the remote groups afterwards would need to made

sleek apex
#

You can re-add units to zeuses via scripts if you need to. I maintain an array of zeuses through a one time event handler that fires upon going into the Zeus ui. It just tells the server that the user is a Zeus and adds it to the array. This is primarily for the drawing of ai owners for 3D debug and for Zeus holding. And for detecting if a Zeus has DCd so their ai can get offloaded as quickly as possible in order to minimized the affect to the server performance(Emergency Offload).

For my HC spawning, I decided to go with an EH to delete and remake. The reasoning for this was twofold. One, I donโ€™t want to modify the vanilla Zeus spawning functions, which is possible, for the reason of not requiring patches for compatibility with later versions of arma that can potentially change them. Two, ZHC, while designed to accommodate Zeus driven missions, is something I do not wish to interfere with users that just have it loaded into their modset and not directly used or not using it solely with Zeused missions.

My philosophy behind ZHC will always be a focus on modularity and allowing users to use HCs how they wish. The additional Zeus compatibility features, were made to that end, to help reduce the seam that most users experience when using a zeus with an HC.

#

Unfortunately, some AI persistence data(such as known targets)is not possible to access or transfer afaik. So when using AI mods with HC, it is often beneficial to disable rebalancing if the mod has it.

lucid pelican
#

I think the best solution would be a UI based one that simply sends the minimal amount of network data to the HC to locally spawn the units. Handling the remote units via new remote based functions isn't impossible, and I'm pretty surprised no one has done that yet. That seems like the best solution to me

#

As for updates, I'm not sure how often BI updates the actual Zeus UI

gloomy cobalt
#

I am going to add headless client and i am wondering if there is any compat mods i need to install?

mellow bluff
#

Nope ZHC does the trick and thatโ€™s all you need :)

vagrant parcel
#

So I am trying to make an extra PC of mine into a headless client for a server I am renting through Host Havoc. I am using Monsoons HC Guide, https://community.bistudio.com/wiki/Arma_3:_Headless_Client, and https://www.youtube.com/watch?v=UQfMhFfs5yQ&ab_channel=LastResortGaming as my guides. My rented server is running antistasi plus - camlaonam and has three HC spots available in it. I have created my batch files which reads as:

mode con: cols=60 lines=10
@echo off

start /min "" "D:\SteamLibrary\steamapps\common\Arma 3 Server\arma3server_x64.exe" ^
-profiles="D:\SteamLibrary\steamapps\common\Arma 3 Server\Profiles" ^
-client ^
-connect=216.52.25.101 ^
-port=2331 ^
"-Mod=C:\Mods\vn;C:\Mods\3den_Enhanced;C:\Mods\CBAA3;C:\Mods\DUI-_Squad_Radar;C:\Mods\Enhanced_Movement;C:\Mods\Enhanced_Movement_Rework;C:\Mods\No_Weapon_Sway;C:\Mods\Remove_Stamina;C:\Mods\Task_Force_Arrowhead_Radio_BETA;C:\Mods\Zeus_Enhanced;"
Exit

And edited my server.cfg to include the following (with my actual ip and not the words):

// HEADLESS CLIENT
headlessClients[] = {"my ipv4"};
localClients[] = {"my ipv4"};
battleyeLicense = 1;

When I launch my HC it will say that it is connecting, the MOTD will say welcome, and then get kicked due to steam authentication failed. Can anyone help a noob out?

keen vault
#

Steam Auth shouldn't run on HC... Does your mission hBe HC slots? (placed and named)

vagrant parcel
#

right now I have it where it says "headless client connecting" and "headless client uses modified data file". I am no longer getting the steam auth error

#

but it doesnt fully connect or load the profile

sleek apex
#

you got a .rpt file for your HC instance? or for the server? may be some hints there

#

also, FYI, your latency from pc to server farm may limit performance somewhat.

vagrant parcel
#

and yeah I am just testing it to see if it works or not since i have an extra pc laying around. Im not to far away from the server. I live a city over or so

sleek apex
#

it is likely to be around your connection messages if anywhere

vagrant parcel
#

so i scroll down through the rpt file and at the list of mods in the origin column it says not found for the mods. thenit says init sound complete, physx3 SDK init start and end then i get this error:

16:32:37 Error in expression <((0.5safezoneW)-(0.5((((safezoneW/(pixelW * pixelGridBase * 0.50))-10))(>
16:32:37 Error position: </(pixelW * pixelGridBase * 0.50))-10))
(>
16:32:37 Error Zero divisor

and it repeats

#

so maybe my directory to the mods is not setup correctly

sleek apex
#

which rpt?

vagrant parcel
#

D:\SteamLibrary\steamapps\common\Arma 3 Server\Profiles

arma3server_x64_2021-12-17_16-40-32

sleek apex
#

so is it the HC or the server?

vagrant parcel
#

thats the only rpt file i have found so far

#

I guess i pulled the wrong one. Where would i find the rpt for the HC. My server works fine its up and running

sleek apex
#

that looks like it would be the HC, i would suggest seeing if anything appears in the server one after the connect message as well

#

you will likely need to look or grab it through your host's web panel

vagrant parcel
#

14:32:51 Client: headlessclient - Unauthorized Headless Client connection attempt
14:33:04 BEServer::finishDestroyPlayer(1406448767): users.get failed
14:40:54 Client: headlessclient - Unauthorized Headless Client connection attempt
14:43:06 BEServer::finishDestroyPlayer(1889146661): users.get failed

#

Thats the only thing i see in the server rpt that references the HC

sleek apex
#

so that would be related to the ip you have in the server.cfg

#

it is likely different than the one you put

#

specifically: headlessClients[] = {"my ipv4"};

#

you need to grab the external ip from the HC machine

#

just type in "my ip" in google

#

should give you a different one

#

That is your ip outside of your home/LAN network

vagrant parcel
#

Ah. Let me try that it is completely different

sleek apex
#

yeah your ip is different once it goes outside the router/modem

vagrant parcel
#

do i need both the headless client array and the local client array in my server.cfg. i currently do just wondering.

I didnt know that i am a tech noob

sleek apex
#

I would not put it in the localClient list

#

and try that

vagrant parcel
#

should i delete the local client array then?

sleek apex
#

you could, up to you. you can probably empty it

vagrant parcel
#

ok. I am rebooting my server. I will try and report back in a minute or two. I appreciate you

#

So the HC now says loading profile hc. it does not mention the mods. I am loggin in as a player/admin to see if it shows up

sleek apex
#

if you log into admin in game, youll see the HC slots

vagrant parcel
#

so it shows my hc in the first hc slot does that mean it is working fine now? I am going to run the monitor command in game to see server fps but am waiting for the server to load the save

sleek apex
#

yeah should be good if its in the slot

vagrant parcel
#

thank you so much man. I appreciate the help alot. I would have never figured that out

sleek apex
#

antistasi should give an HC fps too iirc

#

that may just be Liberation though'

vagrant parcel
#

through the same monitor command?

sleek apex
#

ah, your talking about the BIS command

#

nvm,

#

thatll be something provided through the mission if it is at all

#

may be an option in the preferences option in the lobby

#

but idk if it has it

vagrant parcel
#

I will take a look if not my plan is just to get some people on the server and see how the server fps is compared to the values i was getting before. I can possibly connect a second pc to it as another hc to see if that helps if not ill just get a second actual server for it

sleek apex
#

you are half correct

silver kestrel
#

guys i have a problem with my personal server can i ask here for help?

sleek apex
#

if its HC related, yes

#

otherwise there is likely a different channel present for your issue

turbid lodge
#

I noticed that when I use HC on my server the AI starts to lag, I see rubberbanding/warping or IDK what it called right. Right after I remove HC everything starts looking much better, even with low fps on the server.
Is there anything I can do to reduce HC lags?

keen vault
#

Run them on the same PC as server.

bright juniper
#

Quick question about headless client stuff

#

I have a headless client on another box with the command line set up properly (well i think its set up properly at least)

It connects but doesnt connect to one of the headless client slots

14:47:23 headlessclient uses modified data file
14:47:23 Player headlessclient connecting.
14:47:23 Player headlessclient connected (id=HC64840).

exotic coral
#

But as for it not connecting, is the headless client slot marked as playable? Each with their own unique name?

#

And are you using a mod such as Zulu for the headless clients?

bright juniper
#

Havent really had a problem doing it in the 4 years we've been running servers.

but yes the HC slot is marked as playable and both labeled (HC1 - HC2)
No not using a Mod Just the base HC modules.. maybe Ace I'd have to look at the mission file.

gloomy cobalt
#

Have a question, how many AI units is prefered for 1 headless client?

keen vault
#

we have ~100 active AI each

bright juniper
#

So still having the same iss

#

*issue

#

Headless client connects to server

#

shows in the role selection screen

#

does not connect to slot

#

tried using the werthles headless client module and doing the following:

"Sync an 'Activation Anybody Trigger' to the WHM Setup Module and Stick the Headless Client Logic Entities and Playable Character Slot Units Inside of the Trigger so it activates when either a headless client (just for -autoinit), or a player loads into the game."

still does not work

keen vault
#

the mods don't really do anything until the HC is connected properly so thats not it

#

@bright juniper have you tried using a mission with a known to be working HC slot like liberation or antistasi?

bright juniper
#

Yea

#

still does the same thing

#

tried using a blank mission too

#

connects, doesnt select a slot

keen vault
#

and you have that in, correct?

headlessClients[] =  {
    "127.0.0.1",
};
lucid pelican
#

With some of my group's tests we have been getting no major fps drop with 500+ AI on a fast server and HC instance. Locally spawning AI on the HC with cba statemachines handling many custom functions. Getting HC to work is well worth it.

keen vault
lucid pelican
#

Currently simulated AI in combat

#

We run on cba statemachines as well as a caching system

gloomy cobalt
#

What mods do u guys use for HC?

ivory spoke
keen vault
ivory spoke
keen vault
#

everyone

ivory spoke
#

alright

#

thought so

sleek apex
#

you can use it with just Server+HC, but if you want to use debug or Zeus functions, you will need it on your own end.

river flume
#

@sleek apex hi mate, i am ussing you HC on my dedicated server, works perfect, except it dont care for my AI init. Specificly i had a large group of AI defending an object, wich had "if (isServer) then { this disableAI "PATH"; };" in its init. They were not able to move until ZHC grabed them, like it reseted their init. Can i stop that from happening somehow?

sleek apex
#

that EH will fire on every transfer

sleek apex
#

so you can just add the EH in addition to what you already have and inside just put an if statement for the _isLocal param to reapply

river flume
sleek apex
#

Well, it wont be simple. Essentially, you would need to add the EH on both the server and HCs when you make the ai(eventhandlers are local). Then inside the EH would be an if statement using the _isLocal argument to readd what you need to to the ai

#

zhc_offload_HeadlessIds is an array of HC client ids managed by ZHC which you could use for a remoteExec to add the EHs if you wish.

#

that array is available on server only

river flume
#

Is there any kind of debbuger for ACEX Headless, so i can see what is transfered and whats not?

cunning sage
#

you can use any HC debugger which displays which machine is the owner of units

river flume
keen vault
#

ACEX has a build in option to log its transfer to file

low cypress
#

What is HC? I've searched it up and i still dont understand. So can someone put it in a simple way so i can understand what it is and how it works. Thank you

heavy tiger
#

Its a Arma client that runs on a server, without graphics, no UI not sound.

You can move AI units onto it so that AI's are calculated on there, instead of on the server, thats the most common use

#

Also there is a wiki pag linked in channel description that basically says what i said

rich cobalt
#

yeah basically outsourcing server capacity

lucid pelican
#

Most common use is for AI but if you're good you can always offload some heavier functions to an HC and set up a bus system with CBA events so you kind of have some async with an extra client (with it's own scheduler and not having to deal with the stuff server handles all the time)

storm salmon
#

I'm having trouble setting up HC for my alive server, is anyone able to DM me and help with the matter. Preferably someone experienced I'm handling these kind of situations

storm salmon
#

Windows @keen vault

keen vault
storm salmon
#

I use TADST, may you DM me a link to FASTER?

keen vault
#

if you're doing this on the same computer as your main arma install use version 1.7c

storm salmon
#

Thank you @keen vault

storm salmon
#

@keen vault It wont allow me to login using either of my steam accounts

storm salmon
#

from FASTER on the server @keen vault

storm salmon
keen vault
storm salmon
#

Perfecto, what abut the script on the other end?

prisma ruin
#

Is ACE Headless usable? And should it work simply by turning it on from CBA settings and then having a HC connect properly to the HC slot?

#

Very little documentation on it.

#

As far as I understand it should put Ai automatically to the HC?

cunning sage
#

more or less yes

#

with some constraints

prisma ruin
cunning sage
#

waypoints tied to the unit may not have synced triggers

#

such units will be skipped

prisma ruin
#

I heard problems with triggers when it comes to Werthles (granted, the information was dated..), so I figured I'd try with ACE. As I understood, those AIs will not be put to the HC with ACE.

#

As it has an option for that.

cunning sage
#

only if the trigger is synced to waypoint

prisma ruin
#

Yup.

#

I think HC is most beneficial for large AI amounts being used and spawned by NR6/HETMAN/HAL, so triggers aren't a thing in that equasion.

cunning sage
#
  1. Enable ACE Headless in CBA Settings
  2. create headless client "unit" in editor, set it as playable
  3. connect headless client to server
prisma ruin
cunning sage
#

you can tweak some other settings in CBA Settings buts that's about it

keen vault
prisma ruin
#

I was just valuating the benefits between ACE and Werthles, and how I can debug if the HC is actually doing anything - after which I realized that ACE has HC logging off by default, and I'll keep it that way.

But I've done your three steps Dahlgren, so probably it is working.

keen vault
prisma ruin
keen vault
keen vault
prisma ruin
cunning sage
#

you can check AI locality etc using local command, that works regardless of HC framework

keen vault
#

base functionality is the same, it has some nice extras

prisma ruin
#

I guess this gets me started, I'll have HC running for our session today. Cheers guys!

Been trying to avoid stepping into HC, but it could be beneficial, and last night I got it sorted alongside OCAP for our rented dedi. Just wasn't sure whether ACE headless was functional.

#

How many AIs have you handled with HC (or multiple HCs) comfortably?

#

And should it affect client's FPS much, if we were to take a server with 200 Ai with no HC in comparison to one with one or two HC?

keen vault
#

100-150 for each HC
with higher player numbers server FPS will limit you first before hitting a "AI limit" on your HC.

prisma ruin
#

If I understood correctly: FPS save for a client is not the key, but the AI will less likely stop running on its place etc, what they do when the server becomes too loaded

keen vault
#

and no, client FPS shouldn't change (unless the server was running at 5FPS before hand)

#

afaik

prisma ruin
#

If there's a HC that can handle 100-150, but there's 200 units, can it automatically leave some AI to the server?

keen vault
keen vault
prisma ruin
#

Alright. Well, we've had quite AI heavy missions, so perhaps having a HC will ease things a bit. It hasn't been awful, even with approx 200 AI and 15ish players, but it could be a lot better.

cunning sage
#

make sure to use performance binary from profiling branch for that sweet performance boost, both for server and headless

storm salmon
#

So it says that my mods are not found in the directory
But they have been downloaded

#

I have deployed them all as well

storm salmon
#

I have since changed the directory and the server now launches

#

I have launched the server and went into arma 3 in order to join but it says "Maximum number of players has been reached."

#

My player limit is set to 40

#

Is there a server.log I can look at iun real-time?

keen vault
keen vault
storm salmon
#

Willco

prisma ruin
# keen vault ah, yeah with 15ish players you can push HCs real hard in terms of AI count

Well - I gave it a go. Itโ€™s hard to compare whether it had an effect, but it was playable, and I think there was a bit more Ai than I initially thought - like 250-200. But the server froze (ppl running in place), which hasnโ€™t happened before. Could be mod mismatches etc, weโ€™ve dealt with that much AI without HC too in the past and never had a freeze, idk.

cunning sage
ivory spoke
#

hey @cunning sage, sorry for the ping but are the profiling/perf branches always up to date and compatible with stable? My main worry with running the prof/perf branch is that our infrastructure (multiple individual servers) is completely automated in terms of steam updates so I don't want to suddenly run into server/client mismatches which would cause manual intervention.

mellow bluff
ivory spoke
#

awesome, thanks!

cunning sage
nimble echo
#

does anyone ever used EC2 spot instance to run headless clients?

timid lagoon
#

uhhhh I need an adult. Reinstalled my Arma 3 server from scratch, including 3 HCs and then reimported my mods and CFGs.

All of a sudden HC's 2 and 3 are stuck on 20:34:03 Waiting for '/home/arma3server/.local/share/Arma 3/DataCache/cache_lock' to be available and aren't spinning up.

Anyone got any clues?

#

fresh install on Ubuntu 20.04 with linuxgsm, deploying 4 servers and then throwing in my mods and CFGs PES_Hmmm. and manually putting in the arma 3 profiles into .local/share

#

even manually deleting out the arma 3 profiles and having it built from scratch, they're stuck on the datacache cache_lock

#

ASfacepalm deleted the old user profiles and now it works. had to let it regenerate profiles on its own

#

stare2 nope... wtaf. i have no clue where this datacache/cache_lock things stemming from. gonna just reboot the server and SakuSigh

#

alright, so i haven't a clue. It doesn't seem to be normal spin up times.

from a fresh boot, i launch the server, then the 3 HCs.

Server + hc1 boot up fine, hc2-3 are throwing mad 21:16:02 Waiting for '/home/arma3server/.local/share/Arma 3/DataCache/cache_lock' to be available

Monitoring top, I only see the 2 arma3server instances utilizing any resources.

timid lagoon
#

i thought it was related to the battleye license line for the HCs but so far no bueno. PES_Hmmm

#

aPES_Sob try spinning them up one by one.... one spins up, the other doesn't. i'm wtaf rn

#

bout to build this whole thing from scratch... again. I probably skipped steps in the deployment that's just fucking me

keen vault
timid lagoon
#

they all have one in arma 3 - other profiles

#

it's this common arma 3/datacache that's dicking me rn

keen vault
#

Yeah, whatever the option with path is, not the profile name option.
Same issue on windows with perf branch

timid lagoon
#

how to fix? do i need to do a -profile in my launch to force them into their own profile/datacache? or wat. i thought linux didn't support profiles PES_Hmmm

#

startparameters="-client -ip=${ip} -port=${port} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods} bepath=${bepath} -password=password"

this is my startup command for each HC, and they each have assigned different local IPs

#

127.0.1.1, 1.2, etc

#

which command do i need to do this on linux? -profiles=<path> makes no difference. is this because i'm on the performance branch that it's being fussy about the datacache any my profiles anywho?

timid lagoon
keen vault
timid lagoon
#

WhyUDoThis i broke my server hours ago so apologies if i seem snippy, i'm deep in my own shit rn lmao.

keen vault
keen vault
timid lagoon
#

is that for linux though? PES3_HmmSip

#

linux explicitly says "nah" it'll just auto make it in the other profiles folder which is what it did before

#

but now it's not stare2

keen vault
#

Try main just for.... "fun"

timid lagoon
#

is there a way to make it work on perf branch on linuxPES3_HmmSip

#

i'm guessing i need to do the ultimate path i did before, deploy as main branch, then change

keen vault
#

see even mentioning linux fucks up my auto correct

timid lagoon
#

trying the pub build

keen vault
#

Once you get Arma to obey your profile paths it'll work, just no clue how to do that on Linux

timid lagoon
#

woofwhat what the fuck lmao. swapping to the public build and it makes HC1-hc3 profiles in the other profiles folder like it's supposed to

keen vault
#

๐Ÿ˜‚

timid lagoon
#

PES_Hmmm now what happens if i swap back

#

kek so its def something with the profiling branch.

#

on linux with profiling branch off, it uses ./local/share/arma 3 - other profiles

with the profiling branch on, everything locks up accessing ./local/share/arma 3/datacache

keen vault
#

That's odd, so it's adhering to the profiles=path/path argument on main but on Prof?

timid lagoon
#

shrug i haven't a clue tbh. i only used -names=HC1/hc2/hc3 for the Headless clients cause that's what the folder is called in arma 3 other profiles

#

and it doesn't work

keen vault
#

Yeah that won't work, not even on windows

#

-profiles=path/to/random_HC_n should work tho

timid lagoon
#

startparameters="-client -ip=${ip} -port=${port} -profiles='/home/arma3server/.local/share/Arma 3 - Other Profiles' -name=HC1 -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods} bepath=${bepath} -password=

timid lagoon
#

PES_HyperReee 23:36:53 Waiting for '/home/arma3server/.local/share/Arma 3 - Other Profiles/DataCache/cache_lock' to be available

#

now it just freaks out in a new folder lmao

#

fuck this, i'm going back to the normal branch lmao

#

Yupppppppppppppppppppppp

#

Right back to the normal branch and all 3 HCs are working like i'd expect.

fuck if i know why

#

startparameters="-client -ip=${ip} -port=${port} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods} bepath=${bepath} -password="

this is all it takes to launch all the HCs on public Shrug

#

if i try profiling again i'll try specifying all the way to each individual HC's folder, not just the overall, and forego the -name cause shrug fuck knows wtf is going on there

cunning sage
#

-profiles='/home/arma3server/.local/share/Arma 3 - Other Profiles' it must be unique per instance, that's where the lock file goes

#

name doesn't matter until later

timid lagoon
cunning sage
#

because the lock file blocks other lock files

timid lagoon
#

i'll give it one more shot

#

startparameters="-client -ip=${ip} -port=${port} -profiles='/home/arma3server/.local/share/Arma 3 - Other Profiles/HC1' -name=HC1 -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods} bepath=${bepath} -password="

#

got it set for each HC folder RWsip

timid lagoon
# cunning sage `-profiles='/home/arma3server/.local/share/Arma 3 - Other Profiles'` it must be ...

sobwhy thanks for the last missing link in the puzzle.

Today started out with me trying to fix the linuxgsm update command and going down a full hellhole of PepeWhatTheFUCK, now the server and HCs are working and i just need to load the parameters one final time. Sobbingcrying

and now to figure out why my linuxgsm monitor can't query the server Bleh. that's probably what's reconnecting my HCs all the time on top of the update command i did manage to fix

#

but going specific on the profiles command apparently works on the profiling linux branch shrug

timid lagoon
#

PES_Hmmm and i think i fixed my linuxgsm entirely now

timid lagoon
#

PES_HyperReee okay one last hiccup.

setting the fucking IPs for everything. How in the fuck does that work.

If I set the servers to 127.0.1.1 IPs, they can't be monitored with lgsm.

If i set them to 0.0.0.0 then ???????????????????? when i change the ports in increments of 12

#

what the fuck

#

in the server.server.cfg
// HEADLESS CLIENT SUPPORT // specify ip-adresses of allowed headless clients headlessClients[] = {"127.0.1.1","127.0.1.2","127.0.1.3","51.81.166.152"}; localClient[] = {"127.0.1.1","127.0.1.2","127.0.1.3","51.81.166.152"};

#

in the HC cfg
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters ip="0.0.0.0" port="2314"

#

why the fuck isn't it working

#

Server IP: 0.0.0.0:2326 Internet IP: 51.81.166.152:2326

#

what the fuck is the headless client IP supposed to be