Jump to content
Sign in to follow this  
Mabes

Disabling Addons

Recommended Posts

Is it possible to keep someone from joining if they're using a certain addon? Like if someone is using the XAM mod and they connect to the server, they'll be kicked.

Share this post


Link to post
Share on other sites

this line in the server config should stop the mods.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> equalModRequired=0;

Share this post


Link to post
Share on other sites

This can be done with server side scripting:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">onUnsignedData = "if( (_this select 1) in [""modfolder\addons\addonfile.pbo""] ) then { kick (_this select 0);};";

Bad thing is: As soon as someone changes the modfolder name or the addon file name, this method won't work anymore.

It's sad that Arma doesn't support any wildcards in strings, like   *   and   ?

If it would you could do something like this:

[""*\addons\addonfile.pbo""]

gets rid of the problem with the modfolders

Share this post


Link to post
Share on other sites
If it would you could do something like this:

[""*\addons\addonfile.pbo""]

gets rid of the problem with the modfolders

But even that would fail if the user re-packed the same PBO into another filename.

Share this post


Link to post
Share on other sites

correct.

but it should block at least 8 out of 10 players who use a not allowed addon, because they don't know about this type of addon-check

and even <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">equalModRequired=1;can not hold off a player who really wants to play with mods

Share this post


Link to post
Share on other sites
and even <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">equalModRequired=0;
can not hold off a player who really wants to play with mods

Yeah, that wouldn't do much. At all. biggrin_o.gif Using

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">equalModRequired=1;however, would require players to use the same -mod=... parameter list (or no mod parameter at all) as the server.

This will catch most casual mod users from ruining other people's MP experience with conflicting mod usage crashing servers and clients.

After that, if someone insists on using a certain mod by way of being "clever", he or she gets a free ticket to ban.txt.

Share this post


Link to post
Share on other sites

well in theory this should be incorporated with signature system ...

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  

×