Jens Ayton
c34f7e03f1
Enabled ECMAScript 5 strict mode in all built-in scripts.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3958 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-02 17:54:54 +00:00
Jens Ayton
3278f52431
Stopping a timer from inside its own callback now works sanely instead of firing once more. Timer unit test now tests stop() behaviour.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3957 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 20:01:11 +00:00
Jens Ayton
578fc93ebf
Timers can now - as intended - be created with a negative start time and positive interval, in which case they are initially unscheduled. Also, repeating timers stop when told to.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3956 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 19:36:21 +00:00
Jens Ayton
172d228a21
JS cleanup for timers.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3955 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 19:35:16 +00:00
Jens Ayton
a9003e859c
Added secret debugConsole.garbageCollect() method.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3954 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 19:16:26 +00:00
Jens Ayton
4caf9301ae
A bunch of JS callback cleanup, mostly explicit void returns.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3953 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 17:46:53 +00:00
Jens Ayton
e7ddfb7adf
Cleaned up object accessors for EquipmentInfo/OOEquipmentType and ShipGroup.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3952 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 17:46:18 +00:00
Jens Ayton
2fb2953327
Protection against infinite loops caused by 0-delay timers rescheduling themselves - if a timer callback registers a timer, it won't be serviced until the next frame.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3951 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 16:55:11 +00:00
Jens Ayton
eb97254346
JS Sound.load() now handles customsounds.plist keys as intended.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3950 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 16:40:07 +00:00
Jens Ayton
71793e8ef8
Removed Mac oldjs project and associated bits & BLOBs.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3949 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 16:13:56 +00:00
Jens Ayton
c7e0b2d17e
Fixed non-debug builds.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3948 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 15:48:38 +00:00
Jens Ayton
ecfef79f97
File and line information is now suppressed for code called through the console.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3946 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 13:41:50 +00:00
Jens Ayton
81ed354cd0
JS Timers with a delay of 0 now work as documented.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3945 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 13:32:50 +00:00
Jens Ayton
17557402f3
Added profiling for JS vector and quaternion conversion functions (debug builds only). Ensured callObjC() for void-return methods always returns undefined.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3944 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 12:56:21 +00:00
Jens Ayton
96df45381e
Further tightened new JS underlying object accessors, and fixed test case regressions for the implicit-conversion-from-entity case.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3943 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 12:26:36 +00:00
Nikos Barkas
b57f41acaf
Fixed build breakage when JS_THREADSAFE was not defined.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3942 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 09:44:17 +00:00
Jens Ayton
a987fe4844
Updated javascript-errors.plist for newjs.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3941 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-01 00:08:48 +00:00
Jens Ayton
79b1857798
Added has_patrol_ships to shipdataEntrySchema.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3940 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-31 17:29:59 +00:00
Eric Walch
552301c3c5
- planetPatrol ships do no longer block the docking queue
...
- new station key: has_patrol_ships
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3939 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-31 17:12:49 +00:00
Jens Ayton
9aa698b483
All JS Ship methods now get their "this" value consistently, including treating the player ship as non-existent during the escape pod sequence, and in a way that isn't trivially crashed - for example, Ship.setAI.call(new Vector3D, "") now works as expected, i.e. raises a JS exception.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3938 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-31 16:08:04 +00:00
Jens Ayton
ded11b65a3
Made JSEntityGetEntity() and similar accessors more efficient. Started work of making native callbacks explicitly return VOID when necessary, as this is no longer handled implicitly when not setting a return value.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3937 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-31 15:30:07 +00:00
Jens Ayton
0730e00139
Fixed JS player.ship.manifest.list.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3936 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-31 14:51:00 +00:00
Jens Ayton
e4e34235da
Exposed JS_STRICT through console as console.pedanticMode to support hackery and a tutorial I may or may not be working on.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3935 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-31 10:46:04 +00:00
Jens Ayton
8c180a4076
Updated Mac nightly script. Now with clean!
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3934 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-31 01:07:55 +00:00
Nikos Barkas
35a85cc0b6
Switched Windows build to the new JavaScript engine.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3932 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-31 00:18:59 +00:00
Jens Ayton
08654dcef0
Xcode project cleanup. Build All target now works properly.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3931 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-30 23:01:15 +00:00
Jens Ayton
416c5c1498
Switching to newjs as Mac OS X default. ...and in with the new.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3930 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-30 22:37:18 +00:00
Jens Ayton
8bb9caad32
Switching to newjs as Mac OS X default. Out with the old (temporarily keeping it around for easy reference)...
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3929 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-30 22:35:57 +00:00
Jens Ayton
e239e66d13
Disabled jsapi test testIsAboutToBeFinalized.cpp, which appears to be making unwarranted assumptions about GC behaviour.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3928 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-30 22:32:13 +00:00
Jens Ayton
abb85d2126
Partial fix for jsapi test failures in i386-debug build. Minor cleanup.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3927 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-30 22:07:08 +00:00
Jens Ayton
c3bb0702d4
Added Mac target for jsapi tests to jslib project (except one test which has linker problems).
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3926 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-30 21:14:00 +00:00
Jens Ayton
529af36b6f
Mirrored mozilla source (JS bits only) and libpng on my server for speed and because the libpng I was referencing will eventually disappear.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3925 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-30 19:37:17 +00:00
Jens Ayton
b057dcfeb3
Enabled method JIT (JaegerMonkey) in Mac newjs builds. Activated JIT in non-debug builds on all platforms.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3924 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-30 14:30:11 +00:00
Eric Walch
3873fdfe42
- Docking and launching ships now correct for the length of a docking corridor inside the station.
...
- Added an AI reactToMassage "STATION_LAUNCHED_SHIP", to allow an AI to react on a launch.
- fixed the missing "shipWillLaunchFromStation" event for NPC ships.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3923 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-30 09:27:44 +00:00
Jens Ayton
8ef996b3d7
Cleaned up entity dump very slightly.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3922 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-29 21:03:31 +00:00
Jens Ayton
ddf27ca613
Enabled tracing JIT (TraceMonkey) in Mac newjs builds.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3921 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-29 20:55:55 +00:00
Jens Ayton
6a97dcf564
Minimized amount of nspr built for Mac newjs builds. Enabled thread-safe mode for debug builds so the nspr stuff is actually used for something.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3920 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-29 18:03:45 +00:00
Jens Ayton
5806bfb41e
Hitting Xcode over the head with a cluestick to address apparent senility.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3919 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-29 15:19:52 +00:00
Jens Ayton
798ff14f6b
Oolite-newjs now automatically downloads libogg and libvorbis code as necessary.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3918 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-29 15:12:46 +00:00
Jens Ayton
9408ce8cd5
Rolled back a project change the world is not yet ready for.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3917 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-29 14:52:45 +00:00
Jens Ayton
d04737358f
Herp derp dumbest typo evar derp.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3916 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-29 14:47:21 +00:00
Jens Ayton
5aa57a9dce
Fixed various Mac newjs build problems. Clean build may be required.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3915 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-29 13:17:17 +00:00
Jens Ayton
1386f390c6
Update script tweaks
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3914 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-29 00:59:57 +00:00
Jens Ayton
76dc33c249
Oolite-newjs now automatically downloads SpiderMonkey and libpng code as necessary.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3913 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-29 00:33:33 +00:00
Jens Ayton
e2f537ef59
Mac Oolite-newjs builds now use an Xcode project to build libjs.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3912 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-28 22:56:25 +00:00
Jens Ayton
fc134f42c9
Fixed oldjs NSDictionary -> JS Object coersion handler. Fixed return value of console.getProfile().
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3911 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-26 15:39:38 +00:00
Jens Ayton
6d86b802e8
JS String and Number objects can now be coerced to NSString and NSNumber using JSObjectToObject(). In practical terms, this means callObjC() now works on them. Also cleaned up some error messages pertaining to callObjC().
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3910 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-26 14:04:32 +00:00
Jens Ayton
dc5e27ada4
Built-in (more precisely, OXP-defined) console macros are now separate from user-defined ones; they take precedence and cannot be deleted or overwritten.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3909 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-26 13:28:06 +00:00
Nikos Barkas
d785ddeac5
Fixed problem with returning the 'EQUIPMENT_UNAVAILABLE' intern JS string.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3908 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-26 12:36:37 +00:00
Jens Ayton
17bc2db337
Use interned strings for JS Ship.equipmentStatus().
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3906 127b21dd-08f5-0310-b4b7-95ae10353056
2010-12-26 12:07:20 +00:00