Bandwidth limitations?

Forum Archive - from http://theuniversal.net
Locked
User avatar
Trikisatan
Posts: 29
Joined: Thu Apr 19, 2007 12:35 am
Location: Sweden
Contact:

Bandwidth limitations?

Post by Trikisatan »

Have you enabled limitations on uploading/downloading of textures, maps and so on from worlds? It goes really slow for my world, I haven't tried other worlds yet. My server is a bit faster than 2kb/s upload atleast.
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

Yes. If you're serving content from the server itself, the upload rate is capped at a couple of kb/s, to minimise lag for people playing at the same time. It's optimised to serve many people at low speed.

If you want faster transfers - and to be honest you probably do - the best solution is to use http instead.

In /data you'll find a file called NamesFile.txt.

Edit that to include a line or lines as follows:

HTTPSERVER,0=www.yourserver.com/
HTTPSERVER,1=www.anotherserver.com/

(etc)

If you mirror the /data structure of your world on your webspace, the game will then look for content to serve from httpserver 0 first, then 1, etc etc... and if it can't find it there, finally it'll serve it direct from the world server machine.

f
User avatar
Trikisatan
Posts: 29
Joined: Thu Apr 19, 2007 12:35 am
Location: Sweden
Contact:

Post by Trikisatan »

Thank you, will try that now!
User avatar
Trikisatan
Posts: 29
Joined: Thu Apr 19, 2007 12:35 am
Location: Sweden
Contact:

Post by Trikisatan »

One problem though, that will only mirror the data files, not the map, right?
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

er... correct, I think. You can serve models, textures and sounds from a remote server, but I think the map always comes direct. Actually I'm not sure I've tried putting the map remotely, so you could always have a go, but I think it's designed this way because the map tends to change a lot. It's only a few kb anyway.

f
User avatar
Trikisatan
Posts: 29
Joined: Thu Apr 19, 2007 12:35 am
Location: Sweden
Contact:

Post by Trikisatan »

Just to check with you:

This is my "NamesFile.txt":

*UPD=0
HTTPSERVER,0=www.theuniverse.halvsmekt.com

In my www directory for www.theuniverse.halvsmekt.com, I have the directory "Data" and everything in there. Is this correct filesystem for it to work?

The "NamesFile.txt" is located at www.theuniverse.halvsmekt.com/Data/ at the moment, on the http server, I still have everything left on the actual server.
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

- I think you'll need a / at the end of the server entry in namesfile.txt

- namesfile.txt itself will need to sit on the world server, not the http site. Whenever a player joins a world, their client downloads a few small files that always live on the world server itself: the map, the namesfile, the settings file and so on. So really, your web /data folder will only ever contain the subdirs images, textures, models, radio, sounds (with subdirs inside them too, if appropriate)

f
User avatar
Trikisatan
Posts: 29
Joined: Thu Apr 19, 2007 12:35 am
Location: Sweden
Contact:

Post by Trikisatan »

Thank you, will do some tests so I know that it's really downloading from the http rather than the world.
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

You should be able to tell... if you look at the download box onscreen when a download is in progress, it ought to say http.

What kinda world are you building?

f
User avatar
Trikisatan
Posts: 29
Joined: Thu Apr 19, 2007 12:35 am
Location: Sweden
Contact:

Post by Trikisatan »

I'm aiming to build a "realistic" economy medieval world. The world is named "Magnastorm" so you can check it out, it's up and running.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

FYI, there is a newer, cleverer file transfer system that will be added to the servers soon... rather than capping individual transfers as the current one does, this new system is much nice and lets you set an overall limit for all downloads.. so if only 1 person is downloading stuff you should get a much better download speed.
Still worth using a separate http server for some stuff tho, just to spread the load..
User avatar
Trikisatan
Posts: 29
Joined: Thu Apr 19, 2007 12:35 am
Location: Sweden
Contact:

Post by Trikisatan »

Sounds very good, Mit, would it be possible to perhaps apply to the programmingteam?
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

sure... first step is to join the 'coders group' - click the usergroups link at the top of the forums and join from there.

Theres a coder's section on the website with some (incomplete) details of the gamecode (bottom right window on the front page), and explains a few things about what you can do programming-wise.
User avatar
Trikisatan
Posts: 29
Joined: Thu Apr 19, 2007 12:35 am
Location: Sweden
Contact:

Post by Trikisatan »

It says it doesn't accept more users.

Group name: Coders
Group description: The coders Usergroup
Group membership: This is a closed group: no more users accepted
Locked