Forum

> > CS2D > Scripts > Map based servertransfer.lst
Forums overviewCS2D overview Scripts overviewLog in to reply

English Map based servertransfer.lst

2 replies
To the start Previous 1 Next To the start

old Map based servertransfer.lst

kralzaza_3
User Off Offline

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

old Re: Map based servertransfer.lst

EP
User Off Offline

Quote
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

old Re: Map based servertransfer.lst

kralzaza_3
User Off Offline

Quote
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!
edited 1×, last 10.09.12 07:18:46 am
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview