PacketAnalyzer: Spawn Packets

Bug forum for In-House and 3rd-Party tools.

Moderator: Team Members

Forum rules
READ THE STICKY ON PROPER BUG SUBMISSION FORMAT BEFORE POSTING.
Post Reply
User avatar
thefoof
Retired
Posts: 630
Joined: Wed Nov 07, 2012 7:36 pm
Location: Florida

PacketAnalyzer: Spawn Packets

Post by thefoof » Fri Oct 18, 2013 1:27 pm

It looks like spawn packets aren't loading correctly now (tested with 57080 logs)



Source array was not long enough. Check srcIndex and length, and the array's lower bounds.


************** Exception Text **************
System.ArgumentException: Source array was not long enough. Check srcIndex and length, and the array's lower bounds.
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length)
at EQ2PacketAnalyzer.Common.UnpackSpawnPacket(TreeNodeDataChild node) in c:\Users\Chris\Desktop\EQ2_Emu\eq2tools\trunk\DevTools\PacketAnalyzer\PacketAnalyzer\Common.cs:line 450
at EQ2PacketAnalyzer.Main.LoadPacketStruct(TreeNode node) in c:\Users\Chris\Desktop\EQ2_Emu\eq2tools\trunk\DevTools\PacketAnalyzer\PacketAnalyzer\Main.cs:line 585
at EQ2PacketAnalyzer.Main.treeView_opcodes_AfterSelect(Object sender, TreeViewEventArgs e) in c:\Users\Chris\Desktop\EQ2_Emu\eq2tools\trunk\DevTools\PacketAnalyzer\PacketAnalyzer\Main.cs:line 525
at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)
at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
at System.Windows.Forms.TreeView.WmNotify(Message& m)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: PacketAnalyzer: Spawn Packets

Post by John Adams » Fri Oct 18, 2013 9:26 pm

Could the structs just be off? We shouldn't be crashing, but still the index and length are int32s, and if the values the struct offer are bigger than that, yeah it will explode :)

If I have time this weekend, I'll check it out.

User avatar
thefoof
Retired
Posts: 630
Joined: Wed Nov 07, 2012 7:36 pm
Location: Florida

Re: PacketAnalyzer: Spawn Packets

Post by thefoof » Sat Oct 19, 2013 1:47 am

Okay I attempted some debugging and found that when I deleted the arrays from the structs, it was still loading these elements so I figured it was loading the old header, and sure enough it was :P. Set the new header as version 1 and the packets loaded up fine. So I guess it isn't loading the correct version of the spawn header for some reason, hope that helps.

User avatar
Cynnar
Project Leader
Posts: 738
Joined: Sat Sep 27, 2014 1:22 am
EQ2Emu Server: Eq2emulator
Characters: Vlash
Veinlash
Taragak
Cynnar

Re: PacketAnalyzer: Spawn Packets

Post by Cynnar » Wed Jul 26, 2017 9:58 pm

Flagged to be archived.
[ 01000011 01111001 01101110 01101110 01100001 01110010 ]

Follow on:
Twitter Facebook

Contact me:
PM Discord chat email

Hardware: the parts of a computer that can be kicked

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests