Skip to content

Commit

Permalink
v0.10.4 See Release Notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukium committed Apr 15, 2024
1 parent f769c35 commit 72926a5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
8 changes: 6 additions & 2 deletions palworld_admin/rcon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ def rcon_connect(ip_address, port, password, skip_save: bool = False) -> dict:

def rcon_fetch_players(ip_address, port, password) -> dict:
"""Fetch the list of players currently connected to the server."""
log = False
app_settings.localserver.last_online_players = (
app_settings.localserver.online_players
)
Expand Down Expand Up @@ -253,6 +254,8 @@ def rcon_fetch_players(ip_address, port, password) -> dict:

# Use first line of result to determine if the command was successful,
# expect "name,playeruid,steamid"
if log:
logging.info("Fetch Players Result:\n%s", result)
if "name,playeruid,steamid" in result:
reply["status"] = "success"
reply["message"] = "Players fetched successfully"
Expand All @@ -269,7 +272,8 @@ def rcon_fetch_players(ip_address, port, password) -> dict:
"name": player_data[0],
"playeruid": player_data[1],
"steamid": player_data[2],
"saveid": hex(int(player_data[1]))[2:].upper(),
# "saveid": hex(int(player_data[1]))[2:].upper(),
"saveid": player_data[1],
"online": True,
}
player_list.append(player_info)
Expand All @@ -278,7 +282,7 @@ def rcon_fetch_players(ip_address, port, password) -> dict:
second_player_list = player_list.copy()
# Drop from second player list any players whose playeruid is all 0s
for player in player_list:
if player["playeruid"] == "00000000":
if player["playeruid"] == "00000000000000000000000000000000":
second_player_list.remove(player)

app_settings.localserver.online_players = second_player_list
Expand Down
4 changes: 2 additions & 2 deletions palworld_admin/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def __init__(self):
self.dev: bool = False
self.dev_ui: bool = False
self.no_ui: bool = True
self.version: str = "0.10.3"
self.version: str = "0.10.4"
self.supporter_build: bool = False
self.supporter_version: str = "0.10.3"
self.supporter_version: str = "0.10.4"
self.migration_mode: bool = False
self.alembic_version: str = "26ad9b14b180"
self.exe_path: str = ""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "palworld_admin"
version = "0.10.3"
version = "0.10.4"
description = "Palworld Admin is a GUI to manage your Palworld Dedicated Server, including deployment, configuration, monitoring and backups."
authors = ["Lukium <[email protected]>"]
license = "Expressed Permission Only"
Expand Down
5 changes: 5 additions & 0 deletions release-notes.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Release Notes

v0.10.4

## Fix:
- Adjusted RCON for changes related to 0.2.2 patch to resolve "invalid literal for int() with base 10" error

v0.10.3

## Fix:
Expand Down

0 comments on commit 72926a5

Please sign in to comment.