Lukium / palworld-admin

1-Click Installer/Launcher and RCON Client for Palworld Dedicated Server
50 stars 8 forks source link

Palworld Admin is not detecting started server. #6

Open Yomorabi opened 4 months ago

Yomorabi commented 4 months ago

After starting a palworld server, the CPU and GPU usage are not working and a "Server is not running" message in printed every 5 seconds in the console, even though the palworld server and RCON are operational.

server_not_running

I'm using version 0.6.3

Yomorabi commented 4 months ago

Update for version 0.6.4: Palworld admin is starting multiple instances of the server.

image

Lukium commented 4 months ago

Update for version 0.6.4: Palworld admin is starting multiple instances of the server.

image

can you get me some more info on the steps to reproduce it?

Yomorabi commented 4 months ago

Update for version 0.6.4: Palworld admin is starting multiple instances of the server. image

can you get me some more info on the steps to reproduce it?

  1. I start Palworld admin by double clicking it.
  2. I go to the Local Server Manager section.
  3. I click on the green Start button.
  4. RCON is connected automatically.
  5. I get a notification that the server is not running.
  6. A new server instance is created every few seconds after that.

Settings are default except for server name, server password, description, IP, RCON password.

Lukium commented 4 months ago

Update for version 0.6.4: Palworld admin is starting multiple instances of the server. image

can you get me some more info on the steps to reproduce it?

  1. I start Palworld admin by double clicking it.
  2. I go to the Local Server Manager section.
  3. I click on the green Start button.
  4. RCON is connected automatically.
  5. I get a notification that the server is not running.
  6. A new server instance is created every few seconds after that.

Settings are default except for server name, server password, description, IP, RCON password.

I seem to have one more user experiencing something similar. I strongly believe that it has something to do with Windows Localization. Would you be willing to hop on Discord to see if we can work together to figure out a good workaround for this?

For more details, the app runs a Powershell command to try and detect that the server is running by checking for its CPU/RAM usage. I have already written a workaround that I thought worked for all languages, but clearly, it doesn't seem to work for ALL languages (though it does work for most).

Yomorabi commented 4 months ago

I have the logs from version 0.7.1. log-0.7.1.txt

Lukium commented 4 months ago

I have the logs from version 0.7.1. log-0.7.1.txt

Should be fixed on 0.7.2, please let me know :)

Yomorabi commented 4 months ago

I have the logs from version 0.7.1. log-0.7.1.txt

Should be fixed on 0.7.2, please let me know :)

Still happening in 0.7.2 image

Lukium commented 4 months ago

I have the logs from version 0.7.1. log-0.7.1.txt

Should be fixed on 0.7.2, please let me know :)

Still happening in 0.7.2 image

can you run the command from the log in powershell while the dedicated server is running and provide what it returns?

$PN = "PalServer-Win64-Test-Cmd"; Get-CimInstance 
Win32_PerfFormattedData_PerfProc_Process | Where-Object { $_.Name -eq $PN } | Select-Object -Property Name, 
PercentProcessorTime, WorkingSet -First 1 | ForEach-Object { $cpuUsage = $_.PercentProcessorTime; $workingSetSize = 
$_.WorkingSet; "$cpuUsage $workingSetSize" }

The issue seems to be arising from neither the Get-Counter or the Get-CimInstance being able to get information on the server

Yomorabi commented 4 months ago

can you run the command from the log in powershell while the dedicated server is running and provide what it returns?

$PN = "PalServer-Win64-Test-Cmd"; Get-CimInstance 
Win32_PerfFormattedData_PerfProc_Process | Where-Object { $_.Name -eq $PN } | Select-Object -Property Name, 
PercentProcessorTime, WorkingSet -First 1 | ForEach-Object { $cpuUsage = $_.PercentProcessorTime; $workingSetSize = 
$_.WorkingSet; "$cpuUsage $workingSetSize" }

The issue seems to be arising from neither the Get-Counter or the Get-CimInstance being able to get information on the server

I get this error message:

Get-CimInstance : Classe non valide
Au caractère Ligne:1 : 35
+ ... -Test-Cmd"; Get-CimInstance Win32_PerfFormattedData_PerfProc_Process  ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : MetadataError: (root\cimv2:Win3...erfProc_Process:String) [Get-CimInstance], CimException
    + FullyQualifiedErrorId : HRESULT 0x80041010,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand
Lukium commented 4 months ago

can you run the command from the log in powershell while the dedicated server is running and provide what it returns?

$PN = "PalServer-Win64-Test-Cmd"; Get-CimInstance 
Win32_PerfFormattedData_PerfProc_Process | Where-Object { $_.Name -eq $PN } | Select-Object -Property Name, 
PercentProcessorTime, WorkingSet -First 1 | ForEach-Object { $cpuUsage = $_.PercentProcessorTime; $workingSetSize = 
$_.WorkingSet; "$cpuUsage $workingSetSize" }

The issue seems to be arising from neither the Get-Counter or the Get-CimInstance being able to get information on the server

I get this error message:

Get-CimInstance : Classe non valide
Au caractère Ligne:1 : 35
+ ... -Test-Cmd"; Get-CimInstance Win32_PerfFormattedData_PerfProc_Process  ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : MetadataError: (root\cimv2:Win3...erfProc_Process:String) [Get-CimInstance], CimException
    + FullyQualifiedErrorId : HRESULT 0x80041010,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand

So, it appears that your version of Windows can't run that command... I'll have to look into an alternative.