Overview
This page covers common errors, problems, and their solutions when working with Pokémon Essentials BES. Always check error logs first before seeking help.Error logs are typically found in
errorlog.txt in your game folder. Check this file first when encountering problems.Game Won’t Start
Missing RGSS102E.dll
Missing RGSS102E.dll
Error: “The program can’t start because RGSS102E.dll is missing from your computer.”Cause: RPG Maker XP runtime not installed or corrupted.Solutions:
-
Install RPG Maker XP properly:
- If you have RPG Maker XP, reinstall it
- Run the installer as administrator
-
Download RGSS runtime:
- Search for “RGSS102E.dll download”
- Place in Windows/System32 folder
- Or place in game folder
-
Run as administrator:
- Right-click Game.exe
- Select “Run as administrator”
Game immediately closes / Black screen
Game immediately closes / Black screen
Symptoms:
- Game window opens then closes
- Black screen with no response
- No error message
-
Graphics driver issue:
- Update graphics drivers
- Try running in compatibility mode (Windows 7/XP)
-
Missing game files:
- Verify all Data folder files exist
- Reextract from download
-
Corrupted save:
- Delete Game.rxdata from game folder
- Restart game
-
Antivirus blocking:
- Add game folder to antivirus exceptions
- Temporarily disable antivirus to test
-
DirectX issue:
- Install DirectX 9.0c
- Restart computer
- Delete Game.rxdata
- Run Game.exe as administrator
- Check errorlog.txt if created
- Try running from RPG Maker XP
'Failed to load' error on startup
'Failed to load' error on startup
Error: “Failed to load (filename)” or “Cannot load data file”Causes:
- Missing Data files
- Corrupted installation
- PBS not compiled
- Reextract game from download
- Don’t delete any Data folder files
- Verify Data folder contents
- Delete all files in Data folder
- Run game from RPG Maker XP
- Let PBS auto-compile
- Check for compilation errors
- Download fresh copy
- Extract to new location
- Test before modifying
PBS Compilation Errors
Syntax errors in PBS files
Syntax errors in PBS files
Error: “Syntax error in PBS/[file].txt, line [number]”Common causes:
-
Missing comma or field:
-
Special characters in names:
-
Wrong line breaks or encoding:
- Save PBS files as UTF-8
- Use Windows line endings (CRLF)
- Don’t use smart quotes
-
Missing closing quote:
- Open errorlog.txt
- Note the file and line number
- Open that PBS file
- Go to the specified line
- Check format against working examples
- Fix and recompile
'Unknown value' errors
'Unknown value' errors
Error: “Unknown value: [VALUE] in PBS/[file].txt”Causes:Solutions:
- Referencing non-existent species/move/ability
- Typo in internal name
- Wrong constant name
- Double-check spelling
- Verify the referenced item exists
- Check PBS files for correct internal names
- Use exact capitalization
PBS compilation hangs or freezes
PBS compilation hangs or freezes
Symptoms:
- Game stuck on “Compiling PBS data”
- No progress for several minutes
- Computer not responding
- Very large PBS files
- Circular references
- Infinite loop in data
- Computer too slow
- Force close with Task Manager
- Check errorlog.txt
- Review recent PBS changes
- Look for circular evolution/references
- First compilation takes longer (several minutes)
- Be patient, especially on slower computers
- Subsequent compilations are faster
- Remove unnecessary PBS entries
- Compile in Debug mode from RPG Maker
- Close other programs
'Duplicate ID' errors
'Duplicate ID' errors
Error: “Duplicate ID number [number] in PBS/[file].txt”Cause: Two entries using the same ID number.Example:Solution:
- Search PBS file for the duplicate ID
- Change one to unused number
- Update all references if needed
- Recompile
- Use sequential numbering
- Keep track of highest used ID
- Don’t skip numbers unnecessarily
Script Errors
'Script is hanging' error
'Script is hanging' error
Error: “The script is taking too long. The game will restart.”Common causes:
-
Infinite loop in script:
-
Infinite loop in event:
- Event calling itself repeatedly
- Loop with no exit condition
- Parallel process without wait
-
Heavy calculation:
- Large AI decision tree
- Complex pathfinding
- Too many entities updating
- Review recent script changes
- Add break conditions to loops
- Add safety counters
- Check Parallel Process events
- Add “Wait” commands
- Add exit conditions
- Use switches to disable when not needed
'undefined method' error
'undefined method' error
Error: “undefined method ‘[method_name]’ for [object]”Cause: Calling a method that doesn’t exist.Common scenarios:
-
Typo in method name:
-
Wrong object type:
-
Method from wrong Essentials version:
- v20 methods don’t exist in v16.2
- Check version compatibility
-
Missing script section:
- Script defining method was deleted
- Custom script not installed properly
- Check method name spelling
- Verify correct object
- Check Essentials version compatibility
- Verify all scripts installed
'syntax error' in scripts
'syntax error' in scripts
Error: “syntax error, unexpected [symbol]”Common mistakes:
-
Missing ‘end’:
-
Extra ‘end’:
-
Wrong bracket type:
-
String quote mismatch:
- Note the script section and line from error
- Open that script in RPG Maker
- Go to the line number
- Check syntax carefully
- Look at surrounding code
- Match brackets and ends
'can't convert' type errors
'can't convert' type errors
Error: “can’t convert [Type] into [Type]”Cause: Wrong data type provided.Examples:Common type issues:
- Symbol vs String (
:PIKACHUvs"PIKACHU") - Integer vs String (
5vs"5") - Array vs single value
Battle Errors
Battle crashes or freezes
Battle crashes or freezes
Symptoms:
- Game freezes during battle
- Crash when using specific moves
- Error during ability activation
-
Broken move function:
- Custom move with errors
- Function code doesn’t exist
- Missing move effect implementation
-
Broken ability:
- Ability code has errors
- Reference to non-existent method
- Infinite loop in ability
-
Animation issue:
- Missing animation files
- Corrupted animation data
-
Identify the trigger:
- What move was used?
- What ability activated?
- What happened right before crash?
-
Test in isolation:
- Debug battle with specific Pokémon
- Test the suspected move/ability
- Check errorlog.txt
-
Check PBS:
- Verify move function code exists
- Check ability ID is valid
- Compare to working examples
- Fix or remove broken custom moves
- Temporarily disable custom abilities
- Reset animation data
- Check Gen 9 move implementations
'Function code not found' error
'Function code not found' error
Error: “Unable to find function code [number] for [move]”Cause: Move references non-existent function code.In PBS/moves.txt:Solutions:
-
Use existing function code:
- Check other moves for valid codes
- Use 000 for basic damage
- Reference move function list
-
Implement the function:
- Define the function in battle scripts
- Follow function code format
- Test thoroughly
-
Fix typo:
- Check for leading zeros
- Verify exact format
Gen 9 ability not working
Gen 9 ability not working
Problem: Gen 9 ability doesn’t activate or has no effect.Check implementation status:Open
PBS/abilities.txt and find the ability:- No marking = Should be fully implemented
- #TODO = Not implemented yet
- #A MEDIAS = Partially implemented
- #NO HECHA = Not done
-
Ability not yet implemented:
- Proto Synthesis (#290) - marked #A MEDIAS
- Quark Drive (#291) - marked #A MEDIAS
- Some complex abilities need custom scripting
-
Conditions not met:
- Weather-dependent abilities need weather
- Terrain abilities need terrain active
- Some need specific battle formats
-
Visual effects only:
- Effect works but no message
- Works but not obvious
- Check Generation 9 Features for status
- Script missing abilities yourself
- Use alternative abilities temporarily
- Test with Debug to verify conditions
Graphics & Performance
Missing or blank sprites
Missing or blank sprites
Symptoms:
- Pokémon appears as blank/invisible
- Icon shows as empty box
- Graphics don’t display
-
Missing sprite file:
- File doesn’t exist in Graphics folder
- Wrong filename
- Wrong location
-
Wrong file format:
- Must be PNG format
- Proper transparency
- Correct color depth
-
Filename mismatch:
-
Check filename:
- Match PBS entry number exactly
- Check capitalization (shouldn’t matter but verify)
- Verify file extension is .png
-
Check file location:
- Front:
Graphics/Battlers/[ID].png - Back:
Graphics/Battlers/[ID]b.png - Icon:
Graphics/Icons/icon[ID].png - Female: Add
fbefore.png - Shiny: Add
sbefore.png
- Front:
-
Verify file format:
- Open in image editor
- Save as PNG-24 with transparency
- Test in game
Game running slowly / Lag
Game running slowly / Lag
Symptoms:
- Low FPS
- Choppy animation
- Delayed inputs
- Long load times
- Too many Parallel Process events:
- Events constantly running
- No Wait commands
- Complex calculations
- Use switches to disable unused events
- Add Wait commands in loops
- Use Autorun instead when possible
- Large maps:
- Too many events on one map
- Very large map size
- Complex graphics
- Split into smaller maps
- Reduce event count
- Use Erase Event when possible
- Script inefficiency:
- Custom scripts with poor performance
- Unnecessary calculations each frame
- Review custom scripts
- Cache calculations
- Optimize loops
- Computer limitations:
- Older/slower computer
- Running too many programs
- Close other programs
- Update graphics drivers
- Run on better hardware
Audio problems / No sound
Audio problems / No sound
Symptoms:
- No music or sound effects
- Audio cutting out
- Crackling or distortion
-
Missing audio files:
- Check Audio/BGM and Audio/SE folders
- Verify filenames match calls
- Supported formats: MP3, OGG, WAV, MIDI
-
Volume set to 0:
- Check in-game Options
- Verify system volume
- Test other games
-
Codec issues:
- Install codec packs
- Convert to different format
- Use OGG for best compatibility
-
Audio driver problems:
- Update audio drivers
- Try running as administrator
- Check Windows audio settings
Save Data Issues
Can't save game / Save corruption
Can't save game / Save corruption
Error: “Failed to save game” or corrupted save dataCauses:
- File permissions:
- Folder is read-only
- No write permission
- Antivirus blocking
- Right-click folder → Properties
- Uncheck “Read-only”
- Add to antivirus exceptions
- Disk full:
- No space remaining
- Free up disk space
- Save to different location
- Long file path:
- Path exceeds Windows limit
- Move game folder closer to root
- Example:
C:/Games/instead of long path
- Corrupted save data:
- Save file damaged
- Delete Game.rxdata
- Load backup save if available
- Start new game
Save file from old version won't load
Save file from old version won't load
Problem: Save file incompatible after updating game/BES.Cause: Script changes between versions.Solutions:
-
Use save converter:
- Some updates include save converters
- Check update notes
-
Manual fix (advanced):
- Load save in Marshal editor
- Update data structures
- Very complex, not recommended
-
Start new game:
- Often the safest option
- Use Debug to recreate progress
- Test updates on copy first
- Keep backups of save files
- Finish games before major updates
- Warn players about incompatible updates
Getting More Help
If your problem isn’t listed here:
- Check errorlog.txt in your game folder
- Search the issue on Relic Castle or Pokécommunity
-
Ask in community with detailed information:
- Exact error message
- Steps to reproduce
- What you’ve tried
- Relevant code snippets
- BES version
- Review other resources:
When asking for help, always provide the exact error message and relevant code. Screenshots of errors are very helpful.
Preventive Measures
Best practices to avoid issues: ✅ Do:- Backup regularly
- Test after every change
- Keep notes of modifications
- Use version control (Git)
- Read error messages carefully
- Test with Debug enabled
- Edit without backing up
- Make multiple changes before testing
- Ignore warnings
- Delete scripts without understanding them
- Skip PBS compilation
- Distribute with Debug enabled