Thread

"Failed to create instance! Reason 11001: Authoritive answer host not found" (Sdk)

"Failed to create instance! Reason 11001: Authoritive answer host not found" // Sdk

1  |  

tony m

Sep 30, 2001, 3:06am
I'm still using the 3.1 SDK build 20 (I'll get to upgrading eventually.)

This bot used to create its instance & login just fine... now it's throwing "11001" at me.

--------
9/30/01 12:00:22 AM: Initializing Active Worlds API...
9/30/01 12:00:22 AM: Initialized API.
9/30/01 12:00:26 AM: Creating instance... universe: auth.activeworlds.com
9/30/01 12:00:26 AM: Failed to create instance! Reason 11001: Authoritive answer host not found
--------

Here is my code that logs the bot in (Delphi 5 Std. Edition):

==============================================
procedure TMainForm.gk_login(Server, PrivPass, BotName: String; Port, CitNum: Integer);
var
rc: Integer;
const
FootMsg = 'Reason %d: %s';
CreateFailedMsg = 'Failed to create instance! '+FootMsg;
LoginFailedMsg = 'Failed to login! '+FootMsg;
begin
ShowStatus('Creating instance... universe: '+Server);
rc := aw_create(PChar(Server), Port, nil);
if rc <> 0 then
begin
ShowStatus(Format(CreateFailedMsg, [rc, RCToStr(rc)]));
aw_destroy;
end else
begin
ShowStatus('Logging in...');
aw_int_set(AW_LOGIN_OWNER, CitNum);
aw_string_set(AW_LOGIN_PRIVILEGE_PASSWORD, PChar(PrivPass));
aw_string_set(AW_LOGIN_APPLICATION, 'Some Bot by Tony M');
aw_string_set(AW_LOGIN_NAME, PChar(BotName));
aw_event_set(AW_EVENT_AVATAR_ADD, at awapi_avatar_add);
aw_event_set(AW_EVENT_AVATAR_DELETE, at awapi_avatar_del);
aw_event_set(AW_EVENT_CHAT, at awapi_avatar_chat);
aw_event_set(AW_EVENT_OBJECT_SELECT, at awapi_object_select);
aw_event_set(AW_EVENT_AVATAR_CHANGE, at awapi_avatar_move);
aw_event_set(AW_EVENT_WORLD_ATTRIBUTES, at awapi_world_enter);
aw_event_set(AW_EVENT_WORLD_DISCONNECT, at awapi_world_exit);
rc := aw_login;
if rc <> 0 then
begin
ShowStatus(Format(LoginFailedMsg, [rc, RCToStr(rc)]));
aw_destroy;
end else
begin
ShowStatus('Logged in.');
Heartbeat.Enabled := True;
Teleport1Click(MainForm);
end;
end;
end;
==============================================

Anyone care to enlighten me? =)

--
Tony M (fldmshl2013 at hotmail.com)
http://tonyhttp.s5.com

kah

Sep 30, 2001, 12:45pm
that's a connection problem, it's related to WinSock I think...

KAH

[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn