stillstellung / vikeaware Goto Github PK
View Code? Open in Web Editor NEWVikeAware is a simple but functional valheim server status page.
License: GNU General Public License v3.0
VikeAware is a simple but functional valheim server status page.
License: GNU General Public License v3.0
Vikeaware is a painfully simple, VERY no frills status page generator using node and a simple html frontend. It shows a few tiles on an html front-end that give a user: Server Status (the game server itself) Online Player List Deadliness Index (count of player deaths during the current server session) Average World Save Time (maybe you don't need this, I have it as a matter of interest to observe as my world grows). ____________________________________________________________________________________________________________________ Here's how you get the thing going: (1) clone the repo or use one of the release zips. the release zip will always be stable unless otherwise noted. (2) Once you have the Vikeaware tool in its own directory, you will need to make sure you have node installed on your machine, and then run `npm install` in the directory. (3 You will then need to edit config.js and change the path to your log file (4) Change the name of your server or customize the tiles or whatever else you want to do in the HTML (5) Edit the players.json file to reflect the names and SteamIDs of the people on your server. (6) run `node server.js` by default it will serve on port 3000 feel free to improvise and expose the html in any way that makes sense for you at this stage. You could even just use your own front end. everything is exposed at `/status` endpoint. Make your own viking magic! ____________________________________________________________________________________________________________________ Important Notes: I built this as an experiment with ChatGPT. That is to say, I fed ChatGPT with a series of very specific requirements over the course of a few days of experimentation and false starts. And this is what I ended up with. I changed any very stupid things that it tried to do, but I mostly 'let it be'. So please, don't roast me, roast the code, roast our AI masters, and fork and fix to your heart's desire. There will be a writeup about the process on my blog (linked in my github) in the next few days (March 7 '23 as of the writing of this README), if you're interested. I probably will keep tweaking it with a combination of freehand and chatGPT, going forward, instead of leaving it all in chatGPT hands. Anyway, being spawn of Robot, it probably scales very badly. Valheim logs clear out on each new session start- maybe that's configurable, but I have no idea. I don't know how big a log would need to be for this thing to start sucking. I wouldn't recommend trying to find out. ____________________________________________________________________________________________________________________ Future Improvements: I'd like to improve the logic to try to divine a player's name and match it to Steam ID from the log info and keep that persistent instead of relying on manual edits to `players.json`. Make death count persistent. Player death count table (sums) Add event log w/ datetime stamps (raids etc). ____________________________________________________________________________________________________________________ License and Contributing: Contribute away. I'll see it eventually, but please don't expect rapid response. Curious to see how others might improve this thing. Full GPL text is found in the file LICENSE VikeAware: very simple Valheim Server status page Copyright (C) 2023 J Zedd This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.