Git Product home page Git Product logo

vikeaware's Introduction

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/>.

vikeaware's People

Contributors

stillstellung avatar

Stargazers

 avatar

Watchers

 avatar

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.