• 0
Sign in to follow this  
SealHunter

CfgNetworkMessages error

Question

Hello!

I'm working on converting a script from an older version to 1.0.4.

I've worked through a lot of syntax errors myself but I've encountered an odd problem.

I'm unable to create bambi (the timeout error), but it's not because of strict mode.

I get no error on the serverside .rpt but my client throws this one:

23:31:13 "ExileClient - Requesting bambi character..."
23:31:14 "ExileClient - NetworkManager - Parameter count mismatch! Payload: [""createPlayerResponse"",[R Alpha 1-2:1 REMOTE,"""",""0"",""2500"",0,0,100,100,0,300,[],0]]"
23:31:43 "ExileClient - Error: Bambi creation timeout"

createPlayerResponse is called my createBambi.

Naturally I checked my CfgNetworkMessages and compared to the call, but the parameters are correct (at least I think).

	class createPlayerResponse {
		module = "object_player";
		parameters[] = 
    	{
			"OBJECT",//_bambiPlayer
			"STRING",//_parachuteNetID
    		"STRING",//Score
			"STRING",//Humanity
			"SCALAR",//Kills
			"SCALAR",//Deaths
			"SCALAR",//100
			"SCALAR",//100
			"SCALAR",//0
			"SCALAR",//Bambiprotection
			"ARRAY",//_clanData
			"SCALAR"//_spawnType
		};
	};

This should match the call from createBambi:

[
	_sessionID, 
	"createPlayerResponse", 
	[
		_bambiPlayer, 
		_parachuteNetID, 
		str (_accountData select 0),//Score2
		str (_accountData select 1),//Humanity3
		(_accountData select 2),//Kills4
		(_accountData select 3),//Deaths5
		100,
		100,
		0,
		(getNumber (configFile >> "CfgSettings" >> "BambiSettings" >> "protectionDuration")) * 60, 
		_clanData,
		_spawnType
	]
] 
call ExileServer_system_network_send_to;

I have no clue why the "createPlayerResponse" part is in the error, why isn't it getting stripped?

Share this post


Link to post
Share on other sites

1 answer to this question

Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.