[Yank] TACTIC Files (serversfer.lst forcing) 
12 comments04.12.15 10:18:16 pm

2 kb, 408 Downloads
Ay cute beings,
tonight I bring you TACTIC Files (These Are CriTICal Files), a simple and useful script that helps you assuring that players get the critical server files from the servertransfer list (chosen by you).
Most of the out there scripts/maps require additional assets (like images, sounds, etc) and if these files are not present, the gameplay gets quite messed up for the player and glitches arrive. A lot of players set their game to not download any additional files from servers or either to only donwload files not bigger than X (Net tab at Options menu). With this script you can choose the most important files on the servertransfer.lst file and force the players to download them.
It might not be as awesome as it sounds but who cares, it works well
Utilization
You just have to write a line in the servertransfer.lst file containing "// TACTICF" and the files bellow that line will be marked as critical. (Logically, when you're done, write a line with "// TACTICFEND"). And that's it! When players with the limited download setting join and miss these files, they're kicked out of the server (by default).
Notes
You can change the behavior of the script when it detects that a player haven't downloaded a critical file by editing the 19th line of the script (have a look at it).
You can also turn on the advanced mode to make the script check wether the players version of the files matches the server ones.
You can also tag specific files by adding " // TACTICF" to the end of their line.
Installation
Just put the script in the sys/lua/autorun directory and you're good to go.
tonight I bring you TACTIC Files (These Are CriTICal Files), a simple and useful script that helps you assuring that players get the critical server files from the servertransfer list (chosen by you).
Most of the out there scripts/maps require additional assets (like images, sounds, etc) and if these files are not present, the gameplay gets quite messed up for the player and glitches arrive. A lot of players set their game to not download any additional files from servers or either to only donwload files not bigger than X (Net tab at Options menu). With this script you can choose the most important files on the servertransfer.lst file and force the players to download them.
It might not be as awesome as it sounds but who cares, it works well


You just have to write a line in the servertransfer.lst file containing "// TACTICF" and the files bellow that line will be marked as critical. (Logically, when you're done, write a line with "// TACTICFEND"). And that's it! When players with the limited download setting join and miss these files, they're kicked out of the server (by default).

You can change the behavior of the script when it detects that a player haven't downloaded a critical file by editing the 19th line of the script (have a look at it).
You can also turn on the advanced mode to make the script check wether the players version of the files matches the server ones.
You can also tag specific files by adding " // TACTICF" to the end of their line.

Just put the script in the sys/lua/autorun directory and you're good to go.
edited 9×, last 03.06.17 05:42:31 pm

Comments
12 comments



Log in!
You need to log in to be able to write comments!Log in
Fixed a little bug on the checking mechanics. The files was being checked at a very slow rate (player ping plus 5 miliseconds). For players with a ping of 100, for example, it would take like 3~4 seconds to check 30 files and detect it. That would be bad for massive mods like tibia and such.

True that. Surprising no one came up with this.
It's sys/lua/autorun.
Description,
_Yank has written:
Installation
Just put the script in the sys/autorun directory.


Just put the script in the sys/autorun directory.
It's sys/lua/autorun.



