Can't switch AI for ...

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

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

Can't switch AI for ...

Post by Lestradae »

Would be happy for hints!
[ai.load.failed.unknownAI]: Can't switch AI for <ShipEntity 0xe512468>{"Griffin Two"} from <no AI>:(nil) to "traderAI.plist" - could not load file.
Hadn't seen that one before. What is it and how can I repair it?

Cheers

L
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Can't switch AI for ...

Post by Eric Walch »

Lestradae wrote:
Would be happy for hints!
[ai.load.failed.unknownAI]: Can't switch AI for <ShipEntity 0xe512468>{"Griffin Two"} from <no AI>:(nil) to "traderAI.plist" - could not load file.
Hadn't seen that one before. What is it and how can I repair it?

Cheers

L
Quite easy: just make sure your oxp contains that file. Because that is what it says: he can't find it.

btw: this is a very bad chosen filename that is likely to conflict with other oxp's that use the same name.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

I would rather guess that it's a misnomer for route1traderAI, especially as there is no AI included in griffin2.oxp.
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

..

Post by Lestradae »

Ah yes, didn't think that there actually is no traderAI in the core game. D'uh.

Will look what causes this, thanks.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

:lol:

'could not load file.' is one of the generally accepted clues that the specified file isn't there...

Thanks L! :)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

..

Post by Lestradae »

Kaks wrote:
'could not load file.' is one of the generally accepted clues that the specified file isn't there...
Yeah sure, but the "D'uh" moment wasn't that - that I got. It was that I thought "but the game has a traderAI" and so assumed it had to be something much more complicated ... and while the back of my head was shouting at me, I was walking away whistling :?

Happy to have made your day though with this extremely witty question of mine :lol:

L
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Obviously that's exactly what Griff must have thought when he typed the filename for a non-existing AI...

Btw, I had much worse moments myself... Much, much worse! :)

Thank you again!
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
SandJ
---- E L I T E ----
---- E L I T E ----
Posts: 1048
Joined: Fri Nov 26, 2010 9:08 pm
Location: Help! I'm stranded down here on Earth!

Re: Can't switch AI for ...

Post by SandJ »

Commander McLane wrote:
Lestradae wrote:
[ai.load.failed.unknownAI]: Can't switch AI for <ShipEntity 0xe512468>{"Griffin Two"} from <no AI>:(nil) to "traderAI.plist" - could not load file.
Hadn't seen that one before. What is it and how can I repair it?
I would rather guess that it's a misnomer for route1traderAI, especially as there is no AI included in griffin2.oxp.
Is that the fix then?

The problem is still there:
Latest.log wrote:
[ai.load.failed.unknownAI]: Can't switch AI for <ShipEntity 0x7f9bb939d1a0>{"Griffin Two"} to "traderAI.plist" - could not load file.
So is this the fix? To change [size=120]AddOns/griffin2.oxp/Config/shipdata.plist[/size] to say:

Code: Select all

		<key>ai_type</key>
		<string>route1traderAI.plist</string>
Flying a Cobra Mk I Cobbie 3 with nothing but Explorers Club.OXP and a beam laser 4 proper lasers for company :D
Dropbox referral link 2GB of free space online + 500 Mb for the referral: good for securing work-in-progress.
User avatar
Capt. Murphy
Commodore
Commodore
Posts: 1127
Joined: Fri Feb 25, 2011 8:46 am
Location: UK South Coast.

Re: Can't switch AI for ...

Post by Capt. Murphy »

SandJ wrote:
Is that the fix then?

The problem is still there:
Latest.log wrote:
[ai.load.failed.unknownAI]: Can't switch AI for <ShipEntity 0x7f9bb939d1a0>{"Griffin Two"} to "traderAI.plist" - could not load file.
So is this the fix? To change [size=120]AddOns/griffin2.oxp/Config/shipdata.plist[/size] to say:

Code: Select all

		<key>ai_type</key>
		<string>route1traderAI.plist</string>
Not the best fix as the Griffin2 also has pirate and hunter in it's role list and they'd get the wrong AI.

Probably better to delete the ai_type key entirely and add an auto_ai key, which I think in XML looks like this.

Code: Select all

<key>auto_ai</key>
<true/>
[EliteWiki] Capt. Murphy's OXPs
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Can't switch AI for ...

Post by Eric Walch »

auto_ai is by default yes, so adding the key wont help. It could be that the default ai is loaded first and than ovewritten with the auto_ai. In which case you see the error and the ship still has the correct ai in game.
Post Reply