max_companies more than 15

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

taken
Engineer
Engineer
Posts: 21
Joined: 03 May 2006 09:35

max_companies more than 15

Post by taken »

Hello
This is possible to set max_companies more than 15?
I got in config:
max_companies = 30
max_clients = 50
max_spectators = 20

but he ignore this max_companies, game set after start only 15 companies.

Anyone can help me?
Thanks
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2368
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: max_companies more than 15

Post by Lord Aro »

It isn't possible to have more than 15 companies, mainly due to the limited number of company colours (i think)
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Eddi
Tycoon
Tycoon
Posts: 7700
Joined: 17 Jan 2007 00:14

Re: max_companies more than 15

Post by Eddi »

... that's by far not the only limit.
You might not exactly be interested in Ferion, but if you are, have fun :)
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2368
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: max_companies more than 15

Post by Lord Aro »

I realise that, but that was the only obvious one that i know of :lol:
At the risk of going off topic, what are the other reasons?
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4760
Joined: 09 Sep 2007 05:03
Location: home

Re: max_companies more than 15

Post by Alberth »

UDP packet size afaik
taken
Engineer
Engineer
Posts: 21
Joined: 03 May 2006 09:35

Re: max_companies more than 15

Post by taken »

Alberth wrote:UDP packet size afaik
So how to change to TCP connection and modify to more than 15 companies???

Thanks
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4760
Joined: 09 Sep 2007 05:03
Location: home

Re: max_companies more than 15

Post by Alberth »

Rewrite the network protocol.
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Re: max_companies more than 15

Post by belugas »

What Albert means, in case you have not figured it out yet, is that the code dealing with the companies is linked to the networking part, and that it is made in a way that the 15 number is linked to internal structures that are NOT configurable.
So unless you think you can code in C/C++ and unless you are VERY good in networking protocol, there is nothing you can do nor change. And there is more than just network protocol to change...

And by the way, 15 companies, it's already quite a number. We've been at 8 for quite a while, while TTDPatch is still at 2 (last time i've checked... or from what i remember)
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
taken
Engineer
Engineer
Posts: 21
Joined: 03 May 2006 09:35

Re: max_companies more than 15

Post by taken »

How big is now UDP packet when there is 15 campanies?
I ask because DNS servers with cert (DNSSEC) do big UDP packet and there is no problem now - after upgrade IOS on Cisco routers/Firewalls all working good with big UDP packet so possible there is option to increase for more than 15 campanies?
If possible tell me where in source there is that limit 15 campanies i change and we will see i got new IOS on all routers/firewalls so i check that.
Thanks
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: max_companies more than 15

Post by Yexo »

That is by no means the only limit. As already mentioned company colors are another one, and don't forget map storage and newgrf compatibility. There is no way to "just change a constant" and make it work.
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Re: max_companies more than 15

Post by belugas »

Just for the fun of conversation, how big would you like the number of companies to be?
Not that it's going to happen, but just wondering...
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

Re: max_companies more than 15

Post by Samu »

If 256x256 = 8 companies
then 2048x2048 = 512 companies

??

If 256 = 8
then 2048 = 64

??

I hate math
Last edited by Samu on 19 Nov 2010 16:58, edited 1 time in total.
taken
Engineer
Engineer
Posts: 21
Joined: 03 May 2006 09:35

Re: max_companies more than 15

Post by taken »

I want check 30 Companies, normal at week there is 10 companies up, but at weekend i see 15 companies and ppl still join to game and please to join to another company...
So for now will be ok 30 :)

Thanks
thegreatpl
Engineer
Engineer
Posts: 28
Joined: 29 Dec 2008 22:28
Location: my own mind

Re: max_companies more than 15

Post by thegreatpl »

You know, the limit of companies is going to be complained about no matter what it is. What really needs to be done is to change everything so unlimited companies is possible. Or at least, several hundred.

As for the company colors part, add more colors.

of course, a project like this is a long term one. For someone who knows what they are doing.
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2368
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: max_companies more than 15

Post by Lord Aro »

Add more colours?
Several hundred companies at least?

OpenTTD is a 256 colour game. To add more would mean a basic rewrite
It's not going to happen! ;)
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: max_companies more than 15

Post by Kogut »

thegreatpl wrote:You know, the limit of companies is going to be complained about no matter what it is.
It is not reason to change it.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
ABCRic
Engineer
Engineer
Posts: 27
Joined: 10 Aug 2010 17:32

Re: max_companies more than 15

Post by ABCRic »

Don't forget the additional desyncs and connection slowdowns.
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: max_companies more than 15

Post by Rubidium »

ABCRic wrote:Don't forget the additional desyncs
Please explain to me why more companies cause additional desyncs.
ABCRic
Engineer
Engineer
Posts: 27
Joined: 10 Aug 2010 17:32

Re: max_companies more than 15

Post by ABCRic »

Rubidium wrote:
ABCRic wrote:Don't forget the additional desyncs
Please explain to me why more companies cause additional desyncs.
Never mind, should have thought more before saying that.
siqi
Engineer
Engineer
Posts: 2
Joined: 25 Oct 2010 12:47

Re: max_companies more than 15

Post by siqi »

At first, I modify the constant to 255, but found that it is limited by color. Luckily I find this thread before I modify the source code further.
But why don't we support 250 players? As openttd is more and more populare, I even find that there is a book using OpenTTD as a simulation environment for logistics major students. In real world, there are more than 250 transport tycoons.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 5 guests