Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Stormworks Egg Request #522

Closed
danymo1221 opened this issue May 9, 2020 · 6 comments · Fixed by #595
Closed

Stormworks Egg Request #522

danymo1221 opened this issue May 9, 2020 · 6 comments · Fixed by #595
Assignees

Comments

@danymo1221
Copy link

Please fill out the information bellow and remove from the line up
Please understand how Pterodactyl works when you are requesting an egg. (ie. docker-compose doesn't work for a pterodactyl server)

Service: (Ex. minecraft/factorio/etc)
Stormworks (Windows requires wine)

Does this expand an already existing service: N

Link to game: (Ex. minecraft.net/factorio.com/etc)
Main Website: http://mcro.org/stormworks
Steam: https://store.steampowered.com/app/573090/Stormworks_Build_and_Rescue/

Links for server downloads: This needs to be an official link and not one that is hosted on some forum page or a personal github page.
It can be installed via steamcmd

login anonymous
force_install_dir c:\swds\
app_update 1247090 validate

or

steamcmd +login anonymous +force_install_dir c:\swds\ +app_update 1247090 +quit

Links for install steps/docs:
https://stormworks.gamepedia.com/Wiki/Guides/Dedicated_Server
This is the official gamepedia docs for installing stormworks
https://steamcommunity.com/sharedfiles/filedetails/?id=1995371855
Or a guide made by someone that's pretty detailed

@iamkubi
Copy link
Collaborator

iamkubi commented May 28, 2020

I have a Stormworks egg running but need to sort out the flags and figure out how to disable the crazy amount of console spam. Should be ready for testing in the next couple days. I don't own the game, so once this issue gets opened with the PR I'd appreciate if you could verify it works.

@iamkubi iamkubi self-assigned this May 28, 2020
@danymo1221
Copy link
Author

Sure I can do that

@iamkubi
Copy link
Collaborator

iamkubi commented Jun 6, 2020

Please vote on this issue:
http://mcro.org/issues/view_issue/21739

I may go ahead and add this egg while the console spam issue still exists. Hopefully they can provide a way to disable or tune it, but it doesn't prevent the server from working.

@vingard
Copy link

vingard commented Jul 1, 2020

Any updates?

@iamkubi
Copy link
Collaborator

iamkubi commented Jul 1, 2020

Looks like the developer closed my feature request as "Rejected" without any update. I was kind of hoping they'd care since it says to contact them if you have any issues running under Wine, but that doesn't seem to be the case.

The other issue is that I can't get their config file to be editable by the panel. This is because they cram everything into a single line which makes it incompatible with the existing file parsers. I had hoped to use either XML or File, but they both have issues.

First an example of the first few lines of a StormWorks config:

<?xml version="1.0" encoding="UTF-8"?>
<server_data port="25564" name="Stormworks-Server" seed="6202" save_name="" max_players="32" password="" advanced_mode="true" day_night_length="60" sunrise="0.25" sunset="0.791" infinite_stock="false" unlock_all_islands="false" creative_menu="false" base_island="data/tiles/island12.xml" first_person="false" first_person_vehicle="false" vehicle_damage="false" player_damage="false" npc_damage="false" sharks="false" megalodon="false" teleport_vehicle="true" fast_travel="true" limited_fuel="false" starting_currency="15000" despawn_on_leave="false" unlock_components="true">
        <admins>
                <id value="12345"/>
        </admins>
  1. XML - The config file is written in XML, so that would be a great parser to use, however the Pterodactyl XML parser only supports replacing the value of elements. Stormworks uses attributes instead of elements for their config options, which means I can't use the XML parser.

  2. File - The file parser lets you change arbitrary stuff, at least I thought it was arbitrary! Turns out this isn't the case though, it only will perform replacement if the line starts with the pattern match. Unfortunately this means I can't use the file parser either.
    https://github.com/pterodactyl/daemon/blob/b551500dfa2ca703997f09492fdeab189a9125da/src/helpers/fileparser.js#L75

So as far as I can tell there's no way to automate the settings file updates. This is a combination of issues with the Stormworks config format and assumptions made by Pterodactyl's config file parser about the way a config file should be formatted.

I had previously been debating various ways to work around this, but I've exhausted the amount of effort I care to expend on this. I'll see about just pushing the egg requiring any config changes to be done through manual edits, but I'm not thrilled about it.

iamkubi added a commit that referenced this issue Jul 2, 2020
@parkervcp
Copy link
Collaborator

@danymo1221 Have you tried out this egg?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants