Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
vdrift server
07-24-2006, 03:37 PM,
vdrift server

it would be nice, if there would be a vdrift server.
I wanna drive 8)

bye markus
02-11-2007, 05:23 AM,
Server wouldn't be the cheapest way. Better would be an often updated file on the webserver, where any new server would post its IP, gametype, players, tracks, status. Then a new players vdrift game would ask this file - is there any servers waiting for a new player? Yes, there are - here you have a list, connect to any of them. If there isnt any, I create a server (host game) myself and inform this file.
It would be just an easy method of centralizing the info in a way, not asking more access types and resources of a server. Kinda like DC has its hublists or torrents have their trackers.
02-11-2007, 05:36 AM,
we first need a proper multiplayer layer, for now it's only one client per server :roll:
then we'll think about a masterserver
the solution you're talking about, uldics, have serious security flaws... where do we put the FTP password ? :roll: :lol:
02-11-2007, 07:15 AM,
If there is only ftp access and no way to have a script or something to control what is posted, that could be a problem. Maybe there could be a public folder, where anybody could post a little file, restricted in size, and a script on webserver (or anybody with an authentication access) to delete too big/old(in terms of some minutes) files and ban an excessive sender IP).
Just some ideas for workarounds.
02-11-2007, 11:46 AM,
I don't know such a website, but that makes me think we can do something with PHP and a database, which a lot of public websites provide
anyway it'd get probably harder (and uglier) than to implement a real masterserver
02-11-2007, 02:53 PM,
I was planning on using Ruby on Rails or Python, but yes, something database driven would probably be best.
02-12-2007, 10:17 AM,
even though I don't think it's necessary / a good idea to use a webserver as a masterserver, if you want to I'm up to the job Wink
02-12-2007, 09:43 PM,
Do you suggest coding a custom C/C++ application for the master server? My biggest concern would be security, it's not hard to cause a buffer overflow when working with compiled code, so we'd have to take some well thought out and proven security precautions, but it's doable. I figured making a secure web application would be simpler. Either way is fine with me, I just worry about cheating and such. As long as we can make sure that doesn't happen then whatever approach works for me.
02-13-2007, 08:28 AM,
what do you call cheating ? hacking or "simulation related" cheating ? in the latter, I'd say the masterserver have no control on it
anyway both solutions are fine for me too :wink:
02-13-2007, 09:03 AM,
I mean cheating, like people sending the master server fake data with another program, in order to improve their rank, or something like that. Or possibly, they could cheat by sending back modified data while playing in-game that would confuse other players or something like that.
02-13-2007, 09:13 AM,
since vdrift is open-source, there is not much we can do about it, can we ?
for now I think cheaters are not interested about vDrift anyway Wink
02-14-2007, 06:19 AM,
If you don't want to run specific server side programs, i suggest using a simple php page.

Clients can do a GET http request, something like
when the server is created.

Then use action=remove when server is closed.

Then have the php file check server status everytime a user tries to read the server list (or whenever you want), and have dead ones removed automatically.

This doesn't require a db, nor a c++ program, nor anything.. just a php file and a txt/csv file.

Of course, you may want to get multiplayer implemented first :lol:
02-14-2007, 02:19 PM,
agree, looks good :wink:
02-14-2007, 06:06 PM,
I think cheating can be avoided even in an open source program. This will require that we take some care of course, and do a good job checking the data that is sent to the server. My biggest reason for using a scripting language rather than a compiled one is that if someone does compromise the server, they will have less chance to take over the entire system with the compromised server, than they would with C++ code.

But stenyak makes a good point, all this is moot until we get some multiplayer code.
02-14-2007, 06:18 PM,
For an open source driving sim, this is the only way (i can think of) that allows detecting cheating:
(excuse me if that post is not very clear, i'll re explain here if you want)

The only way to fool that system would be to code a very good AI that does the driving for you (and better than you, which is the difficult bit Wink ).

Forum Jump:

Users browsing this thread: 1 Guest(s)