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

JSON file Editing tool #847

Open
BenjamenMeyer opened this issue Apr 24, 2024 · 2 comments
Open

JSON file Editing tool #847

BenjamenMeyer opened this issue Apr 24, 2024 · 2 comments
Assignees
Milestone

Comments

@BenjamenMeyer
Copy link
Member

JSON Tool to help folks with building the various JSON files

  • validates that the JSON is valid
  • knows about any inheritances, etc that Vega Strike applies on top of JSON
@P-D-E
Copy link
Contributor

P-D-E commented May 18, 2024

Thinking of the high level of inheritance ships have, jsonnet (https://jsonnet.org/) might help maintaining a cleaner and smaller source file for units: you'd write the base ship, add/override the differences in e.g. llama.blank, derive the llama variants from this and again just add/override the differences.
The full ouput it produces should give back the current units.json file.
A later step could be to have the engine itself support this kind of inheritance and directly load the source file.

@BenjamenMeyer
Copy link
Member Author

A later step could be to have the engine itself support this kind of inheritance and directly load the source file.

I think we already have that. What I'm thinking of is the editor so that you can load the various config files and see how they effect each other.

IOW, select a Llama variant and see both it and the llama.blank data and then make a change and see how it effects the final outcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants