Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove -rcon arg statement #473

Merged
merged 6 commits into from
Mar 1, 2024
Merged

Remove -rcon arg statement #473

merged 6 commits into from
Mar 1, 2024

Conversation

43414d
Copy link
Contributor

@43414d 43414d commented Feb 29, 2024

-rcon is no longer needed as of the 1.5.1 fix, seems like it was bugged in 1.5.0 and not pulling correctly from config

Context

Removal of excess statement from 1.5.0 bug

Choices

It's just boilerplate now since official fix

Test instructions

  1. Reverted back to v0.28 image that didn't have -rcon arg
  2. Recomposed server
  3. Server rcon still working correctly (player list check)

Checklist before requesting a review

  • I have performed a self-review of my code
  • I've added documentation about this change to the README.
  • I've not introduced breaking changes.

-rcon is no longer needed as of the 1.5.1 fix, seems like it was bugged in 1.5.0 and not pulling correctly from config
@MusclePr
Copy link
Contributor

I'd recommend that you take this one.

# fix bug for v0.1.5.0 only.
if [ "${TARGET_MANIFEST_ID}" = "3750364703337203431" -a "${RCON_ENABLED,,}" = true ]; then
    STARTCOMMAND+=("-rcon")
fi

@43414d
Copy link
Contributor Author

43414d commented Feb 29, 2024

I'd recommend that you take this one.

# fix bug for v0.1.5.0 only.
if [ "${TARGET_MANIFEST_ID}" = "3750364703337203431" -a "${RCON_ENABLED,,}" = true ]; then
    STARTCOMMAND+=("-rcon")
fi

I don't disagree, but with the container automatically updating the game from steam is it viable to put in a legacy fix?

Ie. I can't think of a situation currently where you'd run palworld-server-docker:latest and not have palworld server updated as well.

@sonroyaalmerol
Copy link
Contributor

Don't we have the feature to trick steamcmd into downloading an older version of the server with the TARGET_MANIFEST_ID env var? If so, then I think it's still a good idea to support legacy fixes unless it compromises the latest versions.

@MusclePr
Copy link
Contributor

The reason I recommended it is because of this feature.
https://github.com/thijsvanloef/palworld-server-docker?tab=readme-ov-file#locking-specific-game-version

@MusclePr
Copy link
Contributor

However, I think v0.1.5.0 has almost no use other than analyzing save data.

@43414d
Copy link
Contributor Author

43414d commented Mar 1, 2024

Ahh, see I had no idea about that feature. We love productive PR comment conversations.

I don't mind adding it, but yeah we're basically saying "okay sure, if you wanna rollback to a buggy game version, that's all you, bud." If one person finds value in a change then there's bound to be others as well. :)

@43414d
Copy link
Contributor Author

43414d commented Mar 1, 2024

@MusclePr I'm a little unfamiliar with '-a' syntax, does it short circuit or eval both expressions?

@MusclePr
Copy link
Contributor

MusclePr commented Mar 1, 2024

That's a great point!
-a seems to be deprecated in POSIX, so I changed the format.

# fix bug for v0.1.5.0 only.
if [ "${TARGET_MANIFEST_ID}" = "3750364703337203431" ] && [ "${RCON_ENABLED,,}" = true ]; then
    STARTCOMMAND+=("-rcon")
fi

@43414d
Copy link
Contributor Author

43414d commented Mar 1, 2024

All good! I had already coded it for && just was checking with you first.

@43414d
Copy link
Contributor Author

43414d commented Mar 1, 2024

definitely wrong commit lol

@thijsvanloef thijsvanloef merged commit c577c3e into thijsvanloef:main Mar 1, 2024
10 checks passed
MusclePr pushed a commit to MusclePr/palworld-server-docker that referenced this pull request Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants