Spell System Troubleshooting

Common issues and solutions for the OpenRoads spell system.

🚨 Quick Fixes

Spell Not Loading

  1. Check file location: Must be in spells/custom/ directory

  2. Verify file extension: Use .yaml or .yml

  3. Validate YAML syntax: Use online YAML validator

  4. Check server logs: Look for parsing errors

  5. Restart server: Sometimes needed after file changes

Spell Won't Cast

  1. Check requirements: Level, element, SP, items

  2. Verify target: Correct target type and valid target

  3. Check cooldown: Wait for cooldown to expire

  4. Check restrictions: Combat/location limitations

  5. Check spelling: Spell name must match exactly

Effects Not Working

  1. Verify effect syntax: Check effect type spelling

  2. Check target validity: Enemy must exist, room must be valid

  3. Review effect properties: Ensure all required fields present

  4. Check logs: Look for effect execution errors

  5. Test with simple effects: Start with basic damage/heal

📁 File and Loading Issues

Spell File Not Found

Symptoms:

  • Spell doesn't appear in spell list

  • No loading messages in server logs

  • spells command doesn't show your spell

Solutions:

YAML Syntax Errors

Common Syntax Issues:

Missing Quotes:

Incorrect Indentation:

Invalid List Format:

Mixed Tabs and Spaces:

Validation Errors

Missing Required Properties:

Invalid Property Values:

⚔️ Casting and Effect Issues

Spell Requirements Not Met

Element Requirement:

Level Requirement:

Insufficient Spell Points:

Missing Required Items:

Target Issues

Invalid Enemy Target:

Invalid Room Target:

Wrong Target Type:

Effect Problems

Damage Not Applied:

Healing Not Working:

Teleportation Failing:

Summoning Issues:

🔧 Configuration Issues

Cooldown Problems

Cooldown Not Working:

Cooldown Too Long/Short:

Cast Time Issues

Cast Time Not Triggering:

Casting Interrupted:

  • Don't move during cast time

  • Avoid taking damage

  • Check for interruption messages

Restriction Problems

Combat Restrictions:

Location Restrictions:

📊 Balance and Performance Issues

Spell Too Powerful

Symptoms:

  • Trivializes combat

  • Makes other spells obsolete

  • Breaks game progression

Solutions:

Spell Too Weak

Symptoms:

  • Never worth using

  • Cost too high for benefit

  • Other options always better

Solutions:

Performance Issues

Server Lag:

  • Reduce spell complexity

  • Add reasonable cooldowns

  • Limit max_instances for summoning

  • Check for infinite loops in custom handlers

Memory Usage:

  • Clean up temporary effects

  • Limit persistent summons

  • Monitor long-duration stat modifications

🔍 Debugging Techniques

Enable Debug Logging

Check server logs for detailed information:

Test with Simple Spells

Start with minimal spell to isolate issues:

Use Debug Spells

Test with admin debug spells:

Check Game State

Verify character state:

📞 Getting Help

Information to Provide

When asking for help, include:

  1. Spell file content (YAML)

  2. Error messages (exact text)

  3. Server logs (relevant portions)

  4. Character details (level, element, SP)

  5. Steps to reproduce the issue

Common Support Channels

  1. Documentation - Check all guides first

  2. Examples - Look at working spells in spells/custom/

  3. Server logs - Often contain the answer

  4. Community - Ask other content creators

Self-Help Checklist

Before asking for help:

🎯 Prevention Tips

Best Practices

  1. Start Simple - Begin with basic spells

  2. Test Frequently - Test after each change

  3. Use Examples - Copy from working spells

  4. Validate Syntax - Check YAML before testing

  5. Read Logs - Monitor server output

  6. Document Changes - Keep notes on modifications

Common Mistakes to Avoid

  • Using tabs instead of spaces

  • Forgetting quotes around strings

  • Missing required properties

  • Invalid property values

  • Incorrect file locations

  • Overpowered spell effects

🎉 Success Tips

When Everything Works

  1. Document what you did right

  2. Share successful patterns with others

  3. Test thoroughly before considering complete

  4. Backup working configurations

  5. Iterate to improve balance and fun

Building Expertise

  1. Study examples in detail

  2. Experiment with different configurations

  3. Learn from failures - they teach the most

  4. Help others - teaching reinforces learning

  5. Stay updated - follow system improvements

🎓 Conclusion

Most spell issues are caused by simple syntax errors or missing requirements. Work through this guide systematically, and you'll resolve most problems quickly.

Quick Reference

  • File location: spells/custom/spell_name.yaml

  • Required properties: name, description, sp_cost, target_type, effects

  • Common errors: YAML syntax, missing quotes, wrong indentation

  • Debug tools: Server logs, debug spells, simple test spells

Remember: Every expert was once a beginner who didn't give up! Keep experimenting and learning! ✨

Last updated

Was this helpful?