Coder Social home page Coder Social logo

palog's Introduction

palog

Broadcast messages that someone joined/left the game.

game screen that shows log of joined:Tsuzu

Usage

Enable RCON of PalWorld server

Docker

docker run --name palog -e RCON_ENDPOINT={PalWorldServerIP}:25575 -e RCON_PASSWORD={AdminPassword you set above} ghcr.io/miscord-dev/palog:v0.0.5

Binary installation

Install palog

  • Install binary from releases
  • (optional) Install uconv
    • Non-ascii characters are converted via uconv -x latin
    • On Debian/Ubuntu; apt-get install -y icu-devtools

Set environment variables

  • RCON_ENDPOINT
    • If you run palog on the same server as the PalWorld server, the value is 127.0.0.1:25575
  • RCON_PASSWORD
    • The password you set in the earlier step
  • For other options, please check the Environemnt Variables section

Launch palog

$ ./palog

Installation

Docker(Recommended)

docker pull ghcr.io/miscord-dev/palog:v0.0.5 # or main

Download binary

Environment Variables

  • RCON_ENDPOINT: Endpoint of RCON (IP:Port)
  • RCON_PASSWORD: Password of RCON
  • INTERVAL: Interval to check current players (default: 5s)
  • TIMEOUT: Timeout of RCON calls (default: 1s)
  • UCONV_LATIN: Set false to disable escape string with uconv -x latin

Known issues

  • If the message is split via whitespaces, Broadcast sends only the first segment
  • Non-ascii are corrupted

palog's People

Contributors

renovate[bot] avatar tsuzu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

emtkmkk

palog's Issues

Error after starting with Docker

Hello,

I"m getting this error on my Palworld Linux server

ERROR failed to get players error="failed to connect to 127.0.0.1:25575: rcon: dial tcp 127.0.0.1:25575: connect: connection refused"

I have both RCONEnabled=True,RCONPort=25575 settings in my /home/steam/Steam/steamapps/common/PalServer/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini

and if i inspect the container i see

            "Env": [
                "RCON_ENDPOINT=127.0.0.1:25575",
                "RCON_PASSWORD=mypassword",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
            ],

FYI:

  • palog is on the same host as the server.
  • I'm able to run RCON commands from my Windows machine via ARRCON
  • i started the palog with docker run --name palog -e RCON_ENDPOINT=127.0.0.1:25575 -e RCON_PASSWORD=mypass ghcr.io/miscord-dev/palog:v0.0.5

Could you please help me out to get this container to work?
Thanks a lot :)

ShowPlayers doesn't return the full response

tsuzu@Tsuzus-MacBook-Pro ~ % rcon -a "10.23.0.1:30970" -p "..." -T 1s ShowPlayers
name,playeruid,steamid
...
cli: execute: rcon: read tcp 192.168.1.67:62095->10.23.0.1:30970: i/o timeout

The response of ShowPlayers drops the last 10~ bytes.
The server seems to forget to flush the stream....

As a workaround, I ignored steam id.

Packet capture

05 → A
6d → [
80 → "
84 → !
85 → a
89 → b
8d → c
f9 → ~
c0 → 0
c4 → 4

With Japanese

04 01 A
84 01 a
c1 04 → ぁ
c1 08 → あ
c1 10 → い
bc 5d 漢
6d 01 字

ぁ might 04 c1

encoding rule might be floor(x / 64) + (x - floor(x / 64) * 64) * 4
It follows ascii-code, but not obvious for Japanese

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.