Player (169)
🇯🇵 Japan
Joined: 8/4/2013
Posts: 115
Location: 🇯🇵 Japan
I need to know lua to compare a screenshot png with a game screen. Is bitmap.open(files) the right way to do pngopen? screenshotしたpngをゲーム画面と比べるluaが知りたい pngopenはbitmap.open(files)でいい?
Editor, Player (70)
Joined: 6/22/2005
Posts: 1052
AmaizumiUni wrote:
Is bitmap.open(files) the right way to do pngopen?
I can't find either bitmap.open or pngopen as Lua functions in FCEUX. Where did you find those?
Current Projects: TAS: Wizards & Warriors III.
Player (169)
🇯🇵 Japan
Joined: 8/4/2013
Posts: 115
Location: 🇯🇵 Japan
lua bmp Searched for.
Bigbass
He/Him
Moderator
Location: Midwest
Joined: 2/2/2021
Posts: 233
Location: Midwest
AmaizumiUni wrote:
I need to know lua to compare a screenshot png with a game screen. Is bitmap.open(files) the right way to do pngopen?
Refer to: https://fceux.com/web/help/LuaFunctionsList.html
gui.savescreenshot()
gui.savescreenshotas(string name)
gui.gdscreenshot(bool getemuscreen)
The 3rd function there is probably what you want. Check the docs for details on how it works.
TAS Verifications | Mastodon | Github | Discord: @bigbass
Player (169)
🇯🇵 Japan
Joined: 8/4/2013
Posts: 115
Location: 🇯🇵 Japan
thanks