Skip to content

AkazaAkane/hltv-live-match-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

HLTV Live Match Console

A VS Code extension that provides real-time live match tracking, game logs, and scoreboards for HLTV Counter-Strike matches.

HLTV Live Match Console VS Code TypeScript

๐Ÿš€ Features

๐Ÿ”ด Live Match Console - Real-time text-based match tracking
๐Ÿ“Š Live Scoreboards - Player stats, money, health, and performance
๐ŸŽฎ Chronological Game Log - Kill feeds, round events, and match progression
๐Ÿ“ฑ Status Bar Integration - Live score updates in your status bar
โšก WebSocket Support - Direct connection to HLTV scorebot data

๐Ÿ“ฆ Installation

From VSIX Package

  1. Download the latest hltv-log-0.3.0.vsix from releases
  2. Open VS Code/Cursor
  3. Press Ctrl+Shift+P โ†’ Extensions: Install from VSIX...
  4. Select the downloaded VSIX file
  5. Restart VS Code/Cursor

From Source

# Clone the repository
git clone https://github.com/yourusername/hltv-live-match-console.git
cd hltv-live-match-console

# Install dependencies
npm install

# Compile TypeScript
npm run compile

# Package the extension
npx vsce package

# Install the extension
code --install-extension hltv-log-0.3.0.vsix

๐ŸŽฎ Usage

Starting a Live Match

  1. Command Palette: Ctrl+Shift+P โ†’ HLTV: Start Live Match
  2. Status Bar: Click the $(broadcast) HLTV Live button
  3. Enter a match ID (e.g., 2382614) or full HLTV URL

Example Output

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
๐Ÿ”ด STARTING HLTV LIVE MATCH CONSOLE
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

10:30:15 โ„น๏ธ  Match ID: 2382614
10:30:15 โ„น๏ธ  Launching browser and connecting to HLTV...
10:30:18 โ„น๏ธ  โœ… HLTV page loaded successfully
10:30:18 โ„น๏ธ  ๐Ÿ” Searching for live scorebot data...

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
๐Ÿ† SPIRIT vs MOUZ
๐Ÿ“ Map: DUST2 | Round: R: 22 - dust2 | Score: 9 - 13
๐Ÿ“Š Recent rounds: โฐ CT CT ๐Ÿ”ง ๐Ÿ”ง ๐Ÿ”ง ๐Ÿ”ง CT CT ๐Ÿ”ง ๐Ÿ’ฃ T ๐Ÿ’ฃ T T
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ“Š LIVE SCOREBOARD
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
๐Ÿ”ต SPIRIT (CT) - 9
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”
โ”‚ Player      โ”‚ K  โ”‚ D  โ”‚ A  โ”‚ ADR โ”‚ Money  โ”‚ HP โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”ค
โ”‚ donk        โ”‚ 23 โ”‚ 16 โ”‚  5 โ”‚121.0โ”‚   $150 โ”‚  0 โ”‚
โ”‚ magixx      โ”‚ 15 โ”‚ 15 โ”‚  5 โ”‚ 86.6โ”‚  $1050 โ”‚  0 โ”‚
โ”‚ sh1ro       โ”‚ 11 โ”‚ 12 โ”‚  1 โ”‚ 47.4โ”‚   $500 โ”‚  0 โ”‚
โ”‚ chopper     โ”‚  7 โ”‚ 15 โ”‚  0 โ”‚ 32.0โ”‚    $50 โ”‚  0 โ”‚
โ”‚ zont1x      โ”‚  6 โ”‚ 15 โ”‚  5 โ”‚ 55.3โ”‚   $850 โ”‚  0 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”˜

๐Ÿ”ด MOUZ (T) - 13
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”
โ”‚ Player      โ”‚ K  โ”‚ D  โ”‚ A  โ”‚ ADR โ”‚ Money  โ”‚ HP โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”ค
โ”‚ Jimpphat    โ”‚ 18 โ”‚ 10 โ”‚  5 โ”‚ 90.0โ”‚  $2200 โ”‚100 โ”‚
โ”‚ xertioN     โ”‚ 17 โ”‚ 15 โ”‚  5 โ”‚ 80.9โ”‚   $550 โ”‚  0 โ”‚
โ”‚ Brollan     โ”‚ 16 โ”‚ 14 โ”‚  5 โ”‚ 75.8โ”‚  $1850 โ”‚  0 โ”‚
โ”‚ Spinx       โ”‚ 16 โ”‚ 11 โ”‚  0 โ”‚ 74.8โ”‚  $3600 โ”‚100 โ”‚
โ”‚ torzsi      โ”‚  6 โ”‚ 12 โ”‚  3 โ”‚ 42.7โ”‚   $400 โ”‚100 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”˜

