Auto track downloading ?

Post your suggestions here
Post Reply
KriSS-ProLLs
Posts: 60
Joined: Thu Aug 09, 2012 9:50 pm
Team: Team Propuls

Auto track downloading ?

Post by KriSS-ProLLs »

Hey all :) And hopefully JLV

I got an idea :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 :P

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.
jlv
Site Admin
Posts: 15496
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Auto track downloading ?

Post by jlv »

My first instinct would be to have a separate server for autodownloads. All public content would be registered on that server. When a client needs a file it doesn't have it would ask the server where the file comes from and get a url back. Just that part would be simple. Handling moderation and copyright complaints would be the hard part.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
kawy949
Posts: 983
Joined: Sat Feb 11, 2012 11:33 pm
Location: UK
Contact:

Re: Auto track downloading ?

Post by kawy949 »

JLV, I am more than happy to help with the server side idea. Would need to look into bandwidth costs and what I currently have allocated on my dedicated server etc etc, but would be interested in helping out. What are the chances of having the game auto extract rather than it being SAF's?
KriSS-ProLLs
Posts: 60
Joined: Thu Aug 09, 2012 9:50 pm
Team: Team Propuls

Re: Auto track downloading ?

Post by KriSS-ProLLs »

That is a really good idea JLV.

And yeah it sounds a lot more easier than my idea XD

And could that seperate server maybe be available to other users like me, so i could make my own folder or text file with links in case i have a bike skin for the team so others can easily download it. And then having it to run next to my mx server. Like if it could work for track.saf files it could probably also be used for bikes.saf but then again i don't know much about coding, and i guess it would be hard to make anyways. But a really good idea to make it a bit more simple for clients.

But what could be the copyright complaints? Like if someone takes another persons track and release it in his name instead of the real creators name? Wich makes sense since people shouldn't take credit for what others made.

If i can help or do testing feel free to message me :)
jlv
Site Admin
Posts: 15496
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Auto track downloading ?

Post by jlv »

The server costs shouldn't be a problem. I'd expect it to use less bandwidth than I use for the demo version downloads.

The copyright complaints would be the same stuff that happens all the time in this forum. Tracks, skins, models, you name it and it's been ripped.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
KriSS-ProLLs
Posts: 60
Joined: Thu Aug 09, 2012 9:50 pm
Team: Team Propuls

Re: Auto track downloading ?

Post by KriSS-ProLLs »

yeah that's what i thought. I hope people will be more carefull about who they send their models too, in a way it's their own fault i guess.

Anyways, it sounds great with the low bandwith usage. Hope to see it one day in the game :)
Post Reply