Using webspace to store models & textures (0.1.41)
Using webspace to store models & textures (0.1.41)
Melikes this new bit :] Heres how it works..
Firstly, you need to specify the webserver that stores your models and textures in the new NamesFile.txt on the server. The format for this is, for example....
HTTPSERVER,0=gameislands.net/downloads
At that location, you need to create folders as laid out in the client (i.e. Data/Models/Bldgs etc). Upload your models there, then um.. thassit. :]
Whenever a client joins and detects the above line in your NamesFile.txt, it changes the download system to try to get files from the http server first.
In the above example, if you have a building called ABuilding.atm assigned, the client will try to download it from
http://gameislands.net/downloads/Data/M ... ilding.atm
There'll be a fallthru system added, such that if the client fails to download the model from the http server, it will then try to get it direct from your server.exe. I'll also make it possible to have a number of different http locations specified so that it can try to download from each location in turn until its got the model.
(Edit - i had said there was a downside in that it blocked and paused the game a bit, but i've done the multi-threaded bit now so its all sweeet :] )
Firstly, you need to specify the webserver that stores your models and textures in the new NamesFile.txt on the server. The format for this is, for example....
HTTPSERVER,0=gameislands.net/downloads
At that location, you need to create folders as laid out in the client (i.e. Data/Models/Bldgs etc). Upload your models there, then um.. thassit. :]
Whenever a client joins and detects the above line in your NamesFile.txt, it changes the download system to try to get files from the http server first.
In the above example, if you have a building called ABuilding.atm assigned, the client will try to download it from
http://gameislands.net/downloads/Data/M ... ilding.atm
There'll be a fallthru system added, such that if the client fails to download the model from the http server, it will then try to get it direct from your server.exe. I'll also make it possible to have a number of different http locations specified so that it can try to download from each location in turn until its got the model.
(Edit - i had said there was a downside in that it blocked and paused the game a bit, but i've done the multi-threaded bit now so its all sweeet :] )
Last edited by Mit on Fri Dec 23, 2005 11:21 pm, edited 2 times in total.
- leigon
- World Owner
- Posts: 563
- Joined: Thu Apr 15, 2004 11:23 pm
- Location: UK - Programming under the influance.
let me be the first to say "Thanks! ".
So by multiple you would set it up like: ???
HTTPSERVER,0=mirror1.leigon.co.uk/downloads
HTTPSERVER,1=mirror2.leigon.co.uk/downloads
HTTPSERVER,2=mirror3.leigon.co.uk/downloads
I thaught I would never say this about a game owner... but you REALY listen to the players/owners.... let me also be the first to say "we all love you"
*check your donation's tomorow sometime you sould have $100 for another world *
So by multiple you would set it up like: ???
HTTPSERVER,0=mirror1.leigon.co.uk/downloads
HTTPSERVER,1=mirror2.leigon.co.uk/downloads
HTTPSERVER,2=mirror3.leigon.co.uk/downloads
I thaught I would never say this about a game owner... but you REALY listen to the players/owners.... let me also be the first to say "we all love you"
*check your donation's tomorow sometime you sould have $100 for another world *
heh, np, leig I have no objections to taking on suggestions and ideas from players/owners when those suggestions are good ones - in fact it jus saves me the bother of thinking of em myself :] - so thanks to you for bringing it up.
All seems to work very nicely .. and of course.. coz the downloads are now going thru http rather than the game's rather limited FT system, things download a whole load quicker than they used to. Even from gameislands.net textures were downloading to the client at 50k/s on my adsl connection at home.. Niiice :]
Yeh.. thats all there now.. in the setup you give above, the game will try to download each model or texture from mirror1 first.. if it cant find it there it'll try mirror2, then 3, then if it still hasnt been able to get the file it'll try to get it from the server directly.So by multiple you would set it up like: ???
HTTPSERVER,0=mirror1.leigon.co.uk/downloads
HTTPSERVER,1=mirror2.leigon.co.uk/downloads
HTTPSERVER,2=mirror3.leigon.co.uk/downloads
All seems to work very nicely .. and of course.. coz the downloads are now going thru http rather than the game's rather limited FT system, things download a whole load quicker than they used to. Even from gameislands.net textures were downloading to the client at 50k/s on my adsl connection at home.. Niiice :]
haveing multiple places will also allow people to have mirrors of thier models on tohers sites.
i.e. i'm uploading my whole model and texture collection to atractorguide. if anybody else wants to link to it, it'll be at http://www.atractorguide.com/downloads/data
i.e. i'm uploading my whole model and texture collection to atractorguide. if anybody else wants to link to it, it'll be at http://www.atractorguide.com/downloads/data
Once Mit will have verified the new version works ok, you'll be able to use also ftp servers that allows anonymous logins.
Just add "ftp://" at the beginning of the url, for instance :
Just add "ftp://" at the beginning of the url, for instance :
(this example is not functional )HTTPSERVER,0=ftp://gameislands.net/downloads
- leigon
- World Owner
- Posts: 563
- Joined: Thu Apr 15, 2004 11:23 pm
- Location: UK - Programming under the influance.
Code: Select all
HTTPSERVER,0=mirror1.leigon.co.uk/downloads
HTTPSERVER,1=mirror2.leigon.co.uk/downloads
HTTPSERVER,2=mirror3.leigon.co.uk/downloads
when the worldexe is run it is croped to:
Code: Select all
*UPD=0
ITEMNAME,196=Antigrav 25%
ITEMNAME,197=Antigrav 50%
ITEMNAME,198=Antigrav 75%
HTTPSERVER,1=mirror1.leigon.co.uk/