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 Gamma

I need some help. I don't know how this happened, but this is the first time that the baking process just stopped on me. I got this error right after entering --> ...tools/./bake.sh

Could not open input file: tools/bake.php

1 decade ago by Joncom

Let&039;s see your #bake.bat file.

1 decade ago by SlotGamer

If the php file is on a web server make sure your folder has the "read" flag set. A php file in an unreadable folder could cause this. Check the flag on the file too.

1 decade ago by Gamma

@Joncom
@echo off

:: Path to impact.js and your game's main .js
SET IMPACT_LIBRARY=lib/impact/impact.js
SET GAME=lib/game/main.js

:: Output file
SET OUTPUT_FILE=game.min.js


:: Change CWD to Impact's base dir and bake!
cd ../
php tools/bake.php %IMPACT_LIBRARY% %GAME% %OUTPUT_FILE%


:: If you dont have the php.exe in your PATH uncomment the
:: following line and point it to your php.exe

::c:/php/php.exe bake.php %IMPACT_LIBRARY% %GAME% %OUTPUT_FILE%

pause


@SlotGamer

I do not know how to do that. I clicked on the files info and it's readable (on the desktop and the computer itself), but how would I check if it was readable on the webserver (Mamp)?

1 decade ago by Joncom

A shot in the dark, but maybe run bake.bat in administrator mode...

1 decade ago by Gamma

Lol I am always on administrator mode. Man..this is weird though. It worked a couple months ago, I baked a little demo and it was fine. Haven't touched it till' last night, and suddenly this happens. It's really weird.

1 decade ago by Joncom

Can you bake other games OK?

1 decade ago by Gamma

Every single game I try to bake I get:

Could not open input file: tools/bake.php

I think SlotGamer is on to something, maybe it's the permissions, but I don't know how to configure these settings.

1 decade ago by Joncom

It should work if you just double click on the bat file.
However if you are running it from the command promt, then make sure you cd to the tools directory before you run it. In other words, do not try running the bat file by typing out the full path to it. Source

1 decade ago by Gamma

It works! Thanks Joncom. I appreciate your help. And thank you as well SlotGamer.
Page 1 of 1
« first « previous next › last »