GithubHelp home page GithubHelp logo

Comments (15)

Torca2001 avatar Torca2001 commented on September 3, 2024

image
Appears to be a reflection error occurs on the dedicated server side.
The mod is failing to load in @TBN-MapleWheels

from mechtrauma.

MapleWheels avatar MapleWheels commented on September 3, 2024

image Appears to be a reflection error occurs on the dedicated server side. The mod is failing to load in @TBN-MapleWheels

Let me look into this. I'm not sure why it's failing to load.

from mechtrauma.

MapleWheels avatar MapleWheels commented on September 3, 2024

I can't reproduce this; @Imouto-Kaede can you send me the full log if that run/instance?

from mechtrauma.

dakkhuza avatar dakkhuza commented on September 3, 2024

launch dedicated server with the current unstable build, happens everytime you launch it

from mechtrauma.

Torca2001 avatar Torca2001 commented on September 3, 2024

I can't reproduce this; @Imouto-Kaede can you send me the full log if that run/instance?
The error won't occur instantly unless there is a Central Pump loaded in, The error will also occur if you try to turn on a generator.

from mechtrauma.

MapleWheels avatar MapleWheels commented on September 3, 2024

Hey @Torca2001 ,

It might be related to this error from 2 weeks ago;
image

Also, I did follow the steps. All turning on the generator does is kick me from the server in relation to the above error.

from mechtrauma.

dakkhuza avatar dakkhuza commented on September 3, 2024

You have to launch the luadedicatedserver.bat to see the full error, you won't see it on the client or if you host the server using the in-game hosting menu

from mechtrauma.

MapleWheels avatar MapleWheels commented on September 3, 2024

You have to launch the luadedicatedserver.bat to see the full error, you won't see it on the client or if you host the server using the in-game hosting menu

I always test with the Dedicated Server, that screenshot was from the dedicated server console. This is why I asked for full logs.

I just also tested with the unstable workshop version and that's how I got the above error. Not saying the error @Torca2001 post isn't happening, but I can't reproduce it on my side.

image

I got kicked after turning on the Diesel Generator and it's because of the above error. This produced the error that @Imouto-Kaede is having:
image

@Torca2001 This error is the one from a couple of weeks ago in dev chat where it wouldn't be registered. Let me see if I can fix it.

from mechtrauma.

dakkhuza avatar dakkhuza commented on September 3, 2024
Loading game settings
Loading MD5 hash cache
Initializing SteamManager
Initializing GameScreen
Setting breakpad minidump AppID = 602960
WARNING: Unrecognized element in affliction "buckled" (ReduceAffliction)
Selected sub: Azimuth
Selected shuttle: Hemulen
[02/22/2023 19:10:42]
  Starting the server...
[02/22/2023 19:10:42]
  Using Lidgren networking. Manual port forwarding may be required. If players cannot connect to the server, you may want to use the in-game hosting menu (which uses SteamP2P networking and does not require port forwarding).
