Jump to content
Sign in to follow this  
Hit_Sqd_Maximus

Server checkfile

Recommended Posts

On some servers if you have a modified pbo other than what the server has, you get a modified pbo message when you connect. How do you turn this on for certain addons on the server?

Share this post


Link to post
Share on other sites

Put in your server.cfg

checkfiles[]=

{

"addons\blabla.pbo",

"res\addons\blabla.pbo",

"res\addons\blabla2.pbo"

};

Share this post


Link to post
Share on other sites

Do not check for addons/bla.pbo. Those are not used anyway if you play resistance and may have very different pbos as eg goty uses v1.00 addons and players with cwc and res may have any cwc version. Checking for files in the res folder is sufficient as world files get checked automatically by ofp and nothing else is used by the clients anyway.

Share this post


Link to post
Share on other sites

oops, missread that

We are using a ww2 addon pack on KaRRiLLion's server and when one of the players updated the pack so that weapon velocity and mass are correct. Some players that were using the old pack crashed the server. So I was thinking maybe if we scan the ww2 addons we would know who is using the old ww2 pack.

Share this post


Link to post
Share on other sites

Then just do as sicilian said and put a line for each addon to be checked into your server.cfg wink_o.gif

This won't prevent people with the old addons from joining the server but will at least show their files as modified.

Share this post


Link to post
Share on other sites

No, modfolders do not get checked, except you check for them like modfolder/addons/bla.pbo.

So, to be sure you should equalmodrequired on the server to disallow modfolders.

Share this post


Link to post
Share on other sites

And if you do not wish to disallow modfolders, and quite effective way is to check the actual in-use files(like config.cpp) from mapped addons instead of checking the PBO files. The files are accessed by OFP like root directories, so having something like "KEGnoecain_snow\config.cpp" in your checkfiles list will always verify the config.cpp file from the "KEGnoecain_snow" addon no matter what moddir it came from.

Also, checking for the currently loaded MP mission files should also be quite useful, though that can't be done from the automatic checkfiles, but with the debug checkfiles command in the briefing when everyone has the map loaded. The mission is accessed by ofp from mpmissions\_._cur_mp.island directory, so something like "#debug checkfile mpmissions\_._cur_mp.eden\mission.sqm" (or other important files like init.sqs) should do the trick, though I havent tested it much myself if it really works or not :P

Edit: remove the dots from between those double-underscores, this forum seems to mess up the posts with two underscores

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  

×