Hey, there. Been awhile since I was around here.
I'm looking into Lua and Love again, and I've got Zerobrane for an IDE. I've got a basic script running to print text to ZB's console, but it only does that after the program exits. I've made an exception in the firewall and tried redirecting the output in the console in the user preferences lua file; no effect there. Any ideas? Stopping and restarting the debug server doesn't work, either.
Can't Print To Output During Gameplay with Zerobrane
Can't Print To Output During Gameplay with Zerobrane
Check out my game development progress on Twitter.
Re: Can't Print To Output During Gameplay with Zerobrane
Löve2D has buffered output so it doesn't lag bc of it, but you can turn it off:
Code: Select all
io.stdout:setvbuf("no")
Re: Can't Print To Output During Gameplay with Zerobrane
Thanks for the tip, that was it.
Check out my game development progress on Twitter.
-
- Party member
- Posts: 227
- Joined: Thu Jun 28, 2012 8:46 pm
Re: Can't Print To Output During Gameplay with Zerobrane
@SolarLune, that's the right advice; I added this to the FAQ for ZBS: http://studio.zerobrane.com/doc-faq.htm ... put-window
Re: Can't Print To Output During Gameplay with Zerobrane
this hasnt worked for me
where do you place this ?
where do you place this ?
Re: Can't Print To Output During Gameplay with Zerobrane
Wherever, but usually atop main.luazell2002 wrote:this hasnt worked for me
where do you place this ?
Who is online
Users browsing this forum: No registered users and 6 guests