Sm64config.txt ✓

The sm64config.txt file enables manual adjustment of graphics, audio, and input settings for unofficial Super Mario 64 PC ports, including sm64ex. Located in the app data or configuration folder, users can edit this text file to modify button mappings, screen resolution, and enable performance tweaks like frameskip. For more details, visit GitHub.

How to remap controls? · Issue #224 · sm64pc/sm64ex - GitHub

sm64config.txt file is the essential heart of the Super Mario 64

PC port, serving as the primary bridge between the legacy code of 1996 and modern hardware

. While the in-game menus handle basic changes, this file allows for deep-level customization that can completely transform how the game looks and feels. Locating the File

Depending on which version or "fork" of the port you are running, the file is usually found in one of these directories: Windows (sm64ex): %APPDATA%\sm64ex\sm64config.txt Linux/macOS: $XDG_DATA_HOME/sm64ex/sm64config.txt Legacy/Standard Port: Located directly in the same folder as your Core Configuration Breakdown 1. Visuals & Resolution

The PC port allows for native high-definition rendering, far beyond the original N64's capabilities. screen_width screen_height : Manually set these to match your monitor (e.g., fullscreen to launch the game in full-screen mode immediately. texture_filtering

if you want the sharp, pixelated look of the original game, or for a smoother look. 2. Mastering the Input (Scan Codes)

The most common reason to edit this file is to remap keys beyond the basic in-game menu. The port uses DirectInput scancodes rather than standard ASCII. Render96ex macOS Edition - GitHub

sm64config.txt file is the primary configuration document for the Super Mario 64 PC Port (and its derivatives like

). It is automatically generated in the same directory as your ~/.local/share/sm64ex/ on Linux) after you run the game for the first time. Key Settings & Uses Rebinding Controls sm64config.txt

: You can manually map keyboard keys and gamepad buttons by editing the values for : Uses DirectInput scancodes (e.g., for LeftShift). Controller : Handheld ports (like those for the Retro Handhelds ) allow you to set parameters like button_a A button_r R1 directly in the text file. Display Adjustments : You can toggle fullscreen (true/false) and adjust the window_width window_height Performance Tweaks : For devices with lower power, such as the Miyoo Mini , users often lower the resolution (e.g., to ) within this file to increase frame rates. Feature Toggles : Options like

and specific mod-related features (e.g., 60FPS patches or internal camera settings) are frequently stored here depending on which version of the port you are using. Troubleshooting Tips

How to remap controls? · Issue #224 · sm64pc/sm64ex - GitHub 19-May-2020 —


Final Checklist: Optimizing Your Game

Before you launch your next 120-star marathon, verify your sm64config.txt:

Resolution matches your monitor (e.g., --resolution 1920 1080).
Framerate is set to 30 (unless using a physics unlock patch).
Audio buffer is adequate (--buffersize 1024 or higher).
Deadzone matches your controller (test with --deadzone 0.2).
No duplicate flags (the last line overrides previous ones).

With this guide, you have transformed from a casual player into a sm64config.txt power user. Go rescue the Princess—at the perfect resolution, without a single dropped frame or crackled coin sound.


Have a unique sm64config.txt setup for a niche device? Share it in the community forums. The decompilation project thrives on configuration knowledge.


Why Edit It Manually?

You might be asking: "Can't I just use the in-game options menu?"

Usually, yes. But there are three specific scenarios where manual editing is superior:

  1. The "Soft Lock" Fix: Sometimes, selecting a resolution your monitor doesn't support causes the screen to go black. You can't see the menu to fix it. Editing sm64config.txt manually to a supported resolution saves you from reinstalling the game.
  2. Configuration Sharing: If you have a perfect setup for a specific 3rd-party controller, you can copy your sm64config.txt and send it to a friend so they don't have to map all the buttons manually.
  3. Cheat Codes/Debug: Some forks of SM64 allow you to enable debug modes or cheats that are hidden from the standard

The sm64config.txt file is the primary configuration file for various fan-made native ports of Super Mario 64 The sm64config

, such as the SM64 PC Port and ports for handhelds like the RG350 or 3DS. It is used to manually adjust settings that might not be available in-game, most notably custom controller and keyboard mappings. Essential Quick-Start Post

If you are sharing this with a community (like Reddit or a Discord server), here is a concise post template:

Title: Quick Guide: Customizing your SM64 Port via sm64config.txt

The Post:Need to fix your controls or tweak settings in the SM64 native port? You don't always need an external tool—you can edit the sm64config.txt file directly. Where to find it:

PC (sm64ex): Usually in %AppData%\sm64ex\ or ~/.local/share/sm64ex/.

Retro Handhelds: Look in /ports/sm64/configuration/ on your SD card. Key Tweaks:

Keyboard Mapping: Uses DirectX scan codes (e.g., key_a 57 for Spacebar).

Button Mapping: For handhelds, you can manually swap buttons like button_a A or button_b B.

Graphics: Toggle fullscreen false or vsync settings directly if the game is running too fast.

Pro-Tip: Run the game at least once to generate the file before you try to find it! Common Config Snippets Final Checklist: Optimizing Your Game Before you launch

You can copy and paste these directly into your file to fix common issues: Default PC Keyboard Controls:

fullscreen false key_a 38 key_b 54 key_start 28 key_stickup 17 key_stickdown 31 Use code with caution. Copied to clipboard

Fixing Handheld Button Swaps:If your Jump and Attack buttons feel backwards, look for button_a and button_b and swap their assigned letters (e.g., change button_a B to button_a A).

For more specific mapping codes, you can check community resources like the SM64PC GitHub or Retro Game Corps for handheld-specific guides.

How to remap controls? · Issue #224 · sm64pc/sm64ex - GitHub

I’d be happy to help review sm64config.txt — but I need a little more context to give you a detailed, accurate review.

Could you please clarify which version or mod of Super Mario 64 this file belongs to? For example:


In the meantime, here’s a generic framework for reviewing an sm64config.txt file:

The Hidden Settings: A Guide to sm64config.txt

If you are a fan of Super Mario 64 on the Nintendo 64, you know the game relies heavily on physical controller inputs. But if you have ever ventured into the world of N64 emulation or dabbled in modding the game on PC, you may have stumbled upon a mysterious little file sitting in your folder: sm64config.txt.

For many, this file is an enigma—a block of text that looks like code but isn't quite readable. Today, we are demystifying sm64config.txt, explaining what it does, how to edit it, and why it is essential for the modern SM64 experience.