Jump to content

Recommended Posts

Posted (edited)

I got a game which has mumble  link integrated.

Just for clearence: Accessing the structure is allowed by game-developers. Reference: here, here and here.

I got a code snipped for C# but I'm not able to rewrite the code for AutoIT.

public static void OpenMumbleLink()
        {
            // Open the mapped memory file
            mappedFile = MemoryMappedFile.CreateOrOpen("MumbleLink", Marshal.SizeOf(data));
            accessor = mappedFile.CreateViewAccessor(0, Marshal.SizeOf(data));
        }

        public static void GetData()
        {
            // Make sure the map memory file is loaded
            if (mappedFile == null) OpenMumbleLink();

            // Read mapped memory file
            accessor.Read(0, out data);

            unsafe
            {
                fixed (LinkedMem* _data = &data)
                {
                    // Parse info
                    playerInfo.x = (float)(_data->fAvatarPosition[0]) * InchesPerMeter;
                    playerInfo.y = (float)(_data->fAvatarPosition[1]) * InchesPerMeter;
                    playerInfo.z = (float)(_data->fAvatarPosition[2]) * InchesPerMeter;
                    playerInfo.map = (int)_data->context[28] + ((int)_data->context[29] * 256);
                }
            }
        }

How can I access the virtual memory mapped file and store the mumble link structure elements to my own structure?

Could someone help me or give me some hints to do this?

Edited by SturmGhost
  • Moderators
Posted

SturmGhost,

  Quote

Just for clearence: Accessing the structure is allowed by game-developers

Expand  

Just for information: Interacting with a game in any form is not allowed in this forum. Please read the Forum rules before posting again - thread locked.

M23

 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...