1 decade ago
by Xatruch
Hi guys, this is my first time baking, everything's seems correct as the php path seems fine and no errors displays but I don't get the game.min.js file.
this is my bake.bat:
@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:/wamp/bin/php/php5.3.9/php.exe %IMPACT_LIBRARY% %GAME% %OUTPUT_FILE%
pause
please help :$
1 decade ago
by dominic
Your call to the
php.exe
is missing the
tools/bake.php
file as first param. Try this:
c:/wamp/bin/php/php5.3.9/php.exe tools/bake.php %IMPACT_LIBRARY% %GAME% %OUTPUT_FILE%
Also, delete this line. If you don't have PHP in your PATH, it wont do anything anyway:
php tools/bake.php %IMPACT_LIBRARY% %GAME% %OUTPUT_FILE%
1 decade ago
by Xatruch
Hey thanks alot! It worked.
I'm having a similar issue with the .bat file:
'C:/xampp/htdocs/xampp/php.exe' is not recognized as an internal or external com
mand, operable program or batch file.
Press any key to continue . . .
@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
:: If you dont have the php.exe in your PATH uncomment the
:: following line and point it to your php.exe
C:/xampp/htdocs/xampp/php.exe tools/bake.php %IMPACT_LIBRARY% %GAME% %OUTPUT_FILE%
pause
Bump.. Could really do with an answer because I need to able to test my demo on my domain.
1 decade ago
by dominic
Well, do you have a file called php.exe
at 'C:/xampp/htdocs/xampp/php.exe'
?
No but when I changed the bat file to read like so:
C:/xampp/php/php.exe tools/bake.php %IMPACT_LIBRARY% %GAME% %OUTPUT_FILE%
I got this error:
Could not open input file: tools/bake.php
Press any key to continue . . .
Still no joy with this. Can't release or demo preview code until i can get past this hurdle.
1 decade ago
by dominic
How do you start the .bat? Where is the
tools/bake.php
? The
cd ../
should still be present.
@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 ../
C:/xampp/php/php.exe tools/bake.php %IMPACT_LIBRARY% %GAME% %OUTPUT_FILE%
pause
This should allow you to just double click the .bat file to bake.
Otherwise,
add PHP to your PATH and use the default bake.bat.
Right I'll give that a go tonight when I get home from work.
Page 1 of 1
« first
« previous
next ›
last »