What does "Shift constant out of range 1..31" mean?

You can find tutorials and ask questions about memory editing here. You may also post any game-specific information you find (ie. cheat tables or addresses).
Post Reply
Message
Author
Exempt
Posts: 197
Joined: Wed Jan 20, 2010 9:55 am

What does "Shift constant out of range 1..31" mean?

#1 Post by Exempt » Tue Mar 09, 2010 12:53 am

I'm trying to find NPC ID so I can match them with coords and use the NPC and so on. I found the only info on the NPC i could think of and hat was it's X coord in game with cheat engine. I search the NPC x coords address in Olly and I came to this....

Whats does "Shift constant out of range 1..31" mean?

Code: Select all

069A0543   C165 02 00       SHL DWORD PTR SS:[EBP+2],0               ; Shift constant out of range 1..31

EDIT: This is both the X and Y coords for the NPC..

Code: Select all

069A0543   C165 02 00       SHL DWORD PTR SS:[EBP+2],0               ; Shift constant out of range 1..31
069A0547   0042 02          ADD BYTE PTR DS:[EDX+2],AL
This is everything around it

Code: Select all

069A053D   0000             ADD BYTE PTR DS:[EAX],AL
069A053F   0000             ADD BYTE PTR DS:[EAX],AL
069A0541   00F0             ADD AL,DH
069A0543   C165 02 00       SHL DWORD PTR SS:[EBP+2],0               ; Shift constant out of range 1..31
069A0547   0042 02          ADD BYTE PTR DS:[EDX+2],AL
069A054A   0000             ADD BYTE PTR DS:[EAX],AL
069A054C   0000             ADD BYTE PTR DS:[EAX],AL
069A054E   0000             ADD BYTE PTR DS:[EAX],AL
069A0550   D007             ROL BYTE PTR DS:[EDI],1
069A0552   0000             ADD BYTE PTR DS:[EAX],AL
069A0554   04 00            ADD AL,0
069A0556   0000             ADD BYTE PTR DS:[EAX],AL
069A0558   0000             ADD BYTE PTR DS:[EAX],AL


User avatar
Administrator
Site Admin
Posts: 4861
Joined: Sat Jan 05, 2008 4:21 pm

Re: What does "Shift constant out of range 1..31" mean?

#2 Post by Administrator » Tue Mar 09, 2010 2:15 am

I'm actually not sure. It could be that the section of code is compressed or packed causing the interpreter to be confused.

Exempt
Posts: 197
Joined: Wed Jan 20, 2010 9:55 am

Re: What does "Shift constant out of range 1..31" mean?

#3 Post by Exempt » Tue Mar 09, 2010 11:33 am

Darn, I'm having more trouble finding monster and npc data. If i could find that my bots would be so much better. Right now I only found on way to detect enemies and it's only the number of enemies on screen both dead and alive. I need to create a table filled with the coords of the monsters with hp larger then 0. That was i can find the distance from me and use my spells accordingly. Thats and the ability to sell to merchs would be great.

If you have any extra time and would consider trying to help me with finding monsters information or npc info even i'd apperciate it.

EDIT: If you do try this, there is a useful function in game... "-loc" It will tell you the location where you stand. I used it to find where a NPC was but i'm unable to get beyond that point at this time.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest