As a very first step I included script_actions in my planetinfo.plist in order to see how they work. Here's my small script:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>0 55</key>
<dict>
<key>name</key>
<string>Leeeesti</string>
<key>script_actions</key>
<array>
<dict>
<key>conditions</key>
<array>
<string>mission_actsOfGod_running equal RUNNING</string>
</array>
<key>do</key>
<array>
<key>station</key>
<string>alternative_station</string>
</array>
</dict>
</array>
</dict>
</dict>
</plist>
In the log-file the following lines appear as soon as I am jumping to the system:
and I have no idea what I'm doing wrong. I've copied the syntax from Ionics, so I guess it should work.2007-03-13 13:00:12.603 Oolite[1851] ***** PlayerEntity DOES NOT RESPOND TO scriptAction: "station"
2007-03-13 13:00:12.603 Oolite[1851] ***** PlayerEntity DOES NOT RESPOND TO scriptAction: "alternative_station"
The name-key is just so that I can check whether out of the script_actions the plist works, which it does. If I include that name-key in the <key>do</key>-part the whole thing becomes even more mysterious, because I will also get a
in my log-file, but not a preceeding***** PlayerEntity DOES NOT RESPOND TO scriptAction: "Leeeesti"
Any ideas what's wrong here?***** PlayerEntity DOES NOT RESPOND TO scriptAction: "name"
And, yes, of course, the mission_actsOfGod_running-variable is set correctly in the script.plist, and the alternative_station is defined in shipdata.plist.
So do I miss something very obvious here, or what is the problem? Thanks for any clues!