This Instant And Moment - 2025!

I heard a woman screaming at the top of her lungs just before 6am. I jump out of bed and don a dressing gown to cover my manhood and tentatively head outside to see what's going on. I work out it is round the corner and proceed, only pausing when I hear something which might be words. I get round the corner and it stops suddenly but realise it is several hundred meters away. I decide to head back home, get dressed and go for a walk that way. I hear nothing as I walk further then it could have possibly been so head back.


Walking back I hear a woman scream get the [word] out of my [word for donkey]. Fearing the worst I head for the business car park I could hear it from. I get to the entrance and see a woman on her phone who starts screaming about pigs running around her house and other illegible words.
 
TBH it doesn't sound like it knows how complicated Balatro is, there's 20 things to read on screen at a time :P
I dont't think I realised how retarded chatgpt is either...


it doesn't seem able to grasp the big picture and forgets to tell you about things needed..

takes like 10 mins to rebuild the docker everytime...
latest one was

The error ImportError: libGL.so.1: cannot open shared object file occurs because OpenCV requires the OpenGL library (libGL.so.1), but it is missing in your Docker image. This is a common issue when using OpenCV in a minimal environment like Docker.
it's like me telling you how to paint a wall, but forgetting you need a brush.

such a common issue that chatgpt just overlooks it..


Chatgpt is convinced we can do it..

Yes, we can absolutely make this work! Creating an AI that interacts with a PC game like Belatro, trains in real time, and automates interactions is a complex but achievable project. It involves breaking the problem into smaller, manageable pieces and ensuring the system is robust at each stage.


Key Challenges and Solutions

1. Virtual Display Setup (Xvfb)

  • Challenge: Running a GUI-based Python library like pyautogui inside a headless Docker container.
  • Solution: We've already incorporated Xvfb in your Docker setup. Ensuring DISPLAY=:99 and proper installation of dependencies (xvfb, tkinter, etc.) will resolve the environment issues.

2. Interaction with Game Window

  • Challenge: Accurately detecting and interacting with game elements (e.g., cards, buttons).
  • Solution:
    • Use OpenCV for template matching or object detection to locate interactive elements dynamically.
    • Integrate Tesseract OCR to read game states (e.g., scores, "Game Over").
    • Define a dynamic action space so the model learns to interact with detected elements.

3. Reward Function

  • Challenge: Designing a reward function that effectively trains the model to maximize its score.
  • Solution:
    • Use OCR to extract scores and tie rewards to higher scores.
    • Penalize or end the episode on invalid actions or game over states.

4. Real-Time Training

  • Challenge: Training the AI to learn how to play the game in real-time while interacting with the environment.
  • Solution:
    • Use Deep Q-Learning (DQN) for reinforcement learning, implemented with libraries like stable-baselines3.
    • Set up the training loop to reset the environment automatically when the game ends.

5. Docker Build Optimization

  • Challenge: Slow Docker builds due to frequent downloads and invalidated cache.
  • Solution:
    • Optimize the Dockerfile by caching layers properly (e.g., copying requirements.txt separately).
    • Use a pre-built base image if dependencies are stable.

Proposed Plan

Step 1: Debug and Finalize Environment Setup

  • Ensure pyautogui, Xvfb, and DISPLAY are working inside Docker.
  • Test with a simple script to confirm:
    • The game window is detected.
    • Screenshots are captured correctly.
    • Interaction with the game (e.g., clicking buttons) works as expected.

Step 2: Implement and Test Game Interaction

  • Use OpenCV to detect cards and buttons.
  • Use Tesseract OCR to extract game states like scores or "Game Over".
  • Visualize and debug detections using OpenCV (e.g., draw bounding boxes).

Step 3: Train the AI

  • Implement the BelatroEnv environment with a dynamic action space and reward function.
  • Use DQN from stable-baselines3 to train the model in real-time.
  • Test with small episodes to ensure the model is learning effectively.

Step 4: Evaluate and Iterate

  • Evaluate the AI's performance after training.
  • Refine detection logic, reward function, and action mapping as needed.

Reassurance

We’ve already tackled many foundational aspects of the project:

  • Environment Setup: Using Xvfb to run GUI applications in a headless environment.
  • Game Interaction: Building logic for detecting buttons, reading scores, and restarting the game.
  • Training Framework: Incorporating DQN for real-time learning.
The remaining tasks involve refining these components and ensuring they work seamlessly together.
yes I spelt Balatro wrong... thankfully I noticed so the model isn't trying to detect the wrong window...


I'm still having to add stuff to the docker file as dependencies :/ that chat gpt keeps forgetting.

When I finally get it to actually run it;s going to be as dumb as a brick and have to luck it's way to progress
 
Last edited:
Morning didn't disappoint.
Was solid fog at midnight. Couldnt see 5 foot!
unjzc91.jpeg
 
Last edited:
you should buy a drone :P costco are selling mini4pro for 550 again.

you can get some sick photos/panoramas or just have it active track whilst you walk/climb
 
Last edited:
I heard a woman screaming at the top of her lungs just before 6am. I jump out of bed and don a dressing gown to cover my manhood and tentatively head outside to see what's going on. I work out it is round the corner and proceed, only pausing when I hear something which might be words. I get round the corner and it stops suddenly but realise it is several hundred meters away. I decide to head back home, get dressed and go for a walk that way. I hear nothing as I walk further then it could have possibly been so head back.


Walking back I hear a woman scream get the [word] out of my [word for donkey]. Fearing the worst I head for the business car park I could hear it from. I get to the entrance and see a woman on her phone who starts screaming about pigs running around her house and other illegible words.
Wut? Was she on the drugs or drunk or something?
 
Wut? Was she on the drugs or drunk or something?

Not sure. I think the police has raided her house from the 'pig' statement? But jesus her screaming sounded horrific, I honestly thought I was going to find her being raped. I'd post the cctv clip of me heading outside but think a Don would need to pre-approve it...
 
Last edited:
Back
Top Bottom