Analyze Murder Mystery 2 gameplay data, track inventory, and optimize strategy using this Roblox analytics toolkit
triggers
["how do I track my MM2 inventory","analyze my Murder Mystery 2 stats","set up the MM2 analytics dashboard","optimize my Roblox MM2 strategy","export my murder mystery 2 data","configure MM2 knife skin tracker","integrate MM2 analytics with my code","troubleshoot MM2 analytics installation"]
This project is an analytics and inventory management toolkit for Roblox's Murder Mystery 2 game. It provides data visualization, inventory tracking, strategy analysis, and performance metrics to help players optimize their gameplay through data-driven insights.
What It Does
The MM2 Analytics Dashboard offers:
Inventory Management: Track knife skins, gamepasses, and collection completeness
Analytics Engine: Visualize win/loss ratios, performance metrics, and strategy patterns
AI-Powered Insights: Pattern recognition and predictive modeling for inventory values
Multi-platform Support: Desktop, tablet, mobile, and web browser compatibility
Export Capabilities: Export statistics in JSON/CSV formats
# API Keys (optional for AI features)
API_OPENAI_KEY=${OPENAI_API_KEY}
API_CLAUDE_KEY=${CLAUDE_API_KEY}# Data Configuration
DATA_DIRECTORY=./data/collections
ANALYTICS_INTERVAL=300
ENABLE_LIVE_TRACKING=true# Export Settings
EXPORT_FORMAT=json
LOG_LEVEL=INFO
import os
from mm2_analytics import StrategyAnalyzer, AIIntegration
# Initialize with API keys from environment
ai = AIIntegration(
openai_key=os.getenv("API_OPENAI_KEY"),
claude_key=os.getenv("API_CLAUDE_KEY")
)
analyzer = StrategyAnalyzer()
analyzer.load_history("./data/gameplay_history.json")
# Get AI-powered suggestions
current_stats = analyzer.get_current_stats()
suggestions = ai.generate_suggestions(
role="sheriff",
current_stats=current_stats,
model="claude"# or "openai"
)
print("AI Recommendations:")
for suggestion in suggestions:
print(f"- {suggestion['text']} (confidence: {suggestion['confidence']})")
Batch Export Multiple Formats
from mm2_analytics import AnalyticsEngine, ExportManager
engine = AnalyticsEngine(ProfileLoader.load("mystery_solver_01"))
results = engine.analyze(mode="comprehensive")
exporter = ExportManager(results)
# Export in multiple formats
formats = ["json", "csv", "yaml", "xml"]
for fmt in formats:
exporter.export(
format=fmt,
output=f"statistics_2026.{fmt}",
include_metadata=True
)
print(f"Exported to statistics_2026.{fmt}")
# Fix permissionschmod +x setup.sh
# Run with sudo if neededsudo ./setup.sh --install
Data Loading Errors
Problem: Profile not found
from mm2_analytics import ProfileLoader
# List available profiles
profiles = ProfileLoader.list_profiles()
print(f"Available profiles: {profiles}")
# Create new profile
ProfileLoader.create_profile(
username="new_user",
template="default"
)
Problem: Corrupted data files
# Validate data integrity
python3 main.py --validate-data --repair
# Reset to defaults
python3 main.py --reset-data --confirm
API Integration Issues
Problem: AI features not working
import os
# Check environment variables
required_vars = ["API_OPENAI_KEY", "API_CLAUDE_KEY"]
for var in required_vars:
ifnot os.getenv(var):
print(f"Warning: {var} not set")
# Test API connectionfrom mm2_analytics import AIIntegration
ai = AIIntegration(openai_key=os.getenv("API_OPENAI_KEY"))
connection_ok = ai.test_connection()
print(f"API connection: {'OK'if connection_ok else'FAILED'}")
This skill enables AI coding agents to effectively assist developers in using the MM2 Analytics toolkit for Roblox Murder Mystery 2 data analysis, inventory management, and strategy optimization.