GitHub-TC / EmpyrionModHost

Mod for host other MODs in a seperate Host-EXE so these are capable to install, update, deinstall, activate, deactivate,restart, debug, .NET 4.6 etc... without shutdown the EGS server
GNU General Public License v3.0
3 stars 8 forks source link

Issue with Gportal and the exe #1

Closed ghost closed 1 year ago

ghost commented 1 year ago

Gportal do not allow the exe to be uploaded to the server. So we get the following error:

10-14:28:22.850 15_28 -LOG- {:ModExtenderCommunication} Try to connect ExecServerCommunication. ModToEmpyrionPipe9f960c63352444d58180a794211ace02 Reason: System.IO.FileNotFoundException: Unable to find the specified file.
  at System.IO.MemoryMappedFiles.MemoryMappedFile.OpenExisting (System.String mapName) [0x00031] in <03f3355ff4214c59ae3f44587e76142b>:0 
  at SharedMemory.SharedBuffer.Open () [0x0017e] in <03f3355ff4214c59ae3f44587e76142b>:0 
  at SharedMemory.CircularBuffer..ctor (System.String name) [0x0000a] in <03f3355ff4214c59ae3f44587e76142b>:0 
  at ModExtenderCommunication.ServerMessagePipe.ExecServerCommunication () [0x00014] in <8dbcb7c0104a4ea79f6be776b92b0df0>:0 
  at ModExtenderCommunication.ServerMessagePipe.ServerCommunicationLoop () [0x00010] in <8dbcb7c0104a4ea79f6be776b92b0df0>:0 
10-14:28:24.860 15_28 -LOG- New reserve PfServer (PID 122080) ready after 59,9 seconds - count is now: 1
10-14:29:09.523 15_29 -LOG- INFO: Uptime=00h01m 60,011 2340 heap= 709MB fps=39,6 players= 0 pfs=r0/i1/a0 ticks=2693392 nwqueue=

We are using your ModLoaderBundle and I am guessing this is why none of the mods are working? Would this explain why the recycle script results in non resources just vanishing blocks too? Not sure what (if anything) can be done to fix the situation, guessing GPortal are just unsupported for the mods, though I believe they are the official hosts lol

Any work arounds?

GitHub-TC commented 1 year ago

There is always an identical file .exe.bin which is then renamed to an .exe during operation. This avoids the problem of not being able to upload *.exe files.

But in the start-up phase there are these messages, which only occur during the first connection attempts and are usually not a fundamental error.

ghost commented 1 year ago

ah suddenly its working... though /vb which is one of the mods(backpack extender) does not work. Have i missed something i need to set up?

ghost commented 1 year ago

Ok so an update. Didnt see the english instructions last time I looked, so armed with instructions. I added the mod to the DLLNames file The mod config was created in our save game edited the config to our preferences and loaded the game.

we cant get the mod to work though. none of the commands are regonised (we tried the console and every chat channel)

this error is in the log:

