Jump to content
Sign in to follow this  
fernandolvferreira

Headless client + Normal Client in the same account

Recommended Posts

So, I've been considering implementing Headless client into my community. Unfortunately, we've been having some issues to bring it alive.

 

The mission is working, since I've asked to a friend of mine to test it in his own community's server and it worked flawlessly.

 

The problem is as it follows.

 

MY IP (HOST): 189.50.107.17

FRIEND's IP (HC): 187.56.114.151

 

1) I open my game through Steam

2) I open the dedicated server through a .BAT file. Below you'll find the content of the .BAT:


ARMA2OASERVER's .BAT parameters (DEDICATED SERVER)

Spoiler

start "" "F:\Program Files\Steam\steamapps\common\Arma 2 Operation Arrowhead\arma2oaserver.exe"  -port=2302 "-config=F:\dedi\config.cfg" "-cfg=F:\dedi\basic.cfg" "-profiles=F:\dedi\dedicado" -name=Espartanos25 "-mod=@cba;@cba_co;@JayArmA2Lib;@ace;@ACEX;@ACRE;@ACEX_RU;@ACEX_USNavy;@fallujah;"

 

2a) This is the content of the server's CONFIG.CFG and BASIC.CFG:

 

BASIC.CFG

Spoiler

MaxMsgSend=128;
MaxSizeGuaranteed=512;
MaxSizeNonguaranteed=256;
MinBandwidth=131072;
MaxBandwidth=2097152000;
MinErrorToSend=0.001;
MinErrorToSendNear=0.0099999998;
MaxCustomFileSize=1310720;
class sockets
{
    maxPacketSize=1400;
};
adapter=-1;
3D_Performance=1;
Resolution_W=0;
Resolution_H=0;
Resolution_Bpp=32;
terrainGrid=25;
viewDistance=3000;
Windowed=0;

 

 

CONFIG.CFG

Spoiler

 

hostName = "Espartanos 25º - DAMN HC!";
password = "";
//password = "E25BR";
passwordAdmin = "batatinha123";
serverCommandPassword = "";
logFile = "logfile_console.log";

motd[] = {
    "WELCOME TO OUR SERVER",
    "LOCK YOU WEAPONS ( Shift+' ) UPON JOINING",
    "AVOID CONVERSATION AND SAVE QUESTION FOR AFTER THE BRIEFING",
    "Fratres sumus morti traderent"
};
motdInterval = 4;

upnp=0


maxPlayers = 18;
kickduplicate = 0;
verifySignatures = 0;
allowedFilePatching = 0;
requiredSecureId = 0;

voteMissionPlayers = 3;
voteThreshold = 0.33;

disableVoN = 1;
vonCodecQuality = 10;
persistent = 0;
timeStampFormat = "full";
BattlEye = 0;
battleyeLicense = 1;

doubleIdDetected = "";
onUserConnected = "";
onUserDisconnected = "";
onHackedData = "";
onDifferentData = "";
onUnsignedData = "";
regularCheck = "";

//HC;
headlessClients[]={"127.0.0.1","192.168.0.17","187.56.114.151"};
localClient[]={127.0.0.1,192.168.0.17,187.56.114.151,189.50.107.17};

reportingip = "<>";

class Missions
{
    class Mission_1
    {
        template = "[E25]Batalha%20de%20Zargabad%20(HC).Zargabad";
        difficulty = "mercenary";
    };


};

 

3) UPON HOST CREATION, MY FRIEND OPENS UP HIS SHORTCUT TO CREATE THE HEADLESS CLIENT:

 

ARMA2OA_HC.BAT (parameters to execute the ARMAO2A.BAT in the Root folder)

Spoiler

"C:\Program Files (x86)\Steam\steamapps\common\ARMA 2 Operation Arrowhead\ArmA2OA.bat" -connect=189.50.107.17 -port=2302 -client -nosound -name=HC -profiles=HC -mod=@ace;@acex;@acex_ru;@acex_usnavy;@cba;@CBA_CO;@fallujah;@JayArmA2Lib

 

 This is what happens (Server's console Point of View):

 

tnLcIA5.png

 

 

This is what happens (Headless Client's console Point of View):

 

Spoiler

17:28:26 Dedicated client created.

17:29:30 > Player HC connecting

17:29:30 > WELCOME TO OUR SERVER

17:29:30 > Session lost

17:29:45 > Client connected: 189.50.107.17:2302

17:29:46 > Player HC connecting

17:29:46 > WELCOME TO OUR SERVER

17:29:46 > Session lost

17:29:47 > Client connected: 189.50.107.17:2302

 

It keeps going indefinitely...

 

This is the SERVER.RPT file. 

Spoiler

2017/01/23, 17:46:25 NetServer::SendMsg: cannot find channel #905276533, users.card=1
2017/01/23, 17:46:25 NetServer: users.get failed when sending to 905276533
2017/01/23, 17:46:25 Message not sent - error 0, message ID = ffffffff, to 905276533 (HC)
2017/01/23, 17:46:25 NetServer::SendMsg: cannot find channel #905276533, users.card=1
2017/01/23, 17:46:25 NetServer: users.get failed when sending to 905276533
2017/01/23, 17:46:25 Message not sent - error 0, message ID = ffffffff, to 905276533 (HC)
2017/01/23, 17:46:25 NetServer::SendMsg: cannot find channel #905276533, users.card=1
2017/01/23, 17:46:25 NetServer: users.get failed when sending to 905276533
2017/01/23, 17:46:25 Message not sent - error 0, message ID = ffffffff, to 905276533 (HC)
2017/01/23, 17:46:25 NetServer::SendMsg: cannot find channel #905276533, users.card=1
2017/01/23, 17:46:25 NetServer: users.get failed when sending to 905276533
2017/01/23, 17:46:25 Message not sent - error 0, message ID = ffffffff, to 905276533 (HC)

 

It keeps SPAMING this message as long as the HC is trying to connect...

 

The strange thing is... If I host the mission through the game (MULTIPLAYER -> NEW -> CREATE A GAME) the Headless Client joins without any problem and it is automatically assigned to its slot... Unfortunately, I don't know why and I can't confirm (no admin privileges), it seems the HOST is spawning the units instead of the HC.

 

I've been all over the forums. Tried other user's CFGs without success. The fact the HC manages to connect to my server when I'm hosting a NOT DEDICATED SERVER, leads me to believe the problem may be in the settings of the dedicated server.

 

I'd be extremely pleased if anybody could enlighten me as to the nature of this problem and any probable fix...

 

Thanks...

 

NOTES:

1) Other players can join the dedicated server with no issue...

 

2) My own HC can't join my own Dedicated Server... I tried three variations, all of them end up in the previously mentioned situation:

 

a) -localhost=127.0.0.1 -connect=localhost

b) -connect=127.0.0.1

c) -connect=localhost

 

3) My own HC will join if I host the mission through the game (Multiplayer -> New -> Create game)

 

4) Anti-virus and Firewalls were disabled during the tests, even though I didn't believe it to be the issue, since normal clients could join

 

Share this post


Link to post
Share on other sites

So... I discovered some unrelated parameters in the CONFIG.CFG the way to solve this, was to change pretty much everything to annotation (//)

 

Spoiler

//steamport = 8766;
//default 8766, needs to be unique if multiple serves on same box
//steamqueryport = 2303;
//default 27016, needs to be unique if multiple servers on same box
hostName = "Espartanos 25";
password = "";
//password = "E25BR";
passwordAdmin = "batatinha123";
//serverCommandPassword = "";
//logFile = "logfile_console.log";
//upnp=0


maxPlayers = 18;
kickduplicate = 0;
//verifySignatures = 0;
//allowedFilePatching = 0;
//requiredSecureId = 1;

//voteMissionPlayers = 3;
//voteThreshold = 0.33;

//disableVoN = 1;
//vonCodecQuality = 10;
//persistent = 0;
//timeStampFormat = "full";
BattlEye = 0;

//doubleIdDetected = "";
//onUserConnected = "";
//onUserDisconnected = "";
//onHackedData = "";
//onDifferentData = "";
//onUnsignedData = "";
//regularCheck = "";

//HC;
//loopback = true;
headlessClients[]={"127.0.0.1"};
localClient[]={"127.0.0.1"};
//reportingip = "<>";

class Missions
{
    class Mission_1
    {
        template = "[E25][HC]Batalha_de_Utes.utes";
        difficulty = "mercenary";
    };


};

 

Dedicated server is online

I can join

Friends can Join

Headless will Join

 

Now the problem is:

 

Figure a way to allow my friend (who is running the HC) to join the server...

 

I know, I know... Most of you will say it is impossible, except I have an idea...

 

When I host the server through the game (MULTIPLAYER -> NEW -> CREATE NEW GAME), my friend is able to join while the HC is in the server, so, I guess the parameter that is preventing him from joining, is somewhere in the CONFIG.CFG or BASIC.CFG.

 

I developed this idea from my first problem (HC will join HOST SERVER, but wont join DEDICATED SERVER), the only difference between them is the CONFIG.CFG, and I was right.

 

Since a HOSTED SERVER will allow Duplicated IDs or even missing IDs, I guess there must be a parameter in the CONFIG.CFG preventing it from occur.

 

Does anyone have an idea about how can we make this happen without having to buy another CDKEY an opening another steam account in another computer? If some does know, please, let me know...

 

Thanks!

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  

×