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

Create proper diagnostics for JSON Errors #181

Open
Morxemplum opened this issue Jun 28, 2020 · 0 comments
Open

Create proper diagnostics for JSON Errors #181

Morxemplum opened this issue Jun 28, 2020 · 0 comments
Labels

Comments

@Morxemplum
Copy link
Collaborator

Morxemplum commented Jun 28, 2020

As of now, there are diagnostics for Lua. Whenever a pack developer makes a mistake in Lua code and they try and run their code, usually the console can catch most of these errors and report back to the Pack Developer what they did wrong. This means the Pack Developer can go and fix that bug.

However, there are no official diagnostics for JSON (or it's poorly made). When a JSON error happens, the game crashes. New pack developers have a hard time knowing what JSON errors are, where they are, and how to fix them. This is something that previously may have stopped pack developers from making packs for Open Hexagon.

What to do? Whenever there is faulty JSON logic (non-existent IDs, incorrect file paths, or incorrect syntax), the game should refuse to load the level associated with that bad JSON file, and when Open Hexagon finishes loading, the console should report how many JSON errors there were (if there were any) and list them out so pack developers can understand what they did wrong and go to fix them. This must be done to make debugging easier for new and experienced pack developers alike.

@Morxemplum Morxemplum changed the title Create a proper debugger for JSON Errors Create proper diagnostics for JSON Errors Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant