Debug - A whole new way of debugging your game

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Debug - A whole new way of debugging your game

Post by Ranguna259 »

OOhh YEAH !!! :crazy:

Finaly someone fixed that, AWESOME :ultrahappy:
setKeyRepeat ? I didn't even knew that that command existed, I think that wasn't fixed because no one really knew how to do it xP

But finally it is FIXED ! Thank you so much man ^^



Changelog
Version 1.2.5 (Not Official) by Eamonn
  • We now have repetitive keyboard behavior, AWESOME
Version 1.2.4 (Not Official) by Ranguna259
  • Added a new functionality that jumps you to the last output in the conole when you provide a command
Version 1.2.3 (Not Official) by Walz.
  • Fixed a font related bug
Version 1.2.2 (Not Official) by Ranguna259
  • Added a new functionality that enables you to jump right to the bottom of the console by pressing the middle mouse button.
Version 1.2.1 (Not Official) by Qcode
  • Fixed some bugs
  • Added a new functionality that autocompletes the variable to the current proposal by pressing tab
Version 1.2 (Not Official) by Qcode
  • Converted to LÖVE 0.8.0
  • Added a new functionality that enables you to change the 'f8' key to what you want by changing the _lovedebugpresskey='the key you want'
Version 1.1.5
  • Added Shift + F8 console opening, the old one still remains (Thank you miko)
  • Everything except for settings (which has its own global table) is now put into the local table _Debug (Thank you tentus)
Version 1.1
  • Fixed the console to be hidden at the start
  • Added _OverlayColor to global settings (see _Settings() for a list of settings) Changed location as of 1.1.5 to _DebugSettings.Settings()
Version 1.0
  • Initial version
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
bekey
Party member
Posts: 255
Joined: Tue Sep 03, 2013 6:27 pm

[]

Post by bekey »

-snip-
Last edited by bekey on Fri Jan 24, 2014 2:14 am, edited 1 time in total.
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Debug - A whole new way of debugging your game

Post by Ranguna259 »

Try putting the very first line of code in the lovedebug to comments (add "--" at the beginning of the line) and try it again.

Code: Select all

love.keyboard.setKeyRepeat(true)
to

Code: Select all

--love.keyboard.setKeyRepeat(true)
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
bekey
Party member
Posts: 255
Joined: Tue Sep 03, 2013 6:27 pm

[]

Post by bekey »

-snip-
Last edited by bekey on Fri Jan 24, 2014 2:14 am, edited 1 time in total.
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Debug - A whole new way of debugging your game

Post by Ranguna259 »

Are you sure it's this console that's causing the problem ? Try removing it and test your game
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
bekey
Party member
Posts: 255
Joined: Tue Sep 03, 2013 6:27 pm

[]

Post by bekey »

-snip-
Last edited by bekey on Fri Jan 24, 2014 2:14 am, edited 1 time in total.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Debug - A whole new way of debugging your game

Post by Robin »

This is fucked up, but I hereby contribute the next version:

Changelog
Version 1.2.6 (Not Official) by Robin
  • Removes keyRepeat, because that shit's evil.
  • Fixes "double click" bug.
  • Fixes indentation.
Version 1.2.5 (Not Official) by Eamonn
  • We now have repetitive keyboard behavior, AWESOME
Version 1.2.4 (Not Official) by Ranguna259
  • Added a new functionality that jumps you to the last output in the conole when you provide a command
Version 1.2.3 (Not Official) by Walz.
  • Fixed a font related bug
Version 1.2.2 (Not Official) by Ranguna259
  • Added a new functionality that enables you to jump right to the bottom of the console by pressing the middle mouse button.
Version 1.2.1 (Not Official) by Qcode
  • Fixed some bugs
  • Added a new functionality that autocompletes the variable to the current proposal by pressing tab
Version 1.2 (Not Official) by Qcode
  • Converted to LÖVE 0.8.0
  • Added a new functionality that enables you to change the 'f8' key to what you want by changing the _lovedebugpresskey='the key you want'
Version 1.1.5
  • Added Shift + F8 console opening, the old one still remains (Thank you miko)
  • Everything except for settings (which has its own global table) is now put into the local table _Debug (Thank you tentus)
Version 1.1
  • Fixed the console to be hidden at the start
  • Added _OverlayColor to global settings (see _Settings() for a list of settings) Changed location as of 1.1.5 to _DebugSettings.Settings()
Version 1.0
  • Initial version
Attachments
lovedebug.lua
(12.66 KiB) Downloaded 103 times
Help us help you: attach a .love.
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Debug - A whole new way of debugging your game

Post by Ranguna259 »

Aww, is it really that evil ? because it's kinda needed, it's a pain the need to repeatedly press the backspace button and the arrow keys

Ah so that was the problem, I wonder what that part of the code was doing there.
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Debug - A whole new way of debugging your game

Post by Robin »

Ranguna259 wrote:Aww, is it really that evil ? because it's kinda needed, it's a pain the need to repeatedly press the backspace button and the arrow keys
You can enable it in the game itself, but it seems like a really bad idea to enable it in lovedebug, because you're gonna get really strange bugs if you depend on keyRepeat being off in your game, without realising it.

If you really want it, you could whip up a simulation of keyRepeat by using love.keyboard.isDown and a timer. That way it won't interfere with the game.
Help us help you: attach a .love.
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Debug - A whole new way of debugging your game

Post by Ranguna259 »

isDown and a timer ? Would that work with the current Debug code ?
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest