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

cant load previous saved files #27

Open
Arytas opened this issue Jun 13, 2016 · 4 comments
Open

cant load previous saved files #27

Arytas opened this issue Jun 13, 2016 · 4 comments

Comments

@Arytas
Copy link

Arytas commented Jun 13, 2016

I am currently wokring on my Menu in my game and tried out the nifty editor
but if i save the current stuff, i cannot reload the file
got a huge amount of errors in my console

(i used niftyeditor 0.6 and also 0.59)

like this
WARNING: screen [GScreen0] not found

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<nifty>
    <useControls filename="nifty-default-controls.xml"/>
    <useStyles filename="nifty-default-styles.xml"/>
    <screen id="GScreen1">
        <layer id="mainmenu" childLayout="vertical" backgroundImage="D:\Dropbox\Game Development\Nifty Gui Editor\background.png">
            <image id="header" filename="D:\Dropbox\Game Development\Nifty Gui Editor\Brick _ _ Breaker logo.png" width="80%" x="558" y="74" valign="top" align="center" height="20%"/>
            <panel id="pnl_bottom" childLayout="absolute" width="100%" valign="bottom" align="left" height="80%">
                <panel id="GPanel3" childLayout="vertical" width="405px" x="368" y="45" height="408px">
                    <panel id="GPanel4" childLayout="vertical" width="100%" style="nifty-panel-simple" align="right" height="60px"/>
                </panel>
            </panel>
        </layer>
    </screen>
</nifty>

Jun 13, 2016 10:43:42 AM de.lessvoid.nifty.render.NiftyMouseImpl registerMouseCursor
WARNING: Your RenderDevice does not support the createMouseCursor() method. Mouse cursors can't be changed.
Jun 13, 2016 10:43:42 AM de.lessvoid.nifty.render.NiftyMouseImpl registerMouseCursor
WARNING: Your RenderDevice does not support the createMouseCursor() method. Mouse cursors can't be changed.
Jun 13, 2016 10:43:42 AM de.lessvoid.nifty.loaderv2.types.ScreenType create
WARNING: Missing ScreenController for screen [GScreen1] using DefaultScreenController() instead but this might not be what you want.
Jun 13, 2016 10:43:42 AM jada.ngeditor.controller.GUIEditor$Reload perform
SEVERE: null
java.lang.RuntimeException: java.lang.IllegalArgumentException: input == null!
at de.lessvoid.nifty.Nifty.loadFromStream(Nifty.java:632)

@Arytas
Copy link
Author

Arytas commented Jun 13, 2016

i downloaded the sources and after fixing tons of problems i was able to run in jme
there occourse this error
WARNING: screen [GScreen0] not found
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at jada.ngeditor.model.GUI$2.perform(GUI.java:226)

@Arytas
Copy link
Author

Arytas commented Jun 13, 2016

maybe the problem is cause you using java 1.6 in dev?

@relu91
Copy link
Owner

relu91 commented Jun 16, 2016

I've tried to load your file, are you sure that you have the images in the dropbox folder? I don't think it's a java version problem. Nifty-editor has 1.6 for target jvm version.

@Arytas
Copy link
Author

Arytas commented Jun 16, 2016

yes the settings are all correct

i found a workaround
start editor > click WorkGUI > delete GScreen0 > load XML file
with this i have no trouble to load the file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants