(ERROR) Trying love.js

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
bonez001
Prole
Posts: 36
Joined: Wed Sep 14, 2016 8:14 am

(ERROR) Trying love.js

Post by bonez001 »

I am trying the webplayer of love2d which is love.js. I followed the instructions in github. I got an error in the following step:

I tried to run
git submodule update --init --recursive
in GIT,

and it says
fatal: Not a git repository (or any of the parent directories): .git
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: (ERROR) Trying love.js

Post by raidho36 »

Code: Select all

cd /base/directory
git clone https://github.com/TannerRogalsky/love.js.git
cd ./love.js
git submodule update --init --recursive
bonez001
Prole
Posts: 36
Joined: Wed Sep 14, 2016 8:14 am

Re: (ERROR) Trying love.js

Post by bonez001 »

Hello thanks for the reply. I already installed love.js with the modules. And I try to run in the command line:

python C:\Users\pc\love.js\emscripten\tools\file_packager.py game.data --preload C:\Users\pc\Desktop\Example_Game_1\ExampleGame.exe@/ --js-output=game.js


I don't see game.js and game.data.
bonez001
Prole
Posts: 36
Joined: Wed Sep 14, 2016 8:14 am

Re: (ERROR) Trying love.js

Post by bonez001 »

I already saw the game.js and game.data. What to do next?
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: (ERROR) Trying love.js

Post by raidho36 »

Run it in browser. Duh.
bonez001
Prole
Posts: 36
Joined: Wed Sep 14, 2016 8:14 am

Re: (ERROR) Trying love.js

Post by bonez001 »

Hello. I put it in game.js and game.data in emscripten, release-compatibility and release performance folders. It only works in emscripten. What do you think is the problem? I run it in local browser using python as the instructions say.
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: (ERROR) Trying love.js

Post by raidho36 »

Shit man I don't have a god damn clue about love.js workings and here I am helping you out using nothing but README file and some common sense.

The file you produced is the debug version. You're now supposed to navigate to release folder and repeat above step to produce release version.
bonez001
Prole
Posts: 36
Joined: Wed Sep 14, 2016 8:14 am

Re: (ERROR) Trying love.js

Post by bonez001 »

Thanks. I will figure it out. When I run the code, it will give game.js and game.data in other location not in debug folder lol. I don't know why.
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: (ERROR) Trying love.js

Post by raidho36 »

That's how it works. On the second run it produces release version. Read the manual more closely.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 56 guests