ZupaleX Posted December 8, 2015 Share Posted December 8, 2015 (edited) Hello,I've been trying to push events from a slave server to a master server. I naively thought that I can use the net_variables the same way they are used in all the shard_something.lua components attached to the shard_network prefab. Unfortunatly, the events are pushed only when the master set these net variables and changing these variables from a slave server is just ignored.Is there a way to push an event from the slave to the master? I'm quite sure there is, because when a player connect directly to the cave server, or die in the cave server, the amount of player registered on the slave is beeing pushed to the master through the event "master_slaveplayerschanged". There is also this TheNet:SendSaveRequestToMaster() function which I'm not able to see. Unfortunatly, how this event is called is not accessible to us, poor modders. Did someone managed to do it already, or maybe my luck will bring PeterA or V2C on this forum for an answer? Edited December 8, 2015 by ZupaleX Link to comment Share on other sites More sharing options...
ZupaleX Posted December 12, 2015 Author Share Posted December 12, 2015 I push this thread and would like to insist on this question because I believe it's quite an important one. Come on, I'm sure someone from Klei can bring an answer on that Link to comment Share on other sites More sharing options...
mrname Posted December 26, 2015 Share Posted December 26, 2015 As far as i know it is (in most games)impossible however i have just started modding on this game so my only knowledge comes from games that kind of work like this one Link to comment Share on other sites More sharing options...
ZupaleX Posted December 27, 2015 Author Share Posted December 27, 2015 This is possible since there are functions which Klei's guys use for synchronizing the saves (TheNet:SendSaveRequestToMaster()) for instance. We just don't have access to this functionnality as modders, or I don't know what to use.If it's the first case scenario, then I request a way for modders to use this functionnality.If it's the second, I'm asking what to use. Link to comment Share on other sites More sharing options...
Maris Posted December 27, 2015 Share Posted December 27, 2015 (edited) You can use a site on php and send events via http/json. What exactly do you need? I mean what mod are you working on? Edited December 27, 2015 by Maris Link to comment Share on other sites More sharing options...
ZupaleX Posted December 28, 2015 Author Share Posted December 28, 2015 I thought about it but it's quite a complicated process while I'm sure the request to sync the saves on the shard and stuffs like that are using much simpler protocols.I just want the other servers on the shard to react to event pushed on other servers, like if an earthquake begin on a slave. By using net variables, you can make slaves react to event pushed by the master, but not the opposite. So I'm just wondering what's hiddent in functions such as this famous TheNet:SendSaveRequestToMaster() Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now