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

65533 Kirby Paul tanks #1132

Closed
DorpsGek opened this issue Aug 17, 2007 · 6 comments
Closed

65533 Kirby Paul tanks #1132

DorpsGek opened this issue Aug 17, 2007 · 6 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

manveru opened the ticket and wrote:

Revision 10904 on linux, attached is a savegame that shows 65533 kirby pual tanks in the autoreplace window.

Attachments

Reported version: trunk
Operating system: Linux


This issue was imported from FlySpray: https://bugs.openttd.org/task/1132
@DorpsGek
Copy link
Member Author

ejoj wrote:

This bug goes at least back to r10827 as i saw it when playing now with that revision


This comment was imported from FlySpray: https://bugs.openttd.org/task/1132#comment1880

@DorpsGek
Copy link
Member Author

Rubidium wrote:

We need a savegame from just after you set the autorenew, so we can see what actually caused the figure to be too "low". I myself have not been able to reproduce it, so it doesn't happen in all cases.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1132#comment1886

@DorpsGek
Copy link
Member Author

frosch wrote:

The following procedure reproduces a bug, that looks similiar, though it is a "2^32-1 a lot of engines"-bug.
A savegame does not help, as the information that is wrong is not saved.

Situation:
- Multiplayer, 2 players.
- Player 1: Train # 1 "Kirby Paul Tank" ungrouped, Train # 2 "Chaney Junilee" in "Group 0", Train # 3 "Ginzu A4" in "Group 1".
- Player 2: Train # 1 "SH 8P" ungrouped, Train # 2 "Manley Morel DMU" in "Group 2", Train # 3 "UU 38" in "Group 3".

Now:
- either crash the Ginzu from player 1 with the Manley from player 2 (You will need horizontal/vertical track to do this. Btw. is this another bug?)
- or crash the Chaney with the Ginzu.

The result of both:
Player 1 ungrouped vehicles:
1 x Kirby (correct)
2^32-1 x Manley (only player 2 owned such a engine)
2^32-1 x UU (only player 2 owned such a engine)

Player 2 ungrouped vehicles:
2^32-1 x Chanley (only player 1 owned such a engine)
2^32-1 x Ginzu (only player 1 owned such a engine)
1 x SH (correct)

Note that the crashed vehicles are not yet removed.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1132#comment1982

@DorpsGek
Copy link
Member Author

frosch wrote:

Lol, I wish I had never reported the above procedure. There is no need to crash the vehicles.
The bug is simple. The amount of vehicles in the "ungrouped"-group is computed by subtracting the vehicles from all other groups from the total vehiclecount of a player. Unfortunatelly also the groups of other players are subtracted.

I hope the attached patch is everything needed.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/1132#comment1986

@DorpsGek
Copy link
Member Author

frosch wrote:

Of course I overlooked something in such a small patch.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/1132#comment1989

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Fixed

In r10992.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1132

@DorpsGek DorpsGek added Autoreplace flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant