Files

> > CS2D > Lua Scripts > [EngiN33R] Resource Loader
Files overviewCS2D overviewLua Scripts overview

English [EngiN33R] Resource Loader >

7 comments2 kb, 424 Downloads

old [EngiN33R] Resource Loader

EngiN33R
Moderator Off Offline

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.
Documentation >

flame 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
1
dofile("sys/lua/resloader.lua")
to server.lua. Make sure server.lua is listed as the value of mp_luaserver.
Approved by Yates

Download Download

2 kb, 424 Downloads

Comments

7 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

apex2d
User Off Offline

gj hope ill see my name on your vids :lol:
I like it!

old

Hajt
User Off Offline

Not tested yet but seems that's cool script, gj.
I like it!

old

EngiN33R
Moderator Off Offline

@user 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.

old

Dousea
User Off Offline

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.
I like it!
edited 1×, last 17.05.16 12:37:20 pm

old

Gaios
Reviewer Off Offline

It's really usefull.
I like it!

old

Time
User Off Offline

Good job.
This is something that should have made it into the client a long time ago.
I like it!

old

Mami Tomoe
User Off Offline

Useful!
I like it!
To the start Previous 1 Next To the start