Skip to content

Conversation

@bobtista
Copy link

This change skips loading any BIG file matching Data\INI\INIZH.big during archive initialization.

Testing

  1. Install the game from EA App/Origin
  2. Observe two INIZH.big files, one in the root folder and one in Data/INI
  3. Run the game; notice that DeleteFile/cleanup code does not successfully delete it (this is expected and acceptable now)
  4. Try to join a multiplayer game which performs CRC checks — CRC should now match
  5. Play the multiplayer game — no mismatches should occur (From this issue)

@bobtista bobtista self-assigned this Nov 18, 2025
@xezon
Copy link

xezon commented Nov 19, 2025

Where is the Delete code? Can that be removed if it does not work anyway?

@xezon xezon added Bug Something is not working right, typically is user facing Major Severity: Minor < Major < Critical < Blocker labels Nov 19, 2025
@bobtista
Copy link
Author

Where is the Delete code? Can that be removed if it does not work anyway?

GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp line 402, and we can remove it yes. I'm unsure if it works on other installs eg the original CD, but we don't need it in any case. Remove it?

@xezon
Copy link

xezon commented Nov 25, 2025

I would say if this new change avoids all trouble, then remove the hack from Kris and transfer his original comment to the new hack to clarify the intention.

@xezon
Copy link

xezon commented Nov 25, 2025

notice that DeleteFile/cleanup code does not successfully delete it (this is expected and acceptable now)

Why does it not delete it? Does it fail because it does not have Admin privileges?

@bobtista
Copy link
Author

notice that DeleteFile/cleanup code does not successfully delete it (this is expected and acceptable now)

Why does it not delete it? Does it fail because it does not have Admin privileges?

Yes, from the issue "this does not work on the EA app/origin version of the game because the folder is owned by the app and is not writable."

Copy link

@xezon xezon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove it?

Yes. Move the EA comment to the new place.

@bobtista
Copy link
Author

Yes. Move the EA comment to the new place.

Done

Copy link

@xezon xezon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@xezon xezon added ZH Relates to Zero Hour System Is Systems related labels Nov 30, 2025
@xezon xezon changed the title bugfix(big): skip loading duplicate INIZH.big in EA App/Origin installs bugfix(filesystem): Prevent loading wrong INIZH.big from Data/INI directory Nov 30, 2025
@xezon xezon changed the title bugfix(filesystem): Prevent loading wrong INIZH.big from Data/INI directory bugfix(filesystem): Prevent loading wrong INIZH.big from Data/INI directory to prevent INI CRC mismatch Nov 30, 2025
@xezon xezon merged commit 2a1f963 into TheSuperHackers:main Nov 30, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something is not working right, typically is user facing Major Severity: Minor < Major < Critical < Blocker System Is Systems related ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate and outdated INIZH.big file is not cleaned up on EA app/origin installs and is loaded

2 participants