itch.iohttp://itch.iohttps://itch.io/t/4196033/support-for-additional-game-controllersSupport for additional game controllershttps://itch.io/t/4196033/support-for-additional-game-controllersSun, 13 Oct 2024 19:42:27 GMTSun, 13 Oct 2024 19:42:27 GMTSun, 13 Oct 2024 19:42:27 GMTSDL doesn’t recognize my controller natively, but SDL_GameControllerDB has it in its database. I unzipped the .love file and patched in support for the database. Then I dropped gamecontrollerdb.txt into the unpack directory, and my controller worked! My patch is below.

diff --git a/core/init.lua b/core/init.lua
index c7de670..cd22d73 100644
--- a/core/init.lua
+++ b/core/init.lua
@@ -40,6 +40,7 @@ end
 
 function api:load_globals()
 	-- prepares the global namespace ofc
+	love.joystick.loadGamepadMappings("gamecontrollerdb.txt")
 	input = require("libs.boipushy")() -- now with sequences??
 	class = require("libs.classic")
 	lume = require("libs.lume")

It would be great to have this supported by the game natively. This will cause an error if the file doesn’t exist, so a little more engineering would be required. Maybe the game could ship with the file included; LOVE would still automatically allow overriding/updating it by dropping a replacement into the user’s data directory. Or a simple file existence check would be fine.

]]>
https://itch.io/t/2317451/love-version.love versionhttps://itch.io/t/2317451/love-versionMon, 22 Aug 2022 15:58:36 GMTMon, 22 Aug 2022 15:58:36 GMTMon, 22 Aug 2022 15:58:36 GMTI would like a version to run with the love program

]]>
https://itch.io/t/2073605/error-when-entering-passwordError when entering passwordhttps://itch.io/t/2073605/error-when-entering-passwordTue, 26 Apr 2022 08:06:21 GMTTue, 26 Apr 2022 08:06:21 GMTTue, 26 Apr 2022 08:06:21 GMTHi. It's been a pretty enjoyable game so far but I did hit a glitch. The game crashed when trying to enter a password and spit up the following text.


Error

core/init.lua:585: attempt to call a nil value

Traceback

core/init.lua:585: in function 'adjust_difficulty'

scripts/load_passcodes.lua:581: in function 'process_password'

states/passcode_screen.lua:246: in function 'submit_passcode'

states/passcode_screen.lua:96: in function 'update'

core/init.lua:988: in function <core/init.lua:984>

libs/boipushy.lua:79: in function 'update'

[C]: in function 'xpcall'

]]>