Node UTStats 2 Version 2.5.1

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

Node UTStats 2 Version 2.5.1

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.

Demo site: https://ooper.ddns.net:1999/ from demo server [url]unreal://ooper.ddns.net:7777[/url]

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.5.1: https://github.com/scottadkin/node-utst ... tag/v2.5.1

Change Log
**** Build v 2.5.1
- Fixed delete duplicate matches in production mode.
- Fixed delete failed imports in production mode.
- Fixed delete match in production mode.

**** Build v 2.5.0
- NOTICE: You must use the command "npm install" if you are upgrading from a previous build.
- Updated Admin Player Rename.
- Updated Admin Player Delete.
- Updated Admin Player Merge.
- Fixed player CTF stats being blank.
- Fixed player Assault/Domination stats being blank.
- Fixed powerup control children must have unique key warning.
- Fixed ctfcaps records page error.
- Added the Sharp package(will fix slow loading images).
- Added admin player name search.
- Added admin player IP search.
- Added admin player IP histroy.
- Added admin player history(displays all aliases, used ips, connection history).
- No longer display BasicPageSelect if there is only 1 page.
- Fixed build warnings.
- Replaced all img with Image components.
- Fixed broken country flag image if player's country is blank(player profile).
**** Build v 2.4.0
- NOTE: You must use "node upgrade" after updating from an earlier.
- Run the command "node defaultpageorder" in a terminal in the main node utstats folder (where config.json is) this will apply needed page order data(updating from an earlier).
- Updated the admin site settings tool.
- Admins can now change the order of items displayed on some pages.
- Admins can now change the order of the navigation items.
- New admin tool that deletes failed import matches.
- Admin tool delete duplicate matches now deletes logs with match_id of 0.
- Fixed errors on import for FlagDomination.
- Fixed logs with match_id 0 not being deleted.
- Added missing settings for player and match pages.
- Fixed two bugs with ctf.insertCaps(), time dropped is not always NaN, insertCap is now ran correctly

**** Build v2.3.1
- Fixed duplicate props error when trying to build a production build.
**** Build v2.3.0
NOTE: Upgrading from version v2.2.0, You must run the command **node upgrade** to install updates.
- Changed design of player general component.
- Fixed player face on player page.
- Fixed player face for opengraph links.
- Changed match, power up, health/Armour, weapons, and ammo to bar charts.
- Added options for the new item pickup categories to admin area.
**** Build v2.2.0 04/01/22
- Upgraded to Next.js 12.
** New Feature
-- CTF cap records(on records page), view cap records for all maps(solo, and assisted), view all caps for each map(solo, and assisted).
- Added support for CTF4.
- Fixed caps, assist from CTF4 not counting multiple drops/caps.
- Fixed 0 second cap times(CTF4).
- Added columns(flag_team, total_Drops, total_covers, total_self_covers, total_pickups, total_unique_assists,total_seals, time_Dropped, carry_time) to ctf_caps table
- Added fastest ctf caps to match pages.
- Added fastest ctf caps to maps pages.
- Added CTF cap records to player pages.
- Fixed broken flag links on player aliases component.
- Fixed Image host urls being broken if no port is found in link.
- Fixed broken matchbox map images.
- Added option to use default image server, or alternative. (bUseImageServer)
- Fixed crash on map pages
- Fixed error in players API(forgot to remove resolve())
- Changed useImageServer to false for default settings.
- Fixed ACE importer crash.
- Changed match CTF caps display, now has two modes, simple and detailed.
- Fixed Importer getting stuck if a regular expression doesn't find any matches.

**** Build v2.1.0 20/10/21
- IMPORTANT! You now have to run another service when you run the website, you now have to also run **node images** to create a tiny webserver to host the sites images.
- Fixed broken images of newly uploaded files(see below).
- Images are now fetched from a seperate file server on port 3001, this is because if you uploaded images in production mode the site wouldn't be able to use them until you rebuild the website.
- Update thumbs list on each file creation(Create Missing Thumbnails).
- Updated packages so Jimp is now included.
- Removed screenshot download buttons, you can still right click download images.
- Country flag components now display the name of the country while being hovered over.

**** 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

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 Tue Mar 01, 2022 5:47 pm, edited 12 times in total.

RocketJedi
Inhuman
Posts: 838
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: 716
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: 716
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: 716
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: 716
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: 716
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: 716
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: 942
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/