⚔️ GRUDGE WARLORDS ⚔️

Complete Game Systems Guide

Updated: January 31, 2026 - Corrected with actual codebase data

85% Complete - Production Ready

🎮 Game Overview

GRUDGE Warlords (Warlord Crafting Suite) is an immersive MMO-style crafting and character progression game featuring AI-powered features, blockchain integration, and extensive game modes.
🎯 Core Features
  • Multi-class character system with deep progression
  • 500+ crafting recipes with tiered materials
  • 5 harvesting + 5 crafting professions
  • AI-powered NPCs and sprite generation
  • Personal home islands with auto-harvesting
  • NFT character minting on Solana
🎮 Game Modes
  • Main Crafting App - Full-featured crafting experience
  • Home Island - Resource management & AFK farming
  • Combat Dungeons - PvE encounters (in development)
  • Grudge Builder - Base building mode (30% complete)
  • Admin Dashboard - Management tools
🔐 Authentication
  • Local username/password accounts
  • Solana wallet authentication
  • Puter Cloud integration
  • Guest mode for quick access
  • Secure session management

👤 Character System

Character Creation

Choose Race
→
Choose Class
→
Enter Name
→
Generate AI Avatar
→
Create Character

The 8 Core Attributes

Your character is defined by 8 attributes that determine combat effectiveness, survivability, and playstyle. Each attribute provides specific per-point bonuses detailed below.

Note: All percentage values are shown per point invested. Total points available: 160

💪 Strength

Role: Tank / Melee DPS

Description: Physical might and raw power. Increases raw damage output, physical defense, and health. Warriors and melee builds scale heavily with Strength. Each point grants diminishing returns on damage beyond 50 points.

Per-Point Bonuses:

  • Health: +5
  • Physical Damage: +1.25
  • Physical Defense: +4
  • Block Chance: +0.2%
  • Lifesteal: +0.075%
  • Stagger on Hit: +0.04%
  • Mana Pool: +1
  • Stamina: +0.8
  • Attack Accuracy: +0.08%
  • Health Regen/s: +0.02
  • Damage Reduction: +0.02%

🧠 Intellect

Role: Mage / Caster

Description: Mental acuity and spellcasting power. Powers magical damage, mana regeneration, and ability cooldown reduction. Casters scale directly with Intellect. High Intellect reduces spell cast times by 0.2% per point. Countered heavily by Resistance.

Per-Point Bonuses:

  • Mana Pool: +9
  • Magical Damage: +1.5
  • Magical Defense: +2
  • Mana Regen/s: +0.04
  • Cooldown Reduction: +0.075%
  • Spell Accuracy: +0.15%
  • Health: +3
  • Stamina: +0.4
  • Attack Accuracy: +0.1%
  • Ability Cost Reduction: +0.05%

❤️ Vitality

Role: Tank / Survivability

Description: Physical endurance and life force. Maximizes health pool and provides passive health regeneration. Vital for tanks and sustained damage builds. Very effective against burst damage, but weak to percentage-based damage abilities.

Per-Point Bonuses:

  • Health: +25
  • Physical Defense: +1.5
  • Health Regen/s: +0.06
  • Damage Reduction: +0.04%
  • Bleed Resistance: +0.15%
  • Mana Pool: +1.5
  • Stamina: +1
  • Magic Resistance: +0.08%
  • Armor Rating: +0.2

🎯 Dexterity

Role: Rogue / Precision Fighter

Description: Hand-eye coordination and finesse. Dominates critical chance, attack speed, and accuracy. Rogues and archers scale with Dexterity. Provides attack speed bonus (0.4% per point). Critical hits bypass 40% of block chance.

Per-Point Bonuses:

  • Damage: +0.9
  • Critical Chance: +0.3%
  • Attack Accuracy: +0.25%
  • Attack Speed: +0.2%
  • Evasion Chance: +0.125%
  • Critical Damage Multiplier: +0.2%
  • Physical Defense: +1.2
  • Stamina: +0.6
  • Movement Speed: +0.08%
  • Reaction Time Bonus: +0.03%
  • Health: +3

🛡️ Endurance

Role: Defensive Specialist

Description: Stamina reserves and physical resistance. Builds stamina for abilities and provides armor scaling. High Endurance enables higher block effectiveness and reduces crowd control duration. Synergizes with blocking playstyles.

