Download quick_test.py from Agents-MCP-Hackathon/MMORPG_AI_NPC_MCP_CLIENT_SERVER: direct link, hf CLI and curl.
- Browser
- Download file 1.67 kB
-
https://huggingface.co/spaces/Agents-MCP-Hackathon/MMORPG_AI_NPC_MCP_CLIENT_SERVER/resolve/main/quick_test.py
- Command line
-
hf download hf://spaces/Agents-MCP-Hackathon/MMORPG_AI_NPC_MCP_CLIENT_SERVER/quick_test.py
-
curl -L -o quick_test.py https://huggingface.co/spaces/Agents-MCP-Hackathon/MMORPG_AI_NPC_MCP_CLIENT_SERVER/resolve/main/quick_test.py
1.67 kB
| #!/usr/bin/env python3 | |
| """ | |
| Quick verification that the world events auto-refresh fix is working | |
| """ | |
| import sys | |
| import os | |
| sys.path.append(os.path.dirname(os.path.abspath(__file__))) | |
| def test_world_events_fix(): | |
| """Quick test of the world events fix""" | |
| try: | |
| from src.facades.game_facade import GameFacade | |
| from src.ui.interface_manager import InterfaceManager | |
| print("✅ Import successful") | |
| # Test GameFacade has get_world_events method | |
| facade = GameFacade() | |
| if hasattr(facade, 'get_world_events'): | |
| print("✅ GameFacade.get_world_events() method exists") | |
| events = facade.get_world_events() | |
| print(f"✅ Method returns {len(events)} events") | |
| else: | |
| print("❌ GameFacade.get_world_events() method missing") | |
| return False | |
| return True | |
| except Exception as e: | |
| print(f"❌ Error: {e}") | |
| return False | |
| if __name__ == "__main__": | |
| print("🔧 QUICK WORLD EVENTS FIX VERIFICATION") | |
| print("=" * 50) | |
| if test_world_events_fix(): | |
| print("\n🎉 World events auto-refresh fix is working!") | |
| print("📋 Summary of what was fixed:") | |
| print("✅ Added 'world_events' as 8th output in timer configuration") | |
| print("✅ Fixed mismatch between timer outputs (7) and method returns (8)") | |
| print("✅ World events panel will now update automatically") | |
| print("\n🌐 Server should be running at: http://localhost:7866") | |
| else: | |
| print("\n❌ There are still issues with the fix") | |