Skip to main content
gamedev.net
🔒 Locked

DirectPlay8 Problem!!

Started by Sixten Feb 1, 2003 at 6:41 PM 0 replies 500+ views
Original Post
Sixten
Sixten
Well im making an app that will use Dx8 Directplay... it was working fine for a few weeks but now im getting a mysterius error Run_time error ´-2146073824(80158320)´: Automation error
  

Public Const AppGuid = "{0AC3AAC4-5470-4cc0-ABBE-6EF0B614E52A}"

Public Const DefaultPort As Long = 3252

Dim App As DPN_APPLICATION_DESC
    With App
        .guidApplication = AppGuid
        .lMaxPlayers = 1000
        .SessionName = "MY Game"
        .lFlags = DPNSESSION_CLIENT_SERVER Or DPNSESSION_NODPNSVR
    End With
    
    DPA.SetSP DP8SP_TCPIP
    DPA.AddComponentLong DPN_KEY_PORT, DefaultPort
    
    DPS.Host App, DPA

  
And its at DPS.Host, app, DPA that things go wrong!! I dont know why.. i have checked.. the port i am useing is open and i have tried changing it to like 5 others and i get the same answer.. So how do i fix this... ??? I think it might be something with the ports in my firewall... Hmmm i have a hardware firewall..
S1CA
S1CA
Look in the SDK and you''ll find a utility called DirectX Error Lookup and enter the hex code into it with a 0x at the front:

HRESULT: 0x80158320 (2148893472)
Name: DPNERR_INVALIDDEVICEADDRESS
Description: Invalid device address
Severity code: Failed
Facility Code: FACILITY_DPLAY (21)
Error Code: 0x8320 (33568)


Hopefully that should be umm less "mysterious" now

So something is wrong with your DirectPlay8Address object, unfortunately I''m not at all experienced with DPlay code so can''t offer any advice of what to look into further.

From a quick look at the C++ docs, sending wrong stuff to the BuildFrom*** call looks like it could be the culprit, assuming the DPA object is valid at all...

--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.