How do you cheat in Moonlighter? To cheat in Moonlighter, you can manually attach Cheat Engine to the game’s executable and scan for changing numeric values like Will’s current health points during a dungeon run, or your total shop Gold after a successful selling phase. However, because game updates frequently break Cheat Engine tables (.CT files), the safest and easiest alternative is using an auto-updating mod manager like XMODhub, which provides 1-click cheats without requiring any tedious memory scanning.
[Editor’s Note] Look, I get it. We all start Moonlighter thinking we’re going to play it completely legit. But after dying to the Golem King or the frustrating Tech Dungeon bosses for the 15th time, or spending hours grinding for Empowered Crystals and rare Golem Cores, the fun stops. I’ve been messing with Cheat Engine for years, and trying to isolate the exact memory values for this game’s current patch almost drove me insane. Today, I’m going to show you how to manually hack the values if you want the technical challenge—but I’ll also share the 1-click shortcut I actually use to save my sanity.
You may also like: The Ultimate Moonlighter Console Commands and Cheats Guide
📋 Table of Contents
- Quick Answer
- 1. How to Use Cheat Engine for Moonlighter (The Manual Way)
- 2. Common CE Errors: Pointers Breaking & Not Attaching
- 3. The Better Alternative: 1-Click Cheats with XMODhub
- 4. Where to Find Safe Moonlighter Cheat Tables (.CT)?
- 5. Essential Features to Look For in a Moonlighter Cheat Table
- 6. High-Value Target Items for Inventory Editing
- 7. Frequently Asked Questions (FAQ)
- Conclusion: Work Smarter, Not Harder
1. How to Use Cheat Engine for Moonlighter (The Manual Way)
If you want to go the old-school route and find the memory addresses yourself, here is the basic “First Scan/Next Scan” method tailored specifically for this game.
Moonlighter is a fascinating hybrid of shop management and rogue-lite dungeon crawling. Because the gameplay loop is strictly divided into two distinct phases—managing your shop in the town of Rynoka during the day, and diving into the Golem, Forest, Desert, and Tech dungeons at night—your approach to memory scanning must adapt to the current phase. The most common and impactful value players want to modify is their total Gold. Gold dictates everything in Moonlighter, from upgrading your gear at the Blacksmith to expanding your shop’s floor space.
Here is the exact, step-by-step methodology to isolate and modify your Gold value in Moonlighter using manual memory scanning:
Step 1: Hooking the Executable and Setting Up the Scan
First, launch Moonlighter and load into your saved game. Ensure your character, Will, is standing safely inside your shop in Rynoka. Pause the game and 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 and click “Open”. Because Gold in Moonlighter is stored as a whole number without decimals, you must set the “Value Type” dropdown in Cheat Engine to “4 Bytes”. Set the “Scan Type” to “Exact Value”.
Step 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.
Step 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.
Step 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.
Step 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.
| Target In-Game Stat | Recommended Value Type | Memory Behavior & Notes |
|---|---|---|
| Shop Gold (Currency) | 4 Bytes | Highly stable while in the town of Rynoka. 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. Common CE Errors: Pointers Breaking & Not Attaching
If you are pulling your hair out because CE isn’t working for Moonlighter, you aren’t alone. Here is what’s probably happening:
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. The Better Alternative: 1-Click Cheats with XMODhub
Here is the dirty little secret of the modding community: 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.
| Feature / Metric | Manual Cheat Engine | XMODhub Auto-Trainer |
|---|---|---|
| Setup Time | 15 to 45 minutes per session | Under 10 seconds |
| Update Reliability | Breaks instantly on every game patch | Cloud-synced auto-updates |
| Crash Risk | High (requires manual debugger tweaking) | Virtually Zero (Safe injection) |
| Ease of Use | Requires hexadecimal and memory knowledge | 1-Click visual UI toggles |
| Feature Access | Limited to what you can manually scan | Instant God Mode, Infinite Items |
Why XMODhub beats manual CE for Moonlighter:
- 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.
How to Use XMODhub for Moonlighter?
- Download and Launch the free XMODhub desktop app.

- Search for “Moonlighter” in the library.

- Click “Play” to auto-hook the game safely.
- Toggle your desired cheats directly from the clean UI or via hotkeys.
Download Moonlighter Trainer Now
4. Where to Find Safe Moonlighter Cheat Tables (.CT)?
If you absolutely insist on using CE, you’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. Essential Features to Look For in a 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. High-Value Target Items for Inventory Editing
If you are 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.
| Item Category | Specific Item / 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. Frequently Asked Questions (FAQ)
| Platform / Storefront | Cheat Engine Compatibility | Ban Risk Level | XMODhub Support |
|---|---|---|---|
| Steam (PC) | High (Requires VEH Debugger) | None (Single-player only) | Native 1-Click Support |
| Epic Games Store | High (Standard memory allocation) | None (Single-player only) | Native 1-Click Support |
| Xbox Game Pass (PC) | Very Low (UWP Encryption blocks CE) | None (Single-player only) | Fully Supported & Bypassed |
| GOG (DRM-Free) | Very High (No background DRM) | None (Single-player only) | Native 1-Click Support |
Q: Can I use Cheat Engine on the Xbox Game Pass version of Moonlighter?
A: Usually, no. Game Pass uses strict UWP file encryption that actively blocks Cheat Engine. However, XMODhub is specifically engineered to bypass these restrictions seamlessly.
Q: Is it illegal to use Cheat Engine?
A: 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.
Q: Will using Cheat Engine drop my FPS or slow down my PC?
A: Yes, it absolutely can if not managed correctly. 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.
Conclusion: Work Smarter, Not Harder
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.

Stop Grinding, Start Enjoying.
Bypass the tedious resource gathering and unlock your full potential instantly.

I am a passionate gamer and writer at XMODhub, dedicated to bringing you the latest gaming news, tips, and insights.
Connect with me:
LinkedIn Profile ↗

