forked from electronicarts/CnC_Generals_Zero_Hour
-
Notifications
You must be signed in to change notification settings - Fork 249
unify(map): Merge and move GameLogic map headers and implementations to Core #3189
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
Open
OmarAglan
wants to merge
2
commits into
TheSuperHackers:main
Choose a base branch
from
OmarAglan:unify/gamelogic-map-merge
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 0 additions & 124 deletions
124
Generals/Code/GameEngine/Include/Common/MapReaderWriterInfo.h
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we need a new type of define here for Data upgrades.
RETAIL_COMPATIBLE_DATAperhaps.Because this is more than just CRC relevant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be, but the thing is that this field is used only in retail compatible generals, zh and non retail generals use version 4 of it.
I'm not in favor of adding new type of define for something so small.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are probably more data format differences sprinkled into Generals, no? Or is this the only one for maps, w3d, scb, etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
likely there is other data format differences, so I cannot say this is the only one without auditing the map, SCB, W3D, and related readers and writers, as for as the idea of RETAIL_COMPATIBLE_DATA may make sense, but I think it should be introduced in a separate follow-up after those paths are inventoried rather than expanding this PR, this is my opinion, could be wrong though, your call, if needed i can add the guard to move this pr forward.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I Looked upon map,SCB, and W3D readers and writers, and the PolygonTriggers is not the only data format difference, we have Gen WB writes BlendTile version 7 while zh writes version 8, and the embedded SCB script formats also differ in their condition, action, and player data versions.
also W3D currently uses a shared exporter and reader with no target specific format guards.
I agree that a separate data compatibility guard is justified. I would use it here only for the emitted PolygonTrigger version and layer field, while keeping malformed trigger removal under RETAIL_COMPATIBLE_CRC.
The other formats should be handled when their complete reader and writer pairs are synchronized.
i can open a pr that addes it if needed, tell what you think @xezon?