View Single Post
  #14  
Old 12-15-2008, 09:19 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I finally made a little more progress. I am 1 step closer to being able to get in game now lol. I have been trying to figure out the size of the playerprofile struct so that I could at least get the EQ Debug log to show me reaching the next step. After trying many other ways, I finally figured it out by looking at the IDA Assembly code and finding the error I was getting and then checking the HEX for that was causing the error to happen. I checked the HEX and it came out to be 5C18, which is 23576. I checked IDA for Titanium and the same code matched the PlayerProfile size for Titanium (19592). I did another compile with the new structure size and now I am getting this:

Code:
[Mon Dec 15 07:06:53 2008]01792:Zone Connect -- 0 -- Received MSG_ZONE_ADDRESS
[Mon Dec 15 07:06:53 2008]01793:Zone addr [192.168.1.102:20253] received...
[Mon Dec 15 07:06:53 2008]01794:ZONING
[Mon Dec 15 07:06:53 2008]01795:Networking: Connection Closed [0] with 0 pending bytes.
[Mon Dec 15 07:06:53 2008]01796:Networking: using port [2629].
[Mon Dec 15 07:06:54 2008]01797:Networking: Connection Established [1]
[Mon Dec 15 07:06:54 2008]01798:Connected to 192.168.1.102:20253...

[Mon Dec 15 07:06:54 2008]01799:Zone Connect -- 2 -- Sending MSG_EQ_ADDPLAYER
[Mon Dec 15 07:06:59 2008]01800:Zone Connect -- 3 -- Received MSG_SEND_PC
[Mon Dec 15 07:06:59 2008]01801:Zone Connect -- 4 -- Received MSG_EQ_ADDPLAYER
[Mon Dec 15 07:06:59 2008]01802:fatal error in main thread Code = c0000005  ADDR=0x004c0aa3

[Mon Dec 15 07:06:59 2008]01803:EAX=0000004b  EBX=0cf3ab0f  ECX=00000088  EDX=f9161180

[Mon Dec 15 07:06:59 2008]01804:ESI=f9161250  EDI=0cf3aa7e  EBP=00000000  ESP=0012a378

[Mon Dec 15 07:06:59 2008]01805:Raw Stack

.....Then a bunch of other error logs
So, there is definitely some issues past that point, but it is a step in the right direction lol. Now to figure out what caused the crash... My first guess is that the problem is related to the items structure, since I know at least the following fields were added at the time of SoF release that weren't in Titanium:
heroic_agi
heroic_cha
heroic_dex
heroic_int
heroic_sta
heroic_str
heroic_wis
I also see these that aren't listed in my Items Table currently, but they may just be newly discovered Uknowns that already exist, but aren't labeled properly:
spelldmg
backstabdmg
clairvoyance
dsmitigation
healamt

I am not sure if that would cause a crash or not, but I guess I will try adding those and see what happens.

Not that it really means much to me, but this seems to be the part where those errors get generated if it isn't equal to whatever check is being done here:
Code:
.text:004C0CD3 loc_4C0CD3:                             ; CODE XREF: sub_4C0A50+5Cj
.text:004C0CD3                                         ; sub_4C0A50+78j ...
.text:004C0CD3                 mov     esi, [esp+38h+var_28] ; default
.text:004C0CD7                 mov     eax, [esp+38h+var_18]
.text:004C0CDB                 add     esi, 10h
.text:004C0CDE                 dec     eax
.text:004C0CDF                 mov     [esp+38h+var_28], esi
.text:004C0CE3                 mov     [esp+38h+var_18], eax
.text:004C0CE7                 jnz     loc_4C0AA3
.text:004C0CED                 mov     eax, [esp+38h+var_24]
.text:004C0CF1                 pop     edi
.text:004C0CF2                 pop     esi
.text:004C0CF3                 pop     ebp
.text:004C0CF4                 pop     ebx
.text:004C0CF5                 add     esp, 28h
.text:004C0CF8                 retn
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!

Last edited by trevius; 12-15-2008 at 06:15 PM..
Reply With Quote