Open BusterBeachside opened 2 years ago
Update: I was able to get the game to work by connecting my PC keyboard through the dock (Dunno why I didn't think to do that in the first place). The touch controls are the main issue, of course.
The game also keeps crashing sadly, but I guess that's beyond your control to fix lol. I imagine most games weren't designed with Switch architecture in mind!
Hey, if you're in the process of porting the game, plugging a keyboard was probably a good idea, since you can test stuff without having to dev special handling for the Switch yet. However most features should work out of the box, touch inputs should be mapped to a mouse with SDL2 platform code behind the scenes.
If you're not familliar with switch homebrew development, I suggest checking one of the links in the readme, that should get you a proper dev environment, so you can also check the logs while the app is running to troubleshoot or diagnose your problem more precisely.
I'll leave the issue open while we figure out if what's the nature of your problem and if it's a love-nx problem, if you have any questions you can find me in the RetroNX Discord instead
Super late response, but... Hi! I'm actually not a dev for Panel Attack, but I am a player/mod of the community. I think I'm the only one with access to a modded Switch lol. Do LOVE games often require special case code to run on Switch? Panel Attack is open source and it's available on GitHub in case you wanted to take a look. It's only crashing in-game, it runs for ages if I leave it in menu. I was also able to map the controls to joycons/pro controller once I got to the proper screen for it (I had to use keyboard to actually get there, but I didn't need it after that).
Either way, thanks for the reply. It would be insanely cool to get this game running on Switch for me haha. But I tend to get bad luck running homebrew stuff in general!
Do LOVE games often require special case code to run on Switch?
there's not many instances of LÖVE games being ported to the Switch, but I would say not really no, the only differences are listed in the README and are not significant
However most features should work out of the box, touch inputs should be mapped to a mouse with SDL2 platform code behind the scenes.
Hey, I've noticed this issue as well -- touch inputs are not getting registered as mouse clicks. I can confirm this by using this code:
function love.mousepressed(x, y, button)
error("a")
end
On the Switch, no error appears.
Hi, your app is awesome! I'm impressed with your work porting this framework!
I'm trying to run a game called Panel Attack (Free clone of "Panel de Pon", you can find it at http://panelattack.com/ - Yes, we are still working on getting an https certificate, please don't mind all the security warnings you might get trying to download/run it. 😅).
The game has some keyboard controls by default, but that obviously doesn't work here. However, the menu buttons have touch screen support. This works on the Android version of LOVE just by touching, and on PC you can click. However, on Switch, the touch screen appears to do nothing. Could it be that LOVE's touch controls aren't ported in the homebrew yet? The game lets you configure your input however you want, so if I could just get to that menu I could theoretically configure the controls to the joycon buttons (I assume it will recognize joycon inputs, anyway!), but without touch controls (Or, I guess, a keyboard that can connect to the Switch via USB-C, which I don't own), it looks like I'm not playing this particular game!
I can tell the game is running and not frozen or anything since the arrow on the main menu animates.
Any help would be appreciated. Note: On first run, the game generates a folder which includes a "keys.txt" file where you can define your inputs, so if I knew the button codes for the joycons, I could also theoretically configure the input that way.