Server Consistency Checking

RothgarRothgar Join Date: 2009-11-13 Member: 69372Members
Well since someone posted in my server guide thread about consistency checking I started doing some research into this.

I would like to start this thread with the goal of getting other server operators input on the best way to modify the consistency checking while not breaking any actual functionality.

This is what I have found in my research:

Consistency Checking while currently implemented is not complete and it sounds like there will be further updates to this and it's a WIP?
By Default the NS2 Client App ID 4920 versus the NS2 Server ID 4940 have different files? i.e. Servers don't have all files included to properly enforce strict consistency checking? Examples I have seen for instance is that if you force consistency on *.materials some default maps break?
People want the option of changing their crosshairs and this is community accepted.

So I will update this thread with the "community" modifications as people post to come up with a good alternative to the default consistency check.

I would also like to start a list of "mods" that would be good for a server to Whitelist (Even though that has been removed currently) though this might be worth separating out to a different thread.

NOTE: I have not done any testing with custom skins etc myself to see the consistency checking not working. I have also not tested the below consistency check myself, I will be looking to test this soon.

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->{
  "check": [ "game_setup.xml", "*.lua", "*.fx", "*.screenfx", "*.surface_shader", "*.fxh", "*.render_setup", "*.shader_template", "*.fsb", "*.dds", "*.material", "*.level", "*.cinematic" ],
  "ignore": [ "ui/crosshairs.dds", "ui/crosshairs-hit.dds" ]
}<!--c2--></div><!--ec2-->

