Raised This Month: $94 Target: $400
 23% 

Dynamic File Consistency Check


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   EKS (167)
Danni
Junior Member
Join Date: Jan 2005
Old 11-04-2005 , 20:50   Dynamic File Consistency Check
Reply With Quote #1

This plugin was something i put togeather in a few minuites mostly built using dod_match as a base and from a few discussons on the amxmodx forums.

What this will do is trap the files precached on the server and force connecting clients to have the same file version as the server.

Additionally you can specify additional files you want check by creating a file with each file you want checked on a line. This file should be placed in

/addons/amxmodx/configs/consistency/global.cfg

and should look like

Code:
/dod_narby.wad
/dod_northbound.wad
/dod_saints.wad
/dod_sturm.wad
/dod_vicenza.wad
/dod_zalec.wad
/hlbasics.wad

;Exmaple files

sprites/aplayer.spr
sprites/black_smoke1.spr
sprites/black_smoke2.spr
sprites/black_smoke3.spr
sprites/black_smoke4.spr
sprites/dirt.spr
sprites/fire.spr
This _should_ automaticly work on any mod, but this was designed for DOD in mind.
Attached Files
File Type: sma Get Plugin or Get Source (consistency.sma - 2601 views - 1.8 KB)
Danni is offline
Charming
BANNED
Join Date: Nov 2005
Location: Canada
Old 11-04-2005 , 21:01  
Reply With Quote #2

Very nice. Good job.
Charming is offline
Send a message via ICQ to Charming Send a message via AIM to Charming Send a message via MSN to Charming Send a message via Yahoo to Charming
kILL-jOY
Member
Join Date: Jul 2005
Old 11-04-2005 , 23:00  
Reply With Quote #3

going to use this

but what will happen if u put the file name on the check list and the client doesnt have it, does it load?
__________________
**|$uperHero|** Free level 8 / 75+ Heroes / BuyXP at 68.191.146.3:27015 - CS 1.6


kILL-jOY is offline
DarkSnow
Senior Member
Join Date: Oct 2005
Location: 127.0.0.1
Old 11-05-2005 , 08:59  
Reply With Quote #4

Nice, perhaps make it dynamicly check every file for File Consistency, without making any textfile?
__________________
DarkSnow is offline
Send a message via MSN to DarkSnow
Agret
Member
Join Date: Jan 2005
Location: Melbourne, Victoria
Old 11-05-2005 , 11:44  
Reply With Quote #5

wouldn't that lag a ton and be rather pointless?
__________________

(`._Agret_.)
.-~*'ϔm_h__d_l_gꆨ'*~-.
Agret is offline
Send a message via ICQ to Agret Send a message via AIM to Agret Send a message via MSN to Agret Send a message via Yahoo to Agret
kILL-jOY
Member
Join Date: Jul 2005
Old 11-05-2005 , 21:17  
Reply With Quote #6

Quote:
Originally Posted by I
but what will happen if u put the file name on the check list and the client doesnt have it, does it load?
i figured it out myself if the client doesnt have it it kicks the client

can someone fix this so it replaces the old with the new and if they dont have the file they just load normaly without loading the file
__________________
**|$uperHero|** Free level 8 / 75+ Heroes / BuyXP at 68.191.146.3:27015 - CS 1.6


kILL-jOY is offline
Danni
Junior Member
Join Date: Jan 2005
Old 11-05-2005 , 21:27  
Reply With Quote #7

Well it would be nice to beable to load all required files, but unfortunatly there are some the server does not load. In DOD these would be scope sprites and textures, so a global file is still needed for such occurances.

Quote:
Originally Posted by DarkSnow
Nice, perhaps make it dynamicly check every file for File Consistency, without making any textfile?
This does, but the server does not load all the files the client does so you must specifiy those additional files in the text file.

Loading EVERY file in the mod is not a good idea as the client has to also precache them all. My main motivation behind this plugin was that i wanted a custom handler for invalid files (amxbans), and i wanted it to check every file the server loads at mapstart plus sniper scopes.
Danni is offline
DarkSnow
Senior Member
Join Date: Oct 2005
Location: 127.0.0.1
Old 11-08-2005 , 19:26  
Reply With Quote #8

Quote:
Originally Posted by Danni
This does, but the server does not load all the files the client does so you must specifiy those additional files in the text file.
Yea, sorry - i missed that part.
__________________
DarkSnow is offline
Send a message via MSN to DarkSnow
un1ucky
Junior Member
Join Date: Aug 2005
Old 12-14-2005 , 14:40  
Reply With Quote #9

Im use this plugin for Counter Strike version check.
Can me change kick message?
For example:
"Game version incorrect, please update"
And plugin don't check files in cstrike directory
un1ucky is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-14-2005 , 15:15  
Reply With Quote #10

Quote:
Originally Posted by un1ucky
Can me change kick message?
Since the author of this plugin didn't pull the language phrases out (making it multilingual but also allowing for easy edit of strings) you'll have to edit the SMA and then recompile.
Brad is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:03.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode