max_no_competitors = 15 patch
Moderator: OpenTTD Developers
max_no_competitors = 15 patch
Download last version there (v33) -> viewtopic.php?p=1194298#p1194298
List of current features for this patch (v33):
a) Maximum no. competitors cap have been raised from 14 to 15. This is useful for multiplayer and dedicated server games.
b) All slots are configurable and visible, regardless of the current value of Maximum no. competitors. This means they're all highlighted in orange text in the AI/Game Script Configuration/Settings window.
b.1) AI slots are identified with its respective Company ID number.
b.2) Status icons may be displayed next to each slot to reflect the current state of a script.
b.2.1) A Warning Sign indicates that a Human Company is, or will be in this slot and that this AI configuration won't be used.
b.2.2) Yellow indicates an eligible AI or GS that is yet to start.
b.2.3) Green indicates an AI or GS script in this slot that started and is alive.
b.2.4) Red indicates an AI or GS script in this slot that started but died.
b.2.5) No Yellow icons are displayed if the value of Maximum no. competitors doesn't allow more AIs to start, or if no GS is configured.
b.3) AIs that started as random are identifiable with a newspaper icon next to the first icon.
c) Note: While in the main menu, slot 1 may be configurable, but beware: when starting a single or multiplayer game, the first company is always human and will start on slot 1. Making slot 1 configurable from gui is especialy useful when setting AIs for multiplayer or dedicated server games.
d) While in a game, depending on the status, some slots in the AI/Game Script Settings window have these additional behaviours:
d.1) Warning sign - Permits AI slot movement up or down. Permits selection of another AI. Displays the "Configure" button. Permits changes to all AI parameters.
d.2) Yellow status - Permits AI slot movement up or down. Permits selection of another AI. Displays the "Configure" button. Permits changes to all AI parameters.
d.3) Green status - Disables AI slot movement up or down. Disables selection of another AI or GS. Displays the "Settings" button. Permits changes to some AI or GS parameters.
d.4) Red status - Disables AI slot movement up or down. Disables selection of another AI or GS. Displays the "Configure" button. Permits changes to all AI or GS parameters.
d.5) No status displayed - Permits AI slot movement up or down. Permits selection of another AI. Displays the "Configure" button. Permits changes to all AI parameters.
e) While a game is running, AIs can be started or stopped from the AI/Game Script Settings window. You may also alter their parameters if you so desire:
e.1) To stop an AI, select the AI from the list, then click Stop AI. Be aware that by doing so, you are removing the AI Company from the game.
e.2) If the current number of running AI companies is less than the maximum number of competitors, you may start an AI on any empty slot by selecting it and clicking Start AI.
e.3) If you are receiving a message telling that you can't start an AI, make sure you are allowing AI competitors in multiplayer games.
f) While hosting a server, AIs or GS are not going to be requested to save their data when a client attempts to join. But should you manually save the game or perform autosaves, AIs or GS are still going to be requested to save their data. This permits scripts that usually take too long to save to be useable while running a server for as long as no autosaves or manual saves are done during the session.
Screenshot valid for v30, v31, v32, v33
Screenshot valid for v21, v22, v23, v24, v25, v26
Screenshot valid for v15
Screenshot valid for v14
Screenshot valid for v10
Screenshot valid for v4, v5, v6, v7
Previous versions (v3, v2, v1):
List of current features for this patch (v33):
a) Maximum no. competitors cap have been raised from 14 to 15. This is useful for multiplayer and dedicated server games.
b) All slots are configurable and visible, regardless of the current value of Maximum no. competitors. This means they're all highlighted in orange text in the AI/Game Script Configuration/Settings window.
b.1) AI slots are identified with its respective Company ID number.
b.2) Status icons may be displayed next to each slot to reflect the current state of a script.
b.2.1) A Warning Sign indicates that a Human Company is, or will be in this slot and that this AI configuration won't be used.
b.2.2) Yellow indicates an eligible AI or GS that is yet to start.
b.2.3) Green indicates an AI or GS script in this slot that started and is alive.
b.2.4) Red indicates an AI or GS script in this slot that started but died.
b.2.5) No Yellow icons are displayed if the value of Maximum no. competitors doesn't allow more AIs to start, or if no GS is configured.
b.3) AIs that started as random are identifiable with a newspaper icon next to the first icon.
c) Note: While in the main menu, slot 1 may be configurable, but beware: when starting a single or multiplayer game, the first company is always human and will start on slot 1. Making slot 1 configurable from gui is especialy useful when setting AIs for multiplayer or dedicated server games.
d) While in a game, depending on the status, some slots in the AI/Game Script Settings window have these additional behaviours:
d.1) Warning sign - Permits AI slot movement up or down. Permits selection of another AI. Displays the "Configure" button. Permits changes to all AI parameters.
d.2) Yellow status - Permits AI slot movement up or down. Permits selection of another AI. Displays the "Configure" button. Permits changes to all AI parameters.
d.3) Green status - Disables AI slot movement up or down. Disables selection of another AI or GS. Displays the "Settings" button. Permits changes to some AI or GS parameters.
d.4) Red status - Disables AI slot movement up or down. Disables selection of another AI or GS. Displays the "Configure" button. Permits changes to all AI or GS parameters.
d.5) No status displayed - Permits AI slot movement up or down. Permits selection of another AI. Displays the "Configure" button. Permits changes to all AI parameters.
e) While a game is running, AIs can be started or stopped from the AI/Game Script Settings window. You may also alter their parameters if you so desire:
e.1) To stop an AI, select the AI from the list, then click Stop AI. Be aware that by doing so, you are removing the AI Company from the game.
e.2) If the current number of running AI companies is less than the maximum number of competitors, you may start an AI on any empty slot by selecting it and clicking Start AI.
e.3) If you are receiving a message telling that you can't start an AI, make sure you are allowing AI competitors in multiplayer games.
f) While hosting a server, AIs or GS are not going to be requested to save their data when a client attempts to join. But should you manually save the game or perform autosaves, AIs or GS are still going to be requested to save their data. This permits scripts that usually take too long to save to be useable while running a server for as long as no autosaves or manual saves are done during the session.
Screenshot valid for v30, v31, v32, v33
Screenshot valid for v21, v22, v23, v24, v25, v26
Screenshot valid for v15
Screenshot valid for v14
Screenshot valid for v10
Screenshot valid for v4, v5, v6, v7
Previous versions (v3, v2, v1):
Last edited by xarick on 20 Nov 2017 22:26, edited 68 times in total.
Formerly known as Samu
- HackaLittleBit
- Director
- Posts: 550
- Joined: 10 Dec 2008 16:08
- Location: tile 0x0000
Re: max_no_competitors = 15 patch
Is AI allowed to post in this Forum?
AI is taking over!
AI is taking over!
Re: max_no_competitors = 15 patch
Haha Hack, it was not Skynet taking over it was OTTD-Net AI taking over.HackaLittleBit wrote:Is AI allowed to post in this Forum?
AI is taking over!
Wonder how the Terminator will look like then... Transformers but loco style
Re: max_no_competitors = 15 patch
Previous versions (v6, v5, v4):
- [+] Spoiler v6 r27537
Last edited by xarick on 11 Apr 2016 18:40, edited 1 time in total.
Formerly known as Samu
Re: max_no_competitors = 15 patch
v7 r27537
- Additional checks for moving AIs slots up and down were missing in the previous version. They have been implemented in this version.
- The listing of slots now properly refreshes itself when AIs and GS die.
- Additional checks for moving AIs slots up and down were missing in the previous version. They have been implemented in this version.
- The listing of slots now properly refreshes itself when AIs and GS die.
Formerly known as Samu
Re: max_no_competitors = 15 patch
Previous versions (v10, v9, v8):
- [+] Spoiler v10 r27553:
Last edited by xarick on 30 Apr 2016 23:14, edited 1 time in total.
Formerly known as Samu
Re: max_no_competitors = 15 patch
Previous versions (v13, v12, v11):
- [+] Spoiler v13 r27533:
Last edited by xarick on 06 May 2016 01:28, edited 1 time in total.
Formerly known as Samu
Re: max_no_competitors = 15 patch
This version tries a different GUI approach for the AI/GS configuration/settings window with the use of image icons. The goal is an attempt to display the minimum text possible and use these icons to reflect the state of a script in a given configuration slot.
- Reverted a fix that was intending to correct the behaviour of the Configure button when the currenty selected Random AI is a Random AI while in the scenario editor. Currently it is not fixed as it was allowing new game configurations being altered outside of the main menu from within the scenario editor and not reverting them to their prior configuration when exiting the scenario editor.
- Added a text resize check for the "Select", "Select AI" or "Select Game Scipt" button in the AI/GS configuration/settings window. It was only checking the size of "Select" previously.
- Added a text resize check for the "Configure" or "Settings" button in the AI/GS configuration/settings window. It was only checking the size of "Configure" previously.
- Renamed "(Random AI)" to "(random)".
To do:
- Use the Dice.png provived by Supermop reflecting a random ai script to replace the newspaper icon.
- Find a better icon reflecting the presence of a Human Company to replace the warning sign icon.
- Use the random ai icon in the AI/Debug window.
- Fix the bugs related to Random AI being selected in a game and not Configurable, but becoming Configurable if it is changed to Random AI.
- Find a way to distinguish dead AIs that started as Random AIs from newly configured AI scripts for the same company id, especially if it's also Random AI, in the AI/GS Settings window.
- Find a way to avoid confusion with dead AIs that started as Random AIs in the AI Debug window after configuring another AI script via AI/GS Settings window.
- (maybe) Move configs with drag and drop on movable slots and if so, get rid of Move Up, Move Down buttons.
Previous version (v14):
- [+] Spoiler v14 r27553:
Last edited by xarick on 10 May 2016 20:04, edited 2 times in total.
Formerly known as Samu
- te_lanus
- Transport Coordinator
- Posts: 326
- Joined: 19 Jul 2012 18:04
- Location: The Elizabeth Arkham Asylum for the Criminally Insane
Re: max_no_competitors = 15 patch
Very nice, wish there was a way to get two GS running at the same time, but from what I read is a pipe dream(and my programming skill was last useful in the bronze age).
Re: max_no_competitors = 15 patch
Here Is a quick 10px high pair of dice sprite you can use to show randomness. This could be used anywhere else the game wants to show something is being randomly selected. Hand drawn, GPL2. I can draw a 20 px high version if people want, but my approach is for stuff like this to prioritize clarity at the smallest size the icon will be displayed at the expense of blockiness at larger zoom.
Re: max_no_competitors = 15 patch
Problem solved:
Last edited by xarick on 13 May 2016 19:26, edited 1 time in total.
Formerly known as Samu
Re: max_no_competitors = 15 patch
Problem solved:
Previous version (v16):
- [+] Spoiler v16 r27565:
Last edited by xarick on 16 May 2016 00:33, edited 1 time in total.
Formerly known as Samu
Re: max_no_competitors = 15 patch
Previous version (v19, v18, v17):
- [+] Spoiler v19 r27569:
Last edited by xarick on 22 May 2016 14:23, edited 1 time in total.
Formerly known as Samu
Re: max_no_competitors = 15 patch
Previous versions (v22, v21, v20):
- [+] Spoiler v22 r27582:
Last edited by xarick on 27 May 2016 00:08, edited 1 time in total.
Formerly known as Samu
Re: max_no_competitors = 15 patch
Previous versions (v25, v24, v23):
- [+] Spoiler v25 r27594:
Last edited by xarick on 01 Jun 2016 19:57, edited 1 time in total.
Formerly known as Samu
Re: max_no_competitors = 15 patch
Previous versions (v28, v27, v26):
- [+] Spoiler v28 r27597:
Last edited by xarick on 04 Jun 2016 00:38, edited 1 time in total.
Formerly known as Samu
Re: max_no_competitors = 15 patch
- Fixed a bug introduced in v29, related to the Reset button from the AI Parameters window. It was not disabled when this window was opened on a slot with an AI Company already started.
- The Available AIs window no longer closes itself when a Human Company starts on the slot which script is being changed.
- The random AI icon is no longer displayed for "(random)" scripts. This is valid for the AI/Game Script Configuration/Settings window and the Available AIs window.
- When a random AI company is bought out by another company, the AI/Game Script Settings window now properly reverts the slot name where it initially started, back to "(random)".
To do:
- Use the Dice.png provived by Supermop reflecting a random ai script to replace the newspaper icon.
- Find a better icon reflecting the presence of a Human Company to replace the warning sign icon.
- Use the random ai icon in the AI/Debug window.
- Get rid of unused string STR_AI_CONFIG_HUMAN_PLAYER.
- (maybe) Copy Up or Copy Down configs from alive AI Companies.
- (maybe) Allow resetting of non-locked AI/GS Parameters while in a game.
Previous version (v29):
- [+] Spoiler v29 r27597:
Formerly known as Samu
Re: max_no_competitors = 15 patch
- Reverted a change that was causing hidden parameters in the AI/Game Script Parameters window not becoming visible or hidden when 'setting gui.ai_developer_tools' was set to 'true' or 'false', via console.
- Fixed a bug in the AI/Game Script Parameters window, which was causing Dropdown and Query Box based settings to apply the submitted values to hidden parameters.
To do:
- Use the Dice.png provived by Supermop reflecting a random ai script to replace the newspaper icon.
- Find a better icon reflecting the presence of a Human Company to replace the warning sign icon.
- Use the random ai icon in the AI/Debug window.
- Get rid of unused string STR_AI_CONFIG_HUMAN_PLAYER.
- (maybe) Copy Up or Copy Down configs from alive AI Companies.
- (maybe) Allow resetting of non-locked AI/GS Parameters while in a game.
Formerly known as Samu
Re: max_no_competitors = 15 patch
- Updated to trunk r27816 to resolve a patching conflict that was occurring since trunk r27786.
- Also, trunk r27786 implements a better fix addressing the same bug that was reported on v31 and thus, v32 re-uses trunk's implementation instead.
To do:
- Use the Dice.png provived by Supermop reflecting a random ai script to replace the newspaper icon.
- Find a better icon reflecting the presence of a Human Company to replace the warning sign icon.
- Use the random ai icon in the AI/Debug window.
- Get rid of unused string STR_AI_CONFIG_HUMAN_PLAYER.
- (maybe) Copy Up or Copy Down configs from alive AI Companies.
- (maybe) Allow resetting of non-locked AI/GS Parameters while in a game.
Formerly known as Samu
Re: max_no_competitors = 15 patch
- Updated to trunk r27931 to resolve a patching conflict that was occurring since r27893.
To do:
- Use the Dice.png provived by Supermop reflecting a random ai script to replace the newspaper icon.
- Find a better icon reflecting the presence of a Human Company to replace the warning sign icon.
- Use the random ai icon in the AI/Debug window.
- Get rid of unused string STR_AI_CONFIG_HUMAN_PLAYER.
- (maybe) Copy Up or Copy Down configs from alive AI Companies.
- (maybe) Allow resetting of non-locked AI/GS Parameters while in a game.
Formerly known as Samu
Who is online
Users browsing this forum: No registered users and 25 guests