-
Notifications
You must be signed in to change notification settings - Fork 286
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
[49.20] Units reinforced from MUL sometimes swap sprites with other unit sprites #5769
Comments
Probably the same issue as #5661 |
I'm not so sure it's the same root cause, although the effect is similar. Worth noting the possibility, at least. |
When loading autosave_2024-07-21_15-12-01.sav.gz on 49.20, I also see the Drillson wreck as a Cheetah. When looking at the other recent sprite issue, I experimented with adding |
I'd have to check, but it's very likely that it did - most of us play with Show Unit IDs enabled, and I believe having that active causes unit IDs to be saved to MULs? |
Attached is the MUL, which does appear to contain saved unit IDs. |
Hah - in the screenshots in the first post, you can see that the wreck of the Drillson and the reinforced Cheetah have the same unit IDs listed. That's definitely it. |
#5769: Possibly fix ID overlap when reinforcing from MUL
I have seen this issue as far back as 0.48 or even earlier, but it has been difficult to deliberately reproduce. However, I currently have a saved game that appears to at least partially demonstrate the issue, as well as some documentation from in-game experience.
Sometimes, when reinforcing from a MUL, the sprites of the reinforced units will be replaced with sprites of other units, especially previously destroyed units. Here, you can see that the Hunchback sprite is actually that of a destroyed Ontos, and the one Cheetah sprite is actually from a destroyed Drillson Heavy Hover Tank.
Interestingly, I found that the Cheetah sprite was actually swapped for the sprite of the destroyed Drillson Heavy Hover Tank, showing up in the hex where the tank was destroyed. I was not able to confirm whether the Ontos wreck sprite was swapped for the Hunchback sprite.
Whenever this bug occurs, turning the client setting "Show damage to units on the unit icon" off and on again will generally reset the sprites to their correct state, as seen below.
This led me to believe that it would not reproduce from a saved game, but here it appears to do so at least partially. In particular, the save game was after movement and firing, at which point the Cheetah was destroyed, and its wreck sprite in hex 2743 has remained as the Drillson sprite.
Interestingly, the original Drillson wreck in hex 3841 is now displayed correctly after loading the savegame.
I note that I actually had two clients connected to the game server for this game; on one client I had flipped the setting off and on to correct the sprite glitch (prior to the Cheetah moving), but on the other client I did not, and the sprite switch persisted through the end of the movement phase for that client, into the firing phase, as seen below.
Going back through my autosaves from Paranoid Autosave, I managed to locate the save from immediately after deployment of the reinforced units. Loading this autosave also appears to partially reproduce the sprite bug. Interestingly, the Cheetah is now displayed with the correct sprite, but the Drillson wreck in hex 3841 is still the Cheetah sprite. It seems only the incorrect wreck sprites persist through a save and reload, and then only sometimes.
Savegames:
bigGameDay4end.sav.gz
autosave_2024-07-21_15-12-01.sav.gz
The text was updated successfully, but these errors were encountered: