Windows: conf.lua console appears but doesn't work

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
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: Windows: conf.lua console appears but doesn't work

Post by Boolsheet »

As I said, use io.read to get to that input.
Shallow indentations.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Windows: conf.lua console appears but doesn't work

Post by Nixola »

I remember having a similar issue, I had to use love._openConsole() too to have Bartbes' Repler working correctly
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
slime
Solid Snayke
Posts: 3144
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Windows: conf.lua console appears but doesn't work

Post by slime »

t.console = true makes LÖVE call love._openConsole() after requiring main.lua and before love.load/love.run is called.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Windows: conf.lua console appears but doesn't work

Post by Nixola »

Yeah, I noticed I was being stupid as always and requiring Repler (so, calling io.read) before love.load
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
B-Man99
Prole
Posts: 36
Joined: Wed Jul 25, 2012 10:51 pm
Location: Right behind you. I know you looked. Heck, even I looked

Re: Windows: conf.lua console appears but doesn't work

Post by B-Man99 »

T-Bone wrote:You still haven't uploaded a .love containing the code that doesn't work for you. love.conf should be enough.

If you upload it, we can probably tell what's wrong.
Here's your answer:
B-Man99 wrote:I am using Love 0.8.0, the normal one, and I have tried this with everything from my own .love files to Mari0 (stabyourself.net) and Platform Guy (from these forums).
Boolsheet wrote:As I said, use io.read to get to that input.
Thank you. I think I understand now.

slime wrote:t.console = true makes LÖVE call love._openConsole() after requiring main.lua and before love.load/love.run is called.
Okay. Thanks for the explanation

RECAP: My problem, though not fixed, have enough alternatives that I don't need anything else. If you have more info, please tell me about it, but things are good for now. Thanks everyone for all of your help.
User avatar
slime
Solid Snayke
Posts: 3144
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Windows: conf.lua console appears but doesn't work

Post by slime »

In 0.9.0, love._openConsole will be called before main.lua is loaded, so print will behave as expected (except when used in conf.lua).
B-Man99
Prole
Posts: 36
Joined: Wed Jul 25, 2012 10:51 pm
Location: Right behind you. I know you looked. Heck, even I looked

Re: Windows: conf.lua console appears but doesn't work

Post by B-Man99 »

Thanks for the info Slime
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 2 guests