Please increase maximum player limit of 15

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
adras
Engineer
Engineer
Posts: 7
Joined: 27 Jul 2023 22:29

Please increase maximum player limit of 15

Post by adras »

I'm just talking with the admins of the r/openttd server. These guys could really need a higher player limit of more than 15. That would allow to increase the time after which an inactive company would need to be deleted, which is currently 4 hours and doesn't allow a company to stay overnight for instance.

Would be great if this could be included in the next patch, hopefully it's only a minor change
User avatar
Chrill
Moderator
Moderator
Posts: 15980
Joined: 18 Dec 2004 17:35
Location: Stockholm, Sweden
Contact:

Re: Please increase maximum player limit of 15

Post by Chrill »

Hi!

The r/openttd server is likely hosted by the people who run the OpenTTD subreddit, as hinted in the name. I'm not sure they're here to read everything, so I'd recommend posting it there:
https://www.reddit.com/r/openttd/
Image
My Scenarios:
Archipiélago Hermoso (Latest Release: Version 3.2)
Turnpike Falls (Latest Release: Version 0.91)
User avatar
kamnet
Moderator
Moderator
Posts: 8589
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Please increase maximum player limit of 15

Post by kamnet »

Technically, there's no limit on how many players/clients can connect to an OpenTTD server. The limit is going to depend on the ability of the server hardware to keep up with many connections and how much and fast the server's internet connection is.

The hard limit being referenced here is 15 COMPANIES, which is a hard limit imposed by the code most because of the limit on 2CC company colors. Is this necessary or arbitrary, though?

A little over a month ago online gamer The Spiffing Brit hosted an "OpenTTD Battle Royale" competition, using a modified server which allowed for 64 simultaneous companies and over 100 clients connecting.

From what I've read, several of the OpenTTD devs are interested in examining the code to see what changes were made to make that happen and if this is something that could eventually make its way into trunk.

Video for those who haven't seen it: https://www.youtube.com/watch?v=qZAdMTBswq0
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2822
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: Please increase maximum player limit of 15

Post by ChillCore »

kamnet wrote: 28 Jul 2023 07:09 Technically, there's no limit on how many players/clients can connect to an OpenTTD server.
Technically there is ... last time I looked at the code it was 16 players per 16 companies each ... making a total of 256 players per online game ...

would it be nice to be able to have more companies possible ... sure .. but I doubt there will ever be a game with more than 256 players in it ...
^^^ I mean with fiber and all ... should not be a prob
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2822
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: Please increase maximum player limit of 15

Post by ChillCore »

@devs ...

maybe try 32 companies witch 16 cleints echt .. just to see ...




read: the Op does cary merrit but I dount it will be needed at all ... just saying ... no ofenxe OP
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
User avatar
kamnet
Moderator
Moderator
Posts: 8589
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Please increase maximum player limit of 15

Post by kamnet »

ChillCore wrote: 28 Jul 2023 20:25
kamnet wrote: 28 Jul 2023 07:09 Technically, there's no limit on how many players/clients can connect to an OpenTTD server.
Technically there is ... last time I looked at the code it was 16 players per 16 companies each ... making a total of 256 players per online game ...
I should feel bad, I stopped lookingwhen the multiplayer setup let me hit 200 :mrgreen:
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: Please increase maximum player limit of 15

Post by Eddi »

just going to throw in here that the main limitation of companies isn't the available colours, it's the way ownership is stored in the map.
User avatar
jfs
Tycoon
Tycoon
Posts: 1764
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Please increase maximum player limit of 15

Post by jfs »

Eddi wrote: 29 Jul 2023 06:31 just going to throw in here that the main limitation of companies isn't the available colours, it's the way ownership is stored in the map.
It's this.

The map data is a tightly bitpacked data structure, where many tile types have used absolutely all the available space, and increasing the number of companies from 15 would mean a lot of that data would need to be re-structured. At that point the effort required is the same whether you want to extend to 32 companies or 200 companies.
User avatar
kamnet
Moderator
Moderator
Posts: 8589
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Please increase maximum player limit of 15

Post by kamnet »

Eddi wrote: 29 Jul 2023 06:31 just going to throw in here that the main limitation of companies isn't the available colours, it's the way ownership is stored in the map.
So Spffing Britt's patched version seems to be a huge re-write. I wonder what was sacrificed (if anything) to make 64 companies possible?
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: Please increase maximum player limit of 15

Post by Eddi »

i haven't really looked at it, but it was probably a giant hack, only stitching up the most obvious issues.

it's probably not too hard to shuffle around the map bits to allow for more, if you don't care about things like savegame compatibility, or efficiency.
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1732
Joined: 30 Mar 2005 09:43

Re: Please increase maximum player limit of 15

Post by peter1138 »

There's no correlation between player count and company count. There's no players per company limit and no multiplier or anything.

The limitation for companies is the data storage in the map, the most awkward of which is level-crossings which can have three different owners.
He's like, some kind of OpenTTD developer.
_dp_
Transport Coordinator
Transport Coordinator
Posts: 278
Joined: 18 Dec 2013 12:32

Re: Please increase maximum player limit of 15

Post by _dp_ »

kamnet wrote: 29 Jul 2023 18:50 So Spffing Britt's patched version seems to be a huge re-write. I wonder what was sacrificed (if anything) to make 64 companies possible?
That event game lasted like twice longer than it should have because of all the server crashes. Also some functionality was lost like companies not being able to change colors.
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2822
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: Please increase maximum player limit of 15

Post by ChillCore »

peter1138 wrote: 31 Jul 2023 08:04 There's no correlation between player count and company count. There's no players per company limit and no multiplier or anything.
I see ... not sure where I read that many moons ago .. may be confused with another game?? one ending in ***patch?

either way .. I'll take your word for it ... xD
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
adras
Engineer
Engineer
Posts: 7
Joined: 27 Jul 2023 22:29

Re: Please increase maximum player limit of 15

Post by adras »

It would definitely be cool if these limits could be improved
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 14 guests