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

NPE after adding new Material #77

Open
pyure opened this issue Dec 4, 2017 · 6 comments
Open

NPE after adding new Material #77

pyure opened this issue Dec 4, 2017 · 6 comments

Comments

@pyure
Copy link

pyure commented Dec 4, 2017

I added "graphite" to my "metals" Material[] array. I now get a null pointer exception when I try to start up minecraft.

Crashlog: https://pastebin.com/UyCkCpxw
Script: https://pastebin.com/r0jfdvFi
acronym\saved\material_parts_contenttweaker.json: https://pastebin.com/cv7ZUmhg
acronym\saved\material_parts_contenttweaker-original.json: https://pastebin.com/b4RjBz3s

Possibly-related: I had also just uncommented the bottom loop which registers the ores. Various things went weird at that point as (presumably) orphaned ids were attempted for reuse. (Specifically: At least one "block" type transformed into an Ore in game)

@pyure
Copy link
Author

pyure commented Dec 4, 2017

Possibly-related:

  • If I remove "graphite" from the list, we start fine
  • If I re-add "graphite" back to the list, we seem to start fine, but the crushed-ore item is missing (others are there)
  • If I restart with no further changes (hoping clean-up routines will get my crushed ore back in) we get the NPE.

@pyure
Copy link
Author

pyure commented Dec 5, 2017

Any chance this has to do with the sheer number of materials/parts I'm adding? I tried adding "graphitenew" and "graphite2", both of which also failed.

@SkySom
Copy link
Collaborator

SkySom commented Dec 5, 2017

Potentially. Ive found about the time you reach 1000 parts, thinks start breaking down.

@pyure
Copy link
Author

pyure commented Dec 5, 2017

hmm I'm at 274 parts in the saved/json file right now, not even close to your observed limit.
Is there any other useful information I can provide here?

If I weren't so terrible at setting up Java environments I'd try to debug this myself :(

@SkySom
Copy link
Collaborator

SkySom commented Dec 6, 2017

Not a clue then. But next release has a bit more debugging code in it so hopefully that'll work?

@FreneticScribbler
Copy link
Member

Still broken?

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

3 participants