Dr_Cox1911 Posted August 17, 2015 Share Posted August 17, 2015 (edited) Greetings all! I modded this thing in a couple of minutes and thought it might be useful for other people as well. I coded it mainly for my own purpose and want to run this mod once the Workshop works fully. Coxis Reload-Sync is only working in MP and still has some bugs, use at your own risk! This mod supports TinyAVC! What does Coxis Reload-Sync do? Well, the name pretty much sums it up. With this mod you (=Serveradmin) can choose a reloaddifficulty and automatically sync it to your clients. The clients aren´t able to change the setting while the mod is loaded. How do I (=Serveradmin) choose the difficulty? Within the mod folder you find a "reloadsettings.ini" which should be pretty self-explanatory. Here is a quick example: If I wanted to set the difficulty to medium my "reloadsettings.ini" would look like this: [SETTINGS] ;Choose the desired difficulty here: ;1 = Easy ;2 = Medium ;3 = Hard difficulty=2 Sourcecode: Github Steam Workshop Edited December 3, 2017 by Dr_Cox1911 restructured post for steam workshop release EnigmaGrey, Claust, LeoIvanov and 2 others 5 Link to comment Share on other sites More sharing options...
Dr_Cox1911 Posted September 19, 2015 Author Share Posted September 19, 2015 Anyone tested this? If yes and there weren´t any bugs I will throw it up on the Workshop. I know that the messagbox is kinda dumb, but I couldn´t figure out another way to make the command work Link to comment Share on other sites More sharing options...
Dr_Cox1911 Posted April 23, 2016 Author Share Posted April 23, 2016 Anyone got a solution for the ugly dialog box? Need some kind of event that fires at the right time, all that I have tested (like gamestart) don´t work. Link to comment Share on other sites More sharing options...
betterthantrav Posted October 28, 2016 Share Posted October 28, 2016 When I get home I will give this a try, thanks. Link to comment Share on other sites More sharing options...
GothicGhost Posted June 4, 2017 Share Posted June 4, 2017 Thanks for this mod. I am downloading now if I find any bug s I will let you know Link to comment Share on other sites More sharing options...
Dr_Cox1911 Posted June 4, 2017 Author Share Posted June 4, 2017 (edited) Is this mod even needed anymore? Haven't played for ages, so I don't know if this still works. Might throw it on github though, so that others can contribute to it if it's still a thing. Edited June 4, 2017 by Dr_Cox1911 Link to comment Share on other sites More sharing options...
GothicGhost Posted June 4, 2017 Share Posted June 4, 2017 Hi. Far as I know I can't force hardcore reloading in the server options? Thanks. Link to comment Share on other sites More sharing options...
Dr_Cox1911 Posted June 4, 2017 Author Share Posted June 4, 2017 I'm out of the loop regarding PZ right now, so I don't know if this is currently implemented. If not I might consider to give this mod another look and recode some of it to get rid of the hidieous dialog box and throw it on the workshop. Rekkie 1 Link to comment Share on other sites More sharing options...
GothicGhost Posted June 6, 2017 Share Posted June 6, 2017 That would be great if you could Even playing coop mode with friends it's much better when everyone using the same mode and make sure you got enough loaded mags. Thank you. Link to comment Share on other sites More sharing options...
Dr_Cox1911 Posted June 7, 2017 Author Share Posted June 7, 2017 Thanks for the feedback GothicGhost, so the mod does still work? Don't know when I will be able to look at it again, so no promises for this to happen soon. Link to comment Share on other sites More sharing options...
Dr_Cox1911 Posted July 9, 2017 Author Share Posted July 9, 2017 (edited) I have rewritten the mod to use LuaNet, but unfortunately I can't figure out how to send the settings to the client without a player action like pressing a button or closing the damn dialog box. Any LuaNet professionals here? I thought that I could simply add a "send"-Command in my init-function which get's called upon initialization of LuaNet, but the request for sending the setting is not received on the server-side. The communication is working though, because I've added a debug button-press which sends the exact same command and the server receives it, sends the setting and the client changes it's reload difficulty accordingly. Edited July 9, 2017 by Dr_Cox1911 Link to comment Share on other sites More sharing options...
EnigmaGrey Posted July 9, 2017 Share Posted July 9, 2017 Should be an event that fires when the player first appears in the world, such as OnGameStart. Not totally sure on that, it's been a while. Svarog 1 Link to comment Share on other sites More sharing options...
Dr_Cox1911 Posted July 14, 2017 Author Share Posted July 14, 2017 (edited) OnGameStart fires before the connection between the client and server is established it seems, because adding something to this event fires before the "Waiting for player-connect response from server" is done. With LuaNet it should work with the "onInitAdd"-function but for some obscure reason the server doesn't receive the command. Looks like it is some sort of timing problem. EDIT: I just uploaded the mod to github, so if someone of you guys want to take a look at it. The function that's responsibly for asking the server to send the settings is "CoxisReloadSyncClient.askSettings". Edited July 14, 2017 by Dr_Cox1911 Link to comment Share on other sites More sharing options...
Dr_Cox1911 Posted November 27, 2017 Author Share Posted November 27, 2017 Just updated this on github. I finally (with a little help from someone best unknown) found a rather hacky way to get rid of the luanet bug. If this mod is still needed it would be awesome if someone could test it, after that I will throw it up on steam. EnigmaGrey 1 Link to comment Share on other sites More sharing options...
Dr_Cox1911 Posted December 3, 2017 Author Share Posted December 3, 2017 Just uploaded it to Steam Workshop (see first post for the link). 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