Per-Point Bonuses:

  • Stamina: +6
  • Physical Defense: +5
  • Block Effectiveness: +0.175%
  • CC Duration Reduction: +0.1%
  • Armor Rating: +0.6
  • Armor Break Resistance: +0.125%
  • Health: +8
  • Mana Pool: +1
  • Health Regen/s: +0.02
  • Block Chance: +0.12%

🔮 Wisdom

Role: Healer / Support / Magic Tank

Description: Mental fortitude and magical resilience. Primary counter to magical damage. Scales resistance and provides magic immunity scaling. Each point provides 0.4% Cooldown Reduction Resistance (slows enemy cooldown reduction). Essential for magic-heavy environments.

Per-Point Bonuses:

  • Mana Pool: +6
  • Magical Defense: +5.5
  • Magic Resistance: +0.25%
  • CDR Resistance: +0.2%
  • Status Effect Duration Reduction: +0.075%
  • Spell Block Chance: +0.125%
  • Health: +4
  • Stamina: +0.5
  • Damage Reduction: +0.03%
  • Spell Accuracy: +0.1%

⚡ Agility

Role: Mobile DPS / Dodge Tank

Description: Speed, reflexes, and positioning. Increases movement speed, dodge chance, and evasion. Synergizes with high-risk playstyles. Each point grants 0.3% movement speed. Dodge provides invincibility frames (0.5s per dodge).

Per-Point Bonuses:

  • Movement Speed: +0.15%
  • Evasion Chance: +0.225%
  • Dodge Cooldown Reduction: +0.15%
  • Reaction Time Bonus: +0.04%
  • Crit Evasion: +0.25%
  • Fall Damage Reduction: +0.2%
  • Stamina: +1
  • Attack Accuracy: +0.1%
  • Attack Speed: +0.05%
  • Damage: +0.3
  • Health: +3

🎲 Tactics

Role: Strategic Fighter / Commander

Description: Expertise in ability execution and resource management. Tactics grants a scaling bonus to all other stats based on total invested points (0.5% per point). High Tactics reduces ability costs, cooldowns, and provides armor penetration. Counters enemy Defense and Block. Essential for versatile builds.

Per-Point Bonuses:

  • Stamina: +3
  • Ability Cost Reduction: +0.075%
  • Armor Penetration: +0.2%
  • Block Penetration: +0.175%
  • Defense Break Power: +0.1%
  • Combo Cooldown Reduction: +0.125%
  • Damage: +0.4
  • Physical Defense: +1
  • Mana Pool: +1.5
  • Cooldown Reduction: +0.05%
  • Health: +3

Special Mechanic: Tactics provides a 0.5% multiplicative bonus to ALL non-resource stats per point invested. This means with 40 Tactics, you get +20% to all combat stats (excluding Health, Mana, Stamina).

3 Factions - 6 Races

Choose your faction allegiance through your race selection. Each faction represents a different philosophy and playstyle.

⚔️ CRUSADE (Order & Honor)

👤 Human

Description: Versatile and adaptable, humans excel in any role

Attribute Bonuses: +1 Strength, +1 Intellect, +1 Wisdom, +2 Tactics

Traits:

  • Adaptable (+5% XP gain)
  • Diplomatic (+10% gold from quests)
⚔️ Barbarian

Description: Savage warriors of the frozen north who fight for honor

Attribute Bonuses: +3 Strength, +2 Vitality, +2 Endurance

Traits:

  • Rage (+20% damage when below 50% HP)
  • Frost Resistance (+15% cold defense)

✨ FABLED (Ancient Magic)

⛏️ Dwarf

Description: Sturdy and resilient, dwarves are master craftsmen and ancient warriors

Attribute Bonuses: +2 Strength, +3 Vitality, +3 Endurance

Traits:

  • Stoneborn (+20% Defense)
  • Master Craftsman (+1 crafting tier)
🧝 Elf

Description: Ancient and wise, elves possess innate magical abilities

Attribute Bonuses: +3 Intellect, +2 Wisdom, +2 Dexterity

Traits:

  • Keen Senses (+15% Accuracy)
  • Arcane Affinity (+10% Mana)

🔥 LEGION (War & Chaos)

👹 Orc

Description: Brutal and fearless, orcs live for battle and glory

Attribute Bonuses: +4 Strength, +2 Vitality, +1 Endurance

Traits:

  • Bloodrage (+25% damage when below 50% HP)
  • Warborn (+10% Critical)
