Jump to content
Sign in to follow this  
Schatten

Running dedicated server, headless and normal clients on same machine

Recommended Posts

Hi!

I started dedicated server and connect to it headless client from same machine. And I can't connect to my server - pops up window "Connection lost". Also BattlEye reports "BE Service not running - closing game to start installation..." but nothing happens.

What's the problem? Or it is impossible to do?

UPDATE:

Connect HC to Arma 2 OA server.bat

CMD /C START ArmA2OA_BE.exe 0 0 -cfg=hc.cfg -client -connect=127.0.0.1 -mod=@server -name=HC -nosound -port=2302 -profiles=profiles

From server.cfg

kickDuplicate = 0;
localClient[] = {127.0.0.1};

Edited by Schatten

Share this post


Link to post
Share on other sites

I've never tried this but I would maybe disable BE on your server (in server.cfg there is a param for this).

Share this post


Link to post
Share on other sites
I've never tried this but I would maybe disable BE on your server (in server.cfg there is a param for this).

I tried - "Connection lost".

Share this post


Link to post
Share on other sites

Is your HC the same copy of the game as your client? Perhaps you need unique copies?

Share this post


Link to post
Share on other sites
Is your HC the same copy of the game as your client?

Yes, HC is the same copy of the game as my client.

Perhaps you need unique copies?

Maybe. Can anybody that prove or disprove?

Share this post


Link to post
Share on other sites

You need unique copies. Before steam you could just block a port on the server and be done with it, not sure how it is now.

Share this post


Link to post
Share on other sites
You need unique copies.

It is very unfortunate. (

Share this post


Link to post
Share on other sites

Viba, how did you do that headless client occupied special slot on connected to server? On my server HC occupied first free slot. Can you help?

From mission.sqm

class Item67
{
side="CIV";
class Vehicles
{
	items=1;
	class Item0
	{
		position[]={4398.0698,2.8474684,12019.737};
		azimut=195;
		id=67;
		side="CIV";
		vehicle="CIV_EuroMan01_EP1";
		player="PLAY CDG";
		leader=1;
		skill=0.60000002;
		description="Headless client";
		forceHeadlessClient=1;
		init="this allowDamage false; this enableSimulation false";
	};
};
};

From init.sqf

_path = switch (true) do {
case isServer: {"\@server\init.sqf"};
case (!hasInterface and !isDedicated): {"hc\init.sqf"};
case !isDedicated: {"player\init.sqf"};
};

[] execVM _path;

Share this post


Link to post
Share on other sites

Well the new 1.63 patch kinda f*cks up the headless client. If I start it through steam with startup parameters in steam it fails to join the correct slot and doesn't initialize properly somehow. If I start it from the new ArmA2OA_BE.exe file with the same startup parameters it works fine, until at some point it starts lagging the WHOLE server, making it even hard to connect to it through RDP, shutting down the HC normalizes the situation immediately. No problems whatsoever in the previous builds pre-1.63.

The "forceHeadlessClient=1;" should work, but as I stated above...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×