Node UTStats 2 Public Beta

Discussions about UT99
User avatar
UT Sniper (SJA94)
Masterful
Posts: 694
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: noob programmer
Location: England

Node UTStats 2 Public Beta

Post by UT Sniper (SJA94) » Thu Jul 22, 2021 8:02 pm

I've been putting it off for a while but I'm publicly posting the GitHub repo for Node UTstats 2 for testing, there isn't an official release yet you will have to download the repository. The install process should be much easier and faster compared to node utstats 1.


Requirements:
- Node.js Version 14 or greater
- mysql user account that can create a database and tables
- FTP access with read/delete permissions.
- Port 3000 forwarded for the website.


Latest Build:

Build v2.0.1: https://github.com/scottadkin/node-utst ... tag/v2.0.1

Change Log
**** Build v2.0.1 17/10/21
- Fixed upgrade script not adding new columns, if there is another node utstats 2 database that has been upgraded.
- Fixed weaponsManager is undefined error.
- Fixed CTF4 Errors while inserting ctf cap data(May result in some data being missing such as caps).

**** Build v2.0.0 16/10/21
- Changed map screenshots system.
- Added new admin tools for uploading map screenshots.
- Many bug fixes(been lazy and haven't kept track, but will keep track from now on)
Github Repo: https://github.com/scottadkin/node-utstats-2

Post issues in this topic or here: https://github.com/scottadkin/node-utstats-2/issues

Demo video of installing:


Note:
- I have only tested on a windows system.
- I have not created map image packs yet, there are however some dm, ctf, and Assault ones.

This topic is not for the original Node UTStats, only for Node UTStats 2.
Last edited by UT Sniper (SJA94) on Sun Oct 17, 2021 4:55 pm, edited 2 times in total.

RocketJedi
Inhuman
Posts: 832
Joined: Wed Mar 12, 2008 7:14 pm
Personal rank: I.T Master
Location: New York

Re: Node UTStats 2 Public Beta

Post by RocketJedi » Sun Jul 25, 2021 7:39 pm

Looks great! I've been wanting to set this up for a while, but have been put off by the requirements needed to run it since its out side the scope of UT. I will buckle down soon and test this thing out
https://www.vulpinemission.com
Image ROCKET-X8 Server
Image MONSTERHUNT w/ NALI WEAPONS 3 + RX8
Image BUNNYTRACK NY
Image SNIPER DEATHMATCH
Image InstaGib + ComboGib + Jailbreak
Image ROSEBUM ROCKET-X RB

User avatar
UT Sniper (SJA94)
Masterful
Posts: 694
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: noob programmer
Location: England

Re: Node UTStats 2 Public Beta

Post by UT Sniper (SJA94) » Tue Jul 27, 2021 4:08 am

It is worth noting that I intend to make node utstats 2, work with the original utstats databases although all features will not be supported because the data just simply doesn't exist.

User avatar
Piter
Novice
Posts: 13
Joined: Sun Jan 31, 2021 10:17 am

Re: Node UTStats 2 Public Beta

Post by Piter » Sun Aug 08, 2021 6:31 pm

Running Ubuntu. I've nodejs 8.10.0. Will it work ?
It works with previous UTStats.
http://unreal.pl
Polish UT Community servers
Powered by Node UTStats2 - http://unreal.pl:3000

User avatar
UT Sniper (SJA94)
Masterful
Posts: 694
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: noob programmer
Location: England

Re: Node UTStats 2 Public Beta

Post by UT Sniper (SJA94) » Sun Aug 08, 2021 11:27 pm

Piter wrote:
Sun Aug 08, 2021 6:31 pm
Running Ubuntu. I've nodejs 8.10.0. Will it work ?
It works with previous UTStats.
No, at the very minimum, version 12.0 is required for next.js framework I used.

User avatar
UT Sniper (SJA94)
Masterful
Posts: 694
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: noob programmer
Location: England

Re: Node UTStats 2 Public Beta

Post by UT Sniper (SJA94) » Mon Aug 23, 2021 12:20 pm

I've added support for classic utstats databases: https://github.com/scottadkin/node-utstats-2

Features
- Home page with general stats
- Recent matches page
- Ranking page
- Player lists
- Player profiles
- Map list
- Map page
- Records page
- Match reports

User avatar
Piter
Novice
Posts: 13
Joined: Sun Jan 31, 2021 10:17 am

Re: Node UTStats 2 Public Beta

Post by Piter » Sat Sep 04, 2021 9:07 am

node.jpg
node2.jpg
Installed, but unable to login as admin. Chrome.
You do not have the required permissions to view the files attached to this post.
http://unreal.pl
Polish UT Community servers
Powered by Node UTStats2 - http://unreal.pl:3000

User avatar
UT Sniper (SJA94)
Masterful
Posts: 694
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: noob programmer
Location: England

Re: Node UTStats 2 Public Beta

Post by UT Sniper (SJA94) » Sat Sep 04, 2021 1:23 pm

Will look into it when I I'm at my main pc later, in the mean time if you run in dev mode and try logging in you might get a more helpful message in the terminal.

Is this windows or Linux?
What nodejs version?


---- edit-------------

Updated the repo to show more info when you load a page, because it looks like your cookies are not being set correctly or at all.

Image

User avatar
Piter
Novice
Posts: 13
Joined: Sun Jan 31, 2021 10:17 am

Re: Node UTStats 2 Public Beta

Post by Piter » Sat Sep 04, 2021 2:36 pm

UT Sniper (SJA94) wrote:
Sat Sep 04, 2021 1:23 pm
Is this windows or Linux?
What nodejs version?
Updated the repo to show more info when you load a page, because it looks like your cookies are not being set correctly or at all.

Image
Linux, node-js v16.8.0

After git clone got error:
unrealstats2@vmi226564:~/node-utstats-2$ npm run build

> node-utstats@0.1.0 build
> next build

sh: next: command not found
unrealstats2@vmi226564:~/node-utstats-2$ npm run start

> node-utstats@0.1.0 start
> next start

sh: next: command not found
unrealstats2@vmi226564:~/node-utstats-2$
http://unreal.pl
Polish UT Community servers
Powered by Node UTStats2 - http://unreal.pl:3000

User avatar
UT Sniper (SJA94)
Masterful
Posts: 694
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: noob programmer
Location: England

Re: Node UTStats 2 Public Beta

Post by UT Sniper (SJA94) » Sat Sep 04, 2021 2:42 pm

Try npm install, or a full reinstall if that fails, one of the more recent repos I updated the dependencies to their latest version.

User avatar
Piter
Novice
Posts: 13
Joined: Sun Jan 31, 2021 10:17 am

Re: Node UTStats 2 Public Beta

Post by Piter » Sat Sep 04, 2021 2:56 pm

node3.jpg
You do not have the required permissions to view the files attached to this post.
http://unreal.pl
Polish UT Community servers
Powered by Node UTStats2 - http://unreal.pl:3000

User avatar
UT Sniper (SJA94)
Masterful
Posts: 694
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: noob programmer
Location: England

Re: Node UTStats 2 Public Beta

Post by UT Sniper (SJA94) » Sat Sep 04, 2021 3:00 pm

Ah, one of the cookie names has been set to something different will fix it soon. Should be sid and not connect.sid

User avatar
Piter
Novice
Posts: 13
Joined: Sun Jan 31, 2021 10:17 am

Re: Node UTStats 2 Public Beta

Post by Piter » Sat Sep 04, 2021 3:05 pm

I'm glad I could help :]
http://unreal.pl
Polish UT Community servers
Powered by Node UTStats2 - http://unreal.pl:3000

User avatar
Piter
Novice
Posts: 13
Joined: Sun Jan 31, 2021 10:17 am

Re: Node UTStats 2 Public Beta

Post by Piter » Fri Sep 24, 2021 7:41 am

Simple script to start/restart Node UTStats 2 on your Linux machine.

Code: Select all

#!/bin/sh
echo Killing all existing screens...

screen -X -S website quit
sleep 2
screen -X -S importer quit

echo Loading Website screen...
cd /full/patch/to/your/node-utstats-2 # for example - /home/unrealstats2/node-utstats-2
screen -S website -d -m bash -c  "npm run start"
sleep 2
echo Loading Importer screen...
screen -S importer -d -m bash -c  "node importer"
echo All done.
After start, you can simply access website and importer console by typing

screen -r importer
screen -r website

CTRL+A D disconnects console being called by screen command.
http://unreal.pl
Polish UT Community servers
Powered by Node UTStats2 - http://unreal.pl:3000

User avatar
esnesi
Inhuman
Posts: 854
Joined: Mon Aug 31, 2015 12:58 pm
Personal rank: Dialed in.

Re: Node UTStats 2 Public Beta

Post by esnesi » Sat Sep 25, 2021 12:30 am

Piter wrote:
Fri Sep 24, 2021 7:41 am
Simple script to start/restart Node UTStats 2 on your Linux machine.

Code: Select all

#!/bin/sh
echo Killing all existing screens...

screen -X -S website quit
sleep 2
screen -X -S importer quit

echo Loading Website screen...
cd /full/patch/to/your/node-utstats-2 # for example - /home/unrealstats2/node-utstats-2
screen -S website -d -m bash -c  "npm run start"
sleep 2
echo Loading Importer screen...
screen -S importer -d -m bash -c  "node importer"
echo All done.
After start, you can simply access website and importer console by typing

screen -r importer
screen -r website

CTRL+A D disconnects console being called by screen command.
Ah nice, i'll take a look when i got some time.
Atm iam using PM2 for this.
https://pm2.keymetrics.io/