💀 Undead

Description: Neither living nor dead, undead persist through sheer will

Attribute Bonuses: +2 Vitality, +3 Endurance, +2 Wisdom

Traits:

  • Undying (+20% HP)
  • Fear Aura (-10% enemy accuracy)

4 Classes

Class Archetype Primary Attributes Starting Bonuses Abilities
⚔️ Warrior Tank Strength, Vitality, Endurance +3 STR, +2 VIT, +1 END Shield Bash, Battle Cry, Charge, Last Stand
🐺 Worg DPS Strength, Agility, Vitality +2 STR, +2 AGI, +2 VIT Savage Bite, Howl, Pack Hunt, Feral Rage
🔥 Mage DPS Intellect, Wisdom, Tactics +3 INT, +2 WIS, +1 TAC Fireball, Ice Storm, Arcane Blast, Meteor
🏹 Ranger DPS Dexterity, Agility, Wisdom +2 DEX, +2 AGI, +2 WIS Aimed Shot, Multi-Shot, Traps, Beast Companion

4 Starter Hero Prefabs

Pre-configured heroes for quick start, each optimized for their role with level 5 stats and Tier 2 equipment.

🛡️ Thane Ironshield

Title: The Mountain Guardian

Race/Class: Dwarf Warrior

Role: Tank - High defense, blocks damage, protects team

Attributes: 12 STR, 14 VIT, 13 END, 4 INT, 5 WIS, 6 DEX, 5 AGI, 8 TAC

Professions: Mining, Blacksmithing, Engineering

⚡ Lyra Stormweaver

Title: The Storm Weaver

Race/Class: Elf Mage

Role: Ranged Magic DPS - High burst damage, area effects

Attributes: 4 STR, 7 VIT, 5 END, 15 INT, 12 WIS, 6 DEX, 6 AGI, 8 TAC

Professions: Herbalism, Alchemy, Jewelcrafting

🗡️ Kael Shadowblade

Title: The Shadow Blade

Race/Class: Human Rogue

Role: Agile Melee DPS - High crits, evasion, burst damage

Attributes: 8 STR, 8 VIT, 6 END, 6 INT, 5 WIS, 15 DEX, 14 AGI, 11 TAC

Professions: Skinning, Tailoring, Engineering

✨ Mira Dawnbringer

Title: The Sacred Flame

Race/Class: Human Cleric

Role: Support/Healer - Sustain team, buff allies, light offense

Attributes: 6 STR, 10 VIT, 8 END, 10 INT, 15 WIS, 6 DEX, 7 AGI, 10 TAC

Professions: Herbalism, Alchemy, Cooking

Combat Stats & Caps

Stat Caps (Diminishing Returns): The game uses a sophisticated diminishing returns system to prevent stat stacking

  • Block Chance: 75% cap
  • Critical Chance: 75% cap
  • Accuracy: 95% cap
  • Evasion: 50% cap
  • Resistance: 95% cap
  • Critical Factor: 300% (3x damage) cap
  • Block Factor: 90% damage reduction cap

Base Stats (Level 1)

Every character starts with these base values before any attribute bonuses:

Stat Base Value Description
Health 250 Hit points
Mana 100 Energy for abilities
Stamina 100 Fuel for physical actions
All Other Stats 0 Built entirely from attributes

Combat Power Calculation

Combat Power is a composite score that evaluates overall character strength. It's calculated using:

// Effective Health Pool (EHP) EHP = Health × (1 + Defense/100) × (1 + Resistance/100) // Damage Per Second (DPS) Factor DPS = (Damage + 10) × (1 + (CritChance/100) × (CritDmg/100)) × (1 + AttackSpeed/100) // Utility Factor Utility = (CDR × 2) + (ManaRegen × 10) + (MoveSpeed × 2) // Final Combat Power Combat Power = floor(EHP × 0.4 + DPS × 2.5 + Utility × 5)

Build Rating System

Builds are ranked from F to S+ based on Combat Power and synergy:

  • S+ Rating: 90+ score (Top 1% builds)
  • S Rating: 80-90 score (Elite builds)
  • A Rating: 70-80 score (Excellent builds)
  • B Rating: 60-70 score (Good builds)
  • C Rating: 50-60 score (Average builds)
  • D Rating: Below 50 (Needs improvement)

