Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
Smart Packet Analyzer
Results 1 to 5 of 5

Thread: Smart Packet Analyzer

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    18

    Smart Packet Analyzer

    Hello all, I'm trying to compile the Smart Packet Analyzer. I've added the TibiaAPI reference and the code is compiled with FrameWork 4.0.
    However, I'm getting an error at application launch;

    Code:
    System.BadImageFormatException: Could not load file or assembly 'TibiaAPI, Version=2.10.2.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    File name: 'TibiaAPI, Version=2.10.2.0, Culture=neutral, PublicKeyToken=null'
       at SmartPacketAnalyzer.MainForm.DisplayPacket()
       at System.Windows.Forms.Control.OnResize(EventArgs e)
       at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
       at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
       at System.Windows.Forms.Control.UpdateBounds()
       at System.Windows.Forms.Control.WmCreate(Message& m)
       at System.Windows.Forms.Control.WndProc(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)
    Any ideas?

  2. #2
    Administrator
    Join Date
    Mar 2007
    Posts
    1,723

    RE: Smart Packet Analyzer

    TibiaAPI is compiled with .NET Framework 3.5 and Smart Packet Analyzer must be, also.

  3. #3
    Junior Member
    Join Date
    Jul 2010
    Posts
    18

    RE: Smart Packet Analyzer

    Yeah, I tried that too.
    Right click on solution -> properties => Target framework 3.5

    Still getting the same error, might be something else I'm missing. Ima re-compile TibiaAPI with 3.5.
    Edit: Same issue.

  4. #4
    Junior Member
    Join Date
    Jul 2010
    Posts
    18

    RE: Smart Packet Analyzer

    Found it, had to change the Platform from Mixed CPU to Win32.

  5. #5
    Administrator
    Join Date
    Mar 2007
    Posts
    1,723

    RE: Smart Packet Analyzer

    Quote Originally Posted by Anasazi
    Found it, had to change the Platform from Mixed CPU to Win32.
    Ah, yes. The reason for this is because the Tibia client is a 32-bit program, and, therefore, TibiaAPI and/or programs made to interact with the client on a lower level must be compiled targeting x86 processors (Win32) and not x64/both.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •