alexslx

Adding network messages

5 posts in this topic

Posted (edited)

Hello, I'm trying to add new network messages without changing @exile_server files directly. How can I do this? I've tried to create a new addon and expose the functions like exile or enigma revive do, but without success. 

2016/03/01, 11:28:45 "ExileServer - Network message dispatch failed: Forbidden message name! Payload: ["sprTiHzO","addlockVehicleRequest",["2:642","1234"]]"

Regards,

 

Edited by alexslx | twitch.tv/alexslxbr

Share this post


Link to post
Share on other sites
11 minutes ago, alexslx | twitch.tv/alexslxbr said:

Hello, I'm trying to add new network messages without changing @exile_server files directly. How can I do this? I've tried to create a new addon and expose the functions like exile or enigma revive do, but without success. 


2016/03/01, 11:28:45 "ExileServer - Network message dispatch failed: Forbidden message name! Payload: ["sprTiHzO","addlockVehicleRequest",["2:642","1234"]]"

Regards,

 

Without changing the exile files? Wait until the next update, they've made it possible. 

Share this post


Link to post
Share on other sites
Advertisement
5 minutes ago, WolfkillArcadia said:

Without changing the exile files? Wait until the next update, they've made it possible. 

I mean doing that by creating an addon (like a3_dms or enigma exile). I want to be able to exchange network messages (adding lock is just an example).

Share this post


Link to post
Share on other sites
4 minutes ago, alexslx | twitch.tv/alexslxbr said:

I mean doing that by creating an addon (like a3_dms or enigma exile). I want to be able to exchange network messages (adding lock is just an example).

You can create your own remoteExec but there is a security flaw if you don't add a bunch of checks to make sure the data you are expecting is correct. 

If you want to use ExileServer_system_network_sendTo or ExileClient_system_network_send, you will need to edit ExileServer_system_network_dispatchIncomingMessage (If you want the client to send a message to access a server side function) or ExileClient_system_network_dispatchIncomingMessage (If you want the server to be able to send a custom message to the client) so they look in the missionConfig for the CfgNetworkMessages class. That's pretty much the only way if you want to use Exile's System. You can always write your own if you don't want to use theirs.

Share this post


Link to post
Share on other sites
4 hours ago, WolfkillArcadia said:

You can create your own remoteExec but there is a security flaw if you don't add a bunch of checks to make sure the data you are expecting is correct. 

If you want to use ExileServer_system_network_sendTo or ExileClient_system_network_send, you will need to edit ExileServer_system_network_dispatchIncomingMessage (If you want the client to send a message to access a server side function) or ExileClient_system_network_dispatchIncomingMessage (If you want the server to be able to send a custom message to the client) so they look in the missionConfig for the CfgNetworkMessages class. That's pretty much the only way if you want to use Exile's System. You can always write your own if you don't want to use theirs.

Thanks @WolfkillArcadia. I followed your hint (also had a peek on your banking sys) and did it successfully. 

1 person likes this

Share this post


Link to post
Share on other sites
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

  • Recently Browsing   0 members

    No registered users viewing this page.