Synergy Bonus: Characters get up to +20 points for investing heavily in complementary stat combinations:

  • Tank: Strength + Vitality + Endurance
  • Mage: Intellect + Wisdom + Tactics
  • Rogue/Warrior: Dexterity + Agility + Strength
  • Support: Tactics + Endurance + Wisdom

Class Tiers & Rankings

Characters are classified into tiers based on their overall build quality (Rank 1-300):

Tier Rank Range Description Examples
Legendary 1-10 Mythical power achieved through perfect synergy Primordial God-King, Eternal Void Walker
Warlord 11-50 A dominant force on the battlefield Solar Walker Warlord, Chaos Weaver Warlord
Epic 51-100 A hero of renown and great skill Epic Void Slayer, Epic Storm Sage
Hero 101-200 A capable adventurer with potential Fire Blade, Wind Walker
Normal 201-300 A standard combatant Novice Guard, Novice Shield

Level Progression

Max Level: 100

Starting Attributes: Base 5 in all stats + Race bonuses + Class bonuses

Attribute Points: Total of 160 points to distribute across all 8 attributes

Attribute Points: Gained through leveling (check statCalculator for exact formulas)

AI Personality System

Each character can have an AI-generated personality that influences their chat responses and behavior:

  • True Goals: What the character wants to achieve
  • Hobbies: Activities they enjoy
  • Obsessions: Things they're fixated on
  • Behavior: How they act and react
  • Catchphrase: Signature saying
  • Fears: What they're afraid of
  • Chat Temperature: 0-100 (controls response creativity)

⚔️ Combat System

Combat Mechanics

The combat system uses a rules engine for consistent calculations across all game modes. FF7-style turn-based combat with real-time positioning.

Damage Calculation

Base Damage = (Attacker Stat × 2) + Weapon Damage Variance = Base × (0.9 to 1.1) Critical = Variance × 1.5 (if crit) Defense Mitigation = Critical - (Defender Defense × 0.5) Final Damage = Max(Defense Mitigation, 1)

Weapon Skills

Weapon Mastery (1-100)

Each weapon type has individual mastery levels:

  • Swords, Axes, Hammers (STR)
  • Daggers, Bows, Crossbows (DEX)
  • Staves, Wands, Tomes (INT)

Skill Loadouts

4 skill slots per weapon type:

  • Slot 1: Basic Attack (always equipped)
  • Slots 2-4: Special abilities
  • Each skill has upgrade levels
  • Skills unlock through skill tree

Class Skill Trees

Skill Points: Earned 1 per level (starting with 1 at creation)

Tiers: Skills organized in 10 tiers

Requirements: Must unlock lower tiers before accessing higher tiers

Selections: Stored by tier level in character data

Combat Statuses

Status Effect Duration
🔥 Burning DoT: 5% max HP per turn 3 turns
❄️ Frozen Cannot act, take 150% damage 2 turns
⚡ Stunned Skip turn 1 turn
🛡️ Shield Absorb damage 3 turns or until broken
💪 Strength Up +30% physical damage 5 turns

🔨 Crafting System

System Overview

500+ recipes spanning 9 tiers (Tier 0-8), with materials progressing from Basic → Legendary quality.

Material Tiers

Tier Quality Example Materials Item Level
T0 Starter Wood Plank, Stone, Basic Cloth 1-5
T1 Common Iron Ore, Oak Wood, Wool 5-15
T2 Uncommon Steel, Ash Wood, Linen 15-25
T3 Rare Mithril, Yew Wood, Silk 25-40
T4 Epic Adamantite, Ironwood, Shadowsilk 40-55
T5 Legendary Orichalcum, Ancient Oak, Moonweave 55-70
T6 Mythic Starsteel, Worldtree Wood, Voidsilk 70-85
T7 Divine Celestial Ore, Phoenix Wood, Aetherweave 85-95
T8 Godly Godmetal, Infinity Wood, Reality Fabric 95-100

Crafting Features

📜 Recipe System
  • Recipe discovery through gameplay
  • Multiple materials per recipe
  • Quantity-based crafting
  • Smart recipe suggestions
  • Bulk crafting support
⭐ Quality System
  • Normal: Base stats
  • Fine: +1 stat, +10% durability
  • Superior: +2 stats, +25% durability
  • Masterwork: +5 stats, +50% durability
  • Legendary: +10 stats, +100% durability