13-19:01:46.848 20_01 -LOG- {:ModExtenderCommunication} Try to connect ExecServerCommunication. ModToEmpyrionPipe9f960c63352444d58180a794211ace02 Reason: System.IO.FileNotFoundException: Unable to find the specified file. at System.IO.MemoryMappedFiles.MemoryMappedFile.OpenExisting (System.String mapName) [0x00031] in <03f3355ff4214c59ae3f44587e76142b>:0 at SharedMemory.SharedBuffer.Open () [0x0017e] in <03f3355ff4214c59ae3f44587e76142b>:0 at SharedMemory.CircularBuffer..ctor (System.String name) [0x0000a] in <03f3355ff4214c59ae3f44587e76142b>:0 at ModExtenderCommunication.ServerMessagePipe.ExecServerCommunication () [0x00014] in <8dbcb7c0104a4ea79f6be776b92b0df0>:0 at ModExtenderCommunication.ServerMessagePipe.ServerCommunicationLoop () [0x00010] in <8dbcb7c0104a4ea79f6be776b92b0df0>:0 13-19:01:50.411 20_01 -LOG- New playfield server 13-19:01:50.412 20_01 -LOG- Thread 'Reader_127.0.0.1:56859' ThreadId=124284 ManagedId=34 13-19:01:50.412 20_01 -LOG- Thread 'Writer_127.0.0.1:56859' ThreadId=126000 ManagedId=35 System.AggregateException: One or more errors occurred. (The operation has timed out.) ---> System.TimeoutException: The operation has timed out. at EmpyrionNetAPITools.Extensions.TaskTools.For[TResult] (System.TimeSpan timeout, System.Threading.Tasks.Task1[TResult] task) [0x0026a] in <447fb7f8c21e469b90aaffe75739cd93>:0 at EmpyrionNetAPITools.Extensions.TaskTools.For[TResult] (System.TimeSpan timeout, System.Threading.Tasks.Task1[TResult] task) [0x002db] in <447fb7f8c21e469b90aaffe75739cd93>:0 at EmpyrionNetAPIAccess.Broker.Request_Get_Factions (Eleon.Modding.Id arg) [0x0008a] in <447fb7f8c21e469b90aaffe75739cd93>:0 at EmpyrionNetAPIAccess.EmpyrionModBase.Request_Get_Factions (Eleon.Modding.Id arg) [0x00083] in <447fb7f8c21e469b90aaffe75739cd93>:0 --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <8f06425e63004caf99a79845675f751e>:0 at System.Threading.Tasks.Task1[TResult].GetResultCore (System.Boolean waitCompletionNotification) [0x0002b] in <8f06425e63004caf99a79845675f751e>:0 at System.Threading.Tasks.Task1[TResult].get_Result () [0x0000f] in <8f06425e63004caf99a79845675f751e>:0 at EmpyrionBackpackExtender.EmpyrionBackpackExtender.<Initialize>b__21_1 () [0x0000d] in <447fb7f8c21e469b90aaffe75739cd93>:0 at EmpyrionNetAPITools.Extensions.TaskTools+<>c__DisplayClass6_0.<Intervall>b__0 () [0x0000a] in <447fb7f8c21e469b90aaffe75739cd93>:0 ---> (Inner Exception #0) System.TimeoutException: The operation has timed out. at EmpyrionNetAPITools.Extensions.TaskTools.For[TResult] (System.TimeSpan timeout, System.Threading.Tasks.Task1[TResult] task) [0x0026a] in <447fb7f8c21e469b90aaffe75739cd93>:0 at EmpyrionNetAPITools.Extensions.TaskTools.For[TResult] (System.TimeSpan timeout, System.Threading.Tasks.Task1[TResult] task) [0x002db] in <447fb7f8c21e469b90aaffe75739cd93>:0 at EmpyrionNetAPIAccess.Broker.Request_Get_Factions (Eleon.Modding.Id arg) [0x0008a] in <447fb7f8c21e469b90aaffe75739cd93>:0 at EmpyrionNetAPIAccess.EmpyrionModBase.Request_Get_Factions (Eleon.Modding.Id arg) [0x00083] in <447fb7f8c21e469b90aaffe75739cd93>:0 <--- our configuration file:

{ "LogLevel": "Message", "ChatCommandPrefix": "/\\", "NameIdMappingFile": "Saves\\Games\\DediGame5\\Mods\\EmpyrionScripting\\NameIdMapping.json", "MAX_STACK_SIZE": 16777214, "PersonalBackpack": { "ChatCommand": "vb", "MaxBackpacks": 2, "Price": 500000, "OpenCooldownSecTimer": 60, "AllowSuperstack": true, "AllowedPlayfields": [], "ForbiddenPlayfields": [], "FilenamePattern": "Personal\\{0}.json", "ForbiddenItems": [ { "Id": 0, "Count": 0, "ItemName": null } ], "AllowedItems": [] }, "FactionBackpack": { "ChatCommand": "fb", "MaxBackpacks": 2, "Price": 1000000, "OpenCooldownSecTimer": 600, "AllowSuperstack": true, "AllowedPlayfields": [], "ForbiddenPlayfields": [], "FilenamePattern": "Faction\\{0}.json", "ForbiddenItems": [ { "Id": 0, "Count": 0, "ItemName": null } ], "AllowedItems": [] }, "OriginBackpack": { "ChatCommand": "ob", "MaxBackpacks": 1, "Price": 0, "OpenCooldownSecTimer": 1800, "AllowSuperstack": true, "AllowedPlayfields": [], "ForbiddenPlayfields": [], "FilenamePattern": "Origin\\{0}.json", "ForbiddenItems": [ { "Id": 0, "Count": 0, "ItemName": null } ], "AllowedItems": [] }, "GlobalBackpack": { "ChatCommand": "gb", "MaxBackpacks": 1, "Price": 0, "OpenCooldownSecTimer": 1800, "AllowSuperstack": true, "AllowedPlayfields": [], "ForbiddenPlayfields": [], "FilenamePattern": "Global\\{0}.json", "ForbiddenItems": [ { "Id": 0, "Count": 0, "ItemName": null } ], "AllowedItems": [] }, "OpendBackpacks": {} }

The path to NameIdMapping seems correct and the examples i saw in the thread all have double \

no idea whats wrong,

ghost commented 1 year ago

We also get this on every boot regardless of mods loaded:

13-19:10:39.746 20_10 -LOG- {:EmpyrionModClient} ModClientDll: start host 'D:\home\sid_4622557\empyrion\Content\Mods\ModLoader\Client\..\Host\EmpyrionModHost.exe' 13-19:10:39.753 20_10 -LOG- {:EmpyrionModClient} ModClientDll: host started 'D:\home\sid_4622557\empyrion\Content\Mods\ModLoader\Client\..\Host\EmpyrionModHost.exe/117044' 13-19:10:59.478 20_10 -LOG- Booting PfServer (PID 129572) starts preparation after 27,4 seconds... 13-19:11:19.129 20_11 -LOG- INFO: Uptime=00h00m 60,476 1925 heap= 704MB fps=39,7 players= 0 pfs=r1/i0/a0 ticks=8154925 nwqueue= 13-19:11:24.087 20_11 -LOG- New reserve PfServer (PID 129572) ready after 52,0 seconds - count is now: 1 13-19:11:29.858 20_11 -LOG- {:ModExtenderCommunication} Try to connect ExecServerCommunication. ModToEmpyrionPipe9f960c63352444d58180a794211ace02 Reason: System.IO.FileNotFoundException: Unable to find the specified file. at System.IO.MemoryMappedFiles.MemoryMappedFile.OpenExisting (System.String mapName) [0x00031] in <03f3355ff4214c59ae3f44587e76142b>:0 at SharedMemory.SharedBuffer.Open () [0x0017e] in <03f3355ff4214c59ae3f44587e76142b>:0 at SharedMemory.CircularBuffer..ctor (System.String name) [0x0000a] in <03f3355ff4214c59ae3f44587e76142b>:0 at ModExtenderCommunication.ServerMessagePipe.ExecServerCommunication () [0x00014] in <8dbcb7c0104a4ea79f6be776b92b0df0>:0 at ModExtenderCommunication.ServerMessagePipe.ServerCommunicationLoop () [0x00010] in <8dbcb7c0104a4ea79f6be776b92b0df0>:0 13-19:12:19.133 20_12 -LOG- INFO: Uptime=00h01m 60,003 2362 heap= 704MB fps=39,8 players= 0 pfs=r0/i1/a0 ticks=8156125 nwqueue=

GitHub-TC commented 1 year ago

It have to be like this 13-15:55:36.040 16_55 -LOG- {:EmpyrionModClient} ModClientDll: start host 'C:\steamcmd\empyrion.server\Content\Mods\ModLoader\Client\..\Host\EmpyrionModHost.exe' 13-15:55:36.108 16_55 -LOG- {:EmpyrionModClient} ModClientDll: host started 'C:\steamcmd\empyrion.server\Content\Mods\ModLoader\Client\..\Host\EmpyrionModHost.exe/9788' 13-15:55:37.042 16_55 -LOG- {:ModExtenderCommunication} ServerPipe: ModToEmpyrionPipea08da4c068924612a55e5d6e5c305071x connected 10485760 13-15:55:37.084 16_55 -LOG- {:EmpyrionModClient} Try load within: C:\steamcmd\empyrion.server -> C:\steamcmd\empyrion.server\Content\Mods\ModLoader\Host\..\MODs\VotingRewardMod 13-15:55:37.084 16_55 -LOG- {:EmpyrionModClient} ModDispatcher: loaded C:\steamcmd\empyrion.server\Content\Mods\ModLoader\Host\..\MODs\VotingRewardMod\VotingRewardMod.dll ... maybe there is an old .exe copy in your path (gportal mybe not show it) - try to delete the complete EGS\Content\Mods\ModLoader directory and get a fresh from the zip file https://github.com/GitHub-TC/EmpyrionModPackage/blob/main/ModLoader.zip