Replies: 6 comments 7 replies
-
Is the |
Beta Was this translation helpful? Give feedback.
-
I will describe my steps in detail.
There is another assembly: GameLogic
How the assembly works: Vodji.UnrealEngine
Everything works, but when I try to call any method from UnrealEngine.Framework library UnrealEditor itself hangs, and it can't even be closed via Task Manager, I have to log out of the hung application. Translated with www.DeepL.com/Translator (free version) |
Beta Was this translation helpful? Give feedback.
-
Have you tried to attach a debugger to the engine and check if any exceptions occur? |
Beta Was this translation helpful? Give feedback.
-
No, I have not tried, if you give instructions on how to do it right I can try. |
Beta Was this translation helpful? Give feedback.
-
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.' I create a UDebug class under Vodji.UnrealEngine and use it to call Debug namespace Vodji.UnrealEngine
{
public class UDebug
{
public static void ScreenMessage(object message, Color color = default, float timeout = 15)
{
Debug.AddOnScreenMessage(-1, timeout, Color.White, message.ToString());
}
}
} namespace GameLogic
{
public class Class1 : UGame
{
public override void OnWorldBegin()
{
UDebug.ScreenMessage("TEST"); // System.AccessViolationException
}
}
} |
Beta Was this translation helpful? Give feedback.
-
plugin.userFunctions = (Dictionary<int, IntPtr>)sharedClass.GetMethod("Load", BindingFlags.NonPublic | BindingFlags.Static).Invoke(null, new object[] { sharedEvents, sharedFunctions, plugin.assembly }); But how do I initiate UnrealEngine.Framework.Shared from my libraries without affecting yours, if I'm going to do everything without changing your library. That's where I came in, that you could tell me how to do multiple dll loading and class initiation. Without changing your library. If i don't understand something, tell me. |
Beta Was this translation helpful? Give feedback.
-
It is possible to run not static methods but methods in a class inherited from an interface, for example IUnrealCore
public class GameLogic : IUnrealCore
{
OnWorldBegin();
etc..
}
I tried to make what would cling and other builds using this method, but when I try to call the Debug function that goes UnrealEngine hangs. If you need I can attach the bootloader files.
Beta Was this translation helpful? Give feedback.
All reactions