Feudal States errors

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

Moderators: winston, another_commander, Getafix

Post Reply
DGill
---- E L I T E ----
---- E L I T E ----
Posts: 292
Joined: Thu Jan 01, 2009 9:45 am

Feudal States errors

Post by DGill »

How do I go about fixing these Feudal States log errors?

[script.javaScript.warning.ooliteDefinedError]: ----- JavaScript warning (feudal-challenge.js 4.0): Ship.hasEquipment("EQ_CLOAKING_DEVICE") is deprecated, use ship.equipmentStatus("EQ_CLOAKING_DEVICE") == "EQUIPMENT_OK" instead.
[script.javaScript.warning.ooliteDefinedError]: ----- JavaScript warning (feudal-challenge.js 4.0): Ship.hasEquipment("EQ_ENERGY_BOMB") is deprecated, use ship.equipmentStatus("EQ_ENERGY_BOMB") == "EQUIPMENT_OK" instead.
[script.javaScript.warning.undefinedProp]: ----- JavaScript warning (feudal-escape-pod.js 1.0): reference to undefined property this.ship
[script.javaScript.warning.undefinedProp]: ../AddOns/The Feudal States v1.9.1.oxp/Scripts/feudal-escape-pod.js, line 16.
[script.javaScript.exception.noProperties]: ***** JavaScript exception (feudal-escape-pod.js 1.0): TypeError: this.ship has no properties
[script.javaScript.exception.noProperties]: ../AddOns/The Feudal States v1.9.1.oxp/Scripts/feudal-escape-pod.js, line 16.
User avatar
Ramirez
---- E L I T E ----
---- E L I T E ----
Posts: 628
Joined: Mon Nov 07, 2005 9:52 am
Location: London, UK

Post by Ramirez »

For the equipment errors, follow the prompt and in feudal-challenge.js replace thinks like Ship.hasEquipment("EQ_CLOAKING_DEVICE") with ship.equipmentStatus("EQ_CLOAKING_DEVICE") == "EQUIPMENT_OK".

The problem with the escape pod is caused by mistakenly including feudal-escape-pod.js in the list of world scripts. Open up world-scripts.plist in the config folder, and delete the entry for feudal-escape-pod.js.

I've updated v1.9.1 to clear these errors.
Download Resistance Commander plus many other exciting OXPs HERE
DGill
---- E L I T E ----
---- E L I T E ----
Posts: 292
Joined: Thu Jan 01, 2009 9:45 am

Post by DGill »

thank's for the prompt reply.

Really enjoying this oxp!
Post Reply