AI glitch.

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

AI glitch.

Post by Smivs »

I've just had this puzzling log error. Oolite v1.77

Code: Select all

15:07:37.965 [ai.load.failed.unknownAI]: Can't switch AI for <ShipEntity 0xa6261c98>{"GalCop Viper"} from route1patrolAI.plist:HEAD_FOR_WITCHPOINT to "planetpatrolAI.plist" - could not load file.
The HEAD_FOR_WITCHPOINT state

Code: Select all

	"HEAD_FOR_WITCHPOINT" =
	{
		ENTER = (setCourseToWitchpoint, checkCourseToDestination);
		"COURSE_OK" = (setSpeedToCruiseSpeed, performFlyToRangeFromDestination);
		"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
		"LAUNCHED OKAY" = ("dropMessages: WAYPOINT_SET", "pauseAI: 1.0");
		"DOCKING_REQUESTED" = ("setAITo: receiveDockingAI.plist");
		"DESIRED_RANGE_ACHIEVED" = ("setStateTo: HEAD_FOR_PLANET");
		"ACCEPT_DISTRESS_CALL" = (setTargetToFoundTarget, deployEscorts, groupAttackTarget);
		"OFFENCE_COMMITTED" = (setTargetToFoundTarget, "markTargetForOffence: 7", deployEscorts, groupAttackTarget);
		"TARGET_FOUND" = (setTargetToFoundTarget, deployEscorts, groupAttackTarget);
		"INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, deployEscorts, groupAttackTarget);
		"CASCADE_WEAPON_DETECTED" = ("setAITo: fleeQMineAI.plist");
		"ATTACKER_MISSED" = (setTargetToPrimaryAggressor, groupAttackTarget);
		ATTACKED = (setTargetToPrimaryAggressor, groupAttackTarget);
        "ATTACKED_BY_CLOAKED" = ("setAITo: interceptAI.plist", "setStateTo: FLEE_FOR_CLOAKED"); 
		"GROUP_ATTACK_TARGET" = (setTargetToFoundTarget, "setStateTo: OUTBOUND_LOOT", "setAITo: interceptAI.plist");
		UPDATE = (setCourseToWitchpoint, checkCourseToDestination, scanForOffenders, "pauseAI: 10.0");
	};
does not include a switch to planetpatrolAI.plist (which is actually called planetPatrolAI.plist - upper-case 'P' for 'Patrol' - anyway).
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: AI glitch.

Post by cim »

Could it be an OXP script trying to change the AI via Javascript?

What's the full Latest.log?
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: AI glitch.

Post by Smivs »

Ah, yes, you're right. I've just installed ZygoCinematicSky&Nebulas v1.1.6, and the error lies in the zygotraffic.js.
I'll post the error report on the appropriate thread.
Thanks. :)
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
ZygoUgo
---- E L I T E ----
---- E L I T E ----
Posts: 406
Joined: Mon Nov 17, 2008 4:15 pm
Location: Blighty

Re: AI glitch.

Post by ZygoUgo »

*sigh* Me again :roll: :) Thanks for the report
Post Reply