मुख्य सामग्री पर जाएँ
Skillpedia
टेस्टिंग9.3k · #12285

game-automation

यह क्या करती है

यह स्किल एजेंट को Windows पर चल रहे गेम को नियंत्रित करने देती है, ताकि बदलाव जाँचे जा सकें। यह उन मोडर्स के लिए है जो अंदाज़ा लगाने की बजाय असली गेम में अपना काम जाँचना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप जाँचना चाहें कि कोई मॉड असली गेम में काम करता है।
  • ✓जब बदलाव के बाद आपको गेम विंडो का स्क्रीनशॉट चाहिए।
  • ✓जब आप टेस्ट के दौरान एजेंट से मेनू में घूमना और गेम लॉग पढ़ना चाहें।

Skill का लिंक

https://github.com/rehan-remade/universal-modder/blob/main/.agents/skills/game-automation/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/rehan-remade/universal-modder/blob/main/.agents/skills/game-automation/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरा गेम लॉन्च कीजिए, मुख्य मेनू पर जाइए, स्क्रीनशॉट लीजिए, और बताइए कि क्या मेरे मॉड का टेक्स्ट दिखाई दे रहा है।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट गेम शुरू करता है, उसे एक तय विंडो आकार पर सेट करता है, और स्क्रीनशॉट, क्लिक, कुंजी दबाने और लॉग पढ़ने से कार्य करता है और देखता है। वह स्क्रिप्ट वाला टेस्ट दृश्य भी चला सकता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Game automation: the agent's hands and eyes

The real game is the oracle. The loop is launch → navigate → set up the scene → act → screenshot and read logs → decide. Build it once per game, then every change you make can be checked in a minute.

Windows (native or from WSL): um win

um win setup                                   # once: PowerShell tools + an ffmpeg with gfxcapture, picks NVENC/AMF/QSV/x264
um win ps                                      # windowed processes: pid, name, title
um win launch --steam 105600                   # or: um win launch "C:\Games\Foo\Foo.exe" -- -windowed
um win shot --exe Terraria.exe shot.png --scale 0.33   # full frame + a 1/3 copy that's cheap to look at
um win drive --proc Terraria "focus" "click 640 360" "key 0x1B" "type hello" "hold 0x44 1500"
um win drive --proc Terraria "hold 0x20 150" "sleep 200" "hold 0x20 150"   # sleep <ms> pauses between steps
um win drive --proc Terraria idle              # seconds since the user last touched mouse/keyboard (does not wait)
um win kill <pid>                              # exact PID only
um win reg get "HKCU\Software\..."             # registry (reg set backs the key up first)

From Python (for longer scripts), from um.win import Drive, shot, Recorder, then d = Drive("AoE2DE_s"), d.focus(), d.click(x, y), d.key("0x0D").

WinDrive commands (um/ps1/WinDrive.ps1; stdin protocol, one reply per line). Coordinates are in the game window's client area.

  • Mouse: move x y, click x y [right], mdown/mup, drag x0 y0 x1 y1, rel dx dy (FPS cameras / raw input), wheel 120.
  • Keyboard: key <vk> [tap|down|up], hold <vk> <ms>, type <text>, scanmode on (DirectInput / raw-input games that ignore virtual-key events).
  • Window: focus, rect, size <w> <h> (sets the client size), title, fg, idle, untop.
  • Timing: sleep <ms> waits between steps in one call. Each um win drive call starts PowerShell (1-2 s), so put timed combos in one call.
  • Virtual-key codes: Esc 0x1B, Enter 0x0D, Space 0x20, W/A/S/D 0x57/0x41/0x53/0x44, F1 0x70, Shift 0x10, Ctrl 0x11, arrows 0x25-0x28.

