English How to start a linux sv with mod file?&HTTP Dwnld

11 replies
Goto Page
To the start Previous 1 Next To the start
Up
BcY
User
Offline Off
• The title explains itself. I want to start my linux server with files that exists in cs2d/mods file.

• Also how to use Http downloads?
Can someone explaing detailed?
BroHosting Int. - Kgb2d Clan
17.05.17 12:50:49 pm
Up
Cure Pikachu
User
Offline Off
Linux dedicated server? Doesn't sound like you can do that, yet.
As for HTTP downloads, if the documentation isn't detailed enough, I don't know what is.
servertransfer.lst has written:
// New since 0.1.1.8: HTTP Downloads
// You can also host your files on HTTP webservers instead of your game server.
// Use the following scheme to add HTTP file transfers:
// scheme: http://www.url.tld/myfile (web URL) > folder/file (local relative path)
// example: http://www.unrealsoftware.de/img/icons/cs2d.png > gfx/cs2dicon.png
//
// Warning: HTTP downloads might freeze the client for a few seconds if the webserver is slow!
Anything interesting for me today, Nijino Yume?
17.05.17 07:53:32 pm
Up
BcY
User
Offline Off
I already know about these informations but it's not working! Tried a lot of times.

for example;
http://mylink.tld/img/hat1.png > gfx/hats/hat1.png

and. PUF! it's not working.
BroHosting Int. - Kgb2d Clan
17.05.17 08:05:47 pm
Up
SlowPoke101
User
Offline Off
Did you try to add www.?
17.05.17 08:37:39 pm
Up
Cure Pikachu
User
Offline Off

I can't access this link from a web browser.
Anything interesting for me today, Nijino Yume?
17.05.17 08:59:10 pm
Up
BcY
User
Offline Off
@user SlowPoke101: it doesn't make sense, but yeah tried.
@user Cure Pikachu: it's sample link bro..
BroHosting Int. - Kgb2d Clan
17.05.17 09:26:28 pm
Up
Cure Pikachu
User
Offline Off
Well I tried doing this on my own server and it worked:
Code:
http://ic.pics.livejournal.com/sternenbacio/48781807/964708/964708_original.png > gfx/pikachu/964708_original.png

What link are you trying to use?
Anything interesting for me today, Nijino Yume?
17.05.17 11:19:11 pm
Up
BcY
User
Offline Off
Yeah server transfer is successful but what about in-lua use?
BroHosting Int. - Kgb2d Clan
18.05.17 12:03:07 am
Up
Avobolt
User
Offline Off
What do you mean with "in-lua use"? If you setup server transfer correctly, your clients will receive these files, which means that they will be able to, for example, see images displayed by a server-sided lua script.
18.05.17 08:50:01 am
Up
BcY
User
Offline Off
@user Avobolt: did i get it right;
http://mylink.tld/img/hat1.png > gfx/hats/hat1.png
also gfx/hats/hat1.png should be existed in server files.

so example use should be like that;
Code:
1
HUDImage = image('gfx/hats/hat1.png', 100, 429, 2)


but clients will download the image from the link(http://mylink.tld/img/hat1.png) ?
BroHosting Int. - Kgb2d Clan
18.05.17 08:58:53 am
Up
Yates
Reviewer
Offline Off
That's correct. People will download the file from the URL and it will be saved to
gfx/hats/hat1.png
This is the path you should use with Lua.
19.05.17 02:59:56 am
Up
BcY
User
Offline Off
@user Yates: thanks for informing me.
BroHosting Int. - Kgb2d Clan
To the start Previous 1 Next To the start