I tried to make my own custom map but as I opened the MapEditor_2 Executable Jar File, it just wouldn't open or would make an error message (I linked the 2 also 1 is in German). I will list the following things I tried:
Deleting the file and copying one from the example folder
downloading jarfix (it just gets rid of the error message)
downloading JDK Development Kit 23.0.1 (it just gets rid of the error message)
trying to open it with javaw
updating java
deinstalling and reinstalling java
done lots of stuff with cdm command
restarting my pc
I did eventually ask ChatGPT to help and it found out what was wrong, I will send what ChatGPT sent:
"Analysis:
NullPointerException: This indicates that a null value is being accessed where an object is expected. Specifically:
The java.util.List.get(int) method is returning null.
The returned null is being used to call getWidth() on an Image object.
Context in Code:
The issue occurs in the GamePanel class, specifically at line 395 in its constructor.
The problem propagates from the GamePanel initialization to the main class's init method at line 8 and its main method at line 13."
I also have the same layout of the folders like Lukasz in his video on custom maps (I also copied the example custom map folder). I can't fix this issue on my own so I'm asking for anyone to help me with this.
Hello,
I tried to make my own custom map but as I opened the MapEditor_2 Executable Jar File, it just wouldn't open or would make an error message (I linked the 2 also 1 is in German). I will list the following things I tried:
I did eventually ask ChatGPT to help and it found out what was wrong, I will send what ChatGPT sent:
"Analysis:
NullPointerException: This indicates that a null value is being accessed where an object is expected. Specifically:
java.util.List.get(int)method is returningnull.getWidth()on anImageobject.Context in Code:
GamePanelclass, specifically at line 395 in its constructor.GamePanelinitialization to themainclass'sinitmethod at line 8 and itsmainmethod at line 13."I also have the same layout of the folders like Lukasz in his video on custom maps (I also copied the example custom map folder). I can't fix this issue on my own so I'm asking for anyone to help me with this.
Share this post
Link to post
Share on other sites