CustomThings

CustomThings

4M Downloads

Better Crash-Reports

EverNife opened this issue ยท 7 comments

commented

Is there a way to implement those crash-reports, like something telling what is missing or is wrong?

For exemple, "missing name entry", "missing durability entry", or warning about wrong location of dots

" . , [ {

commented

use http://jsonlint.com/ to check your json maybe?

commented

Cause sometimes is not the syntax who is wrong, is that you are missing something...

Like the exemple of the wiki over here: #35 (comment)

As well as your exemple over here: #41

commented

You could implement a in-game json parser, like MyTown2 does, and don't let the game to crash...

commented

@Eufranio That would be a massive amount of work to recreate something that already exists. I could prevent the game from crashing, but then what? Your items just don't exist?

commented

A missing entry is never an error. I have defaults for almost every single field for every type of custom object. Most errors given to me are in fact JSON syntax errors, which I can do nothing about as that code is out of my control. A site like the one @Maxwelljones linked is a great resource for this.

commented

Like MineTweaker, it just don't make the changes and specify the error, then you can fix it yourself without reporting in a github repo to get help...

commented

http://jsonlint.com/ seems fine at all...