About this mod
Magic Messages is a TES4Edit automation tool designed to streamline the localization of in-script message strings in Oblivion mods. It detects hardcoded text in SCPT records and transforms them into clean localization keys with minimal fuss—perfect for compatibility with MagicLoader and multilingual support.
- Permissions and credits
Magic Messages is a TES4REdit automation tool designed to streamline the localization of in-script message strings in Oblivion mods. It detects hardcoded text in SCPT records and transforms them into clean localization keys with minimal fuss—perfect for compatibility with MagicLoader and multilingual support.
🪄 Core Features
- 🔍 Deep Script Scanning Identifies Message and MessageBox in-script calls with hardcoded strings.
- 🧠 Automatic Key Generation Produces intuitive, lore-friendly localization keys (e.g., LOC_SC_myFunQuest_HailFineHe_01), including detection of repeated strings.
- 📄 Live JSON Merge Appends new keys into your plugin's MagicLoader "NewStrings" block without disturbing other top-level blocks (Plugin, NewCells, FullNames, etc.).
- ✏️ Safe Script Patching Updates SCTX fields with generated keys—leaving your original plugin structure untouched and fully compatible.
- ✅ Key Duplication Protection Skips injection if keys already exist, ensuring clean merges and edits.
- 📦 Clean JSON Output Removes trailing commas and auto-corrects missing separators for compliant formatting.
This utility turns tedious manual edits into a spellbinding single click. Whether you’re prepping for translation, refining narrative delivery, or just keeping your enchanted items properly documented, Magic Messages makes your scripts speak fluent magic.
🛠 How to Use Magic Messages
- Load Your Plugin in TES4REdit Open TES4REdit and select the mod you'd like to scan and patch (e.g. MyKickAssMod.esp).
- Run the Script Apply the MagicMessages.pas script from TES4REdit’s script menu.
- Review Detected Keys The script will scan all SCPT records for hardcoded Message and MessageBox strings, generating LOC_SC_... localization keys. All matches are logged to TES4REdit’s Messages tab.
- Merge Into MagicLoader JSON The script will find your mod’s MagicLoader JSON file (e.g. MyKickAssMod.json) and inject all new keys into its "NewStrings" block. Other blocks remain untouched.
- Done! Your plugin is now localization-ready. Keys are in your MagicLoader JSON and referenced in your scripts. No more hunting down hardcoded strings.
🧪 Tips
- Reruns are safe: Magic Messages skips keys already present to avoid duplication.
- Works beautifully with other MagicLoader blocks (Plugin, NewCells, etc.)
- Use in combination with Magic Keystrings and Magic Cell Extractor for full coverage.
🪄 Localization Suite Overview Magic Messages scans and patches hardcoded Message and MessageBox strings in scripts, turning embedded dialogue into clean localization keys. Magic Cell Extractor handles environmental localization by identifying newly added cells and generating LOC_CELL_... keys for naming and game stability. Magic Keystrings sweeps the rest—object names, descriptions, inventory strings, dialogue, quests, and global tags—ensuring every visible or referential element is key-linked.
Together, they export a comprehensive set of localization keys and corresponding strings into a structured JSON file, ready for seamless integration with MagicLoader. With these tools, every element in your plugin speaks the language of immersion, flexibility, and international reach.