How kenyu910645/maplestoryautolevelup works
Project type and purpose
• This is a desktop automation tool (no web server) written in Python for automating gameplay in MapleStory Artale using pure screen‐based Computer Vision (CV).
• It includes multiple command‐line utilities:
• mapleStoryAutoLevelUp.py – main auto‐leveling bot
• routeRecorder.py – custom route recorder
• mob_maker.py – auto‐download monster sprites
• AutoDiceRoller.py – auto‐roller for character creation
• It simulates keyboard input, captures/samples the game window, processes images (OpenCV), and sends keystrokes to the running game.
File structure
• Top‐level scripts: AutoDiceRoller.py, GameWindowCapturor*.py, HealthMonitor.py, KeyBoardController*.py, KeyBoardListener.py, routeRecorder.py, mob_maker.py, mapleStoryAutoLevelUp(.py/_legacy).
• config/: YAML config per map/key bindings + legacy configs
• maps/ & minimaps/: static assets for map recognition
• monster/: per‐monster image assets used for template‐matching
• tools/: helper (e.g., getPixeColorOnImg.py)
• logger.py & util.py: shared utilities
• requirements.txt: dependencies (OpenCV, etc.)
README for additional insights
• Core workflow:
1. Game window (GameWindowCapturor)
2. Detect minimap pattern & player nametag (CV templates from maps/, minimaps/, monster/)
3. Localize player, identify monsters in view
4. Compute movement/attack route (routeRecorder or built‐in patterns)
5. Send keystrokes to game (KeyBoardController)
6. Monitor health (HealthMonitor) and pause/continue (F1/F2)
• Additional utilities: mob_maker.py fetches assets from external API; AutoDiceRoller for dice automation.
Main components & relationships
• User CLI (python mapleStoryAutoLevelUp.py)
• Config Loader (config/*.yaml)
• Screen Capturer (GameWindowCapturor.py / Mac variant)
• CV Detector
• Minimap Detector (minimaps/)
• Nametag Detector (user‐provided name_tag.png)
• Monster Detector (monster/ assets)
• Route Planner (built into mapleStoryAutoLevelUp.py + routeRecorder.py)
• Keyboard Controller (KeyBoardController.py / listener)
• Health Monitor (HealthMonitor.py)
• Logger & Utils (logger.py, util.py)
• Data Assets (maps/, minimaps/, monster/, media/)
• External Services (MapleStory game window; maplestory.io API for mob_maker)
• CLI → Config Loader → CV Detector & Route Planner
• CV Detector → Route Planner → Keyboard Controller → Game Window
• CV Detector → Health Monitor → (pause/control)
• mob_maker CLI → External API → monster/ folder
• routeRecorder CLI ↔ Screen Capturer → saves screenshot & route
c. Architectural patterns / design principles
• Modular design: each concern in its own script/module
• Template‐matching CV pipeline (input: screenshot → detection → output: coordinates)
• Command‐line utilities share common components (utils, logger, config)
d. Key technologies & frameworks
• Python 3.12
• OpenCV 4.x for image processing
• PyAutoGUI or native keyboard hooks for input simulation
• YAML for configuration
• Requests (or urllib) for HTTP in mob_maker.py