《命令与征服™:重制版》

《命令与征服™:重制版》

CFE Patch Redux for RA
WakizashiM 2021 年 9 月 4 日 下午 7:27
bug related to attack of medium tank after loading
Hey,

So I have gotten this weird (and funny) bug several times now, whereby one of my medium tanks will fire shells at an extreme pace.

Link to video:

https://cdn.discordapp.com/attachments/366224451131539456/883899156349992970/Command__Conquer_Remastered_2021.09.04_-_22.18.30.04.mp4

I have noticed that it happens after loading an existing save. I do not know what triggers it, though I have noticed once that, after loading a save, one medium tank will have a Rank 3 veterancy (when he shouldn't have any since veterancy isn't saved in save files). Though the Rank 3 bug does not happen all the time, and isn't necessary for the tank to fire like it does.

I hope this helps you track down this bug!
< >
正在显示第 1 - 3 条,共 3 条留言
Chthon  [开发者] 2021 年 9 月 7 日 上午 8:07 
Do you ever get this bug without first loading a save game? I think it should be linked to the "veterancy not saving" bug. Please try the test build in the waypoint loops discussion, since that bug is fixed there. (Also, that test build isn't compatible with existing save games.)
最后由 Chthon 编辑于; 2021 年 9 月 7 日 上午 8:14
Chthon  [开发者] 2021 年 9 月 7 日 下午 6:30 
On further thought, I think I may know the exact cause. It looks like this will happen if you have a rank 3 medium tank and do a save -> load. There's a flag for "my next shot is the first shot of a two-shooter volley, so it gets a super short delay" that gets toggled each time a two-shooter unit fires. I think what's happening is that you're doing a save -> load while this flag is set to true (e.g., when the tank is idle), and then it's losing its two-shooter status along with its veterancy, which makes it unable to reach the code that toggles the flag back off, so every shot is on a 3-frame delay. Is that consistent with what you're seeing? If so, it should already be fixed along with the save -> load issue.

I'm not sure how you're getting a rank3 unit after loading a save game. Since the root of the bug is that RA's crazy-ass load routine is reinitializing my variables (to zero) after copying them, it shouldn't be possible to get a non-zero value there. Is it at least a unit that had rank3 veterancy before the save -> load? Or are random units getting unearned promotions? I'm going to *hope* this was somehow fixed along with the save -> load issue.

Overall, this reminds me: Since I'm breaking old save game compatibility with the next patch anyway, I might as well go back and undo the things I did to fit within the available space, since doing them "right" should have better performance and less risk of bugs.
WakizashiM 2021 年 9 月 7 日 下午 8:54 
It is entirely possible that the tank already had a rank 3 veterancy before I loaded, and I simply didn't notice. I guess it just caught my eye since veterancy doesn't save.

And yeah, what you are describing sounds accurate re: the bug.
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50