Closed SiENcE closed 10 years ago
It worked here if you run "grunt --force". Although I can't play the examples for whatever reason. This was my output: http://puu.sh/8Wzmd.png
I haven't had a chance to try this on Windows yet but I will soon. In the meantime, it looks like this is just because of the notation I use for the distil commands. Maybe this fix I just pushed will fix it: 7fe548b44d826a62920543b70e5542146063c91d
SiENcE, a temporary fix for this is running the following commands yourself (assuming you are inside the punchdrunk folder):
node_modules/moonshine/bin/moonshine distil -d lua lua node_modules/moonshine/bin/moonshine distil -o js/boot.lua.json js/boot.lua node_modules/moonshine/bin/moonshine distil -d examples examples
and then running grunt --force.
Sorry but it's not useable at the moment with Windows. I can't execute the 'moonshine' shellscript in normal windows commandline. Cygwin has no NodeJS packet and when I try to install NodeJS manually in cygwin, it can't find OpenSSL.
By only running 'grunt --force' webserver gets up, but samples don't work.
So i would appreciate a windows howto (incl. cygwin or wingw for executing the shellscripts).
I use the Git Bash (by installing git on windows) and it works fine. Maybe try that?
Hey, this should be solved as of this commit: ff309471ab2ea5961a53fa1dbd61023b238d563b
I've just made moonshine
a global dependency and Windows seems happy with that. All the commands should work across Windows, OS X and Linux now.
FYI, the distillery can be included into your Node script directly, using require
. See the CLI code for details.
Of course, that in turn executes luac
as a shell script so you may be no better off.
Got it working without cygwin (cygwin does not work because npm is not available!).
Everything can be done via normal windows shell. What you have todo is this.
1.) grab lastest nodejs (64bit) MSI.
Install nodejs MSI
add to SYSTEM PATH"c:\Program Files\nodejs;" add add to USER PATH "C:\Users{USERNAME}\AppData\Roaming\npm"
2.) Install top-level dependencies: npm install grunt-cli moonshine -g
3.) Install git and get punchdrunk.
git clone https://github.com/TannerRogalsky/punchdrunk.git
cd punchdrunk
Install the project dependencies:
npm install
4.) Get Lua 5.1 and install Lua it to:
"c:\Program Files (x86)\Lua5.1\"
and add folder to USERs PATH
Hint: You need to name the executables "lua.exe and luac.exe".
5.) go back into punchdrunk folder and
run grunt
will watch and compile the source as well as run a simple web server on port 8000.
6.) Open localhost:8000 in your browser.
Hey,
i get this when i try to run 'grunt'. I followed your instructions. I also installed Lua and set it to the PATH in System Environment Variables.
-- snip -- d:\punchdrunk>grunt Running "coffee:app" (coffee) task
Running "shell:distil_game" (shell) task Der Befehl "." ist entweder falsch geschrieben oder konnte nicht gefunden werden. Warning: Command failed: Der Befehl "." ist entweder falsch geschrieben oder konnte nicht gefunden werden. Use --force to continue.
Aborted due to warnings.