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
When I try and build a project for the Unity target (works for html5/osx), using I get this error:
{ Error: ENOENT: no such file or directory, open 'Users/bparks/gitrepos/kha_super_cobra1/Empty/Kha/Tools/khamake/Data/unity/Shaders/proto.shader'
which I hardcode fixed by editing this file:
/Users/bparks/gitrepos/kha_super_cobra1/Empty/Kha/Tools/khamake/out/main.js
and inserting a '/' at the begin of the join.. So changed this:
let proto = fs.readFileSync(path.join(options.from, options.kha, 'Tools', 'khamake', 'Data', 'unity', 'Shaders', 'proto.shader'), 'utf8');
to this:
let proto = fs.readFileSync(path.join('/',options.from, options.kha, 'Tools', 'khamake', 'Data', 'unity', 'Shaders', 'proto.shader'), 'utf8');
Here's how I compiled.
$ khamake --t unity
Creating Kha project.
Exporting asset 1 of 24 (arial.ttf).
...
Exporting asset 2 of 24 (bomb1.wav).
Compiling shader 8 of 8 (painter-video.vert.glsl).
{ Error: ENOENT: no such file or directory, open 'Users/bparks/gitrepos/kha_super_cobra1/Empty/Kha/Tools/khamake/Data/unity/Shaders/proto.shader'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.readFileSync (fs.js:508:33)
at /Users/bparks/gitrepos/kha_super_cobra1/Empty/Kha/Tools/khamake/out/main.js:317:28
at next (native)
at fulfilled (/Users/bparks/gitrepos/kha_super_cobra1/Empty/Kha/Tools/khamake/out/main.js:4:58)
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'Users/bparks/gitrepos/kha_super_cobra1/Empty/Kha/Tools/khamake/Data/unity/Shaders/proto.shader' }
The text was updated successfully, but these errors were encountered:
When I try and build a project for the Unity target (works for html5/osx), using I get this error:
{ Error: ENOENT: no such file or directory, open 'Users/bparks/gitrepos/kha_super_cobra1/Empty/Kha/Tools/khamake/Data/unity/Shaders/proto.shader'
which I hardcode fixed by editing this file:
/Users/bparks/gitrepos/kha_super_cobra1/Empty/Kha/Tools/khamake/out/main.js
and inserting a '/' at the begin of the join.. So changed this:
let proto = fs.readFileSync(path.join(options.from, options.kha, 'Tools', 'khamake', 'Data', 'unity', 'Shaders', 'proto.shader'), 'utf8');
to this:
let proto = fs.readFileSync(path.join('/',options.from, options.kha, 'Tools', 'khamake', 'Data', 'unity', 'Shaders', 'proto.shader'), 'utf8');
Here's how I compiled.
The text was updated successfully, but these errors were encountered: