[EngiN33R] Resource Loader 
7 comments This is a utility library primarily aimed at mod developers that allows mods to more easily register files they need to transfer to clients. This library offers functions for adding, removing and verifying files staged for transfer. It works by editing servertransfer.lst at runtime. The file is reverted to its original state (before any files were added) on server shutdown.
Attention! This mod is using the new mod distribution format!
Unpack the archive in the CS2D root directory, merging folders if prompted.
On Windows, you may use the launcher (Launcher.exe): open the Mods tab, tick the box next to "Pure Mode" and click "Run CS2D".
You can also run the CS2D executable or the dedicated server with the flag -mods "puremode" (-mods "xxx,puremode" if you already have other mods enabled).
If you would like to use the legacy format instead, simply copy mods/resloader/lua/main.lua to sys/lua, rename it to resloader.lua and add
to server.lua. Make sure server.lua is listed as the value of mp_luaserver.




If you would like to use the legacy format instead, simply copy mods/resloader/lua/main.lua to sys/lua, rename it to resloader.lua and add
Code:
1
dofile("sys/lua/resloader.lua")
to server.lua. Make sure server.lua is listed as the value of mp_luaserver.

Comments
7 comments



Log in!
You need to log in to be able to write comments!Log in
@
Dousea: Yes, that is right
It simplifies the process of registering mod files for transfer to clients. Instead of having to manually add entries to servertransfer.lst, server owners can simply install mods that use this library and not worry about the file at all, since it will all be automatically done for them.


It simplifies the process of registering mod files for transfer to clients. Instead of having to manually add entries to servertransfer.lst, server owners can simply install mods that use this library and not worry about the file at all, since it will all be automatically done for them.

You copied the installation process from your Pure Mode, didn't you? 
Well what does it do exactly? Transferring all kinds of files from servers to clients?
EDIT: Oops, forgot the like.

Well what does it do exactly? Transferring all kinds of files from servers to clients?
EDIT: Oops, forgot the like.
edited 1×, last 17.05.16 12:37:20 pm



