Posted: Sun Dec 19, 2010 3:41 pm
You can read about SpiderMonkey JS here.DaddyHoggy wrote:In the words of Ultravox... "This means nothing to me" - I am presuming a massive hike in version number is a good thing?
Well, it means:DaddyHoggy wrote:In the words of Ultravox... "This means nothing to me" - I am presuming a massive hike in version number is a good thing?
I think you mean: Starting next yearAhruman wrote:Starting tonight, Mac and Windows nightlies will use the new JavaScript engine.
No no, other tonight. They’re up now. :-)Eric Walch wrote:I think you mean: Starting next year :lol:Ahruman wrote:Starting tonight, Mac and Windows nightlies will use the new JavaScript engine.
toString()
method returns something other than “[object Object]”, that will be used, but this can be bypassed using the improved :d macro. For instance, player.ship
will still give you “[PlayerShip "Cobra Mark III" position: (-49515.3, 60769.4, 427622) scanClass: CLASS_PLAYER status: STATUS_DOCKED]”, but :d player.ship
will dump all enumerable properties of the player’s ship instead.expandDescription("[test]", { test: 5 })
it would be ignored. This bug was introduced somewhere between 1.74 and 1.74.2, causing buggy messages in the material test suite under 1.74.2. In 1.75, all values in the override dictionary will be converted to strings by calling their toString()
method. In 1.74.x, passing an array would select a value from it at random, but this was not documented. These changes also affect expandMissionText()
.expandDescription()
and various other situations has been improved substantially.debugConsole.pedanticMode
property (if the debug console is loaded).Code: Select all
{
manifest: [object Manifest],
aftShield: 128,
aftShieldRechargeRate: 2,
compassMode: "COMPASS_MODE_BASIC",
compassTarget: undefined,
cursorCoordinates: (20, 173, 0),
docked: true,
dockedStation: [Station "Coriolis Station" "Coriolis Station" position: (-49515.3, 60769.4, 427622) scanClass: CLASS_STATION status: STATUS_ACTIVE],
forwardShield: 128,
forwardShieldRechargeRate: 2,
fuelLeakRate: 0,
galacticHyperspaceBehaviour: "BEHAVIOUR_STANDARD",
galacticHyperspaceFixedCoords: (96, 96, 0),
galaxyCoordinates: (20, 173, 0),
hud: "hud.plist",
hudHidden: false,
maxAftShield: 128,
maxForwardShield: 128,
reticleTargetSensitive: false,
scoopOverride: false,
scriptedMisjump: false,
specialCargo: undefined,
targetSystem: 7,
viewDirection: "VIEW_GUI_DISPLAY",
weaponsOnline: true,
aftWeapon: null,
AI: "oolite-player-AI.plist",
AIState: "GLOBAL",
beaconCode: null,
bounty: 0,
cargoSpaceUsed: 0,
cargoSpaceCapacity: 20,
cargoSpaceAvailable: 20,
contracts: [],
cruiseSpeed: 280,
desiredSpeed: 0,
displayName: "Cobra Mark III",
entityPersonality: 27313,
equipment: [],
escorts: null,
escortGroup: [OOShipGroup "escort group", 1 ships, leader: <PlayerEntity 0x102091200>{"Cobra Mark III"}],
forwardWeapon: [EquipmentInfo EQ_WEAPON_PULSE_LASER "Pulse Laser"],
fuel: 7,
fuelChargeRate: 1,
group: null,
hasHostileTarget: false,
hasHyperspaceMotor: true,
hasSuspendedAI: false,
heatInsulation: 1,
heading: (0, 0, 1),
isBeacon: false,
isCloaked: false,
isCargo: false,
isDerelict: false,
isFrangible: true,
isJamming: false,
isMine: false,
isMissile: false,
isPiloted: true,
isPirate: false,
isPirateVictim: true,
isPlayer: true,
isPolice: false,
isRock: false,
isBoulder: false,
isThargoid: false,
isTrader: true,
isWeapon: false,
lightsActive: true,
maxSpeed: 350,
maxThrust: 32,
missileCapacity: 4,
missileLoadTime: 0,
missiles: [[EquipmentInfo EQ_MISSILE "Missile"], [EquipmentInfo EQ_MISSILE "Missile"], [EquipmentInfo EQ_MISSILE "Missile"]],
name: "Cobra Mark III",
passengerCount: 0,
passengerCapacity: 0,
passengers: [],
portWeapon: null,
potentialCollider: null,
primaryRole: "player",
reportAIMessages: false,
roleProbabilities: {
player: 1
},
roles: ["player"],
savedCoordinates: (0, 0, 0),
scannerDisplayColor1: null,
scannerDisplayColor2: null,
scannerRange: 25600,
script: [Script "oolite-default-player-script" version 1.75],
scriptInfo: {},
speed: 0,
starboardWeapon: null,
subEntities: [],
subEntityCapacity: 0,
target: null,
temperature: 0.234375,
thrust: 32,
thrustVector: (0, 0, 0),
trackCloseContacts: false,
vectorForward: (0, 0, 1),
vectorRight: (1, 0, 0),
vectorUp: (0, 1, 0),
velocity: (0, 0, 0),
weaponRange: 12500,
withinStationAegis: false,
collisionRadius: 72.7341079711914,
distanceTravelled: 0,
energy: 256,
mass: 185580.015625,
maxEnergy: 256,
orientation: (-1 + 0i + 0j + 0k),
owner: null,
position: (-49515.3, 60769.4, 427622),
scanClass: "CLASS_PLAYER",
spawnTime: 0,
status: "STATUS_DOCKED",
isPlanet: false,
isShip: true,
isStation: false,
isSubEntity: false,
isSun: false,
isValid: true,
inspect: function inspect() {
debugConsole.inspectEntity(this);
}
}
Ship.prototype
and call it on ship instances; instead, you had to define it on Ship.__proto__
(or Object.getPrototypeOf(Ship)
in ES5).