1 (edited by catpaw 2008-05-09 12:27:19)

Topic: download tile images from different hosts

Okay, I sometimes run a custom map server at home, and since it goes on the edge of the possible upload limit whenever a new user joins download the map, all perceive quite a lag. At least I believe this is the reason for the lag bursts, while normal gaming goes well with aprox. 50-100ms.   

I got this crazy: How about the server just telling the client an http url to get "externally" the tileset from. Like from Imageshak or so. Should be doable with libcurl for example (its AFAIK free as in beer) So map downloads will not burden the teewars server...

2 (edited by GSGDani 2008-05-09 12:34:16)

Re: download tile images from different hosts

i think its the same thing i want...
i want a http/ftp map download.. so that the map download speed is faster...
example:
when i run my linux test server at home to test new maps/mods many people connect at the same tome.. and 1 mbit upload isnt enought for 5 or 6 map downloads at the same time.. but if http map download is supported.. i can upload the maps to my root server.. and so there are much less laggs


http://www.teeworlds.com/forum/viewtopic.php?id=1291

Remember me? Questions? Just leave a message, I will respond within 72 hrs!

3

Re: download tile images from different hosts

that would be a really nice feature. Even if I want to run my desktop PC as a server, my bandwidth cannot bear the map downloads.

Antoine de Saint Exupéry: It seems that perfection is reached not when there is nothing left to add, but when there is nothing left to take away.
Besides -  I am the gfx guy!

4 (edited by GSGDani 2008-05-09 12:51:47)

Re: download tile images from different hosts

my bandwidth is enought for playing .. but 5,6 or more map downloads.. o.O sometimes laggs.. some get diconnected.. and some have a ping of 200ms or more ... not really nice for playing..

Remember me? Questions? Just leave a message, I will respond within 72 hrs!

5

Re: download tile images from different hosts

i think this is a cool feature ... well, in my case, i got a dedicated server, but why stealing bandwidth to the server if you can get it from a free hoster? Like xthost.info =P

OR getting in the masterservers, a cache of maps, skins, etc.... but only held it for 3 days... if it is not used again, delete it automatically smile

6

Re: download tile images from different hosts

A reason for NOT using free hoster for something like this: Most of the time they are slow like hell, and they easily block pictures or prevent something like this via anti-hotlinking stuff. Also, if the server is down, nobody would be able to join the gameserver, because they can't get the image.

The only way would be some official Teeworlds data server, but the traffic would make it really expensive.

So, -1 from me for this idea.

bam: WARNING:'src/game/server/gamemodes/mod.cpp' comes from the future

7

Re: download tile images from different hosts

Imageshack explicitly allows hotlinking...

8

Re: download tile images from different hosts

AND traffic? expensive? I know hosters who really dont care about bandwidth, at least here in mexico.. and i dont know about the master server here, but mine is unlimited (and cheap also!)

9

Re: download tile images from different hosts

Its not expensive, but the download traffic creates unneeded lag on the game server. While there are free hosts out there where the users could get their data just as well.

Or in case of Dani who has several servers, and AFAIU would like to move the mapdownload load from the gameservers to a data server.

10

Re: download tile images from different hosts

My proposition: Check if the tiles are downloading from other port than servers game( default 8303, I think ). Because if they are, you can set a limit on that port ( upload limit ). This will cut down on map downloading transfer but server will be not laggy.

You wanna get high?