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

Streamline unit storage #133

Merged
merged 2 commits into from
Nov 21, 2024
Merged

Streamline unit storage #133

merged 2 commits into from
Nov 21, 2024

Conversation

royfalk
Copy link
Contributor

@royfalk royfalk commented Nov 19, 2024

  • copy units.json to units_old.json
  • modify some ships names in old file to align with conventions. Hyena__pirates changed to HyneaP.
  • Move ships to hierarchical file ships.json
  • unit_template stores defaults that need not be defined.

Total reduction in size from 2.1mb to 1.3mb. More important, it's now easy to see the difference between variants.

Please answer the following:
This PR requires a change in the engine.

Code Changes:

Issues:

  • none yet

- copy units.json to units_old.json
- modify some ships names in old file to align with conventions. Hyena__pirates changed to HyneaP.
- Move ships to hierarchical file ships.json
- unit_template stores defaults that need not be defined.

Total reduction in size from  2.1mb to 1.3mb. More important, it's now easy to see the difference between variants.
@royfalk royfalk self-assigned this Nov 19, 2024
Copy link
Contributor

@evertvorster evertvorster left a comment

Choose a reason for hiding this comment

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

Tested this with the corresponding engine branch, and it looks like it works properly.
All new files are installed properly, and the engine code interacts properly with the code here.
New campaigns and saved games properly pull up the ships information.

@royfalk royfalk merged commit 156d568 into master Nov 21, 2024
10 of 11 checks passed
@royfalk royfalk deleted the task_fix_ships branch November 21, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants