I got an idea
Anyways, so as i have a server running quite often and there's a good amount of people who join, and some of them don't have the tracks on the server. And it can be really hard sometimes to find some tracks, and some have been deleted.
So i was thinking about maybe a way to insert maybe links into the serverargs.txt (yes i'm doing it the old way with portforward but no need for hamachi)
I have an online storage account with massive amount of space. So maybe a kind of auto dl but then the game itself would probably have to be edited and the servers also.
I can imagine it would be a pain in the a** to code... i guess
I've seen there's the "--sendfile-prefix <prefix>" command for the server. But that makes the client able to upload files right? But what files can that be? bike skins?
And couldn't there maybe be a "easy" way to revert that process so the server can send files if the client writes lets say /enableserverdl and /disableserverdl
But then i would have to use my internet connection to upload files to clients who request it.
So maybe if you have the /enableserverdl it would then open a internet window with the appropriate link to the missing track.
The serverargs could look like:
--servertracksupload <specifie the folder where the tracks are the .saf files>
and
--servertracksredirect <specifies path to a txt file with track links>
The txt file with track links should be organised like the track list in the serverargs.txt
*Serverargs.txt* (server 1)
--port 19800
--max-clients 50
--greeting "JLV IS BOSS"
--results-file results.txt
--track-interval 60
--laps 5
--servertracksredirect tracklinks.txt
trackinfo/2013.motosport.rf.national.rd12.elsinore.trackinfo
trackinfo/2014.motosport.rf.national.rd09.washougal.trackinfo
*Serverargs.txt* (server 2)
--port 19805
--max-clients 50
--greeting "JLV IS BOSS"
--results-file results.txt
--track-interval 60
--laps 5
--servertracksredirect tracklinks.txt
trackinfo/hillsidesm.trackinfo
trackinfo/citysm.trackinfo
Since i sometimes have more than 1 server running on the same pc (multiple lan ports, so 1 pc with 2 ip adresses) for different events so i could make a tracklinks.txt with port 19805 and one with 19800
*Tracklinks.txt*
--serverport 19800
track1 <www.dllinktothetrack.com/elsinore2013.saf>
track2 <www.dllinktothetrack.com/washougal2014.saf>
--serverport 19805
track1 <www.dllinktothetrack.com/hillsidesm.saf>
track2 <www.dllinktothetrack.com/citysm.saf>
2 servers, 2 serverargs.txt and 1 tracklinks.txt
When a client will have the /enableserverdl it will send a request to the server throught the port of the server that the player is on.
So if he is on the 19805 server it will look in the tracklinks.txt and search for the tracks under the --serverport 19805 and then redirect to the dl page.
And if you have the track.saf files on your pc you could make this
*Tracklinks.txt*
--serverport 19800
track1 <c:/users/desktop/mxserver/trackfiles/elsinore2013.saf>
track2 <c:/users/desktop/mxserver/trackfiles/washougal2014.saf>
--serverport 19805
track1 <c:/users/desktop/mxserver/trackfiles/hillsidesm.saf>
track2 <c:/users/desktop/mxserver/trackfiles/citysm.saf>
It might be confusing but i hope you get the point.
And you could of course add skin dls too with the same process.
if i can help with anything to try and make this work i would be more than happy. if you need someone to test or host i would also be very happy to do that.
And more people in here should be thankfull for what they get and for what JLV does, he's not a AAA company with millions of $ and 100 people working on his game so i can only say a big RESPECT to him.
anyways what do you guys think ? As a server owner i would love it. And as a client i would also love it.
