csgoverview

command module
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: MIT Imports: 18 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.6.0.

GoDoc Go Report Card

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

Hardware Requirements

  • Display with a resolution of 1920x1080 or higher
  • about 1.5 GB of memory for a 32 tick demo
  • about 5 GB of memory for a 128 tick demo

Installation

Windows

I did not sign the application - Windows will prevent the app from running.

  1. Create a folder and extract csgoverview.exe into it.
  2. Create a folder called 'csgoverview' in your user directory. (e.g. C:\Users\Username\csgoverview)
  3. Move the .ttf file from the .zip archive into the csgoverview folder.
  4. Download the overview images from this repository and put them into the csgoverview folder.
  5. Right click a demo and select 'Open with' to open it with csgoverview.
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
Cross-compiling for Windows

Using a Fedora 30 machine:

Dependencies
sudo dnf install make git golang SDL2{,_gfx,_image,_ttf,_mixer} mingw64-SDL2{,_image,_ttf}
Installing SDL2_gfx library
wget http://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-1.0.4.tar.gz
tar xf SDL2_gfx-1.0.4.tar.gz
cd SDL2_gfx-1.0.4
mingw64-configure
mingw64-make
sudo mingw64-make install
cd ..
Cloning the repository
git clone https://github.com/Linus4/csgoverview.git
cd csgoverview
Build
CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 go build -tags static -ldflags "-s -w"
Required files

Put the font file (.ttf) from the repository and the required map overviews (next section) into a folder called 'csgoverview' in the user-directory (C:\Users\Name\csgoverview). You can launch the application from the command-line or right-clicking a demo file and selecting 'Open with' to open the file with csgoverview.

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) (default "/usr/share/fonts/dejavu/DejaVuSans.ttf")
    -framerate float
    	Fallback GOTV Framerate (default -1)
    -overviewdir string
        Path to overview directory (default "$HOME/.local/share/csgoverview")
    -tickrate float
    	Fallback Gameserver Tickrate (default -1)

  [path to demo]

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

After you've created the .desktop file, you can right click on a demo and select csgoverview when you select 'Open With'. This way, you can just double-click on a demo to watch it with csgoverview.

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

Tool recommendations

Screenshot 1 de_mirage

Screenshot 2 de_dust2

Screenshot 3 de_inferno

Credits

Thank you for helping me or contributing to the project!

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