GregTech Community Pack Modern

GregTech Community Pack Modern

35.5k Downloads

Serverfiles don't work

Possemaster opened this issue · 3 comments

commented

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.

commented

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

commented

does this still occur on latest?

commented

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