Post subject: Running Game Boy games in libTAS
Joined: 1/21/2006
Posts: 117
Given a lack of accepted GB emulators native to Linux, I gave this a shot. Happy to report that mGBA works with libTAS, at least with the GUI-less SDL version. It is best to create a new directory and make an empty file "portable.ini" in it, and set the executable path to this directory. It prevents any settings you might have from interfering with TAS'ing the emulator. Small problem: mGBA by default wants to target 59.7275 FPS while libTAS only lets you set whole integer values. It makes games come out with screen tearing and not desirable.... maybe this can be fixed by changing either mGBA settings (creating a config.ini) or changing libTAS settings.
Post subject: Re: Running Game Boy games in libTAS
Masterjun
He/Him
Site Developer, Expert player (2047)
Joined: 10/12/2010
Posts: 1185
Location: Germany
MikeRS wrote:
Small problem: mGBA by default wants to target 59.7275 FPS while libTAS only lets you set whole integer values.
For reference, libTAS lets you set whole integer fractions with a maximum numerator and denominator of 100000. In fact, mGBA actually targets 16777216/280896 FPS, which is the same as 262144/4389 FPS (~59.72750057 FPS), which is still too high for the fields in libTAS. The next closest smaller fraction is 23891/400, or exactly 59.7275 FPS.
Also for reference, lsnes is an accepted GB emulator native to Linux.
Warning: Might glitch to credits I will finish this ACE soon as possible (or will I?)
Post subject: Re: Running Game Boy games in libTAS
Joined: 1/21/2006
Posts: 117
Masterjun wrote:
Also for reference, lsnes is an accepted GB emulator native to Linux.
I looked at it, but it crashes whenever I try to change controller settings... it doesn't look like it's maintained. :( Edit: works fine if I don't try to use a real controller and just bind to the keyboard, but it still smells a bit of rot.
Masterjun
He/Him
Site Developer, Expert player (2047)
Joined: 10/12/2010
Posts: 1185
Location: Germany
Yeah, if software has one bug I also call it not maintained and a bit rotten. You can try to report the bug in the IRC channel #lsnes on Freenode (careful though, IRC existed since 1988, so it should be very rotten by now).
Warning: Might glitch to credits I will finish this ACE soon as possible (or will I?)
Joined: 1/21/2006
Posts: 117
Masterjun wrote:
(careful though, IRC existed since 1988, so it should be very rotten by now).
The problem is not one of age, but a litmus test I use with emulators, basically, "Can I use this to play a game?" and the answer came back with lsnes as "No" -- combined with no apparent public bug tracker, and very sparse commits since 2017, it made me question if it has even been tested given an inability to bind controller buttons.