Code Monkey home page Code Monkey logo

Comments (3)

imc0 avatar imc0 commented on August 20, 2024

For anyone who may be following this:

When R, G and B are 8 bits each, but the screen is 32 bits per pixel, the system has to add 8 bits of padding. The code here is written to assume those 8 bits are all zero, but it seems that in recent X11 servers this has changed to all 1s. The bot checks this and bombs out, because otherwise it would be working with invalid assumptions.

I've submitted some code in PR#2 which fixes this as a side effect of considering pixels by their colour values rather than as literal sequences of 4 bytes. The purpose of doing that is to let the bot still work if the colours the game uses on your screen are not identical to the ones assumed by the bot (they still have to be very close, though). You can tune this by editing the PIXEL_FUZZ setting - 3 worked well for me.

Unrelatedly, anyone trying to use this bot will probably also need to edit the keypresses that it sends for left and right movement.

from exapunks-hack-match.

fidel-solver avatar fidel-solver commented on August 20, 2024

This should be fixed thanks to @imc0's pull request.

from exapunks-hack-match.

fidel-solver avatar fidel-solver commented on August 20, 2024

Also, @imc0, thanks for pointing out the non-standard controls, i've updated the readme.

from exapunks-hack-match.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.