Hello
I downloaded the latest Unreal Engine source from GitHub and have been able to build it with VS2013 CE.
In my former thread I’ve asked if it is possible to build a “Mutator” which can be used for the game “ARK: Survival Evolved” to create server-side plugins. But as we found out, it is not possible, since these mentioned “Mutators” are only supported by “Unreal Tournament”.
However, we managed to build a server-side plugin system using DLL-Injection and Function Hooking / Function Routing: [DISCONTINUED] Base Raiding Protection (v1.3.5) :: ARK: Survival Evolved General Discussions
This works great. Now we would like to extend our plugins but ran into some problems.
For instance we would like to hook a function called
AShooterPlayerController::ServerSendChatMessage(AShooterPlayerController *this, FString *ChatMessage, int SendMode)
The hook works in general. But so far we have been unable to resolve “FString *ChatMessage”. No matter what we try, we either only get the first letter of the sent text or just “garbage”, which looks like pointers / addresses, but we have not been able to access the memory behind them.
So my idea was, to link parts (header files) of the UE into our own projects, to enable accessing to these proper types and use them to declare our detour functions.
Unfortunately some first attempts didn’t work out. I have been able to build the whole UE, but when I add the desired include paths and header files (for instance “./Containers/UnrealString.h”) to our test project, I’m unable to build and run into quite some error messages, like
static FORCEINLINE void* Memmove( void* Dest, const void* Src, SIZE_T Count )
Error 3 error C2433: 'FMemory::int32' : '__forceinline' not permitted on data declarations c:\projects\unrealengine\engine\source\runtime\core\public\hal\UnrealMemory.h
static FORCEINLINE void* Memset(void* Dest, uint8 Char, SIZE_T Count)
Error 7 error C2061: syntax error : identifier 'uint8' c:\projects\unrealengine\engine\source\runtime\core\public\hal\UnrealMemory.h
template< class T >
DEPRECATED(4.8, "Please use Memset.")
static FORCEINLINE void MemSet( T& Src, uint8 ValueToSet )
Error 9 error C2988: unrecognizable template declaration/definition c:\projects\unrealengine\engine\source\runtime\core\public\hal\UnrealMemory.h
etc.
So any advice on how to get this compiled? Did any of you guys already attempt this? Advice on compiler settings, etc?
Thank you! Any help is appreciated!