🎯 Crafting Bonuses
  • Profession level affects quality
  • Skill tree bonuses
  • Critical craft chance
  • Bonus material efficiency
  • Socket chance on high quality

Equipment Types

Armor Slots: Helmet, Chest, Gloves, Legs, Boots, Ring, Necklace
Weapon Types: Swords, Axes, Hammers, Daggers, Bows, Crossbows, Staves, Wands, Shields
Consumables: Potions, Food, Scrolls, Elixirs

⛏️ Profession System

System Philosophy

Relaxing AFK Harvesting: Your home island is a peaceful zone where heroes automatically gather resources while you're away. Return to abundant materials ready for crafting!

Harvesting Professions

⛏️ Mining

Resources: Ore, Stone, Gems, Crystals

Stat Gains: +STR (primary), +VIT (secondary)

Feeds: Miner (weapons/armor), Engineer (guns)

T8 Resources: Godmetal, Worldcore Gem

🪓 Logging

Resources: Wood, Bark, Resin

Stat Gains: +STR, +VIT (balanced)

Feeds: Forester (bows/leather), Engineer

T8 Resources: Worldtree Wood, Phoenix Bark

🌿 Herbalism

Resources: Herbs, Flowers, Roots, Berries

Stat Gains: +INT (primary), +VIT (secondary)

Feeds: Mystic (potions), Chef (food buffs)

T8 Resources: Celestial Lotus, Void Blossom

🎣 Fishing

Resources: Fish, Pearls, Shells

Stat Gains: +DEX (primary), +VIT (secondary)

Feeds: Chef (food buffs)

T8 Resources: Leviathan Meat, Abyssal Pearl

🔪 Skinning

Resources: Leather, Hide, Bone, Fat

Stat Gains: +DEX, +STR, +VIT

Feeds: Forester (leather armor)

T8 Resources: Dragon Scale, Phoenix Feather

Crafting Professions

⚒️ Miner

Crafts metal weapons and armor

Skill Trees: Weaponsmithing, Armorsmithing, Alloy Mastery

🪓 Forester

Crafts bows, crossbows, and leather armor

Skill Trees: Bowcraft, Leatherworking, Woodworking

🔮 Mystic

Crafts staves, enchantments, and potions

Skill Trees: Enchanting, Alchemy, Spellweaving

🍳 Chef

Crafts food buffs and consumables

Skill Trees: Cooking, Brewing, Butchery

⚙️ Engineer

Crafts guns and mechanical devices

Skill Trees: Weaponry, Automata, Siege Engineering

Node Rarity System

Rarity Spawn % Max Harvests Yield XP Stat Gains
Common 70% 3 1.0x 1.0x 1.0x
Rare 20% 5 1.5x 1.5x 1.25x
Epic 8% 8 2.0x 2.0x 1.5x
Legendary 2% 12 3.0x 3.0x 2.0x

Profession Progression

Level 1-50: Easy (100 × level XP per level)

Level 51-90: Medium (300 × level XP per level)

Level 91-100: Hard (1000 × level XP per level)

Decay System: 18-hour grace period, decays to level 50 minimum over 21 days

AFK Harvesting Flow

1. Assign Heroes to Island
↓
2. Enable Auto-Mode
↓
3. Go AFK (hours/days)
↓
4. Heroes Auto-Harvest
↓
5. Return to Summary
↓
6. Use Resources to Craft

🏝️ Island System

Home Island Features

🗺️ Island Generation
  • Procedurally generated terrain
  • Multiple biome types
  • Resource node placement
  • Dynamic spawn system
  • Expandable island size
🌳 Resource Nodes
  • Trees, rocks, herb patches, ore veins
  • Rarity-based spawning
  • Respawn timers
  • Multi-harvest capabilities
  • Node upgrades through progression
🤖 Auto-Harvest System
  • Assign heroes to auto-gather
  • Smart pathfinding to nodes
  • Priority system for legendary nodes
  • Background gathering while offline
  • Session summary on return

Island Rendering

Technology: Phaser 3 for 2D rendering, PixiJS for performance optimization
Physics: Matter.js for collision detection and movement
Camera: Isometric top-down view with smooth scrolling

Island Progression

  • Island Level: Increases with account XP
  • Node Quality: Higher level = better spawns
  • Size Expansion: Unlock more area over time
  • Building Slots: Place structures for bonuses
  • NFT Islands: Mint your island as NFT (Solana)

Session Summary Example

📊 AFK Session Summary (2 Hours) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ✨ Resources Gained: • 156x Iron Ore • 89x Oak Wood • 67x Moonleaf • 12x Sapphire (Rare) • 3x Mithril Ore (Legendary!) 📈 Profession XP: • Mining: +480 XP (Level 35 → 36) • Logging: +360 XP • Herbalism: +520 XP (Level 42 → 43) 💪 Stat Gains: • Strength: +2.4 • Dexterity: +0.8 • Intellect: +1.6 • Vitality: +1.2 🌟 Notable Events: • Legendary Mithril Ore (3x) from Ancient Vein • Critical gather! 12x Sapphire from Rare Gem Deposit

📈 Progression Systems

Character Progression

Experience & Leveling

  • XP from combat, quests, crafting
  • Level 1-100 (exponential curve)
  • 7 attribute points per level
  • 1 skill point per level
  • Account-wide XP aggregation

Skill Trees

  • Class-specific skill trees
  • 10 tiers of abilities
  • Unlock prerequisites for advancement
  • Passive and active skills
  • Respec options available

Equipment Progression

  • 9 tiers of gear (T0-T8)
  • Socket system for gems
  • Quality tiers (Normal → Legendary)
  • Set bonuses
  • Enchantment system

Profession Progression

Level Range Title Harvest Speed Bonus Resources Stat Gains Special
1-20 Novice → Apprentice +10-20% +1-2 +0.01-0.02 -
20-50 Journeyman → Artisan +20-50% +2-5 +0.03-0.06 10-25% rare chance
50-100 Master → Legendary +50-65% +5-10 +0.06-0.11 35% crit, 25% gear drop

Account-Wide Features

  • Gold: Shared currency across all characters
  • Premium Currency: GbuX tokens
  • Account XP: Aggregated from all characters
  • Home Island: One island per account
  • Achievements: Tracked account-wide

🤖 AI Systems

AI Features Overview

🎨 Sprite Generation
  • AI-powered character avatars
  • Custom style prompts
  • Batch generation support
  • Multiple art styles
  • Race/class-specific templates
💬 NPC Chat
  • AI-powered NPC conversations
  • Personality-based responses
  • Context-aware dialogue
  • Quest integration
  • Memory of past interactions
🧠 AI Personality
  • Character personality generation
  • Goals, hobbies, obsessions
  • Behavioral patterns
  • Custom catchphrases
  • Fear and motivation system
🔍 Vision Analysis
  • Image recognition
  • Equipment identification
  • Item suggestions
  • Visual feedback system

AI Providers

Primary: OpenAI GPT-4

Secondary: Anthropic Claude (optional)

Image Generation: DALL-E / Stable Diffusion

Vision: GPT-4 Vision API

Chat Temperature System

Characters have adjustable chat temperature (0-100):

  • 0-30: Factual, consistent responses
  • 30-70: Balanced creativity (default: 70)
  • 70-100: Highly creative, unpredictable

AI Worker System

Background AI workers handle:

  • Sprite generation queue
  • NPC response generation
  • Personality creation
  • Content moderation
  • Asset organization

🎨 NFT Integration

Blockchain Features

👤 Character NFTs
  • Mint characters as Solana NFTs
  • On-chain character metadata
  • Tradeable on marketplaces
  • Provable ownership
  • Cross-game compatibility
🏝️ Island NFTs
  • Mint home islands (cNFTs)
  • Crossmint integration
  • Island ownership verification
  • Transfer and trade islands
  • Email-based claiming
🔐 Wallet Authentication
  • Solana wallet login
  • Phantom wallet support
  • Crossmint email wallets
  • External wallet linking
  • Multi-account support

Crossmint Integration

Crossmint enables gasless NFT minting with email-based wallets:

  • No crypto wallet required
  • Email-based authentication
  • Custodial wallet management
  • Credit card payments
  • cNFT (compressed NFT) support

NFT Metadata

{ "name": "Warrior Hero #1234", "description": "Level 45 Human Warrior", "image": "https://...", "attributes": [ { "trait_type": "Level", "value": 45 }, { "trait_type": "Class", "value": "Warrior" }, { "trait_type": "Race", "value": "Human" }, { "trait_type": "Strength", "value": 85 }, { "trait_type": "Vitality", "value": 72 } ] }

Token Economics

GbuX Token: Premium in-game currency

  • Purchase with fiat or crypto
  • Used for premium features
  • Tradeable on exchanges
  • Stake for rewards

🚀 Deployment Guide

Deployment Architecture

Recommended Setup: Vercel (Frontend) + Railway/Render (Backend) + Managed PostgreSQL

Pre-Deployment Checklist

✅ Code Preparation
  • Run TypeScript type check: npm run check
  • Test local build: npm run build
  • Verify all tests pass
  • Review .env.example for required variables
  • Commit all changes to version control
🗄️ Database Setup
  • Provision PostgreSQL instance
  • Note connection string (DATABASE_URL)
  • Run migrations: npm run db:push
  • Verify schema is correct
  • Configure connection pooling
🔐 Security
  • Generate strong SESSION_SECRET
  • Configure CORS for production domains
  • Set NODE_ENV=production
  • Review and secure API keys
  • Enable HTTPS/SSL certificates

Step 1: Deploy Backend (Railway)

1. Sign up at railway.app
→
2. New Project → Add PostgreSQL
→
3. Add Service → Link GitHub Repo
→
4. Configure Environment Variables
→
5. Deploy & Get Public URL

Required Environment Variables

# Railway Auto-Provides: PORT=8080 DATABASE_URL=postgresql://... # You Must Add: NODE_ENV=production SESSION_SECRET=your-random-64-char-string # Optional (if using features): OPENAI_API_KEY=sk-... CROSSMINT_API_KEY=... SOLANA_RPC_URL=https://api.mainnet-beta.solana.com

Step 2: Deploy Frontend (Vercel)

Already Configured: Your project includes vercel.json with optimal settings

1. Sign up at vercel.com
→
2. Import GitHub Repository
→
3. Set Environment Variables
→
4. Deploy
→
5. Add Custom Domain

Vercel Environment Variables

VITE_API_URL=https://your-backend.railway.app VITE_ASSET_CDN_URL=https://molochdagod.github.io/grudge-studio-auth/assets

Step 3: Asset Management

Current Setup: GitHub Pages hosts static assets (sprites, images)

Migration Available: Scripts provided for Puter Cloud or Google Cloud Storage

Common Deployment Issues & Solutions

Issue Cause Solution
❌ CORS errors Backend not in CORS allowlist Add frontend URL to server CORS config
❌ Database connection failed Wrong DATABASE_URL or SSL issue Verify connection string, enable SSL if required
❌ Build failed Missing dependencies or env vars Check logs, ensure all deps installed
❌ Session not persisting Wrong SESSION_SECRET or store config Use PostgreSQL session store (connect-pg-simple)
❌ 502 Bad Gateway Backend not listening on correct port Use process.env.PORT (Railway/Render provide this)

Deployment Validation

Backend Health Checks

  • ✅ GET /api/health returns 200
  • ✅ Database migrations completed
  • ✅ CORS headers present
  • ✅ Session store connected
  • ✅ All routes responding

Frontend Validation

  • ✅ Assets loading correctly
  • ✅ API calls successful
  • ✅ Authentication working
  • ✅ Character creation works
  • ✅ Island system loads

Performance Checks

  • ✅ Page load < 3 seconds
  • ✅ API response < 500ms
  • ✅ Assets cached properly
  • ✅ Database queries optimized
  • ✅ No memory leaks

Monitoring & Maintenance

  • Logs: Railway dashboard provides real-time logs
  • Metrics: Vercel Analytics tracks frontend performance
  • Errors: Check browser console and server logs
  • Database: Monitor connection pool and query performance
  • Backups: Enable automated database backups

Best Practices Summary

🚫 AVOID DUPLICATIONS:
  • Don't deploy same backend to multiple services
  • Don't mix deployment methods (choose Railway OR Render, not both)
  • Don't commit .env files to version control
  • Don't use development dependencies in production
  • Don't skip database migrations
✅ BEST PRACTICES:
  • Use environment variables for all config
  • Enable automatic deployments from main branch
  • Set up staging environment for testing
  • Monitor application logs regularly
  • Keep dependencies up to date
  • Use TypeScript strict mode
  • Implement proper error handling
  • Test locally before deploying

💻 Technology Stack

Frontend

React 19 TypeScript 5.6 Vite 7 TailwindCSS 4 Radix UI Wouter (Routing) React Query Zustand Framer Motion

Game Engine

