Run Love at the command line

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
poorenglish
Prole
Posts: 47
Joined: Thu Sep 24, 2009 1:49 pm

Run Love at the command line

Post by poorenglish »

In windows XP
I run the love from command line,I use the demo for test,
error
boot.lua 285:No code to run
Thank you!!!
fail.JPG
fail.JPG (147.3 KiB) Viewed 1827 times
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Run Love at the command line

Post by vrld »

What command did you use to run the example?
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Run Love at the command line

Post by kikito »

It's on the screenshot: love D:\Program Files\LOVE062\demos\no.love

I think the problem is on the space in D:\Program Files.

Try adding apostrophes:

Code: Select all

love  'D:\Program Files\LOVE062\demos\no.love'
Or, better, change to the demos directory and then just do love no.love:

Code: Select all

cd  'D:\Program Files\LOVE062\demos'
love no.love
When I write def I mean function.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Run Love at the command line

Post by Robin »

Try running

Code: Select all

love "D:\Program Files\LOVE062\demos\no.love"
The use of paths with spaces in Windows can be very frustrating. :P

EDIT: oh, kikito summed it up as well.
Help us help you: attach a .love.
poorenglish
Prole
Posts: 47
Joined: Thu Sep 24, 2009 1:49 pm

Re: Run Love at the command line

Post by poorenglish »

OK,thank you;
after add quotation marks on the path,it will be OK.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests