Jump to content
Sign in to follow this  
piedebeouf

check addons

Recommended Posts

Hello , another question :

the ideas is : how to check if player have the addons that the server use ? and how to tell them where to download the addons ?

Have to put in in the init.sqf?

thanks a lot ...

Share this post


Link to post
Share on other sites
In the server browser at the bottom right lists the addons it is using. You can find them online by googling <addon name> arma 3 and then putting them in your root install directory for ArmA 3.

Handy link: http://www.armaholic.com/plug.php?e=faq&q=18

He wants the other way around :)

Find the name of the addon in the .pbo (config.bin - unbinarize it using Eliteness, can also unpack)

Should look like this

class CfgPatches
{
   class my_AddonName
{

Now we know the name, add this to init.sqf or whatever script you want

if !(isClass(configFile>>"CfgPatches">>"my_AddonName")) then {
   // a hint and forceEnd maybe
};

Share this post


Link to post
Share on other sites

If the player doesn't have the mod needed he won't get as far as the init.sqf to get the "you need this" hint. Either advertise the need for it on your website, via mission name or hope your players are smart enough to see it listed on the server browser page.

If you have a public server you should be enforcing mod bisign files and shouldn't even let anyone without the proper versions or anything extra even connect period. If you're running a private server just get on Teamspeak and say "bob, download this mod".

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  

×