Automate your ZZZ (Zenless Zone Zero) UID reservation process with precision and reliability.
Key Features • Prerequisites • Installation • Configuration • Usage • Logging • Troubleshooting • FAQ • Contributing • License
- 🚀 Automated Python installation and environment setup
- 🔐 Secure integration with OpenAI API for enhanced functionality
- 🖼️ Advanced image recognition for UI navigation
- ⏰ Scheduled execution for precise timing
- 🔄 Automatic updates and maintenance
- 📊 Comprehensive logging system for debugging and analysis
Before proceeding, ensure you have:
- Windows 10 or later
- PowerShell 5.1 or later
- Stable internet connection
- 100GB+ free disk space
- miHoYo Launcher installed at
C:\Program Files\miHoYo Launcher
-
Clone the Repository
git clone https://github.com/shuakami/zzz-uid-script.git cd zzz-uid-script
-
Install Python Run as Administrator:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass Y .\JS\InstallPython311.ps1
-
Set Up Environment (Optional for Scheduled Execution) For automatic execution on July 4th at 7 AM:
.\JS\SetLive.ps1
-
Edit
config.py
:# OpenAI API Configuration OPENAI_API_KEY = "your_openai_api_key" OPENAI_API_URL = "https://api.openai.com/v1/chat/completions" # Logging Configuration LOG_FILE = "auto_uid_grabber.log" LOG_LEVEL = "INFO"
-
Important: Before running, enter your account credentials in
/password/default.txt
:account,password
If SetLive.ps1
was run, the script will execute automatically on July 4th at 7 AM.
To run manually:
- Open PowerShell as Administrator
- Navigate to the script directory
- Execute:
python start_ocr.py
The script generates several log files for monitoring and troubleshooting:
game-main.log
: Core UID reservation component logsgame_login.log
: Logs fromstart_ocr.py
login.log
: Authentication process logsinstall.log
: Installation process logs
If you encounter issues:
- Check the relevant log files in the script directory.
- Ensure all prerequisites are met.
- Verify your internet connection.
- Confirm your OpenAI API key is correctly set in
config.py
.
Common issues:
- Script fails to start: Run PowerShell as Administrator.
- Image recognition issues: Verify screenshots in the
dist
folder match your launcher's appearance. - API errors: Check your OpenAI API key and internet connection.
Q: Is this script compatible with macOS or Linux? A: Currently, it's designed for Windows only due to miHoYo Launcher integration.
Q: Is using my OpenAI API key in the script safe?
A: Yes, but never share your config.py
or API key. The script uses the key locally on your machine.
Q: Does this script guarantee a UID? A: While it automates the process, success isn't guaranteed due to server limitations and high demand.
Q: Can I modify the execution schedule?
A: Yes, by editing SetLive.ps1
. Ensure compliance with official guidelines regarding the UID reservation process.
We welcome contributions to the ZZZ UID Auto-Reservation Script! Here's how:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Please adhere to the project's coding standards and include appropriate tests.
This project is licensed under a custom MIT License - see the LICENSE.md file for details.
Important: Commercial use is strictly prohibited. This software is for personal use only.
Scraping or copying this repository by https://gitcode.com/ (GitCode) or any other unauthorized entities is strictly prohibited.
- Image Disclaimer: The banner image used in this project contains material from Zenless Zone Zero, which is the property of miHoYo/HoYoverse. This image is used for illustrative purposes only, under fair use for educational and non-commercial purposes. We claim no ownership of the original artwork and will remove it immediately upon request from the copyright holder.
-
This script is not affiliated with miHoYo, nor is it endorsed or sponsored by miHoYo. Use this script at your own risk and ensure compliance with all applicable service terms.
-
This script is intended for educational and research purposes only. Users must assume all risks associated with its use. The script developers and all related parties are not responsible for any direct or indirect losses that may result from the use of this script.
-
This script is not affiliated with miHoYo or any other game developers, nor has it been approved or authorized by them. Using this script may violate the game's terms of service and could lead to penalties such as account suspension. Users must bear all related risks.
-
The script does not guarantee successful UID booking or any specific outcomes. Its functionality may be compromised by updates to the game, changes in servers, and other factors. The developers do not commit to providing timely updates or maintenance.
-
The use of this script for commercial purposes is strictly prohibited. It may not be sold, rented, transferred, or used for profit in any way.
-
To the maximum extent permitted by law, the developers disclaim any liability for any losses, including but not limited to: data loss, account suspension, property damage, or reputational harm.
-
If you do not agree with any part of this agreement, please stop using this script immediately and delete all related files.
This ZZZ (Zenless) UID Auto-Reservation Script (the "Script") is provided "as is" and "as available", without any representations or warranties of any kind, either express or implied. The developer, Shuakami, and all associated parties:
- Make no representations or warranties in relation to the Script or its functionality.
- Do not guarantee the accuracy, timeliness, performance, completeness, or suitability of the Script for any purpose.
- Are not responsible for any errors or omissions in the content of the Script.
- Are not liable for any direct, indirect, consequential, or incidental damages arising from the use or inability to use the Script.
- Are not responsible for any actions taken by miHoYo or any other third party in response to the use of this Script.
- Do not guarantee the availability or continuity of the OpenAI API or any other third-party services used by the Script.
By using this Script, you acknowledge and agree that:
- You use the Script at your own risk and discretion.
- You are solely responsible for any consequences that may arise from your use of the Script.
- You will comply with all applicable laws and regulations in your use of the Script.
- You will not use the Script for any illegal, unethical, or unauthorized purposes.
- You will not attempt to reverse engineer, modify, or distribute the Script without explicit permission.
- You ensure that this script will not be used for any activities that violate the game's terms of service, including but not limited to cheating and automation.
- You must confirm that you have read and understood the game’s terms of service before using the script and agree to use the script within a legal framework.
- Using this script signifies that you have fully understood and agreed to all relevant legal regulations and the game’s terms of service.
The developers reserve the right to modify, suspend, or discontinue the Script at any time without notice. This disclaimer may be updated from time to time without prior notice.
Developed with ❤️ by Shuakami
Library Name | Description | Link |
---|---|---|
os | File and directory operations | os |
sys | Access Python interpreter variables | sys |
time | Access and conversions for time | time |
subprocess | Running external programs | subprocess |
traceback | Track exception information | traceback |
random | Generate random numbers | random |
threading | Multithreading programming | threading |
logging | Logging functionality | logging |
requests | HTTP library for making requests | requests |
urllib.request | URL handling module | urllib.request |
cv2 (OpenCV) | Computer vision library | OpenCV |
PIL (Pillow) | Image processing library | Pillow |
numpy | Large array processing and computations | numpy |
pytesseract | Python interface to Tesseract OCR | pytesseract |
paddleocr | OCR tools based on PaddlePaddle | PaddleOCR |
pyautogui | GUI automation | pyautogui |
keyboard | Keyboard events listening and handling | keyboard |
pygetwindow | Window management | PyGetWindow |
json | JSON encoding and decoding | json |
re | Regular expression operations | re |
atexit | Cleanup actions on program exit | atexit |
importlib.util | Dynamic module loading | importlib.util |
zipfile | ZIP file manipulation | zipfile |
psutil | System monitoring | psutil |
logging.handlers | Handling for logging | logging.handlers |
This repository will be archived on July 4, 2024, at 02:00 UTC.