๐ŸŽฎ LIVE GAME LOG
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
10:30:25 ๐Ÿ”ซ Spinx + Brollan  magixx
10:30:24 ๐Ÿ”ซ Spinx + xertioN  sh1ro
10:30:23 ๐Ÿ”ซ Jimpphat  chopper
10:30:22 ๐Ÿ”ซ Spinx  donk
10:30:21 ๐Ÿ”ซ Spinx  zont1x
10:30:20 ๐Ÿ”ซ magixx  Brollan
10:30:19 ๐Ÿ”ซ magixx  xertioN
10:30:18 โ–ถ๏ธ Round started
10:30:17 ๐Ÿ Round over - Winner: T (13 - 9) - Enemy eliminated
10:30:16 โŒ sh1ro quit the game
10:30:15 โŒ magixx quit the game

Available Commands

  • HLTV: Start Live Match - Start tracking a live match
  • HLTV: Stop Live Match - Stop the current live match
  • HLTV: Copy Game Log - Copy last 50 log entries to clipboard
  • HLTV: Clear Console - Clear the output console

Status Bar

The status bar shows live score updates:

  • $(broadcast) HLTV Live - Ready to start
  • $(broadcast) Spirit 9:13 MOUZ - Live match with score

โš™๏ธ Configuration

Open VS Code Settings (Ctrl+,) and search for "HLTV":

  • hltvlog.pollInterval - Update frequency (1000-10000ms, default: 3000)
  • hltvlog.showScoreboard - Show scoreboard updates (default: true)
  • hltvlog.hideEventTypes - Hide specific event types from log

๐Ÿ› ๏ธ Development

Prerequisites

  • Node.js 16+
  • npm or yarn
  • VS Code or Cursor

Setup

# Clone the repository
git clone https://github.com/yourusername/hltv-live-match-console.git
cd hltv-live-match-console

# Install dependencies
npm install

# Install Playwright browsers
npx playwright install chromium

# Compile TypeScript
npm run compile

# Watch for changes (development)
npm run watch

Testing

# Run in VS Code Extension Development Host
F5 (Run Extension)

# Package for distribution
npx vsce package

# Install locally
code --install-extension hltv-log-0.3.0.vsix

Project Structure

hltv-live-match-console/
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ extension.ts          # Main extension code
โ”œโ”€โ”€ syntaxes/
โ”‚   โ””โ”€โ”€ hltv.tmLanguage.json  # HLTV log syntax highlighting
โ”œโ”€โ”€ language-configuration.json
โ”œโ”€โ”€ package.json              # Extension manifest
โ”œโ”€โ”€ tsconfig.json            # TypeScript configuration
โ””โ”€โ”€ README.md

๐Ÿ”ง How It Works

  1. Playwright Browser - Launches headless browser to access HLTV
  2. WebSocket Detection - Connects to HLTV's live scorebot WebSocket
  3. DOM Scraping - Extracts live data from HLTV's React scoreboard
  4. Real-time Updates - Polls every 3 seconds for new data
  5. Text Formatting - Displays formatted output in VS Code Output Channel

๐Ÿ“Š Supported Match Data

  • โœ… Live scores and round counts
  • โœ… Player statistics (K/D/A, ADR, money, health)
  • โœ… Kill feed with weapons and assists
  • โœ… Round history and outcomes
  • โœ… Bomb events (plant/defuse/explode)
  • โœ… Player connections/disconnections
  • โœ… Map information

๐Ÿ› Troubleshooting

Extension not activating?

  • Check the Output panel for error messages
  • Ensure you have internet connection

No live data showing?

  • Verify the match ID is correct and the match is live
  • Some matches may not have live scorebot data
  • Try a different match ID

Browser fails to launch?

  • Playwright may need to install browser dependencies
  • Run npx playwright install in the terminal

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

๐Ÿ“ž Support

If you encounter any issues or have questions:

  1. Check the Troubleshooting section
  2. Search existing Issues
  3. Create a new issue with detailed information

Made with โค๏ธ for the Counter-Strike community

About

Live match tracking, game logs, and scoreboards for HLTV Counter-Strike matches

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published