just to push past my comfort zone and try new things, i made a rudimentary C# scripting layer for Ace of Spades. you inject the loader dll, which then uses win32 VirtualAlloc/VirtualProtect to grant itself read/write access to the game code, and creates hooks that then call into C# with .NET HostFXR/CoreCLR APIs. a few things get exposed to C# from there, like game time, text rendering and packets.
funny thing about packets too, if you try to read packet memory directly from c# it crashes, so i added a copy for every single packet that comes through. i'm sure this could've been fixed, but i didn't know enough about what really goes on under the hood.