Rules of the road

  • Never focus a game with an online mode while the human is typing. It happened with GTA V: the agent focused GTA to click Story Mode, the human's keystrokes hit GTA's landing page, and GTA warned about "accessing GTA Online servers with an altered version". ScriptHookV blocked it; don't rely on that. Check idle, ask the human to click, and launch with the anti-cheat off so online can't start. See knowledge/techniques/driving-real-games-safely.md.
  • Input only goes to the game. WinDrive refuses to send while another app is in the foreground. The one exception is when nothing is and the cursor is over the game, which windowed games cause by dropping the foreground on clicks.
  • The user may be at the PC. If idle is under a minute, ask before driving, and keep sessions short. Unattended runs are fine once the user says so.
  • Screenshots cost tokens. Look at --scale 0.33 copies. Multiply coordinates back ×3 for clicks, and keep a table of menu click points in MODLOG.md, measured once.
  • Why gfxcapture: GPU-rendered games come out black with GDI capture. gfxcapture (Windows.Graphics.Capture) grabs one window's real frames, even when covered. It can't capture minimized windows.
  • HDR displays: with Windows Auto HDR on for an SDR game, captures come out washed out (2-3x brighter, cyan-shifted), so colours can't be judged. um win shot/record warn when it's on; turn it off for the game while capturing (Settings > System > Display > Graphics > the game > Auto HDR), and back on after if the user wants.

Make the window predictable

  • Windowed mode at a fixed client size. Every game hides this setting somewhere:
    • an ini ([/Script/Engine.GameUserSettings] in UE GameUserSettings.ini, Unity's Screenmanager Fullscreen mode / Resolution registry values under HKCU\Software\<company>\<product>);
    • a launch flag (-windowed -w 1920 -h 1080, Unity -screen-fullscreen 0 -screen-width 1920 -screen-height 1080, Source -sw -w 1920 -h 1080);
    • or the game's own registry (AoE2: Mode Display 0 + Windowed Width/Height).
    • um win drive --proc X "size 1920 1080" also resizes most windowed games.
  • Skip intros: launch flags (-skipintro, -nosplash, Unity -popupwindow), or delete/rename intro videos in a **
अक्सर पूछे जाने वाले सवाल

यह किन सिस्टम पर काम करती है?

यह Windows के लिए लिखी गई है, जिसमें एजेंट WSL से चलने पर भी शामिल है।

क्या यह गेम प्रक्रिया बंद कर सकती है?

हाँ, लेकिन सिर्फ़ उसी प्रोसेस ID को जो इसने शुरू की, उस नाम की दूसरी सभी प्रक्रियाओं को नहीं।

क्या यह गेम के लॉग पढ़ती है?

हाँ। लॉग पढ़ना उन चरणों में से एक है जिनसे जाँचा जाता है कि गेम ने क्या किया।

जानकारी

लेखक का मूल विवरण

Launch, see and drive a real game so an agent can test its own mods. Covers launching via Steam or the exe, windowed mode at a fixed size, screenshots of the game window (GPU-safe capture), clicking and typing into menus, holding keys, relative mouse, crash-reporter cleanup, killing by PID, reading logs, scripted test scenes, and an in-game JSON bridge that lets an agent observe and act. Windows-first (also from WSL), with notes for Linux and macOS. Use when a mod must be verified in game, when navigating menus automatically, or when building a repeatable test or demo scene.

repo: rehan-remade/universal-modder

लोकप्रियता

GitHub स्टार
9.3k
रैंकिंग में स्थान
#12285
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

asset-pipeline

9.3k

आपके एजेंट को बनाई गई या हाथ से बनाई कला को ठीक उसी आकार, फ़्रेम लेआउट, पैलेट और फ़ाइल फ़ॉर्मेट में बदलने में मदद करती है, जो गेम इंजन लोड करता है।

डिज़ाइनइमेज और आइकन

blitz3d-decomp

9.3k

आपके एजेंट को Blitz3D गेम को पढ़ने योग्य सोर्स में बदलने और उसे किसी दूसरे इंजन में पोर्ट करने की योजना बनाने में मदद करती है, मूल गेम को संदर्भ के रूप में रखते हुए।

कोडिंगसामान्य कोडिंग

fal-assets

9.3k

आपके एजेंट को fal.ai से गेम कला, ध्वनि प्रभाव, संगीत और 3D मॉडल बनाने में मदद करती है, स्प्राइट और टेक्सचर से लेकर वॉइस लाइन और वीडियो तक।

डिज़ाइनइमेज और आइकन

game-recon

9.3k

आपके एजेंट को इंस्टॉल किया गया गेम खोजने और यह पता लगाने में मदद करती है कि उसे कैसे मॉड किया जा सकता है, जिसमें इंजन, वर्ज़न, anti-cheat, सेव और कम्युनिटी मॉडिंग रास्ता शामिल हैं।

कोडिंगसामान्य कोडिंग

मिलती-जुलती skills