Page 1 of 1

CTD with /itemn range leftmouseup

Posted: Mon Mar 15, 2004 2:53 pm
by Falco72
Last build in a new directory, compiled with VC6++ enterprise ed. SP5, no errors on compiling. Cashed as soon as I click return after the command:

Code: Select all

/itemn range leftmouseup
Debugger infos are:

Code: Select all

MQ2]CCommandHook::Detour(/itemn range leftmouseup)
First-chance exception in eqgame.exe: 0xC0000005: Access Violation.
The program 'C:\Programmi\EverQuest\eqgame.exe' has exited with code 0 (0x0).
When I can re-enter in the eq I found on cursor the item that was on range slot when I execed the command.

Posted: Mon Mar 15, 2004 2:55 pm
by Lax
If you could get the crash address or source line from the debugger that would be great.

Posted: Mon Mar 15, 2004 3:14 pm
by Falco72
These are the infos I got with WinDbg:
registers (r):

Code: Select all

eax=00000000 ebx=00000066 ecx=00e7d456 edx=27bc7ef0 esi=1c73c220 edi=01056c60
eip=1c73c220 esp=00129fd4 ebp=00000000 iopl=0         nv up ei pl nz ac pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010212
1c73c220 0300             add     eax,[eax]         ds:0023:00000000=????????
Stack (kv):

Code: Select all

ChildEBP RetAddr  Args to Child              
WARNING: Frame IP not in any known module. Following frames may be wrong.
00000000 00000000 00000000 00000000 00000000 0x1c73c220
I hope this be usefull, else please let me know what I can do to help. Thank you.

Posted: Mon Mar 15, 2004 3:23 pm
by Lax
Hmmmm doesnt help unfortunately. I'll have to try to replicate the problem.

Posted: Thu Mar 18, 2004 7:41 pm
by Chummer
/itemn still seems to be causing CTD.

The command I used in game as I was simply testing out in game to see how it worked was the following:

Code: Select all

/itemn pack1 leftmouseup
There was no messages at all just pops you right to the desktop. Is this something that can be looked into? I would like to use this command in my next macro as it is perfect for what i need.

Thanks,

Chummer

Posted: Thu Mar 18, 2004 7:50 pm
by Lax
You guys are on crack, its working fine for me. ;)

I'll update the zip.

Posted: Fri Mar 19, 2004 12:57 am
by Chummer
I cant seem to get this command to do anything without a CTD. Every time no matter what slotname or packslot I put in for this command or notification, i get dumped. I even typed in the command exactly as given in the manual and still the same problem. Unfortunatly I am not getting any error messages at all that may help debug this issue.

Lax, you have tried the line that I quoted above and had no issues? Could this perhaps be a hardware configuration issue which would cause me to crash and not you? I still would like to use this command but I cannot get it to work for me at all.

In my own investigation, I was looking in the MQ2CommandAPI.cpp sourcecode and noticed that in the InitializeMQ2Commands() function, /itemnotify is not one of the commands that is listed. Im not sure if that is related or not, but I thought it could be worth mentioning.

Thanks,

Chummer

Posted: Fri Mar 19, 2004 1:14 am
by Lax
Not worth mentioning, for some reason when I wrote it i used the AddCommand method instead of placing it in the list ;)

I tried that line, I tried in bags, etc. Worked fine for me so I'm kind of stumped here. Next question is, what version are you compiling with?

Posted: Fri Mar 19, 2004 5:24 am
by dont_know_at_all
From the map file:
int CXWnd::HandleLButtonUp(class CXPoint,unsigned __int32);

How we have it:
int CXWnd::HandleLButtonUp(class CXPoint *);


D'oh. It calls further down iff the __int32 param is 0x10000. We probably want 0 since that what was tested by using the junk on the stack.

Posted: Fri Mar 19, 2004 8:20 am
by FreQuency
See lax told you i'm not crazy and it w asa CTD ;) it not jsut me

Posted: Fri Mar 19, 2004 1:51 pm
by Lax
Hmmm I swear I based it on what I saw in the asm ;)

I'll work it out

Posted: Sat Mar 20, 2004 6:22 pm
by Chummer
Yay, so im not crazy! I hope this can get figured out soon, im eager to write my next macro!

Chummer

Posted: Sat Mar 20, 2004 7:34 pm
by eqjoe
nm....