如何在 Moonlighter 中作弊?你可以手動將 Cheat Engine 附加到遊戲執行檔,掃描變化的數值,例如在地城探險時威爾(Will)的當前生命值,或成功販售後商店的總金幣數。然而,由於遊戲更新經常會導致 Cheat Engine 表格(.CT 檔案)失效,最安全簡便的替代方案是使用像 XMODhub 這樣會自動更新的 mod 管理器,它提供一鍵式 cheats 功能,無需繁瑣的記憶體掃描。
[編輯註] 我懂。我們一開始玩 Moonlighter 都想著要完全靠實力。但當你第15次死於 Golem King 或令人沮喪的 Tech Dungeon 頭目,或是花費數小時 grinding for Empowered Crystals 和稀有 Golem Cores 後,樂趣就消失了。我玩 Cheat Engine 多年,試圖為這款遊戲的當前 patch 找出精確的 memory values 幾乎讓我抓狂。今天,我將向你展示如果你想挑戰技術難度,如何手動 hack 這些 values——但我也會分享我實際用來省心的一鍵 shortcut。
你可能也會喜歡: 《Moonlighter》終極控制台指令與 Cheats 攻略
📋 目錄
1. 如何手動使用 Cheat Engine 玩《Moonlighter》
如果你想走 old-school 路線,自己尋找 memory addresses,以下是專為這款遊戲量身打造的基本「First Scan/Next Scan」方法。
Moonlighter 是一款融合了 shop management 和 rogue-lite dungeon crawling 的迷人 hybrid 遊戲。由於 gameplay loop 嚴格分為兩個不同 phases——白天在 Rynoka 鎮 managing 你的 shop,晚上則 diving into the Golem, Forest, Desert, and Tech dungeons——你的 memory scanning 方法必須 adapt to the current phase。玩家最 common 且 impactful 想 modify 的 value 是他們的 total Gold。Gold 在 Moonlighter 中 dictates everything,從在 Blacksmith 升級你的 gear 到 expanding 你的 shop’s floor space。
以下是使用 manual memory scanning,在 Moonlighter 中 isolate 和 modify 你的 Gold value 的精確分步 methodology:
步驟 1:Hooking the Executable 和 Setting Up the Scan
首先,launch Moonlighter 並 load into 你的 save game。確保你的 character Will 安全地 standing inside 你的 shop in Rynoka。Pause the game 並 launch Cheat Engine。Click the glowing computer monitor icon in the top-left corner of the Cheat Engine interface to open the process list。Scroll through the active processes until you find Moonlighter.exe 並 click 「Open」。因為 Gold in Moonlighter is stored as a whole number without decimals,你必須 set the 「Value Type」 dropdown in Cheat Engine to 「4 Bytes」。Set the 「Scan Type」 to 「Exact Value」。
步驟 2:Performing the Initial First Scan
Look at your current Gold counter in the top corner of the screen。Let’s assume you currently have exactly 1,450 Gold。Type 1450 into the 「Value」 text box in Cheat Engine and hit the 「First Scan」 button。Cheat Engine will now comb through your computer’s RAM and likely return thousands of different memory addresses that currently hold the value of 1450。Do not touch any of these addresses yet; you need to filter them down to the single address that actually controls your shop’s bank account。
步驟 3:Forcing the Value to Change In-Game
Return to Moonlighter and progress the gameplay loop to force your Gold value to change。The easiest way to do this is to open your shop for the day。Place a cheap item on the display table—like a Vine or a Root from the Golem dungeon—set a reasonable price, and wait for a customer to purchase it。Once the customer pays and your Gold increases (for example, from 1,450 to 1,465), immediately pause Moonlighter。It is crucial that you pause the game so the value does not fluctuate while you are scanning。
步驟 4:Executing the Next Scan to Filter Addresses
Tab back over to Cheat Engine。In the 「Value」 text box, delete your old number and type in your new Gold total: 1465。Click the 「Next Scan」 button (do NOT click First Scan, or you will reset your progress)。Cheat Engine will cross-reference the thousands of addresses from Step 2 and isolate only the ones that changed from 1450 to 1465。You should now see only one or two addresses remaining in the left-hand results pane。
步驟 5:Modifying and Freezing the Target Memory Address
Double-click the remaining address to drop it into the bottom workspace of Cheat Engine。Double-click the number under the 「Value」 column and change it to your desired amount, such as 9999999。Hit OK。If you want infinite money that never depletes when you purchase upgrades from the town board, click the empty checkbox to the left of the address to 「Freeze」 it。Return to Moonlighter, open your inventory, and watch your Gold instantly update to your new hacked value。You can use this exact same logic to modify item stack quantities in your backpack while exploring the dungeons。
| 目標遊戲內 Stat | 建議 Value Type | Memory Behavior & Notes |
|---|---|---|
| Shop Gold (Currency) | 4 Bytes | 在 Rynoka 鎮時 highly stable。Easy to scan by selling cheap items。 |
| Will’s Current HP | Float | Dynamic value。Requires 「Decreased Value」 scans after taking damage from dungeon enemies。 |
| Item Stack Quantity | 4 Bytes | Found in the backpack。Scan by splitting stacks of items (e.g., separating 10 Iron Sponges into 5 and 5)。 |
| Weapon Base Damage | Float | Difficult to isolate。Often requires finding the specific weapon’s static data structure via pointer scanning。 |
| Time of Day (Shop Phase) | 4 Bytes | Controls the sun/moon cycle during the shop phase。Freezing this allows infinite selling time。 |
2. 常見 CE 錯誤:Pointers 失效與無法附加
如果你因為 CE 無法在 Moonlighter 上運作而抓狂,你並不孤單。以下是可能發生的情況:
Error: 「Cannot attach to process」 / Game Crashes:
Moonlighter might be using specific engine protections depending on the platform you purchased it from。Modern games, especially those built on the Unity engine like Moonlighter, often utilize aggressive garbage collection and memory obfuscation techniques that can cause standard debuggers to crash the game upon attachment。When Cheat Engine attempts to read or write to a protected memory sector, the game’s engine detects the intrusion and forcefully terminates the process, resulting in a sudden crash to your desktop。To bypass this, you need to alter how Cheat Engine interacts with the game’s executable。Navigate to Cheat Engine’s 「Settings」 menu, select 「Debugger Options」, and change the default Windows debugger to the 「VEH Debugger」 (Vectored Exception Handling)。The VEH Debugger operates at a different level of the Windows architecture, allowing it to silently intercept memory calls without triggering Moonlighter’s built-in crash handlers。This simple toggle is often the magic bullet for resolving instant crashes during the attachment phase。
The Pointer Problem:
The most infuriating aspect of using manual memory editors in Moonlighter is the constant shifting of memory addresses, a phenomenon caused by dynamic memory allocation。Moonlighter is heavily instanced。Every single time Will steps through the portal from the town of Rynoka into the Golem dungeon, or transitions from the first floor to the second floor, the game completely destroys the previous memory structures and loads new ones into entirely different physical locations in your RAM。
This means that the health address you painstakingly isolated on Floor 1 will be completely useless the moment you step onto Floor 2。To solve this manually, you have to perform deep pointer scanning to find the static base address—a master pointer that tells the game where the dynamic addresses have moved to。For a Unity engine game like Moonlighter, this often requires writing custom Assembly (AOB injection) scripts to intercept the game’s code as it runs。For the average gamer who just wants to enjoy their weekend, spending hours learning assembly language just to keep their health bar full is an absolute nightmare。
3. 更好的替代方案:使用 XMODhub 一鍵 Cheats
這是 modding community 的 dirty little secret:Nobody actually wants to spend two hours updating Cheat Engine tables every time a patch drops。The moment Moonlighter updates on Steam, your hard-earned memory addresses shift, and your game crashes to the desktop。
| 功能 / Metric | 手動 Cheat Engine | XMODhub Auto-Trainer |
|---|---|---|
| Setup Time | 每次 session 15 到 45 分鐘 | 不到 10 秒 |
| Update Reliability | 每次 game patch 都會 instantly breaks | Cloud-synced auto-updates |
| Crash Risk | 高(requires manual debugger tweaking) | Virtually Zero (Safe injection) |
| Ease of Use | Requires hexadecimal and memory knowledge | 一鍵式 visual UI toggles |
| Feature Access | Limited to what you can manually scan | Instant God Mode, Infinite Items |
為什麼 XMODhub 在 Moonlighter 上 beats manual CE:
- Zero Hex Codes Needed: Just toggle a beautiful switch on our UI。
- Auto-Updating Cloud Tech: When the game patches, XMODhub updates its trainer automatically。No more broken scripts。
- Premium Features Instant Access:
- Undetected God Mode / Infinite Health
- Unlimited Empowered Crystals and Desert Stones
- Super Speed & Custom Jump Height
- One-Hit Kills for annoying bosses。
如何使用 XMODhub 玩《Moonlighter》?
- 下載並啟動免費的 XMODhub desktop app。

- 在 library 中搜尋「Moonlighter」。

- Click 「Play」 to auto-hook the game safely。
- Toggle your desired cheats directly from the clean UI or via hotkeys。
4. 何處尋找安全的《Moonlighter》Cheat Tables (.CT)?
如果你 absolutely insist on using CE,你’ll want a pre-made Cheat Table (.CT file)。
However, you must be acutely aware of the severe cybersecurity risks associated with downloading random .CT files from unregulated forums, Reddit threads, or obscure Discord servers。The reality of the modding underground is that not everyone is acting in good faith。A Cheat Engine Table is not just a harmless text file containing memory addresses; it is a powerful container that supports full Lua scripting。This means that a malicious actor can easily embed destructive code directly into the .CT file。
When you open a compromised Moonlighter cheat table and click the box to activate a script, you might think you are just enabling infinite health。In reality, the hidden Lua script could be executing an os.execute() command in the background。This command can silently download and install Remote Access Trojans (RATs), giving a hacker complete control over your PC。Even more common are silent crypto-miners。Because gamers typically have high-end graphics cards, hackers love to bundle stealthy mining software into cheat tables。You might notice your PC running unusually hot or your frame rates tanking while playing Moonlighter, completely unaware that your GPU is being hijacked to mine cryptocurrency for a stranger。
This is exactly why relying on a verified, closed-ecosystem application like XMODhub is the infinitely safer choice。XMODhub’s development team professionally curates and encrypts all of their trainers, ensuring that absolutely no malicious third-party code can ever touch your system。You get all the benefits of a complex cheat table without gambling your computer’s security on a random forum download。
5. 《Moonlighter》Cheat Table 的必備功能
When hunting for the perfect Moonlighter cheat engine table (or utilizing a premium trainer), you want more than just a basic health freeze。Because the game balances two entirely different genres, a high-quality table needs versatile scripts that address both the shop management and the dungeon crawling aspects。
Shop Management Scripts:
A top-tier table should include quality-of-life toggles like 「Always Perfect Price」 or 「Infinite Customer Patience」。This removes the intense guesswork from the daytime phase。Instead of constantly referencing a pricing guide wiki to see if a Desert Stone should sell for 1,500 or 2,000 Gold, you can set the price to whatever you want, and the script forces the customer’s AI to accept it。
Dungeon Crawling Scripts:
Look for scripts that offer 「Infinite Dodge Invincibility」 (i-frames)。Moonlighter’s combat relies heavily on perfectly timing your dodge roll to avoid massive AoE attacks from bosses。A script that extends these invincibility frames makes clearing the treacherous Desert and Tech dungeons trivial, even if you are under-geared。
Inventory & Backpack Management:
The backpack puzzle is a core mechanic of Moonlighter, complete with curses that destroy adjacent items or force items to be placed in specific slots。A highly advanced .CT file will offer an 「Ignore Backpack Placement Rules」 or 「Remove Item Curses」 script。This allows you to stack loot infinitely and completely ignore the spatial puzzle aspect, guaranteeing you leave every dungeon run with maximum profits。
6. Inventory 編輯的高價值目標物品
如果你是 manually editing your inventory quantities via Cheat Engine’s 4-byte scanning, you need to know which items yield the highest return on investment。Modifying the stack count of a basic Vine or Root is a massive waste of your time。Instead, you should target late-game materials that dictate your progression at the Blacksmith and the Wooden Hat (Enchantress)。
By isolating the memory address of one of the items below, you can freeze its value to 99, allowing you to instantly craft top-tier gear or sell the excess for millions of Gold。
| 物品類別 | 特定物品 / Material | Primary Use Case | Cheat Priority Level |
|---|---|---|---|
| Dungeon Boss Loot | Golem King Energy Crystal | Crafting the highest tier of Golem weaponry and unlocking town upgrades。 | Critical |
| Enhancement Materials | Empowered Crystal | Upgrading weapons at the Vulcan Forge to maximize raw damage output。 | High |
| High-Yield Sellables | Tech Dungeon Blueprints | Placing in the shop showcase for exorbitant profits to fund final town expansions。 | High |
| Mid-Tier Crafting | Desert Stone / Magnetite | Bridging the gap between mid-game and late-game armor sets。 | Medium |
| Basic Consumables | Health Potion (Tier 3) | Surviving deep dungeon boss encounters when God Mode is disabled。 | Low |
Note: Finding the exact item ID strings in Cheat Engine requires advanced pointer mapping。If you want to bypass this tedious process, XMODhub’s item spawner allows you to directly inject these materials into your inventory with a single click。
7. 常見問題(FAQ)
| Platform / Storefront | Cheat Engine Compatibility | Ban Risk Level | XMODhub Support |
|---|---|---|---|
| Steam (PC) | 高(Requires VEH Debugger) | 無(Single-player only) | Native 1-Click Support |
| Epic Games Store | 高(Standard memory allocation) | 無(Single-player only) | Native 1-Click Support |
| Xbox Game Pass (PC) | 非常低(UWP Encryption blocks CE) | 無(Single-player only) | Fully Supported & Bypassed |
| GOG (DRM-Free) | 非常高(No background DRM) | 無(Single-player only) | Native 1-Click Support |
問:我可以在 Xbox Game Pass 版本的 Moonlighter 上使用 Cheat Engine 嗎?
答:通常不行。Game Pass 使用 strict UWP file encryption that actively blocks Cheat Engine。However, XMODhub is specifically engineered to bypass these restrictions seamlessly。
問:使用 Cheat Engine 是否 illegal?
答:Modifying data on your own PC for a single-player experience like Moonlighter is completely legal。Just never bring memory editors into a multiplayer server。
問:Will using Cheat Engine drop my FPS or slow down my PC?
答:是的,if not managed correctly, it absolutely can。During a 「First Scan」, Cheat Engine is actively reading gigabytes of raw RAM data in real-time, which places a massive temporary load on your CPU and memory bandwidth。This often causes severe micro-stutters or temporary freezing in Moonlighter。Furthermore, if you choose to 「Freeze」 dozens of different memory addresses simultaneously (like locking your health, gold, and every single item slot in your backpack), Cheat Engine has to continuously write those values back into the memory every few milliseconds。This constant read/write loop creates a CPU bottleneck, which can noticeably degrade your in-game frames per second, especially during chaotic boss fights in the Tech dungeon。
結論:事半功倍,而非事倍功半
Learning how memory manipulation works in Cheat Engine is a cool flex。But let’s be real—when you come home from a long day at work, you just want to spawn in that legendary Captain’s Sword or a fully upgraded Vulcan Forge weapon and wreck some enemies without taking a computer science class。
Why spend 45 minutes digging through hex codes when you can click one button and instantly get God Mode?And the best part?XMODhub supports over 5,000+ PC games。Once you install the app, you can ditch the complicated cheat tables for good。

停止枯燥刷寶,開始享受遊戲。
Bypass the tedious resource gathering and unlock your full potential instantly。

我是 XMODhub 的熱血玩家兼專欄作者,致力於為您帶來最新的遊戲資訊、攻略技巧與深度見解。
歡迎與我聯繫:
LinkedIn 個人檔案 ↗



