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

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

bye markus
Reply
02-11-2007, 05:23 AM,
#2
 
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.
Reply
02-11-2007, 05:36 AM,
#3
 
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:
Reply
02-11-2007, 07:15 AM,
#4
 
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.
Reply
02-11-2007, 11:46 AM,
#5
 
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
Reply
02-11-2007, 02:53 PM,
#6
 
I was planning on using Ruby on Rails or Python, but yes, something database driven would probably be best.
Reply
02-12-2007, 10:17 AM,
#7
 
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
Reply
02-12-2007, 09:43 PM,
#8
 
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.
Reply
02-13-2007, 08:28 AM,
#9
 
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:
Reply
02-13-2007, 09:03 AM,
#10
 
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.
Reply
02-13-2007, 09:13 AM,
#11
 
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
Reply
02-14-2007, 06:19 AM,
#12
 
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 http://www.vdrift.net/server.php?action=...l%20Server
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:
Reply
02-14-2007, 02:19 PM,
#13
 
agree, looks good :wink:
Reply
02-14-2007, 06:06 PM,
#14
 
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.
Reply
02-14-2007, 06:18 PM,
#15
 
For an open source driving sim, this is the only way (i can think of) that allows detecting cheating:

http://forum.rscnet.org/showpost.php?p=1...ostcount=1
(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 ).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)