[Multiplayer] Sleep button for company

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
User avatar
luk3Z
Traffic Manager
Traffic Manager
Posts: 197
Joined: 25 Dec 2005 17:42
Location: Kielce, Poland (Mars sometimes)

[Multiplayer] Sleep button for company

Post by luk3Z »

As you probably know many players just joining the servers, opening new company and leaving...
In this case server going to be full very fast without possibility to create new company.
1. One possible option to prevent this is to set "time to live" for inactive company for max 4+4 hours. Proposed "Sleep company button" could work differently. It could mark company (on gray color) as "sleeping". To make this happen it requires from you some game progress (like 10 years in game, "x" $ bank balance $, "y" number of track pices etc.). This mechanism also need to set value of in game years you want to "sleep" after which your company will become automatically active again (if there are free slots).
2. Other idea is to add symbols along with company colors to extend possible number of companies to 32, 64, 96, 128 etc.
Example:
■ Company 1 Transport
♦ Company 2 Transport

♣ Company 3 Transport
● Company 4 Transport

■ Company 5 Transport
● Company 6 Transport

or symbols with different color:
Company 1 Transport
♦ Company 2 Transport

Company 3 Transport
● Company 4 Transport

Company 5 Transport
● Company 6 Transport

or just company flags (full block symbol):
██ ██
Last edited by luk3Z on 15 May 2022 12:36, edited 1 time in total.
Find new graphics easier:
GRFCrawler -> http://grfcrawler.tt-forums.net
BaNaNaS -> https://bananas.openttd.org/
32 bit gfx in OTTD (32bpp) -> https://wiki.openttd.org/en/Community/N ... 20graphics
TTDPatch 2.6 -> viewtopic.php?f=19&t=67694
How to subtract tax from income (workaround) -> viewtopic.php?t=89763&start=20
How to ban distance from income -> Simple Cargo Decay Override
User avatar
jfs
Tycoon
Tycoon
Posts: 1757
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: [Multiplayer] Sleep button for company

Post by jfs »

Right now the limitation for number of companies is how the ownership data is stored on the landscape. There's only 5 bits assigned for company ownership which would give up to 32 possible "owners" for a tile, but the way numbers are assigned only 15 are possible for companies. There are reserved values for "nobody", "town", "water", and "spectator", and the range from 18-30 is just undefined.
It might be possible to support up to 28 player companies without having to completely restructure the way things are stored in the landscape, but I'm not sure what other things it would affect.
Eddi
Tycoon
Tycoon
Posts: 8267
Joined: 17 Jan 2007 00:14

Re: [Multiplayer] Sleep button for company

Post by Eddi »

there might still be a handful of places which have only 4 bits for owner
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 26 guests