Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by monkeyArms

Not sure what I'm doing wrong here - I just baked my game and everything seems to have worked fine - last command line output was "baked 39 files: 131kb -> 95.4kb".

I then moved the baked file to another directory, copied the media directory over, and copied index.html over and changed the script tag to only include the baked file.

When I try to load index.html, I get the following exceptions in Chrome's console:


GET http://example.com/demo/lib/impact/system.js 404 (Not Found)
mygame-baked.js:132    Uncaught Failed to load module impact.system at lib/impact/system.js required from impact.impact
GET http://example.com/demo/lib/impact/loader.js 404 (Not Found)
mygame-baked.js:132    Uncaught Failed to load module impact.loader at lib/impact/loader.js required from impact.impact
GET http://example.com/demo/lib/impact/font.js 404 (Not Found)
mygame-baked.js:132    Uncaught Failed to load module impact.font at lib/impact/font.js required from game.main
GET http://example.com/demo/lib/impact/input.js 404 (Not Found)
GET http://example.com/demo/lib/impact/sound.js 404 (Not Found)
mygame-baked.js:132    Uncaught Failed to load module impact.input at lib/impact/input.js required from impact.impact
mygame-baked.js:132    Uncaught Failed to load module impact.sound at lib/impact/sound.js required from impact.impact
GET http://example.com/demo/lib/impact/timer.js 404 (Not Found)
mygame-baked.js:132    Uncaught Failed to load module impact.timer at lib/impact/timer.js required from impact.animation
GET http://example.com/demo/lib/impact/image.js 404 (Not Found)
mygame-baked.js:132    Uncaught Failed to load module impact.image at lib/impact/image.js required from impact.animation

I'm probably doing something stupid, but not sure what it is - any help?

1 decade ago by monkeyArms

I figured out the problem. I used absolute paths for the first two command line arguments, and that seems to cause bake.php to write the impact.js code twice in the file. I had to manually delete the doubled code from the baked file and everything worked.
Page 1 of 1
« first « previous next › last »