Phaser 3 PixiJS 8 Babylon.js 8 Matter.js (Physics)

Backend

Node.js 20 Express 4 TypeScript Pino (Logging) Passport.js Express Session

Database

PostgreSQL Drizzle ORM 0.45 Connection Pooling

AI & Blockchain

OpenAI GPT-4 Anthropic Claude Solana Web3.js Crossmint

Cloud Services

Vercel (Frontend) Puter Cloud Google Cloud Storage GitHub Pages (Assets)

Architecture Overview

React Frontend (Vite)
↕
Express API (Node.js)
↕
PostgreSQL (Drizzle ORM)


Phaser Game Engine
→
Matter.js Physics
→
PixiJS Rendering

Project Structure

Warlord-Crafting-Suite/ ├── client/ # React frontend (Vite) │ ├── src/ │ │ ├── pages/ # 30+ route pages │ │ ├── components/ # UI components │ │ ├── lib/ # Utilities & API client │ │ ├── contexts/ # React contexts │ │ └── hooks/ # Custom hooks │ └── public/ # Static assets │ ├── server/ # Express backend │ ├── index.ts # Server entry │ ├── routes/ # API routes │ ├── services/ # Business logic │ └── lib/ # Server utilities │ ├── shared/ # Shared code │ ├── schema.ts # Database schema │ ├── definitions/ # Game data │ ├── gameDefinitions/ # Game rules │ └── utils/ # Shared utilities │ └── docs/ # Documentation

Database Schema

Table Purpose Key Fields
users Authentication id, username, password, walletAddress
accounts Cross-character data userId, gold, premiumCurrency, avatarUrl
characters Player characters name, raceId, classId, level, attributes, inventory
parties Party composition userId, characterIds (max 3)
resource_nodes Island nodes userId, nodeId, lastGathered
player_resources Resource inventory userId, resources (JSONB)
dungeon_runs Active dungeons userId, dungeonId, partyState, status
combat_logs Combat history dungeonRunId, participants, actions, result

UUID System

Custom Grudge UUID Format:

SLOT-TIER-ITEMID-TIMESTAMP-COUNTER

Example: helm-t5-0042-121530092026-000abc

  • Slot Code: 4-char equipment/item type
  • Tier Code: t0-t8 or 'oo' for non-tiered
  • Item ID: 4-digit unique identifier
  • Timestamp: HHMMMMDDYYYY (Texas Time)
  • Counter: Base-36 collision prevention

Development Setup

Prerequisites

  • Node.js 20.x
  • npm or yarn
  • PostgreSQL database

Quick Start

# Install dependencies npm install # Configure environment cp .env.example .env # Run migrations npm run db:push # Start dev servers npm run dev # Frontend: http://localhost:5000 # Backend: http://localhost:3000

📊 Project Status

Feature Completion

Feature Status Completion
Character System ✅ Complete 100%
Inventory Management ✅ Complete 100%
Crafting System ✅ Complete 100%
Skill Trees ✅ Complete 100%
Authentication ✅ Complete 100%
Sprite Generation ✅ Complete 100%
Admin Dashboard ✅ Complete 95%
API Client ✅ Complete 100%
Island System ✅ Complete 90%
Profession System 🚧 In Progress 85%
Grudge Builder 🚧 In Progress 30%
Multiplayer 📅 Planned 0%

Overall Progress: 85% Complete

Status: Production Ready

Last Updated: January 2026

Recent Updates

  • ✅ React 19 + Vite 7 upgrade
  • ✅ Complete database schema documentation
  • ✅ UUID system implementation
  • ✅ AI personality system
  • ✅ Crossmint NFT integration
  • 🚧 Enhanced profession system
  • 🚧 AFK harvesting improvements

Roadmap

Q1 2026 (Current)

  • Complete profession enhancements
  • Island system polish
  • Combat balancing

Q2 2026

  • Grudge Builder completion
  • Achievement system
  • Guild system

Q3 2026

  • Multiplayer features
  • PvP arena
  • Trading system

🎮 Ready to Craft Your Destiny?

Join thousands of players in the GRUDGE Warlords universe!


Discord: https://discord.gg/nswkr5TnSA

GitHub: https://github.com/yourusername/Warlord-Crafting-Suite


© 2026 GRUDGE Warlords - Warlord Crafting Suite
Built with ⚔️ by the GRUDGE development team

0