Oolite Bulletins

For information and discussion about Oolite.
It is currently Thu Jan 17, 2019 12:47 am

All times are UTC




Post new topic  Reply to topic  [ 36 posts ]  Go to page Previous 1 2 3
Author Message
 Post subject: OH BOY!
PostPosted: Wed Feb 22, 2006 6:29 pm 
Offline
Master and Commander
Master and Commander
User avatar

Joined: Thu May 20, 2004 10:46 pm
Posts: 1150
Location: London UK
Oops! I just spotted a possible infinite looper in the AI implementation.

The AI uses setState:@"GLOBAL" immediately after changing AI, which messages "EXIT" to the previous state and then "ENTER" to the new state. If the new AI shares a state name with the new AI then the new AI is considered to be in that state when it gets the "EXIT" message - which may in turn cause another change in AI - possibly looping infinitely.

I'm not sure if this is the specific cause of the current lock-ups but it looks like a likely candidate. I'm just going through the AI code now, to remove this possible unexpected behaviour in future.

_________________
"The planet Rear is scourged by well-intentioned OXZs."

Oolite models and gear? click here!


Top
   
 Post subject:
PostPosted: Wed Feb 22, 2006 9:00 pm 
Offline
Dangerous Subversive Element
Dangerous Subversive Element
User avatar

Joined: Tue Jun 07, 2005 7:32 pm
Posts: 1878
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
A state name like FLEE? :shock:

I thought a new AI were supposed to always start in GLOBAL.

_________________
Riding the Rocket!


Top
   
 Post subject:
PostPosted: Wed Feb 22, 2006 11:13 pm 
Offline
Deadly
Deadly
User avatar

Joined: Tue Jan 17, 2006 3:18 am
Posts: 131
Location: Melbourne, Australia
Well, I've not come across the gobbler since updating my AI plists but I still see some downright weird AI behaviour. Anyone else here seen a Galcop Viper doing loop-de-loops after a battle? What's amusing for a Viper is annoying with a Behemoth, and downright frightening when you're trying to dock with it...


Top
   
 Post subject:
PostPosted: Wed Feb 22, 2006 11:40 pm 
Offline
Retired Assassin
Retired Assassin
User avatar

Joined: Thu Aug 12, 2004 4:54 pm
Posts: 1743
Location: Belgium
Yip, Giles explained what happened.... Here:
Quote:
PostPosted: Wed Jan 18, 2006 2:54 pm
I think this is down to the Behemoth targeting a Thargon and, when the Thargons go uncontrolled, continuing to try to engage it.

This blocks the Behemoth from reacting to docking requests, and hence both you and all the Navy ships have to wait idly by.

I've been looking at the problem (last time a few weks ago) - I guess I need to look again.
Confused
Quote:
Next time, try pausing the game and pressing '0' (zero), this'll dump a list of entities and their AI states to the console. Then email me the output - it may help.

(Edit:) With GalCops, probably similar: chasing a baddie, and it ejects, so ship becomes uncontrolled entity, AI confused etc...


Top
   
 Post subject:
PostPosted: Wed Feb 22, 2006 11:45 pm 
Offline
Deadly
Deadly
User avatar

Joined: Tue Jan 17, 2006 3:18 am
Posts: 131
Location: Melbourne, Australia
No, the Behemoth will acknowledge docking requests... It just wont stop performing loops to facilitate it.

I have managed to dock with a Behemoth doing this only once, by performing the same loop-de-loop in front of it and letting it catch up. I consider it my finest piloting moment, although it did almost cost me my keyboard. ;)


Top
   
 Post subject:
PostPosted: Thu Feb 23, 2006 12:00 am 
Offline
Retired Assassin
Retired Assassin
User avatar

Joined: Thu Aug 12, 2004 4:54 pm
Posts: 1743
Location: Belgium
Yes, I forgot to mention that, probably AI routines clashing? The Docking AI puts you on hold, every time...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 36 posts ]  Go to page Previous 1 2 3

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited