TASEmulators / BizHawk

BizHawk is a multi-system emulator written in C#. BizHawk provides nice features for casual gamers such as full screen, and joypad support in addition to full rerecording and debugging tools for all system cores.
http://tasvideos.org/BizHawk.html
Other
2.06k stars 374 forks source link

[Linux] Problems on drag-and-drop of lua script #3912

Closed pgooch closed 1 month ago

pgooch commented 1 month ago

Summary

I'm trying to get BizHawk and Archipelago working together on linux, specifically trying on the original legend of zelda for NES although I suspect the issues are not core related. I'm running the latest of both programs linux versions and the emulator seems to work fine for playing normally single player. For testing and the bug mentioned here all I wanted to do was get something lua based to work as I hope that if I can get that working the connector will work and everything it fall into place.

Repro

Launch the emulator and select a game (The Legend of Zelda in my case) then drag Input_Display.lua from the BizHawk/Lua/ directory onto the window.

Output

This is the error that's popping up, unfortunately I'm not seeing it in my log and I can't resize or copy it from the window. I'm happy to provide the error in the raw if there is a way to get it.

drag-and-drop-error

Host env.

CasualPokePlayer commented 1 month ago

This is most likely just indicating you don't have lua installed on your system from your package manager. BizHawk 2.9.2-dev would warn you about this and prevent the crash message.

pgooch commented 1 month ago

Lua is installed on the system. When I go to install it I get notified it's already there and simply running lua in a terminal will bring up the lua console.

sudo dnf install lua
...
Last metadata expiration check: 2:17:25 ago on Sat 04 May 2024 06:05:34 PM PDT.
Package lua-5.4.6-5.fc40.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
CasualPokePlayer commented 1 month ago

It's possible in this case you don't have the package containing the shared library version of lua. Some package managers split the standalone lua interpreter and the shared library version of lua as separate packages (e.g. putting the shared library of lua as a liblua package). The standalone interpreter is of course useless for BizHawk, the shared library version is what BizHawk needs. Fedora seems to have a lua-libs package, which seems to have the shared library version of lua, so installing that should suffice?

pgooch commented 1 month ago

I apparently have lua-libs installed already.

pgooch@fedora:~$ sudo dnf install lua-libs
Last metadata expiration check: 0:00:12 ago on Sun 05 May 2024 09:30:35 PM PDT.
Package lua-libs-5.4.6-5.fc40.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
CasualPokePlayer commented 1 month ago

Strange, what does 2.9.2 dev say? (dev builds are linked in readme)

pgooch commented 1 month ago

Works as expected. Thanks, I should have checked that before opening a ticket.

CasualPokePlayer commented 1 month ago

Likely was actually just running into https://github.com/TASEmulators/BizHawk/issues/3678

YoshiRulz commented 1 month ago

Let me know if you get Archipelago working.