Git Product home page Git Product logo

evilru / quake3-vsp-stats Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 10.0 13.24 MB

VSP Stats Game Log Processor - updated and working version of vsp-0.45-xp-1.2-full.zip from https://vsp.goquake.com/ as docker image: https://hub.docker.com/r/evilru/quake3-vsp-stats.

License: MIT License

HTML 0.02% PHP 96.23% XSLT 1.33% JavaScript 1.81% CSS 0.43% Dockerfile 0.17% Shell 0.01%
quake3 vsp stats server logs php mysql ioquake3 vsp-stats excessive-plus

quake3-vsp-stats's Introduction

VSP - Quake 3 ExcessivePlus Community version

VSP Stats Game Log Processor - Quake 3 ExcessivePlus Community version 0.45-xp-1.1.2, based on the VSP Stats Processor 0.45 by Myrddin.

Supports only Quake III Arena!

Get more information about the ExcessivePlus Community version at goquake.com.

Docker Compose

To run the provided Docker Compose stack, follow the instructions at https://hub.docker.com/r/evilru/quake3-vsp-stats.

Manual Setup

Follow the setup proceduere described in readme.txt.

Compatibility

  • PHP 7.4.33
  • MariaDB 11.1.3

From the VSP Readme

================================================================================
vsp stats processor - vsp(c) 2004-2005 by myrddin(myrddin8 <AT> gmail <DOT> com)
================================================================================

vsp stats processor is a multi game - log analyzer/stats generator/log parser. 
It can process log files from several games including Quake 3 Arena (q3a), 
Halflife 1, 2, Counter Strike Source (hl), Wolfenstein: Enemy Territory (wet), 
Return to Castle Wolfenstein (rtcw), Call Of Duty, COD: United Offensive (cod), 
Medal of Honor Allied Assault, MOHAA: Spearhead, MOHAA: BreakThrough (moh), 
Soldier of Fortune 2 (sof2), etc. It reads the log files generated by a game 
and displays various game statistics. vsp also supports both server logs (ex:- 
games.log for Q3A) and client logs (ex:- qconsole.log for Q3A).

For more details I suggest to take a look at the readme files:

Credits

vsp 0.45: 
--------
             Lead Programming/Design : myrddin (myrddin8 <AT> gmail <DOT> com)
                         Programming : react
                             Hosting : gouki
                             Website : http://www.clanavl.com/vsp/
                                       http://www.clanavl.com
                                 Irc : #vsp on irc.enterthegame.com

xp 1.0:
------
            WaspBeast - http://forums.excessiveplus.net/profile.php?mode=viewprofile&u=13161

quake3-vsp-stats's People

Contributors

evilru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

quake3-vsp-stats's Issues

Maps not showing

I have all the map images in pub/games/q3a/mapsets/default, but they're not showing up. I also added them to
pub/games/default/mapsets/default...

2023-06-30_161813

Player names not visible

Since upgrading to PHP 8 and reinstalling VSP (using xordos fork), the player names are not visible...

2023-06-30_070632

2023-06-30_070702

Saw this when parsing logs:
Warning: Trying to access array offset on value of type bool in C:\xampp\htdocs\q3eplus.servequake.com\vsp.php on line 807

Are there any plans for a docker image with latest version?

Hey, i am trying to find a stats processor for my server running on quakejs. It seems that the latest version of vsp is 0.50. Are you planning to have an update for that?

Also would it be possible to dockerize it so we can just use the image?

First seen 1971-12-28 23:59:59

Hello, I have the problem that when I parse the Games.log with vsp, it says first seen by the user at First seen 1971-12-28 23:59:59.
With the game stats it is exactly like that at Time Start First seen 1971-12-28 23:59:59.
I am using the php 7.4.3 version.

Removal of quake3-vsp-stats

I wish there were a private way to do this but I cannot find an option to do such as there isn't an email posted. As stated in the user agreement this violates the Disclaimer/Legal Info/License Agreement as follows.

You may not:

* permit other individuals to use the Software except under the terms listed
  here
* **reverse engineer, disassemble, or create derivative works based on the
  Software for distribution or usage outside your web site excluding those
  applications described here**
* modify and/or remove any copyright notices, links or labels on the Software
  on each page and in the header/footer of each script source file
* **distribute modified versions of the Software**
* distribute individual copies of files, libraries, or other programming
  material in the Software package
* distribute or modify proprietary graphics, HTML, or CSS packaged with the
  Software for use in Software applications other than VSP or web sites
  without written permission from the author(s) of VSP.
* use the Software in such as way as to condone or encourage terrorism,
  promote or provide pirated Software, or any other form of illegal or
  damaging activity

This is a request to remove quake3-vsp-stats due to miss match. Within the past two months a released v0.50 has been in the works and has been released 2/28/2021 at 11:45 PM . If you would like to contribute to V.S.P. our forums are open. I tried to get our project on here, but could not get the "pub" folder on here so I gave up on it.

http://www.krillinsworld.com/vsp | http://www.krillinsworld.com/forum/index.php#c9

Best Regards

DB connection fails on certain Docker engine versions

"host.docker.internal" does not resolve on docker-20.10.4-1.amzn2.x86_64 running on Amazon Linux 2 AMI nor on docker-ce-20.10.7-3.el7.x86_64 on CentOS 7.9.2009. However, the service "db" should always resolve correctly through Docker's native DNS ensuring the connection to the DB always succeeds regardless of platform. (This issue does not affect Docker Desktop 20.10.6 on Windows 10 20H2.)

Example of Issue from inside a running instance of quake3-vsp-stats:
root@1f262848f947:/vsp# curl host.docker.internal
curl: (6) Could not resolve host: host.docker.internal
root@1f262848f947:/vsp# curl db
curl: (7) Failed to connect to db port 80: Connection refused
root@1f262848f947:/vsp#

I'll send you a PR #11 showing how I tackled this on the compose file. I think the same could be accomplished by updating "ENV DB_HOSTNAME" in the Dockerfile.

Does this work for MOHAA

Hello

I was wondering if this works for Medal of Honor? I downloaded this one but after I run the stats using web browser (vsp.php) I get an error: log type not recognized.
The downloads on krilln site are corrupted and I cant find it anywhere else.
Thanks

Works with PHP 7.3.15 and MySQL 5.7

Hi! Not an issue to report, but to inform you I got this working with PHP 7.3.15 and MySQL 5.7.29-32.
Had to make some small adjustments:

This line https://github.com/evilru/quake3-vsp-stats/blob/master/vsp.php#L1355 should read

$V0f14082c['parser-options'] = array("");

Props are for @jf3218 for this one.

Due to datetime in lines like this
https://github.com/evilru/quake3-vsp-stats/blob/master/sql/mysqli.inc.php#L74
had to set this first in MySQL for the vsp database:

mysql> SET sql_mode = '';

Output

# php vsp.php -l q3a-freeze -p savestate 0 "/home/hbokh/games.log"

 -----------------------------------------------------------------------------
                     vsp stats processor (c) 2004-2005
                               version 0.45-xp-1.1.2
                 vsp by myrddin (myrddin8 AT gmail DOT com)
 -----------------------------------------------------------------------------

max_execution_time is 0

[command-line options]: Array
(
    [parser-options] => Array
        (
            [0] =>
            [gametype] => freeze
            [savestate] => 0
        )

    [prompt] => 1
    [log-gamecode] => q3a
    [log-gametype] => freeze
    [logfile] => /home/hbokh/games.log
    [config] => pub/configs/cfg-default.php
)
[parser options]: Array
(
    [savestate] => 0
    [gametype] => freeze
    [backuppath] =>
    [trackID] => playerName
    [xp_version] => 200
    [0] =>
)
Analyzing game 0001 (00.37%) warmup game, ignored
Analyzing game 0002 (02.70%) updating database...done
Analyzing game 0003 (98.93%) warmup game, ignored

generateAwards: Generating Awards...done

games: parsed: 1	inserted: 1	 ignored: 0

 -----------------------------------------------------------------------------
                     vsp stats processor (c) 2004-2005
                               version 0.45-xp-1.1.2
                 vsp by myrddin (myrddin8 AT gmail DOT com)
 -----------------------------------------------------------------------------

processed in 0m 0s (0.455051s)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.