What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

only part of ReadProcessMemory or WriteProcessMemory error

TheImmortal

New Member
Joined
Nov 13, 2015
Messages
2
Reaction score
0
Good evening support team. I'm developing bot using Exilebuddy engine. Spent a day trying workaround the following exception throwing by MoveTowards() with no result. Please help to fix the problem.

2015-11-13 20:17:57,367 [8] DEBUG CustomLogger (null) - Unhandled global exception! System.Exception: Only part of a ReadProcessMemory or WriteProcessMemory request was completed, at addr: 00000000, Size: 1984
at GreyMagic.ExternalProcessMemory.ReadByteBuffer(IntPtr addr, Void* buffer, Int32 count)
at GreyMagic.MemoryBase.ReadBytes(IntPtr addr, Int32 count)
at Loki.Game.LokiPoe.LocalData.?????????????????????????????????????????.?????????????????????????????????????????()
at Loki.Game.Utilities.PerCachedValue`1.get_Value()
at Loki.Game.LokiPoe.LocalData.get_Native()
at Loki.Game.LokiPoe.LocalData.?????????????????????????????????????????.?????????????????????????????????????????()
at Loki.Game.Utilities.PerCachedValue`1.get_Value()
at Loki.Game.LokiPoe.LocalData.get_WorldAreaId()
at Loki.Game.LokiPoe.?????????????????????????????????????????.?????????????????????????????????????????()
at Loki.Game.Utilities.PerCachedValue`1.get_Value()
at Loki.Game.LokiPoe.get_CurrentWorldArea()
at Loki.Bot.PredictivePlayerMover.MoveTowards(Vector2i position, Object[] user)
at Loki.Bot.PlayerMover.MoveTowards(Vector2i position, Object user)
at ImmortalBot.Walk.<walkCoast>d__11.MoveNext() in c:\bot\Bots\ImmortalBot\ImmortalBot.cs:line 101
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__1(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()


Code fragment that trigger the exception:
Code:
        protected async void walkCoast()
        {
            await EnableAlwaysHiglight();

            bool noCoast = false;
            bool needClick = false;
            Vector2i pos = new Vector2i(0,0);
            do {
                 NetworkObject coast = getTheCoast();
                 if (coast == null)
                 {
                     noCoast = true;
                     log("[ImmortalBot] coast not found");
                 }
                 else
                 {
                     pos = coast.Position;
                     //pos = ExilePather.WalkablePositionFor(coast, Int32.MaxValue, noCache:true);
                     if (coast.Distance < 10)
                     {
                         //pos = coast.Position;
                         needClick = true;
                     }
                     log("[ImmortalBot] coast found next position " + pos.X + "," + pos.Y);
                 }
            
                if (!noCoast) {
                    //pos = ExilePather.WalkablePositionFor(pos, Int32.MaxValue, noCache: true);
                    PlayerMover.MoveTowards(pos);
                    await Task.Delay(200);

                    if (needClick)
                    {
                        Loki.Game.LokiPoe.ClickPosition(new Vector2(pos.X, pos.Y + 5));
                        await Task.Delay(500);
                        return;
                    }
                }

            } while (!noCoast && !ImmortalBot.stopped);
            
            
            //await DisableAlwaysHiglight();
        }

Thanks for the support.
 
Last edited:
Back
Top