RaidMax / IW4M-Admin

Complete administration tool for IW4x, Pluto T6, Pluto IW5, Pluto T5, Pluto T4, H1-Mod, CoD4x, IW6x, TeknoMW3, and most Call of Duty® dedicated servers.
MIT License
212 stars 43 forks source link

Error when executing on Linux #224

Closed SwitChBlaDe343 closed 2 years ago

SwitChBlaDe343 commented 2 years ago

I recently got into Linux and decided to host a Pluto IW5 server, but after running the commands from the guide I get stuck with the error "Fatal error during initialization. An item with the same key has already been added. Key: 1" I've tried deleting the whole folder and trying again, but I get the same error. I've also tried it with multiple pre-release and stable versions all giving the same error. I'm not sure what's up. Maybe you can help me. image

RaidMax commented 2 years ago

Had another user encounter this issue. It’s most likely due to your server not being configured correctly. Possibly a map not loaded or server not initialized properly.

It’s not a problem with IW4MAdmin but rather an issue with the info response that Pluto IW5 is returning.

A temporary work around can be achieved by adding the following line to ParserPIW5.js

rconParser.Configuration.CommandPrefixes.RConGetInfo = undefined;

SwitChBlaDe343 commented 2 years ago

I seem to have fixed the problem regarding "Key:1", but now I have a new problem.

Is there a way to manually point to the game log in the configuration file? I think it's because the server is running through wine, so the path is different than on windows.

SwitChBlaDe343 commented 2 years ago

I mean when the plutonium-bootstrapper was initially created during the setup it had to run through wine, and as such created a strange path that IW4MAdmin can't find

SwitChBlaDe343 commented 2 years ago

@RaidMax I think my only problem now is pointing to the log file, because i managed to get both the server and IW4MAdmin up and running, but the cmd's ingame don't work, indicating a log file read problem, if I'm correct

RaidMax commented 2 years ago

IW4MAdmin should automatically find the log path of your server even on Linux if you’ve set up the game server correctly. IW5 provides pieces of the path and IW4MAdmin sets it up for Linux filesystem. What is the path IW4MAdmin is generating?

SwitChBlaDe343 commented 2 years ago

It's not generating a path, that's the thing. It just says "null" I followed the guide on the plutonium forum exactly to set up the server. Under Configuration/IW4MAdminSettings.json ManualLogPath, if I don't set it myself as "/root/.wine/drive_c/users/root/Local Settings/Application Data/Plutonium/storage/iw5/logs" IW4M will not start and give me an error that says "/users/root/LOCA~/APPL~/PLUT~/storage/iw5/logs/games_mp27090.log" does not exist.

/root/.wine/drive_c/users/root/Local Settings/Application Data/Plutonium/storage/iw5/logs < This is where the server stores the log file.

RaidMax commented 2 years ago

Closing this as it's platform specific. In docker and some linux distros the game engine will not return the actual disk path. In that scenario a manual log path is required.