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

Serverfiles don't work #38

Open
Possemaster opened this issue Mar 5, 2024 · 3 comments
Open

Serverfiles don't work #38

Possemaster opened this issue Mar 5, 2024 · 3 comments

Comments

@Possemaster
Copy link

Downloaded the files, started the Powershell.
Installs Forge.
Askes for Eula, press Y, screen closes, repeat.
Nothing is happening
Get some Red Error in the Powershell script about Invoke WebRequest URL invalid or something like that.

Please use the already existing server file scripts out there, nothing wrong with thos and way way faster.
Forge installer took 6 minutes or so. ATM9 install took under 1 minutes in full completion.

@Possemaster
Copy link
Author

Seems the script cannot find the PSVersion platform variable. when I change it to win_args.txt it starts but then the server crashes after first boot.

So this part in the script does not function as there is no $PSVersionTable.Platform object in standard Powershell 5 which is part of W10 or W11 OS. When you use PS v7 there is a Platform option.

Run the server

if ($PSVersionTable.Platform.startsWith("Win")) {
$PLATFORM_ARGS = "win_args.txt"
} else {
$PLATFORM_ARGS = "unix_args.txt"
}

Also the script keeps asking for eula while it has created a file with eula=true, SO i cannot create it as a service as this question stays unanswered.

Windows 11 PS v5:
$PSVersionTable

Name Value


PSVersion 5.1.22621.2506
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.2506
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Windows 11 PS v7:
~#@❯ $PSVersionTable ❮

Name Value


PSVersion 7.4.1
PSEdition Core
GitCommitId 7.4.1
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

@ursamina
Copy link
Contributor

ursamina commented Mar 5, 2024

does this still occur on latest?

@Possemaster
Copy link
Author

It happens on 1.7.0. Downloaded yesterday.
I am asking also why there would be a Win / Unix check in a Powershell file. 99.9999% of unix users would never install powershell so I think you can easily say you need the win_args.txt

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

No branches or pull requests

2 participants