Multiplayer development?

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

VladP17
Engineer
Engineer
Posts: 26
Joined: 18 Jul 2004 17:57

Multiplayer development?

Post 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)
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Post 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
"There's a readme that comes with the source. I suggest you read it."
- Korenn
VladP17
Engineer
Engineer
Posts: 26
Joined: 18 Jul 2004 17:57

Post 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
MYOB
OpenTTD Developer
OpenTTD Developer
Posts: 102
Joined: 05 Jun 2003 01:08
Location: Dublin, Ireland
Contact:

Post 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.
Thats not me in my avatar, because I haven't got one.....
User avatar
Jakal
Engineer
Engineer
Posts: 121
Joined: 10 Aug 2003 20:27
Location: Germany

Post 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...
[Jakal]
User avatar
Mad Dog McKill
President
President
Posts: 911
Joined: 13 Nov 2002 10:24
Location: Singapore but originally Moscow

Post 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).
OT: By FIREMARK: "Limitation disturbs me very sprites. Goes it throw out limitation?"
My Last.fm Profile
My Facebook Profile
GrrBrr
Engineer
Engineer
Posts: 21
Joined: 24 May 2004 02:36

Post 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 :)
User avatar
Mad Dog McKill
President
President
Posts: 911
Joined: 13 Nov 2002 10:24
Location: Singapore but originally Moscow

Post 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?
OT: By FIREMARK: "Limitation disturbs me very sprites. Goes it throw out limitation?"
My Last.fm Profile
My Facebook Profile
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Post 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.
"There's a readme that comes with the source. I suggest you read it."
- Korenn
VladP17
Engineer
Engineer
Posts: 26
Joined: 18 Jul 2004 17:57

Post by VladP17 »

Will a GUI for multiplayer be available in the next Linux Release?
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Post 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.
"There's a readme that comes with the source. I suggest you read it."
- Korenn
VladP17
Engineer
Engineer
Posts: 26
Joined: 18 Jul 2004 17:57

Post by VladP17 »

Ok then i'll just have to wait a bit.

Do u guys have a date for the next release?
User avatar
Mad Dog McKill
President
President
Posts: 911
Joined: 13 Nov 2002 10:24
Location: Singapore but originally Moscow

Post 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:
OT: By FIREMARK: "Limitation disturbs me very sprites. Goes it throw out limitation?"
My Last.fm Profile
My Facebook Profile
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Post 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.
"There's a readme that comes with the source. I suggest you read it."
- Korenn
Rexxie
Engineer
Engineer
Posts: 109
Joined: 07 Jan 2004 18:37
Location: Norway
Contact:

Post 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
- Rexxie
Sanity is a full time job.
User avatar
Mad Dog McKill
President
President
Posts: 911
Joined: 13 Nov 2002 10:24
Location: Singapore but originally Moscow

Post 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
OT: By FIREMARK: "Limitation disturbs me very sprites. Goes it throw out limitation?"
My Last.fm Profile
My Facebook Profile
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post 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.
anderas
Engineer
Engineer
Posts: 16
Joined: 08 Jul 2004 19:08

Post 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?
VladP17
Engineer
Engineer
Posts: 26
Joined: 18 Jul 2004 17:57

Post 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>
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post 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.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 5 guests