csgoverview

command module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 16 Imported by: 0

README

csgoverview - 2D Demoviewer

A 2D demo replay tool for Counter Strike: Global Offensive.

Package match povides a high-level parser you can use for your own demoviewer.

Current version is 0.5.0. Master branch is currently used for development.

GoDoc Go Report Card

Check out the Roadmap where I keep track of ideas and todos.

Tools

Installation

Dependencies
Fedora
dnf install git golang SDL2{,_gfx,_image,_ttf}-devel dejavu-sans-fonts
Ubuntu
sudo apt install git golang libsdl2{,-gfx,-image,-ttf}-dev fonts-dejavu
Build

This project uses go modules. Make sure you have go version 1.12 or higher installed. Run go version to check.

git clone https://github.com/Linus4/csgoverview.git
cd csgoverview
go build
Get overviews

Use this repository (overviews directory), create a directory with mkdir $HOME/.local/share/csgoverview and copy the overviews that you need to $HOME/.local/share/csgoverview.

You can use other overviews as long as they are .jpg files and they match the naming pattern (e.g. de_nuke.jpg). Ideally, their size should be 1024x1024 pixels or larger.

More overviews are available here:

On Linux, you can convert images with convert image.png image.jpg if you have ImageMagick installed.

Executable

You can move or symlink the executable into a directory in your $PATH to make the program available everywhere on your system.

Example:

sudo ln -s /usr/bin/csgoverview <path to cloned repository>/csgoverview
Desktop file (Linux)

In order to add csgoverview to your applications menu, create a .desktop file (use the path to the executable on your computer in Exec):

echo "[Desktop Entry]
Name=CSGOverview
Exec=/usr/bin/csgoverview %F
Type=Application
Terminal=false
Categories=Games;" > $HOME/.local/share/applications/csgoverview.desktop

Usage

./csgoverview
    -fontpath string
    	Path to font file (.ttf) (optional) (default "/usr/share/fonts/dejavu/DejaVuSans.ttf")
    -framerate float
    	Fallback GOTV Framerate (optional) (default -1)
    -tickrate float
    	Fallback Gameserver Tickrate (optional) (default -1)

  [path to demo]

If you're using GTK, you can also double-click the executable and select a demo with the GUI.

Looking for font file in the following directories: the one you supply with the -fontpath flag, /usr/share/fonts/dejavu/DejaVuSans.ttf, ./liberationserif-regular.ttf.

Looking for overview file in the following directories: $HOME/.local/share/csgoverview and in the current directory.

Keybinds
  • a -> 5 s backwards
  • d -> 5 s forwards
  • A -> 10 s backwards
  • D -> 10 s forwards
  • w -> hold to speed up 5 x
  • s -> hold to slow down to 0.5 x
  • q -> round backwards
  • e -> round forwards
  • Q -> to start of previous half
  • E -> to start of next half
  • space -> toggle pause

Screenshot 1 de_mirage

Screenshot 2 de_dust2

Screenshot 3 de_inferno

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package common contains types that are used throughout this project.
Package common contains types that are used throughout this project.
Package match contains a high-level parser for demos.
Package match contains a high-level parser for demos.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL