Page 1 of 2

Multiplayer development?

Posted: 18 Jul 2004 18:02
by VladP17
So what's going on with the muliplayer?
is it gonna be only lan? or internet support too?
:?: :?: :?: :?: :?: :?: :?:

i really wanna play agains some of my friends.

BTW: Nice job with the new version of openTTD (0.3.3) :P :lol: :o :D 8)

Posted: 18 Jul 2004 18:21
by dominik81
Two mistakes in one post.

1.) This forum is for development discussions only. For everything else there's the other forums. moving...
2.) Use the search and read the stickies before posting.

Welcome to the forums. :D

Posted: 19 Jul 2004 00:10
by VladP17
sorry i didn't noe i thought that i could ask about the development here.

I read the stickys and didn't understand them so can u explain it to me in simple words?

Sorry again

Posted: 25 Jul 2004 02:56
by MYOB
Currently, it works on internal LAN's, using UDP discovery of the server from the clients, and over the internet where you have a DIRECT connection to the internet, or a seamless NAT. You must be on the internet IP adress for the port (:3979 I think).

Its not currently a supported feature.

Posted: 25 Jul 2004 10:09
by Jakal
Hm, ive been playing with Rexxie last nite, and i have to say that mp got kind of unstable since 0.3.1, i get desynched frequently, after like 10 minutes. It seems that the desyncing has different reasons, i noticed a lot of bugs with signs which might be the reason, and offers from companies who want you to test their vehicles might be a reason too.

I dunno, i just have the impression of 0.3.1 being more stable...

Posted: 25 Jul 2004 15:45
by Mad Dog McKill
Not sure sure where to post about it.. but I just checked out the Multiplayer GUI and I like it (the GUI has a certain ttd style in it) :wink: What we now need is just the TTD golden colour scheme (the aqua one looks a bit out of place).

Posted: 26 Jul 2004 02:08
by GrrBrr
options are grey, difficulty settings are purple, szeanrio selection is green...

i like the blue style of the multiplayer gui. it is something new and fresh. and it really looks good :)

Posted: 26 Jul 2004 06:38
by Mad Dog McKill
alright alright.. :)

just can't wait till I select that "internet" tab and see a list of ottd games 8)


P.S. there will be a sort of chatroom/lobby too, right?

Posted: 26 Jul 2004 08:15
by dominik81
I chose the "aqua theme" for the same reason as GrrGrr posted: Every category has its own color. But for those of you playing with the source: You can change the color by setting BGC and BTC in network_gui.c, line 8 and 9. If you come up with another nice color combination, please post it. :)

@Mad Dog McKill: You can have a sneak peak at the lobby as well: Press "Start server" -> "Start game" and then move the green map selection window that currently appears out of the way.

Posted: 26 Jul 2004 17:39
by VladP17
Will a GUI for multiplayer be available in the next Linux Release?

Posted: 26 Jul 2004 19:18
by dominik81
VladP17 wrote:Will a GUI for multiplayer be available in the next Linux Release?
The multiplayer GUI will be in the next release, sure. We don't make a difference between Windows, Linux, Mac, BeOS and MorphOS relases. They're all based on the same sourcecode and released at the same time. The current version is 0.3.3.

Posted: 26 Jul 2004 21:30
by VladP17
Ok then i'll just have to wait a bit.

Do u guys have a date for the next release?

Posted: 26 Jul 2004 22:41
by Mad Dog McKill
dominik81 wrote:@Mad Dog McKill: You can have a sneak peak at the lobby as well: Press "Start server" -> "Start game" and then move the green map selection window that currently appears out of the way.
ehe.. you spelt my nick correctly (few people do that).. I am touched.. :oops:

Nice lobby. I was surprised when I saw "spectate game" feature.. thats a great thing you got there... all of us can learn a lot from each other through spectating :wink:

Posted: 27 Jul 2004 12:18
by dominik81
Mad Dog McKill wrote:ehe.. you spelt my nick correctly (few people do that).. I am touched.. :oops:
The power of clip & paste. :roll:
Mad Dog McKill wrote:Nice lobby. I was surprised when I saw "spectate game" feature.. thats a great thing you got there...
Spectator mode is working aready. I'm not sure how to join as a spectator though. Maybe only works when all other slots are already taken.

Posted: 27 Jul 2004 12:37
by Rexxie
Hah, we actually discovered this by accident.
You just have to use -n <number of company that doesnt exist>, and you're a spectator.
We were ment to play on the same team, however I forgot that the first company started as 0 and not 1, so Jakal ended up being a spectator instead :p

Posted: 27 Jul 2004 13:57
by Mad Dog McKill
dominik81 wrote:
Mad Dog McKill wrote:ehe.. you spelt my nick correctly (few people do that).. I am touched.. :oops:
The power of clip & paste. :roll:
Never imagined you being that lazy :?



:P

Posted: 27 Jul 2004 22:51
by lucaspiller
Chat is in the process of being added. I was working on it but gave up, someone else said they were doing it in IRC the other day though.

Having an internet list of games shouldn't be too hard, something like the way Bzflag handles it would be easiest:

Server connects to script (via http) with server ip and port.
Script writes stuff to test file.
Clients connect to text file (via http) and reads list of servers.

Posted: 28 Jul 2004 01:47
by anderas
lucaspiller wrote:Chat is in the process of being added. I was working on it but gave up, someone else said they were doing it in IRC the other day though.

Having an internet list of games shouldn't be too hard, something like the way Bzflag handles it would be easiest:

Server connects to script (via http) with server ip and port.
Script writes stuff to test file.
Clients connect to text file (via http) and reads list of servers.
Wouldn't it be too easy for someone to ruin the list? And what if openttd is killed while a game is running, how would it be removed from the server list?

Posted: 28 Jul 2004 05:45
by VladP17
Apperantly you guys will need to develop a program that checks all the room every 5-10 minutes that checks for how many people are on the server and names of those people and then refresh the server list automaticly replacing the old data with the new. Is such a program hard to make?

BZflag server listing system might be a good idea then. Otherwise good luck making one of ur own>

Posted: 28 Jul 2004 07:54
by lucaspiller
anderas wrote:Wouldn't it be too easy for someone to ruin the list?
Thats a problem you have to face, I made a script that would be useful that allows people to add a game server to a list (for another game). Before adding the server it checks that the server is accessible to the internet and running.
anderas wrote:And what if openttd is killed while a game is running, how would it be removed from the server list?
VladP17 wrote:Apperantly you guys will need to develop a program that checks all the room every 5-10 minutes that checks for how many people are on the server and names of those people and then refresh the server list automaticly replacing the old data with the new.
Rather than a program checking the server it would be easier if the server just connects to the script again to update the details. If it doesn't update in say 10 mins (and the game is set to update every 5 minutes), then there must be something wrong with the server so it is removed.