Love Console

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.
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Love Console

Post by tentus »

Is there a way to attach a console to love, after conf has been called? Like a love._console = true or something? I would like to make the debugging console in my game an option that gets determined by the game's config, rather than something hardwired for everyone.
Kurosuke needs beta testers
User avatar
thelinx
The Strongest
Posts: 857
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

Re: Love Console

Post by thelinx »

debug.debug()
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: Love Console

Post by tentus »

Thats... not it (sorry, I can't think of a polite way to say that). I want to control the condition that debug is dependent on (whether or not a console is already bound).

It's not that I want to enter anything in the console, I want to be able to see everything that led up to a crash. That means I need a console, but I don't want to have everyone else testing the game getting inundated with excess information they shouldn't need to even think about.
Last edited by tentus on Thu Jan 20, 2011 5:44 pm, edited 1 time in total.
Kurosuke needs beta testers
User avatar
thelinx
The Strongest
Posts: 857
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

Re: Love Console

Post by thelinx »

You can't open a console after love.conf has been called.

You can however launch LÖVE from the command prompt, but that's as far as you get.
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: Love Console

Post by tentus »

That's quite unfortunate. I guess I'll just have to keep a spare copy of conf around for when I share my game.
Kurosuke needs beta testers
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Love Console

Post by bartbes »

There is a function there, but it's undocumented for a reason. What you could do though, is simply use the command line argument to love. IIRC it's -console. (so love -console game.love)
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Love Console

Post by Robin »

bartbes wrote:There is a function there, but it's undocumented for a reason. What you could do though, is simply use the command line argument to love. IIRC it's -console. (so love -console game.love)
Two hyphens, right?
Help us help you: attach a .love.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Love Console

Post by BlackBulletIV »

Yeah, two hyphens. I tested it. Although on Mac nothing happens (I did see some console thing in the source for Windows only, so that's probably it).
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Love Console

Post by Robin »

BlackBulletIV wrote:Although on Mac nothing happens (I did see some console thing in the source for Windows only, so that's probably it).
Mac is unix, and on unix you just run LÖVE in a terminal window.
Help us help you: attach a .love.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Love Console

Post by BlackBulletIV »

Yeah, that's just what I did. So Windows users can't run it from the command line?
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests