Jump to content
Sign in to follow this  
zakiechan

How to include a userconfig server side only ?

Recommended Posts

Working on a project to monitor what mods clients have installed vs the server and a whitelist for a un-keysigned server.

 

Want the server to reference a userconfig file to get an easy to change whilelist. Have tried 

 

if(isServer) then { #include "\userconfig\modtracker\settings.hpp" }; , in the init.sqf I have the mod pointing to.

 

I end up with clients crashing with an error saying userconfig not found.

 

 

 

Also tried: [] call "\userconfig\modtracker\settings.sqf";

however, the server reports an error of the script not being found.

 

 

 

Any help is greatly appreciated

Share this post


Link to post
Share on other sites

I end up with clients crashing with an error saying userconfig not found.

 

Why would you even want to run this code on the clients?

Way I see it, this whole thing is best handled server-side only.

 

 

Just send a command to every connecting client, telling them to store their "activatedAddons" list into a public variable tied to the player object.

Have the server wait till the variable is filled, then compare it with your whitelist.

 

Should be fairly simple.

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
Sign in to follow this  

×