Comments (6)
Hey, thanks for the request. I could try to adopt it with my bash scripts. But I don't know how robust the logic is. It reads the service logs to count every join and exit of a user.
I hoped we get some kind of rcon, so I could get the information strait from that and also do server messaging, to alert users of an upcoming restart.
But I will try fiddling around with that and report back.
from enshrouded-server.
Thanks for the image, it's been working quite well for me.
Using python-a2s and a simple python -c 'import a2s; print(len(a2s.players(("ip",port))));'
seems to work. I tried in a python container alongside the enshrouded-server container, but I expect the "ip" being "127.0.0.1" would work too, if not SERVER_IP.
from enshrouded-server.
Thanks for the suggestion. I added the python-a2s script to check for connected players locally. I removed the STEAM_*
env vars and added a UPDATE_CHECK_PLAYERS
env to enable the check or not.
I'll test it a bit further and merge it afterwards.
from enshrouded-server.
@opello If you want you can check this feature with the latest dev
or dev-proton
image.
from enshrouded-server.
Thanks! I updated and will do a better test later, but it seems to work:
# PYTHONPATH=/home/enshrouded/.local/lib/python3.10/site-packages python3 -c 'import a2s; print(len(a2s.players(("127.0.0.1",15637))));'
0
from enshrouded-server.
Released with version 0.4.0
from enshrouded-server.
Related Issues (20)
- Wine Image Always Overloaded HOT 10
- Dev-proton server download fails HOT 8
- Add e.g. Discord notification on autoupdate HOT 7
- Cannot search server from steam game browser HOT 14
- Pending packets list is full. Deleted oldest packet from 2(8) HOT 9
- Cant connect to game HOT 3
- Cant Update the Server HOT 7
- [ enshrouded-server CreateBoundSocket: ::bind to port 0 returned error [no name available](10049)#015] HOT 14
- Server is starting HOT 12
- Error when running server on Ubuntu created with Proxmox. HOT 4
- Server failed to connected to Steam HOT 7
- new savefile handling from enshrouded
- inject a game save HOT 2
- proton 9 update
- Can't find server in steam or in game HOT 6
- Question about config folder HOT 2
- Password Variable Not Working HOT 1
- Server_password vs UserGroups password HOT 3
- Add server difficulty enviornment variables? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enshrouded-server.