Repository navigation
Troubleshooting
This comprehensive troubleshooting guide covers common issues, error messages, and solutions for HG Engine Editor. Whether you're encountering crashes, data loading problems, or unexpected behavior, you'll find solutions here.
HG Engine Editor includes comprehensive crash handling that automatically saves diagnostic information:
- Crash Dialog: Appears when the application encounters an error
- Log Files: Automatically saved to app LocalState directory
- Error Details: Technical information for debugging
Location: %LOCALAPPDATA%\Packages\HG Engine Editor_*\LocalState\
Files:
-
last_crash.txt- Most recent crash information -
first_chance.log- Detailed exception logs -
change_log.txt- Recent file modification history
Each crash log contains:
- Timestamp: When the crash occurred
- Exception Type: Technical error classification
- Stack Trace: Code execution path leading to crash
- System Information: Windows version, .NET version
- User Actions: What you were doing when it crashed
Symptoms:
- Empty species list in the Species page
- "No Pokemon species detected" message
- Unable to select any Pokemon
Possible Causes:
-
Missing Species Header:
include/constants/species.hnot found - Incorrect Project Path: Wrong folder selected
- File Format Issues: Species definitions malformed
- Encoding Problems: File not in UTF-8 encoding
Solutions:
-
Verify File Existence:
Your-Project/include/constants/species.hShould contain
#define SPECIES_BULBASAUR 1etc. -
Check Project Structure:
- Ensure correct HG Engine project layout
- Verify all required directories exist
-
Validate File Format:
- Open
species.hin a text editor - Check for proper
#definesyntax - Ensure no syntax errors
- Open
-
Test File Encoding:
- Save file as UTF-8 without BOM
- Avoid special characters in species names
Symptoms:
- "Could not find mondata.s" or similar messages
- Missing TM/HM or tutor data
- Empty lists in various tabs
Possible Causes:
-
Missing Data Files: Required
.sor.txtfiles absent - Wrong File Names: Files named differently than expected
- Incorrect Directory Structure: Files in wrong locations
Solutions:
-
Verify Required Files:
armips/data/mondata.s armips/data/levelupdata.s armips/data/evodata.s armips/data/eggmoves.s armips/data/tmlearnset.txt armips/data/tutordata.txt armips/data/trainers/trainers.s -
Check File Names:
- Ensure exact filename matching
- Case sensitivity matters on some systems
-
Alternative Locations:
- HG Engine Editor searches recursively
- Files can be in subdirectories
- But standard locations are preferred
Symptoms:
- "Parse error in file X at line Y"
- "Unexpected token" messages
- Data not loading correctly
Common Issues:
- Syntax Errors: Missing commas, brackets, or quotes
- Wrong Constants: Using undefined constants
- Format Changes: Modified file structure
Solutions:
-
Check File Syntax:
- Open the problematic file in a text editor
- Look for missing commas, quotes, or brackets
- Validate macro structure
-
Verify Constants:
- Ensure all referenced constants are defined
- Check
#definestatements in header files - Validate constant names match exactly
-
Restore from Backup:
- Use
.bakfiles to restore previous working state - Check change log for recent modifications
- Use
Symptoms:
- "Cannot write to file" messages
- "Access denied" when saving changes
- Files not updating after save operations
Possible Causes:
- File Locks: Files open in another program
- Permission Issues: Insufficient write permissions
- Read-only Files: Files marked as read-only
- Antivirus Interference: Security software blocking access
Solutions:
-
Close Other Programs:
- Close any text editors with project files open
- Exit other ROM editing tools
- Ensure no build processes are running
-
Check File Permissions:
- Right-click file β Properties β Security tab
- Ensure user has write permissions
- Remove read-only attribute if set
-
Run as Administrator:
- Try running HG Engine Editor as administrator
- May be needed for system-protected directories
-
Antivirus Exclusions:
- Add project directory to antivirus exclusions
- Whitelist HG Engine Editor executable
Symptoms:
- Long startup times
- Delayed data loading
- Unresponsive interface
Possible Causes:
- Large Projects: Many species/trainers to parse
- File System Issues: Slow disk access
- Memory Constraints: Insufficient RAM
- Background Processes: System resource contention
Solutions:
-
Optimize Project Size:
- Consider working with smaller test projects
- Remove unnecessary files from project directory
-
System Resources:
- Close unnecessary background applications
- Ensure at least 4GB RAM available
- Use SSD for better performance
-
HG Engine Editor Settings:
- Wait for complete loading before use
- Avoid rapid navigation during loading
Symptoms:
- "Out of memory" errors
- Application becoming unresponsive
- Frequent crashes
Solutions:
-
Close Other Applications:
- Free up system memory
- Close memory-intensive programs
-
Project Optimization:
- Work with smaller project subsets
- Avoid loading unnecessary data
-
System Upgrade:
- Consider upgrading to more RAM
- Use 64-bit Windows for better memory management
Symptoms:
- File changes not prompting reload dialog
- Manual refresh required
- Outdated data displayed
Possible Causes:
- File Watcher Issues: System file monitoring not working
- Network Drives: Project on network storage
- File System Filters: Antivirus or backup software interference
Solutions:
-
Restart Application:
- Restart HG Engine Editor to reset file watchers
- Ensure project path is local
-
Check File System:
- Move project to local drive
- Disable real-time antivirus scanning temporarily
-
Manual Reload:
- Use Ctrl+R or restart to refresh data
- Check timestamps on modified files
Symptoms:
- Garbled data in files
- Parse errors after saves
- Missing data sections
Possible Causes:
- Interrupted Saves: Power loss during file operations
- Disk Errors: Hard drive corruption
- Encoding Issues: Wrong character encoding
Solutions:
-
Restore Backups:
- Use
.bakfiles to restore previous versions - Check change log for recent modifications
- Use
-
File Repair:
- Open corrupted files in text editor
- Look for obvious syntax errors
- Fix encoding issues
-
System Check:
- Run CHKDSK to check disk integrity
- Scan for malware or system issues
Symptoms:
- Installation fails
- Certificate errors
- "Package not supported" messages
Solutions:
-
Certificate Installation:
- Install
.cerfile to Trusted People store - Use administrator privileges
- Restart system after certificate installation
- Install
-
System Requirements:
- Ensure Windows 10 version 2004 (19041) or newer
- Install Windows App SDK Runtime
- Enable Developer Mode in Windows settings
-
PowerShell Installation:
- Run
install.ps1with administrator privileges - Follow script prompts carefully
- Run
Symptoms:
- Compilation errors
- Missing dependencies
- Runtime errors
Solutions:
-
Prerequisites Check:
- Install Visual Studio 2022 with UWP workloads
- Install .NET 8 SDK
- Update Windows SDK to latest version
-
NuGet Packages:
- Restore NuGet packages in solution
- Check for package version conflicts
- Clear NuGet cache if needed
-
Build Configuration:
- Set correct target platform (x86/x64/ARM64)
- Ensure proper signing certificate
- Check build output for specific errors
Symptoms:
- Issues accessing projects on network drives
- Slow performance with remote files
- File watcher not working
Solutions:
-
Local Copy:
- Copy project to local drive for editing
- Sync changes back when done
-
Network Optimization:
- Use wired connection instead of WiFi
- Ensure stable network connection
- Disable offline file caching
-
Permission Issues:
- Ensure proper network share permissions
- Check firewall settings
Symptoms:
- Stats not saving correctly
- Types not updating
- Ability changes not applied
Solutions:
-
File Format Check:
- Verify
mondata.ssyntax - Check for missing commas or brackets
- Validate constant names
- Verify
-
Preview Changes:
- Use Preview function to verify changes
- Compare before/after in preview dialog
- Look for syntax errors in output
-
Restore Defaults:
- Use backup files to restore working state
- Check recent changes in change log
Symptoms:
- Trainer parties not saving
- AI flags not working
- Pokemon configuration problems
Solutions:
-
File Structure:
- Verify
trainers.sformat - Check party block structure
- Validate trainer header syntax
- Verify
-
Data Validation:
- Ensure Pokemon species exist
- Check move compatibility
- Verify level ranges (1-100)
-
AI Configuration:
- Check AI flag definitions
- Ensure flag constants are defined
- Validate flag combinations
-
Gather Information:
- Windows version and build number
- HG Engine Editor version
- Project structure details
- Crash logs and error messages
-
Reproduce the Issue:
- Document exact steps to reproduce
- Note any specific data or configurations
- Test with minimal project if possible
-
Check Known Issues:
- Review this troubleshooting guide
- Check FAQ for similar problems
- Search existing issues
When reporting issues, include:
-
System Information:
- Windows version:
winvercommand - HG Engine Editor version: Help β About
- .NET version:
dotnet --version
- Windows version:
-
Problem Details:
- Exact error messages
- Steps to reproduce
- Expected vs actual behavior
-
Files and Logs:
- Crash logs from LocalState directory
- Change log entries
- Sample problematic files
-
Environment:
- Project structure (anonymized)
- Any modifications to default setup
- Antivirus or security software
- GitHub Issues: Report bugs and feature requests
- Discussions: Ask questions and share solutions
- Pull Requests: Contribute fixes and improvements
Remember: Most issues can be resolved by ensuring proper project structure, checking file permissions, and following the installation instructions carefully. When in doubt, restore from backup files and proceed step by step.