Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Years of Service
User Offline
Joined: 20th May 2009
Location: Oklahoma City OK (USA)
Posted: 8th Jan 2015 01:51
I have assigned a path to an object. I am trying to assign a new path to the object, by first killing the Entity. I used the command:

If AI Entity Exist (ObjID)
AI Kill Entity ObjID
Print "Killing Entity "+Str$(ObjID)
Print "Entity not found"

The "AI Kill Entity" function is firing, but then I get an error report;

Entity ObjID does not exist...

What gives? This is extremely frustrating.
AGK Backer
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 8th Jan 2015 07:26 Edited at: 8th Jan 2015 07:27
Quote: "

This command removes the specified entity from the AI system, any DarkBasic object assigned to it remains and should be deleted manually. Other entities will remove this entity from their target list.

AI Kill Entity Entity Number

Entity Number, The id of the entity you want to remove from the AI system.


Try calling "AI Update" immediately after "AI Kill Entity ObjID"

I am still inexperienced with using Dark AI so this is a rough guess...


Also Delete the entity object immediately after...

Years of Service
User Offline
Joined: 20th May 2009
Location: Oklahoma City OK (USA)
Posted: 8th Jan 2015 17:28
Thanks for your suggestion. I think I've uncovered a far more serious error. I added code to manipulate the path that had been previously created, and now it triggers a Windows fault error, not simply a code error. Here is the error data given to me:

Problem signature:
Problem Event Name: APPCRASH
Application Name: towercab.exe
Application Version:
Application Timestamp: 4d460aea
Fault Module Name: ntdll.dll
Fault Module Version: 6.1.7601.18247
Fault Module Timestamp: 521ea91c
Exception Code: c0000005
Exception Offset: 00052ca9
OS Version: 6.1.7601.
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Not sure what to do about this, since it involves the ntdll.dll file.

Login to post a reply

Server time is: 2024-02-24 16:49:46
Your offset time is: 2024-02-24 16:49:46