Comments

  • RothgarRothgar Join Date: 2009-11-13 Member: 69372Members
    From looking at the ENSL Consistency checking rules I am not sure why they do not have the default *.fx?

    <a href="http://www.ensl.org/articles/714" target="_blank">http://www.ensl.org/articles/714</a>

    Also I am interested to know whether the following "descent" material exclusions are required (This is where I saw information on maps breaking):

    <a href="http://www.unknownworlds.com/ns2/forums/index.php?showtopic=125473&view=findpost&p=2038178" target="_blank">http://www.unknownworlds.com/ns2/forums/in...t&p=2038178</a>
  • RothgarRothgar Join Date: 2009-11-13 Member: 69372Members
    Also what about *.model ?
  • invTempestinvTempest Join Date: 2003-03-02 Member: 14223Members, Constellation, Squad Five Blue
    <!--quoteo(post=2041114:date=Dec 6 2012, 02:58 PM:name=Rothgar)--><div class='quotetop'>QUOTE (Rothgar @ Dec 6 2012, 02:58 PM) <a href="index.php?act=findpost&pid=2041114"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Consistency Checking while currently implemented is not complete and it sounds like there will be further updates to this and it's a WIP?
    By Default the NS2 Client App ID 4920 versus the NS2 Server ID 4940 have different files? i.e. Servers don't have all files included to properly enforce strict consistency checking? Examples I have seen for instance is that if you force consistency on *.materials some default maps break?<!--QuoteEnd--></div><!--QuoteEEnd-->

    I'm pretty sure the errors that people were receiving when they did this was due to a bad download from steam. I know max has been looking into this issue of steam not downloading all the files properly, but there is definitely a issue sometimes. It's probably related to which content server your server downloads the files from. If all the files are downloaded correctly, then there will be no issues.

    This is what I have been using for a while without any issues (server is running client version 4920):

    {
    "check": [ "game_setup.xml", "*.lua", "*.fx", "*.screenfx", "*.surface_shader", "*.fxh", "*.render_setup", "*.shader_template", "*.fsb", "*.material", "*.level", "*.cinematic", "crag*.dds", "cyst*.dds", "drifter*.dds", "egg*.dds", "fade*.dds", "gorge*.dds", "harvester*.dds", "hive*.dds", "infestation*.dds", "lerk*.dds", "onos*.dds", "shade*.dds", "shell*.dds", "shift*.dds", "skulk*.dds", "spur*.dds", "veil*.dds", "whip*.dds", "exo*.dds", "marine*.dds", "muzzle*.dds", "phase*.dds", "sparks*.dds", "male*.dds", "mine*.dds", "pistol*.dds", "rifle*.dds", "shotgun*.dds", "blink*.dds", "blood*.dds", "explosion*.dds", "fire*.dds", "jetpack*.dds", "smoke*.dds", "spore*.dds" ]
    "ignore": [ "exosuit_HUD1.dds", "exosuit_HUD4.dds"]
    }

    Offers decent protection for the major items and it doesn't slow down map loading that much (couple of seconds unless on an SSD).
  • YoungTrotskyYoungTrotsky Join Date: 2007-03-09 Member: 60307Members
    Are you sure consistency checking is actually working on your server at all? I have tried editing it a few times and the maps in question (docking and refinery) will then load but then I'll notice that minimal alien vision mod is working so I think the consistency check has just been disabled.
    On my server reinstalling did nothing to fix this and neither did trying to manually replace the map files. Docking and Refinery work fine on default consistency check but not when it's edited to comply with the rules for ENSL.
  • DghelneshiDghelneshi Aims to surpass Fana in post edits. Join Date: 2011-11-01 Member: 130634Members, Squad Five Blue, Reinforced - Shadow
    Alien vision works on all servers, so do all texture edits right now. Consistency checking is not possible if the server doesn't even have file he is supposed to check.
  • RothgarRothgar Join Date: 2009-11-13 Member: 69372Members
    <!--quoteo(post=2041561:date=Dec 8 2012, 03:52 AM:name=YoungTrotsky)--><div class='quotetop'>QUOTE (YoungTrotsky @ Dec 8 2012, 03:52 AM) <a href="index.php?act=findpost&pid=2041561"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Are you sure consistency checking is actually working on your server at all? I have tried editing it a few times and the maps in question (docking and refinery) will then load but then I'll notice that minimal alien vision mod is working so I think the consistency check has just been disabled.
    On my server reinstalling did nothing to fix this and neither did trying to manually replace the map files. Docking and Refinery work fine on default consistency check but not when it's edited to comply with the rules for ENSL.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Well from what I understand the Alien Vision Mod is a .fx file and as per my post above for some reason the ENSL does not have *.fx in it's checking? Only *.fxh

    Also not sure if this is even a problem it shouldn't be but most examples I see do not use a comma after the check line, but maybe it's not required?
  • YoungTrotskyYoungTrotsky Join Date: 2007-03-09 Member: 60307Members
    <!--quoteo(post=0:date=Dec 7 2012, 06:02 PM:name=Dghelneshi)--><div class='quotetop'>QUOTE (Dghelneshi @ Dec 7 2012, 06:02 PM)</div><div class='quotemain'><!--quotec-->2041589[/url]']
    Alien vision works on all servers, so do all texture edits right now. Consistency checking is not possible if the server doesn't even have file he is supposed to check.<!--QuoteEnd--></div><!--QuoteEEnd-->

    This is not my experience. This mod only works on a few servers for me. It didn't work on the uwe official servers last time i checked and it doesn't work on my server if the default or the ensl consistency is running. Pretty sure this is also what most other people experience.
    This mod alters the DarkVision.fx file i think so it is strange that the ensl check blocks it since, as you say, it only specifies .fxh not .fx but it definitely blocks that mod on my server (i.e. alien vision works like default with walls dark green etc.).
    I have heard reports and experienced first-hand that making certain alterations to ConsistencyConfig.json will just completely remove consistency checking. This is what seemed to happen when i added 2 specific .material files to my ignore list in an attempt to make the ensl config work with ns2_docking. All of a sudden alien vision mod was working on the server. It would be great if someone who had an explanation for this behaviour could comment on how/if/when this can/will be fixed.
  • DghelneshiDghelneshi Aims to surpass Fana in post edits. Join Date: 2011-11-01 Member: 130634Members, Squad Five Blue, Reinforced - Shadow
    I just tested it again to make sure, I can join any server and get modified alien vision, including UWE official servers, NS2Servers.com, etc.
  • DarkScytheDarkScythe Join Date: 2012-08-30 Member: 156876Members
    <!--quoteo(post=2042245:date=Dec 8 2012, 08:57 PM:name=Dghelneshi)--><div class='quotetop'>QUOTE (Dghelneshi @ Dec 8 2012, 08:57 PM) <a href="index.php?act=findpost&pid=2042245"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I just tested it again to make sure, I can join any server and get modified alien vision, including UWE official servers, NS2Servers.com, etc.<!--QuoteEnd--></div><!--QuoteEEnd-->

    As far as I can tell, if you have the alien vision mod installed via the Steam Workshop, it will not work. At least it hasn't for me.
    However, if I launch a "modded" NS2 using the old modding method, it will work, as I guess it's not able to check that file for some reason, even though it is included in the consistency check.

    I just tested and verified this using the "UWE Official NA-East #10 - All Official 16p" server as my test subject.
    With my "stock" NS2 launched via Steam and enabling Huze's Minimal Alien Vision mod, the server would not allow me to use the mod, even though it loaded, and hitting the flashlight brought up the standard alien vision.

    I then exited the game, and launched the game using the "modded" shortcut from back when you had to place the mod files into your ns2 folder. This folder contains the file for Huze's Minimal Alien Vision mod, and a crosshair mod which is unneeded now. I re-joined the same server as above, hit the flashlight, and instead of being presented with the standard alien vision, I was able to use the modded vision mode.

    Not sure what this means, but when people say "it works" I think they should indicate which method they're using to make it work.
  • RothgarRothgar Join Date: 2009-11-13 Member: 69372Members
    Well if anyone wants to do some testing, I am happy to talk on Steam.

    Send me a PM with details.
  • YoungTrotskyYoungTrotsky Join Date: 2007-03-09 Member: 60307Members
    I only started playing NS2 in September really and I never tinkered with modding before the workshop method was available so I was unaware that there even was another way to enable this, thanks for clarifying, DarkScythe. So it would seem that consistency checking is essentially useless as it only seems to block things that are enabled through the workshop, or are there some things that consistency checking will block via either method?
  • RothgarRothgar Join Date: 2009-11-13 Member: 69372Members
    It makes little sense that the Workshop method would work much/any differently than copying the LUA files in place.

    However that said I am happy to test some things with people to see if we can make it work properly.

    At the end of the day, the consistency check lines are no different the only difference with using the Steam Workshop is the files will be in its own separate "Mod" folder, rather than overwriting the original.

    Now it _could_ be possible that UWE's consistency check is just checking if the file is consistent by looking if there is a "mod" file but not checking the actual consistency/integrity of the original files but that would be pretty uh stupid. I mean you could at a minimum probably just md5 check the files or I'm sure there might be better methods.
  • Razgriz2099Razgriz2099 Join Date: 2013-02-13 Member: 183037Members
    Our consistencyconfig.json keeps blocking all mods and we've tried using all the same config setups that you guys are using.  We've been trying to get it like ENSL's setup where only crosshairs are allowed.
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    Our consistencyconfig.json keeps blocking all mods and we've tried using all the same config setups that you guys are using.  We've been trying to get it like ENSL's setup where only crosshairs are allowed.
    http://www.ensl.org/topics/781
Sign In or Register to comment.