You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstaticvoidmain(String[] args) {
Battletownapp = newBattletown();
AppSettingssettings = newAppSettings(false);
settings.setFullscreen(true);
app.setSettings(settings);
app.setShowSettings(false); //Settings dialog not supported on macapp.start();
}
flyCam.setEnabled(false);
SEVERE: Uncaught exception thrown in Thread[jME3 Headless Main,5,main]
java.lang.NullPointerException: Cannot invoke "com.jme3.input.FlyByCamera.setEnabled(boolean)" because "this.flyCam" is null
at com.waystudio.Battletown.simpleInitApp(Battletown.java:31)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:240)
at com.jme3.system.NullContext.initInThread(NullContext.java:102)
at com.jme3.system.NullContext.run(NullContext.java:146)
at java.base/java.lang.Thread.run(Thread.java:833)
The text was updated successfully, but these errors were encountered:
I think you will find that it isn't the only thing wrong... just the first bad thing to happen.
A clue:
"com.jme3.system.NullContext"
Another clue:
"Thread[jME3 Headless Main"
...JME thinks it's running in headless mode because you haven't setup the renderer and the other things that need to be manually set when you tell the settings not to use the defaults.
Is there a reason you are telling it not to use defaults?
The text was updated successfully, but these errors were encountered: