The alternative is to create a multiplayer bot that directly speaks the network protocol. Mine simply looks for the relevant subtitles when fishing, and use template matching avoid bringing out a full on OCR. Others use audio cues to work. There’s no real simple way to solve the problem there. Unless Mojang manage to make fishing not boring.
- 0 Posts
- 164 Comments
So you don’t mind the orangutans arms?
I’m writing a script that automatically take screenshots of the desktop (in particular the Minecraft game window) and then use OpenCV to do template matching to recognize if I’ve caught a fish or not.
If I use any usual screenshot capabilities of any python library, I simply cannot take pictures fast enough (at least 10 images per second) to have the script work (under Wayland the usual system top out at 2 images per second).
The only way fast enough I’ve found so far is to use Pipewire to create a livestream of the desktop and get frames of it to do the job.
And it is a complex mess. (At least I’ve found a (very basic and badly documented) library to do most of the work instead of having to work it all through Dbus myself.)
It’s just that what once was a single line in my previous X11 script is now a full on script by itself, and I understand almost nothing of it.
I need it to automate fishing in Minecraft, and the normal way to take screenshots in Python (which is one line with PIL) on Linux went from at least 30 possible fps on X11 to 2 on Wayland. The only way to do it fast enough then is to use Pipewire. Which is one hell of a convoluted mess. (The next part of this whole mess will be finding a way to send mouse clicks without having Minecraft registering a mouse move too in case xdotools stop working)
I’m still trying to figure out why the only real way of taking screenshots fast in Wayland is to do a video capture of the desktop with pipewire…
Frenchgeek@lemmy.mlto
news@hexbear.net•Father and son incinerated after ‘self-driving’ Tesla suddenly slammed into treeEnglish
12·6 days agoWorking as designed then…
Frenchgeek@lemmy.mlto
Linux@lemmy.ml•Super slow old Samsung laptop, needs Light weight distro, for SNES games mebbe?
4·6 days agoI think I have a 386DX in storage somewhere…
That’s a bubbler leaking hydrogen while submerged in the oil, and it’s mostly a fancy word for margarine.
He uses them to work on his code and his tan.
Is it the electronics that are giving out, or the keypad itself that is worn down? (I wonder if you could simply hack a new keypad with some switches and perfboard…)
Frenchgeek@lemmy.mlto
Technology@lemmy.world•Nvidia CEO Jensen Huang says ‘I think we’ve achieved AGI’English
16·18 days agoStarted lying at the second word, then.
Frenchgeek@lemmy.mlto
People Twitter@sh.itjust.works•I once saw a blue land on the shoulder of a little girl in a princess costume. That was awesome
2·20 days agoHaving your muscles suddenly contract with all their power can’t be harmless either.
Mine doesn’t have enough electronics to beep. It does have a literal bell, though.
Frenchgeek@lemmy.mlto
Android@lemmy.world•Google is requiring mandatory developer verification for all Android apps in 2026English
19·20 days agoThey’re really working hard at distancing themselves from that “Don’t be evil” motto.
Frenchgeek@lemmy.mlto
politics @lemmy.world•MAGA has been swooning over an Army soldier and her pro-Trump message. She is AI
17·21 days agoShe’s the perfect MAGA woman: She can’t think for herself and only do what you tell her to. But nice of them to normalize playing with dolls for men.
There’s always Luz Noceda.
Frenchgeek@lemmy.mlto
Technology@lemmy.world•Robot dogs priced at $300,000 a piece are now guarding some of the country’s biggest data centersEnglish
7·23 days agoRemove the RAM from it and sell it to the datacenter at a premium.
Frenchgeek@lemmy.mlto
Technology@lemmy.world•Microsoft wants devs to build Electron AI apps on Windows 11, says no need of native code, despite RAM concernsEnglish
6·23 days agoTurns out absolutely everybody hate Windows, including Microsoft.






She got it because that was the only way to get rid of her?