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 Donzo

Hi.

I'm trying to bake on Windows XP
using the bake.dos file.

I'm receiving the following error immediately
after executing:

'php' is not recognized as an internal or external command, operable program, or batch file.

What am I doing incorrectly?

1 decade ago by flashingpumpkin

You'll need to install PHP. You can get PHP from http://php.net/

1 decade ago by Donzo

Oh...
Of course.

Thanks!

1 decade ago by tarrent

If PHP is installed and this error still occurs, php.exe might not be in the global environment. Try adding it in the global environment or edit the bake.bat. For example when using xampp in windows, and working directory is in E:\xampp\htdocs\peashooter

@echo off
cd e:\
cd xampp
cd php
set path=%PATH%;%CD%
setx path "%PATH%"

cd E:\xampp\htdocs\mobilegames\impact\peashooter\tools

:: 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
Page 1 of 1
« first « previous next › last »