[mod] My mods (ASTIC) compatible with the v1.11

Discussion in 'The Hangar Bay' started by ASTIC, May 17, 2019.

Tags:
  1. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,094
    Likes Received:
    735
    In the Dedicated...log file in the default EGS log directory
     
    #101
  2. [TOG] Xukisy

    [TOG] Xukisy Ensign

    Joined:
    Oct 15, 2020
    Messages:
    22
    Likes Received:
    7
    Seems to be a few different errors. I've attached the Dedicated log with errors. Read them and my eyes went sideways.
     

    Attached Files:

    #102
    Last edited: Oct 3, 2021
  3. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,094
    Likes Received:
    735
    For some reason, your Empyrion is not responding to PlayerAPI requests.
    Code:
    03-09:38:54.626 20_38 -LOG- {:EmpyrionModClient} **OpenBackpack 5:/vb 1 number/1
    03-09:38:57.607 20_38 -LOG- Booting PfServer (PID 4548) starts preparation after 14.0 seconds...
    03-09:38:59.646 20_38 -LOG- New reserve PfServer (PID 4548) ready after 16.0 seconds - count is now: 1
    03-09:39:04.759 20_39 -LOG- {:EmpyrionModClient} backpack open failed for player 2140 :System.TimeoutException: The operation has timed out.
    .. ff
    this is how it should look (for the first open command)
    Code:
    03-14:00:41.168 16_00 -LOG- {:EmpyrionModClient} **OpenBackpack 5:\vb 1 number/1
    
    03-14:00:41.288 16_00 -LOG- {:EmpyrionModClient} NameIdMapping:'Saves\Games\DefaultRE\Mods\EmpyrionScripting\NameIdMapping.json' CurrentDirectory:C:\steamcmd\empyrion.server
    03-14:01:25.809 16_01 -LOG- INFO: Uptime=10h56m 60,000 2381 heap= 864MB fps=40,0 players= 2 pfs=r0/i1/a1 ticks=123628666 nwqueue=Net:0/2
    03-14:02:25.829 16_02 -LOG- INFO: Uptime=10h57m 60,019 2381 heap= 864MB fps=39,8 players= 2 pfs=r0/i1/a1 ticks=123629866 nwqueue=Net:0/2
    03-14:03:25.840 16_03 -LOG- INFO: Uptime=10h58m 60,011 2385 heap= 864MB fps=39,8 players= 2 pfs=r0/i1/a1 ticks=123631066 nwqueue=Net:0/2
    ... ff
    Also I find it strange that you have to recompile it.
    Take the complete ModLoader package from the beginning of this thread, delete your ModLoader directory and replace it with its contents, because that works fine so far.
     
    #103
  4. [TOG] Xukisy

    [TOG] Xukisy Ensign

    Joined:
    Oct 15, 2020
    Messages:
    22
    Likes Received:
    7
    I've downloaded the latest one and tried it multiple times since you released it. It loads the ModLoader and I can see in EWA the BackpackExtender mod is loaded but I get no response from any /vb commands and I've just checked and nothing in the Dedicated logs at all. If I use my compiled version then /vb commands works but errors as attached that seem to occur 8 seconds after opening the "/vb 1" or "/vb 2"window. It then allows normal use of the windows and I can put items in/out and it saves it in the .json file on the server.

    Tried it on my other machine and it's happening there too. Could there be anything running on Windows 10 that could be causing the issues. Do I need any software running on the machine or anything specific in the hosts file?
     
    #104
  5. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,094
    Likes Received:
    735
    Attach a DedicatedLog... maybe i can see the reason
     
    #105
  6. [TOG] Xukisy

    [TOG] Xukisy Ensign

    Joined:
    Oct 15, 2020
    Messages:
    22
    Likes Received:
    7
    I've attached the full Dedicated Log using your .dll. Here is a selection of code that looks like the error when I use your .dll.

    Code:
    04-02:20:50.681 13_20 -LOG- {:EmpyrionModClient} ModClientDll: start host 'D:\Empyrion_Test\dedicatedserver\Content\Mods\ModLoader\Client\..\Host\EmpyrionModHost.exe'
    04-02:20:50.682 13_20 -LOG- {:EWAModClient} ModClientDll: start host 'D:\Empyrion_Test\dedicatedserver\Content\Mods\EWALoader\Client\..\EWA\EmpyrionModWebHost.exe'
    04-02:20:50.686 13_20 -LOG- {:EmpyrionModClient} ModClientDll: host started 'D:\Empyrion_Test\dedicatedserver\Content\Mods\ModLoader\Client\..\Host\EmpyrionModHost.exe/32848'
    04-02:20:50.700 13_20 -LOG- {:EWAModClient} ModClientDll: host started 'D:\Empyrion_Test\dedicatedserver\Content\Mods\EWALoader\Client\..\EWA\EmpyrionModWebHost.exe/12860' -> StartInfo:'D:\Empyrion_Test\dedicatedserver\Content\Mods\EWALoader\Client\..\EWA\EmpyrionModWebHost.exe' in 'D:\Empyrion_Test\dedicatedserver\Content\Mods\EWALoader\Client\..\EWA' with '-EmpyrionToModPipe EmpyrionToEWAPipe6678a9e0645a4104ae746a222de03c9f -ModToEmpyrionPipe EWAToEmpyrionPipef34cde7c83034353aac64198d9e354f0 -GameDir "D:\Empyrion_Test\dedicatedserver" "DedicatedServer/EmpyrionDedicated.exe" -batchmode -nographics -dedicated "dedicated_aphrodite6.yaml" -logFile "../Logs/3511/Dedicated_211004-132033-98.log" '
    04-02:20:51.681 13_20 -LOG- {:ModExtenderCommunication} ServerPipe: ModToEmpyrionPipeaacdfe49625141efb79ddaef92f51832 connected 10485760
    04-02:20:51.699 13_20 -LOG- {:EmpyrionModClient} Try load within: D:\Empyrion_Test\dedicatedserver -> D:\Empyrion_Test\dedicatedserver\Content\Mods\ModLoader\Host\..\MODs\EmpyrionBackpackExtender
    04-02:20:51.699 13_20 -LOG- {:EmpyrionModClient} ModDispatcher: ..\MODs\EmpyrionBackpackExtender\EmpyrionBackpackExtender.dll -> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
       at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
       at System.Reflection.Assembly.LoadFile(String path)
       at EmpyrionModHost.ModDispatcher.TryLoadAssembly(String aAssembly) in C:\MapDirectories\Projekte\C#\Empyrion\EmpyrionModHost\EmpyrionModHost\ModDispatcher.cs:line 147
       at EmpyrionModHost.ModDispatcher.LoadAssembly(String aFileName) in C:\MapDirectories\Projekte\C#\Empyrion\EmpyrionModHost\EmpyrionModHost\ModDispatcher.cs:line 90
    04-02:20:51.699 13_20 -LOG- {:EmpyrionModClient} ModDispatcher(finish:0): D:\Empyrion_Test\dedicatedserver\Content\Mods\ModLoader\Host\DllNames.txt
    04-02:20:52.682 13_20 -LOG- {:EWAExtenderCommunication} ServerPipe: EWAToEmpyrionPipef34cde7c83034353aac64198d9e354f0 connected 10485760
    

    The screenshot is from the machine I'm compiling on. The other machine also fails with the same error and it's running .NET 4.5
     

    Attached Files:

    #106
    Last edited: Oct 4, 2021
  7. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,094
    Likes Received:
    735
    What about the other mods from the ModLoader.zip? You obviously did not delete the entire ModLoader directory and simply replaced it with the contents of the ZIP?
    Furthermore, your system seems to think that the DLL is a "foreign" DLL - either because something is wrong with the .NET installation or because the system thinks that this file comes from the network (or the DLL is marked as "not safe" because the download comes from the Internet).
     
    #107
  8. [TOG] Xukisy

    [TOG] Xukisy Ensign

    Joined:
    Oct 15, 2020
    Messages:
    22
    Likes Received:
    7
    Exactly the same for a freshly extraction of your files. I've attached the log
     

    Attached Files:

    #108
  9. [TOG] Xukisy

    [TOG] Xukisy Ensign

    Joined:
    Oct 15, 2020
    Messages:
    22
    Likes Received:
    7
    Resolved your DLL not loading. Open File Properties and click the UNBLOCK Checkbox to fix.

    But we're back to the error I had from my compile version. Log attached. Happens on 2 different servers. One running .NET 5.0 and the other .NET 4.5

    upload_2021-10-4_17-35-57.png
     

    Attached Files:

    #109
    Last edited: Oct 4, 2021
  10. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,094
    Likes Received:
    735
    • The log doesn't match the screenshot because in the log I don't see that it tries to load the EmpyrionBaseAlign.dll.
    • To the log before deliver. There all ModDLLs deliver this error. Since this seems to be unique to your server, it must be related somehow. I have never seen this error reported by any other server operator.
    • Maybe the link Microsoft gives in the error description helps to find a solution for your computer.
     
    #110
  11. [TOG] Xukisy

    [TOG] Xukisy Ensign

    Joined:
    Oct 15, 2020
    Messages:
    22
    Likes Received:
    7
    EmpyrionBaseAlign.dll screenshot shows how to UNBLOCK the .ddl. It doesn't show after you select it so I wasn't able to show the BackPack .dll. This fixes the issue with the Microsoft link. We're on the first error I reported which is the error when the /vb 1 command is run and gives error 10 seconds after it is opened.

    The error in the Dedicated log file. Here is the snippet:

    Code:
    04-06:29:56.117 17_29 -LOG- Thread 'Reader_127.0.0.1:56405' ThreadId=38808 ManagedId=35
    04-06:29:56.117 17_29 -LOG- Thread 'Writer_127.0.0.1:56405' ThreadId=37932 ManagedId=36
    04-06:30:04.241 17_30 -LOG- CHAT Player/Global from 6001/Player.6001 to -1/Faction.0 (-): '/vb help'
    04-06:30:07.293 17_30 -LOG- Booting PfServer (PID 40600) starts preparation after 13.3 seconds...
    04-06:30:09.348 17_30 -LOG- New reserve PfServer (PID 40600) ready after 15.4 seconds - count is now: 1
    04-06:30:11.500 17_30 -LOG- CHAT Player/Global from 6001/Player.6001 to -1/Faction.0 (-): '/vb 1'
    04-06:30:11.505 17_30 -LOG- {:EmpyrionModClient} **OpenBackpack 3:/vb 1 number/1
    04-06:30:26.734 17_30 -LOG- INFO: Uptime=00h00m 60.268 2196 heap= 553MB fps=40.0 players= 1 pfs=r0/i1/a1 ticks=42712 nwqueue=Net:0/1
    04-06:30:29.371 17_30 -LOG- CHAT Player/Faction from 6001/Faction.102 to -1/Faction.102 (-): '/vb 1'
    04-06:30:29.372 17_30 -LOG- {:EmpyrionModClient} **OpenBackpack 5:/vb 1 number/1
    04-06:30:31.470 17_30 -LOG- {EPM} Timelog: Send to Dedi: 11/min
    04-06:30:31.470 17_30 -LOG- {EPM} Timelog: Received from Dedi: 24/min
    04-06:30:39.494 17_30 -LOG- {:EmpyrionModClient} backpack open failed for player 6001 :System.TimeoutException: The operation has timed out.
       at EmpyrionNetAPITools.Extensions.TaskTools.<For>d__4`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at EmpyrionNetAPITools.Extensions.TaskTools.<For>d__4`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at EmpyrionNetAPIAccess.Broker.<Request_Player_ItemExchange>d__144.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at EmpyrionNetAPIAccess.EmpyrionModBase.<Request_Player_ItemExchange>d__143.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at EmpyrionBackpackExtender.EmpyrionBackpackExtender.<OpenBackpackItemExcange>d__34.MoveNext()
    04-06:30:50.029 17_30 -LOG- NET: Raknet player disconnected CId=1/16413057694261353036
    04-06:30:50.029 17_30 -LOG- [CM] Player 76561198155777683/'[TOG] Xukisy' logged off
    04-06:30:50.030 17_30 -LOG- Client CId=1, EId=6001, 76561198155777683/=/'[TOG] Xukisy' disconnected from Haven, now empty -> delayed unload enqueued
    
     
    #111
    Last edited: Oct 4, 2021
  12. [TOG] Xukisy

    [TOG] Xukisy Ensign

    Joined:
    Oct 15, 2020
    Messages:
    22
    Likes Received:
    7
    If I'm not mistaken it's coming from the line 307 in EmpyrionBackpackExtender.cs :

    Code:
    try { await Request_Player_ItemExchange(Timeouts.NoResponse, exchange); } // ignore Timeout Exception
    Am I correct in saying you coded this in to ignore the Timeout exception I'm seeing in the logs?
     
    #112
  13. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,094
    Likes Received:
    735
    I did a complete update of the mods yesterday - could you please test this version to see if it addresses the bugs?
     

    Attached Files:

    #113
  14. [TOG] Xukisy

    [TOG] Xukisy Ensign

    Joined:
    Oct 15, 2020
    Messages:
    22
    Likes Received:
    7
    Sorry about the delay. Work got in the way of play. I see an error in Dedicated log when the mod first loads on server start but it's error free otherwise. No errors in game or in the logs after running any of the /vb commands.
     
    #114
  15. [TOG] Xukisy

    [TOG] Xukisy Ensign

    Joined:
    Oct 15, 2020
    Messages:
    22
    Likes Received:
    7
    Update. The server transfer including item transfer using Extended Backpack from my old to new server was a success.

    Thank-you @ASTIC
     
    #115
    Sup and ASTIC like this.
  16. Melaywen

    Melaywen Ensign

    Joined:
    Feb 18, 2021
    Messages:
    6
    Likes Received:
    2
    Hallo Zusammen,

    ich hoffe jemand kann mir weiter helfen:

    LCD1: "Script:BAY1"

    Code:
    {{~setcache 'BAY1' 'false'}}
    {{~#each E.S.DockedE}}
    {{#globaltostructpos @root.E.S Pos}}
    {{#test ~y in '127-132'}}
    {{#test ~z in '14-21'}}
    {{#test ~x in '6-14'}}
    {{~setcache 'BAY1' 'true'}}
    Docked Ship: {{Name}}
    {{/test}}
    {{/test}}
    {{/test}}
    {{/globaltostructpos}}
    {{/each}}
    {{#test @root.CacheData.BAY1 eq 'true'}}
    {{setswitch @root.E.S 'SWITCHBAY1' true}}
    {{else}}
    
    {{setswitch @root.E.S 'SWITCHBAY1' false}}
    {{/test}}
    
    Anzeige auf dem LCD "BAY1":

    Docked Ship:

    Wieso kommt hier der Name des Schiffes nicht? den cashe respektive Switch teil führt es korrekt aus.

    Grüsse
     
    #116
  17. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,094
    Likes Received:
    735
    'Name' kommt von dem DockedE Objekt welches 4 Ebenen über der liegt in der du es benutzen willst (jedes Blockkommando erzeugt eine neue Ebene mit 'seinem' Objekt) also musst du mit ../ die Ebenen 'hochgehen' .
    Anmerkung:; Vermutlich 4 wen ich mich nicht verzählt habe
    Code:
    Docked Ship: {{../../../../Name}}
     
    #117
    Melaywen and Sup like this.
  18. Melaywen

    Melaywen Ensign

    Joined:
    Feb 18, 2021
    Messages:
    6
    Likes Received:
    2
    Danke dir vielmals, dann kann ich wieder weiter bauen :D
     
    #118
  19. Adjoint [PAX]

    Adjoint [PAX] Ensign

    Joined:
    Nov 11, 2021
    Messages:
    7
    Likes Received:
    4
    How can I apply FillBox script and another scripts of my choice at a RE 16 dedicated server so ppl don't have to install EmpyrionScripting a their client ?
    Also, without having to add code to their ships.
    I have seen servers that have done it.
     
    #119
    Last edited: Nov 11, 2021
  20. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,094
    Likes Received:
    735
    Like "ActiveRadar" or "SendData" in https://github.com/GitHub-TC/EmpyrionScripting-Collection you can do this automatic fill with SaveGameScripts
     
    #120

Share This Page