castle icon indicating copy to clipboard operation
castle copied to clipboard

Images don't appear, level editor doesn't open

Open alan-j-hu opened this issue 5 years ago • 7 comments

I downloaded CastleDB from the NWJS package link from the README and moved the package into the nwjs directory. When I run the app with the sample file from the project homepage, the images don't appear and the level editor doesn't open:

castledb

castledb2

(Clicking the "Edit" button does nothing.)

CastleDB version: 1.5 Operating System: GNU/Linux Mint 18.3

alan-j-hu avatar Nov 28 '18 21:11 alan-j-hu

Do you get some errors in "Dev" console?

ncannasse avatar Nov 30 '18 17:11 ncannasse

Clicking "Dev" opens a blank window and emits this message on the Unix console:

[8388:8388:1201/182307.577824:ERROR:CONSOLE(1)] "Uncaught ReferenceError: DevToolsAPI is not defined", source: chrome-devtools://devtools/bundled/devtools_app.html?remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@ac9418ba9c3bd7f6baaffa0b055dfe147e0f8364/&dockSide=undocked (1)
[8388:8388:1201/182307.578015:ERROR:CONSOLE(1)] "Uncaught ReferenceError: DevToolsAPI is not defined", source: chrome-devtools://devtools/bundled/devtools_app.html?remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@ac9418ba9c3bd7f6baaffa0b055dfe147e0f8364/&dockSide=undocked (1)

alan-j-hu avatar Dec 01 '18 23:12 alan-j-hu

Try using nwjs sdk version

Le dim. 2 déc. 2018 00:24, TheAspiringHacker [email protected] a écrit :

Clicking "Dev" opens a blank window and emits this message on the Unix console:

[8388:8388:1201/182307.577824:ERROR:CONSOLE(1)] "Uncaught ReferenceError: DevToolsAPI is not defined", source: chrome-devtools://devtools/bundled/devtools_app.html?remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@ac9418ba9c3bd7f6baaffa0b055dfe147e0f8364/&dockSide=undocked (1) [8388:8388:1201/182307.578015:ERROR:CONSOLE(1)] "Uncaught ReferenceError: DevToolsAPI is not defined", source: chrome-devtools://devtools/bundled/devtools_app.html?remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@ac9418ba9c3bd7f6baaffa0b055dfe147e0f8364/&dockSide=undocked (1)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ncannasse/castle/issues/86#issuecomment-443467099, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-bwG_bFg7-LEVid-f1OSZyxd0lV98Cks5u0w-ygaJpZM4Y4cb1 .

ncannasse avatar Dec 02 '18 09:12 ncannasse

Okay, I used the SDK version and opened the console. The messages are:

jquery-latest.min.js:3 The specified value "!" does not conform to the required format.  The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
buildFragment @ jquery-latest.min.js:3
lz4.js:81 Linking failure in asm.js: Invalid heap size
items.png:1 Failed to load resource: net::ERR_FILE_NOT_FOUND

The first two messages are warnings and the third is an error. The error sounds relevant to the images not loading.

alan-j-hu avatar Dec 02 '18 18:12 alan-j-hu

@TheAspiringHacker compiling the new version of castleDB with haxe preview 5 and the git versions of the haxelibs solves the issue. I had the problem with the NW package downloaded from the website on my Ubuntu 18.04. When I cloned and compiled castleDB from source everything worked as designed. Updating the package on the website could solve the issue for future users @ncannasse.

mundusnine avatar Jan 15 '19 13:01 mundusnine

@mundusnine Thank you! I cloned this repository and built it. (I didn't use the Git versions of the repositories; i just did haxelib install castle.hxml.) Then, I re-downloaded nwjs. (I don't know if that made any difference.) When I ran bin/nwjs/nw bin from the repository's root directory, the level editor worked.

alan-j-hu avatar Feb 03 '19 02:02 alan-j-hu

Followed @TrulyNonstrict instructions above and it worked like a charm. Here is a desktop file to add it to your launcher. Edit paths to match, but the pattern works.

[Desktop Entry]
Type=Application
Name=CastleDB
Icon=/home/justin/Applications/CastleDB/www/favicon.ico
Exec=/home/justin/Applications/CastleDB/bin/nwjs/nw /home/justin/Applications/CastleDB/bin
Path=/home/justin/Applications/CastleDB/bin
Terminal=false

thejustinwalsh avatar May 11 '20 20:05 thejustinwalsh