Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raising/lowering 'Maximum no. competitors' setting in multiplayer #6438

Closed
DorpsGek opened this issue Apr 5, 2016 · 4 comments
Closed

raising/lowering 'Maximum no. competitors' setting in multiplayer #6438

DorpsGek opened this issue Apr 5, 2016 · 4 comments

Comments

@DorpsGek
Copy link

@DorpsGek DorpsGek commented Apr 5, 2016

Samu opened the ticket and wrote:

The bug happens when the AI/Game script Configuration window is brought up this way:

1 - Launch OpenTTD
2 - Click multiplayer
3 - Start server
4 - Click new game
5 - Click Options > AI/Game script Configuration

Bugs:
- if the value is 14: when clicking '<' to lower it to 13, the '>' can't be clicked to raise it to 14, unless lowered to 12
- if the value is 13: when clicking '>' to raise it to 14, the '>' can be clicked, but it shouldn't. Clicking it fixes itself
- if the value is 0: when clicking '>' to raise it to 1, the '<' can't be clicked to lower it to 0, unless raised to 2
- if the value is 1: when clicking '<' to lower it to 0, the '<' can be clicked, but it shouldn't. Clicking it fixes itself

Reported version: 1.6.0
Operating system: Windows


This issue was imported from FlySpray: https://bugs.openttd.org/task/6438
@DorpsGek

This comment has been minimized.

Copy link
Author

@DorpsGek DorpsGek commented Feb 4, 2018

Samu wrote:

you sure? I just reproduced it in 1.7.2


This comment was imported from FlySpray: https://bugs.openttd.org/task/6438#comment14844
@DorpsGek

This comment has been minimized.

Copy link
Author

@DorpsGek DorpsGek commented Feb 4, 2018

Samu wrote:

proof

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/6438#comment14845
@DorpsGek

This comment has been minimized.

Copy link
Author

@DorpsGek DorpsGek commented Feb 4, 2018

Wolf01 wrote:

Reopened: reproduced in r27967


This comment was imported from FlySpray: https://bugs.openttd.org/task/6438#comment14846
@GabdaZM

This comment has been minimized.

Copy link
Contributor

@GabdaZM GabdaZM commented Jan 1, 2019

I found that when you click on the '<' or '>' buttons to change the number of the competitors, the value won't get updated on the client, but sent to the server. The server registers the update and sends the new number back to the client, but it only updates the text on the screen, but it won't call a button invalidations, so only a part of the window gets updated. (If you click on other functioning parts of the window, the arrow button validation will be updated.)
While it would be easy to store the modification of the number on the client as well, I think it would only be a workaround, as in case another client modifies this number while this window is open in our client as well (and the number gets 0 or 14) only the number will be updated and not the button invalidation.

GabdaZM added a commit to GabdaZM/OpenTTD that referenced this issue Jan 15, 2019
…window

Disabling/enabling of the decrease/increase button in accordance with the
max no. competitors value was not working properly in multiplayer mode.
GabdaZM added a commit to GabdaZM/OpenTTD that referenced this issue Jan 27, 2019
…window

Disabling/enabling of the decrease/increase button in accordance with the
max no. competitors value was not working properly in multiplayer mode.
PeterN added a commit to PeterN/OpenTTD that referenced this issue Feb 1, 2019
@PeterN PeterN closed this in 0355f88 Feb 1, 2019
nielsmh added a commit to nielsmh/OpenTTD that referenced this issue Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.