Lua! Version ca9f232aaf
Cs! Version ca9f232aaf
Added Modding Toolkit 0.0.3.2 to Cs compilation. (Standard)
[Server] Modding Toolkit: Starting...
[Server] Modding Toolkit loading in Standard Mode.
ModConfigManager: Loading Assembly Plugins...
MCM: Scanning packages...
Found Assembly Path: C:\Users\Dak\AppData\Local\Daedalic Entertainment GmbH\Barotrauma\WorkshopMods\Installed\2890754956\bin\Server\Standard\Mechtrauma.plugin.dll
ReflectionUtils::AddNonAbstractAssemblyTypes() | RTFException: Unable to load Assembly Types from Mechtrauma.plugin, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
[Server] AssemblyPatcher::GetSafeType() | Could not load types from reflection. | Exception Details: Unable to load one or more of the requested types.
Access is denied: 'Barotrauma.Items.Components.OxygenGenerator'.
Access is denied: 'Barotrauma.Items.Components.Pump'.
Access is denied: 'Barotrauma.Items.Components.PowerContainer'.
Access is denied: 'Barotrauma.Items.Components.PowerTransfer'.
Access is denied: 'Barotrauma.Items.Components.Powered'.
Access is denied: 'Barotrauma.Items.Components.PowerContainer'.
Access is denied: 'Barotrauma.Items.Components.Powered'.
Access is denied: 'Barotrauma.Items.Components.Powered'.
[SV CS ERROR] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.FieldAccessException: Attempt by method 'Mechtrauma.Plugin.changePowerRules()' to access field 'Barotrauma.GameMain.LuaCs' failed.
   at Mechtrauma.Plugin.changePowerRules()
   at Mechtrauma.Plugin.Initialize()
   at ModdingToolkit.AssemblyManager.LoadPlugins(List`1& pInfo)
   at ModdingToolkit.PluginHelper.LoadAssemblies()
   at ModdingToolkit.Bootloader.Init()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.ConstructorInfo.Invoke(Object[] parameters)
   at Barotrauma.LuaCsSetup.<>c.<Initialize>b__74_6(Type t) in B:\programming\c#\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\LuaCs\LuaCsSetup.cs:line 357
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at Barotrauma.LuaCsSetup.Initialize(Boolean forceEnableCs) in B:\programming\c#\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\LuaCs\LuaCsSetup.cs:line 354                     
Using LuaSetup.lua from the content package.
Mechtrauma UNSTABLE 1.2.0.8
 - init.lua (Took 0.02205ms)
[SV LUA ERROR] "C:/Users/Dak/AppData/Local/Daedalic Entertainment GmbH/Barotrauma/WorkshopMods/Installed/2890754956/Lua/Scripts/Shared/mechtraumaFunctions.lua:(5,34-70): [clr]: System.TypeLoadException: Access is denied: 'Barotrauma.Items.Components.Powered'.
   at System.Reflection.RuntimeAssembly.GetType(QCallAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type, ObjectHandleOnStack keepAlive, ObjectHandleOnStack assemblyLoadContext)
   at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
   at System.Reflection.Assembly.GetType(String name)
   at Barotrauma.LuaUserData.GetType(String typeName) in B:\programming\c#\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\LuaCs\Lua\LuaClasses\LuaUserData.cs:line 33
   at Barotrauma.LuaUserData.RegisterType(String typeName) in B:\programming\c#\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\LuaCs\Lua\LuaClasses\LuaUserData.cs:line 44
   at lambda_method4(Closure , Object , Object[] )
   at MoonSharp.Interpreter.Interop.MethodMemberDescriptor.Execute(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in B:\programming\c#\Barotrauma\Libraries\moonsharp\MoonSharp.Interpreter\Interop\StandardDescriptors\ReflectionMemberDescriptors\MethodMemberDescriptor.cs:line 191
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.<>c__DisplayClass33_0.<GetCallback>b__0(ScriptExecutionContext context, CallbackArguments args) in B:\programming\c#\Barotrauma\Libraries\moonsharp\MoonSharp.Interpreter\Interop\StandardDescriptors\ReflectionMemberDescriptors\OverloadedMethodMemberDescriptor.cs:line 426
   at MoonSharp.Interpreter.CallbackFunction.Invoke(ScriptExecutionContext executionContext, IList`1 args, Boolean isMethodCall) in B:\programming\c#\Barotrauma\Libraries\moonsharp\MoonSharp.Interpreter\DataTypes\CallbackFunction.cs:line 58
   at MoonSharp.Interpreter.CoreLib.ErrorHandlingModule.SetErrorHandlerStrategy(String funcName, ScriptExecutionContext executionContext, CallbackArguments args, DynValue handlerBeforeUnwind) in B:\programming\c#\Barotrauma\Libraries\moonsharp\MoonSharp.Interpreter\CoreLib\ErrorHandlingModule.cs:line 28"                                                               
Performance Fix 1.0.11
 - init.lua (Took 0.00026ms)
Dont Open Debug Console On Errors 1.0.2
 - patch.lua (Took 0.00020ms)
BetterFabricatorUI 1.0.9
 - init.lua (Took 0.00089ms)
Sort Container UI 1.0.10
 - SortContainerUI.lua (Took 0.00647ms)
[02/22/2023 19:10:45]
  Server started```
Full error output from when I launch the dedicated server, this is from a fresh download of the unstable version, I cleared all my mod folders and re-downloaded everything.

from mechtrauma.

Torca2001 avatar Torca2001 commented on September 3, 2024

You have to launch the luadedicatedserver.bat to see the full error, you won't see it on the client or if you host the server using the in-game hosting menu

I always test with the Dedicated Server, that screenshot was from the dedicated server console. This is why I asked for full logs.

I just also tested with the unstable workshop version and that's how I got the above error. Not saying the error @Torca2001 post isn't happening, but I can't reproduce it on my side.

image

I got kicked after turning on the Diesel Generator and it's because of the above error. This produced the error that @Imouto-Kaede is having: image

Oh thought it was similar due to both being message misalignment. I have managed to reproduce the issue but the Central Pump has no extra networking information attached to it so not sure how it would misalign the network message

from mechtrauma.

MapleWheels avatar MapleWheels commented on September 3, 2024

Oh thought it was similar due to both being message misalignment. I have managed to reproduce the issue but the Central Pump has no extra networking information attached to it so not sure how it would misalign the network message

It does, vanilla pumps are network synced which is what it inherits from:
image

from mechtrauma.

Torca2001 avatar Torca2001 commented on September 3, 2024

Ah ok so the server isn't loading the C# and then the client is desyncing itself expecting more data it seems

from mechtrauma.

TBN-MapleWheels avatar TBN-MapleWheels commented on September 3, 2024

Should be fixed by PR #70 . Will leave this open until testing is completed.

from mechtrauma.

Torca2001 avatar Torca2001 commented on September 3, 2024

Unable to reproduce in latest build, pr should also fix possible abnormal behaviour.

from mechtrauma.

TBN-MapleWheels avatar TBN-MapleWheels commented on September 3, 2024

Addressed in #71 .

from mechtrauma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.