Jump to content
gc8

remoteExecCall question

Recommended Posts

Hi

I'm learning to do some network programming with remoteExecCall but I ran to weird issue. What I'm doing is that I have call like this to the server: remoteExecCall["updateEquipmentList", 2]; and in the updateEquipmentList function I call player sidechat "TEST" to see if the function gets called properly. the wierd thing is I get no sidechat message... I put there diag_log too which works but the sidechat doesnt. why?

I would understand sidechat not working when dedicated server but I'm running in multiplayer mode from the editor. 

 

I also tried this to get back to the client and use sidechat but it's not working:


 

_print remoteExecCall ["printDebug", 3];

printDebug =
{
 diag_log format["_this %1 %2",player, _this];
 player sidechat _this;
};

again diag_log works but not sidechat. anyone know why?

 

thanks!

Share this post


Link to post
Share on other sites

hi,

 

can you try with :

player sidechat format ["%1", _this];

 

Share this post


Link to post
Share on other sites
1 minute ago, pokertour said:

hi,

 

can you try with :


player sidechat format ["%1", _this];

 

 

that works! strange.. but thanks.

Share this post


Link to post
Share on other sites

actually that was not it.. the sidechat started working again like it was originally meant to work. I dont know what caused it to stop working. but it works now.

Share this post


Link to post
Share on other sites

Are you maybe testing your mission in singleplayer?

Chat commands do not work there.

Share this post


Link to post
Share on other sites
6 minutes ago, Tajin said:

Are you maybe testing your mission in singleplayer?

Chat commands do not work there.

 

you mean in multiplayer? I just tested my mission in multiplayer (started from the editor) and sidechat worked.

Share this post


Link to post
Share on other sites

Default option for testing in the editor is singleplayer. So it may easily be that you forgot to switch it to MP when you tested it. In that case the sidechat command would not work.

Share this post


Link to post
Share on other sites

sidechat works now in both SP and MP, I tested. no clue what went wrong earlier.

  • Like 1

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

×