Forum

> > CS2D > Scripts > Map based servertransfer.lst
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Map based servertransfer.lst

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Map based servertransfer.lst

kralzaza_3
User Off Offline

Zitieren
I have a question about servertransfer.lst

I have a server, and it has multiple mods. Sometimes we want play de_dust2 or prison maps, sometimes we want play zombie plague or other crazy and beautifull maps and mods.
You know, some maps has their own lua files, if there is a .lua file with map name in maps folder, it will run just with this map. I copied zombie plague addfile codes and paste them a new file, like mapname.lua. And zp lua is only works on zp maps.

I want make this thing for files in servertransfer.lst, im searching for a lua. I don't want players need download zombie plague files when map is fy_snow because they dont need it. I cant code lua scripts, so i need your help. Some people searching for this too, if this will make and share in file directory, it can be a very helpfull for all cs2d players.

If we simpfly this: A lua file will check map, if map is zombieplague, it will ask for download to client, and this files will transfered. If map is fy_snow, no downloads will need.

I think its simple but i don't know its possible or impossible. If its cant be, can someone write a script for lua files. If you dont wanna make, can you tell me which code i need for check map?

If map is zp_de_dust2, dofile blabla.lua, If map is escape del virus k, dofile blabla.lua.

alt Re: Map based servertransfer.lst

EP
User Off Offline

Zitieren
It's possible with a lua script with os. functions and a table that contains as key the name of the map and a subtable that contains the path of the files, so when you change map the lua will overwrite the servertransfer.lst to your configuration, sorry I can't make it now. Maybe tomorrow

alt Re: Map based servertransfer.lst

kralzaza_3
User Off Offline

Zitieren
I make it myself, i don't need a lua for this anymore!

as we all know, if a map has some images or sound files, this files will send to client. So we can use this feature for create map-based server transfers. I addes all images and sounds to the corner of the map. I never trigger images and sounds, so this files will not be visible or listenable but they will be in the map. If map need transfer somefiles, it will but it will not use servertransfer.lst file!
1× editiert, zuletzt 10.09.12 07:18:46
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht