Now that the task with the new version of youradhere is over I will continue the update of oohaul
Things I have done so far:
1.Change the deprecated command "scriptActionOnTarget" with "safeScriptActionOnTarget" in the AI of the mission ship (It works fine!!)
2.Escort missions can be offered now in all constore types not only pi-42s
3.Some minor bug fixes in the shipdata plist
Things that is still broken:
1.The pi-42 clerk does not function properly (although is not essential for the missions, its existence is only for giving you the hint that an escort mission is waiting for you in the constore). I suspect that the Pi-42SandwichBoardAI.plist is not responsible but somehow the
Code: Select all
<key>like_ship</key>
<string>escape-capsule</string>
inside the shipdata plist do all the damage. It does not transmit the messages inside its AI and you can even scoop it and get a slave !!!
2.Something must be wrong with the death actions of Oohauler_crate01 although I am pretty sure that it worked in the past (previous version of oolite or the oxp)
Code: Select all
<key>Oohauler_crate01</key>
<dict>
<key>ai_type</key>
<string>nullAI.plist</string>
<key>death_actions</key>
<array>
<string>spawn: oohaulcargo 15</string>
</array>
<key>likely_cargo</key>
<integer>20</integer>
<key>max_cargo</key>
<integer>50</integer>
<key>max_energy</key>
<real>150</real>
<key>model</key>
<string>Oohauler_crate01.dat</string>
<key>name</key>
<string>Oohaul Crate</string>
<key>roles</key>
<string>Oohauler_crate01</string>
</dict>
<key>oohaulcargo</key>
<dict>
<key>scanClass</key>
<string>CLASS_CARGO</string>
<key>roles</key>
<string>oohaulcargo</string>
<key>ai_type</key>
<string>dumbAI.plist</string>
<key>bounty</key>
<integer>1</integer>
<key>cargo_type</key>
<string>CARGO_SCRIPTED_ITEM</string>
<key>energy_recharge_rate</key>
<real>0.0</real>
<key>forward_weapon_type</key>
<string>WEAPON_NONE</string>
<key>likely_cargo</key>
<integer>0</integer>
<key>max_cargo</key>
<integer>0</integer>
<key>max_energy</key>
<real>1</real>
<key>max_flight_pitch</key>
<real>0.5</real>
<key>max_flight_roll</key>
<real>0.5</real>
<key>max_flight_speed</key>
<real>50</real>
<key>missiles</key>
<integer>0</integer>
<key>model</key>
<string>barrel.dat</string>
<key>name</key>
<string>Cargo container</string>
<key>thrust</key>
<real>0.0</real>
<key>unpiloted</key>
<true/>
<key>weapon_energy</key>
<real>0.0</real>
<key>weapon_offset_x</key>
<real>0.0</real>
<key>script_actions</key>
<array>
<string>awardCargo: 1 Computers</string>
</array>
</dict>
it seems that the 15 cargo crates connot be spawed anymore.
Moreover i am unable to understand why he uses script actions when the crates always give you a computer. It would be replaced with
Code: Select all
<key>cargo_type</key>
<string>CARGO_COMPUTERS</string>
Any help in the above 2 problem will be appreciated
Also if any of you had detect any other bugs now it is a very good time to share that knowledge with the rest of us