3371 Commits

Author SHA1 Message Date
Jens Ayton
dec2c7332b JavaScript functions are now included in profiles (requires newjs, native ObjC exceptions and MOZ_TRACE_JSCALLS).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4083 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-16 22:03:35 +00:00
Jens Ayton
8f6a8cad98 Fixed console macros and tweaked some console property visibilities.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4082 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-16 18:19:52 +00:00
Jens Ayton
a8848ade0c Argument validation for JS mission.setInstructions[Key].
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4081 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-16 18:14:30 +00:00
Jens Ayton
7428f43c94 Rolled back horrible, confusing startup behaviour from r3320 which I rejected at the time but didn't get around to fixing.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4080 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-16 17:58:13 +00:00
Jens Ayton
a6e4a22566 Tweaks to OS X sound inspector.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4079 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-16 15:41:28 +00:00
Jens Ayton
c344ac56de Descriptions.plist and missiontext.plist are now reloaded when toggling strict mode. FIXME: need less redundance between init and reinit of universe. There are probably other issues like this.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4078 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-16 14:46:48 +00:00
Jens Ayton
08519fb6be JS special.jsWarning() now skips one stack frame as intended.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4077 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-16 14:04:17 +00:00
Jens Ayton
404cea6b3e Added assertion for possible but unlikely cause of Scree't crash in http://aegidian.org/bb/viewtopic.php?f=3&t=8978
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4076 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-16 13:19:55 +00:00
Jens Ayton
c02738ce19 Linux fixes.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4075 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-15 18:08:49 +00:00
Jens Ayton
af8c6bc459 Missing files.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4074 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-15 18:05:20 +00:00
Jens Ayton
96c9b7dbe6 More macro madness! JS scanClass and status strings are now interned singletons, for efficiency and also simpler callbacks.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4073 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-15 17:49:14 +00:00
Jens Ayton
a804bf350f Moved some enum definitions into separate table files, to avoid potentially bug-inducing redundancy (because I'm going to add more of that).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4072 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-15 16:14:34 +00:00
Jens Ayton
676ed097e9 Cleaned up JS debug helpers, made them easier to use and added some basic documentation.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4071 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-15 14:25:49 +00:00
Eric Walch
5bea193153 - Added the AI command 'setDesiredRangeForWaypoint' to set a flexible range instead of the fixed value of 50, so that slow turning ships also can use the standard 'gotoWaypointAI.plist'
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4070 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-15 10:36:54 +00:00
Jens Ayton
9e25713f53 oldjs unbreakage.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4069 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 22:17:59 +00:00
Jens Ayton
9dad469a36 API compatibility with FireFox 4.0 beta 9 version of SpiderMonkey (string functions have changed). Update to 4b9 for OS X not pushed yet; SoundSources don't work.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4068 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 22:08:38 +00:00
Jens Ayton
b0968627c4 KISS.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4067 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 21:18:14 +00:00
Nikos Barkas
39740190dd Fixed Windows build (definition of SIZE_T_MAX was missing).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4066 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 21:15:44 +00:00
Jens Ayton
99fc874443 Garbage collect when docking.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4065 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 20:36:34 +00:00
Jens Ayton
35de1488c1 Added OOJSValueIsFunction() and OOJSValueIsArray() helper functions, and used them to avoid several JS crashers.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4064 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 20:17:07 +00:00
Jens Ayton
65ae9f162a Added debug-only JS functions debugConsole.dumpHeap() (newjs only) and debugConsole.dumpNamedRoots(). They write to text files in the log folder.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4063 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 20:04:21 +00:00
Jens Ayton
19c65c4e4c Build fixage.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4062 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 19:32:12 +00:00
Jens Ayton
c077af931a Removed gigantic, unused and pointless method -[OOSelfDrawingEntity fakeTexturesWithImageFile:andMaxSize:].
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4061 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 18:50:00 +00:00
Jens Ayton
7f0424efb6 Fixed deployment build. Mathematical mucking about.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4060 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 18:32:25 +00:00
Jens Ayton
1aebd8449a Higher-precision OOHighResTimeValue for Windows (wrapping JS_Now()).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4059 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 17:58:16 +00:00
Jens Ayton
1795bd6f9e Changed stack trace log message class.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4058 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 17:02:50 +00:00
Jens Ayton
3509adfab7 Added another debug helper, JSValueToStrSafeDbg, suitable for Xcode data formatter or gdb display expression.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4057 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 16:45:52 +00:00
Jens Ayton
5f16e93f3f oldjs unbreakage.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4056 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 16:03:24 +00:00
Jens Ayton
22e30e422f JavaScript stack traces now include local variables. Stack trace configuration behaviour changed: instead of logcontrol.plist settings, traces for errors and warnings can be separately enabled/disabled through the debug console, or through preferences if debug OXP is not installed. Default is on with debug OXP, off otherwise. Settings in the debug console are persistent, as are showErrorLocations and showErrorLocationsDuringConsoleEval now.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4055 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 15:48:05 +00:00
Jens Ayton
4c23525ddd Mucked about a bit with data formatter functions for GDB (those would be JSValueToStrDbg, JSObjectToStrDbg, JSStringToStrDbg, JSValueTypeDbg and now JSDumpStack, BTW). Implemented basic support for JS debugger statement - currently just logs a stack trace, if the debug console is active.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4054 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-14 14:05:51 +00:00
Jens Ayton
ded012d0e5 Put all of prefix script in a nice, sanitary closure.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4053 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-12 21:36:10 +00:00
Jens Ayton
ccd30cb8a9 Added compatibility accessors and warnings for misuse of JS System and Player.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4052 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-12 20:52:05 +00:00
Eric Walch
576a977e0d escort and station-defenders shoot no longer through their mother or station.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4051 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-12 17:00:52 +00:00
Jens Ayton
48abeeedef Renamed Ship.prototype.roleProbabilities to Ship.prototype.roleWeights (with compatibility accessor).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4050 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-12 14:29:55 +00:00
Jens Ayton
67d2fc19a2 Disabled frame callback debug logging.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4049 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-11 23:55:15 +00:00
Jens Ayton
00ed5b35a9 Removed temp log. (I wish svn wouldn't check in if I have unsaved documents in Xcode.)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4048 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-11 23:05:47 +00:00
Jens Ayton
600a3d4193 [Mac] Fixed crash when freeing mono (buffered) sounds, and memory leak when freeing stereo sounds.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4047 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-11 23:03:19 +00:00
Jens Ayton
ac6bbac3a1 Removed blatant lies that I verified were false two days ago when I wrote the code. D'oh.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4046 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-11 22:52:22 +00:00
Jens Ayton
51289b4fd2 Added :proto console macro to examine prototype chains.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4045 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-11 22:36:47 +00:00
Jens Ayton
96a358bae1 Removed unused compatibility-accessor helpers in prefix script that would no longer work anyway. Ignore undefineds in debug console pretty-printing. Treat PlayerShip.prototype as stale entity ref in PlayerShipGetProperty().
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4044 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-11 22:14:03 +00:00
Jens Ayton
1e10675b20 Extensive instrumentation of JS frame callbacks.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4043 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-10 16:14:27 +00:00
getafix
df477fcb92 Fixed Linux build breakage
caused by r4030 libpng related changes.


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4042 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-10 11:04:20 +00:00
Nikos Barkas
9f3c8afed7 Fixed spoken comms messages not including the actual message under Windows.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4041 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-09 16:27:04 +00:00
Nikos Barkas
f0ed9a3d60 Fixed HAVE_STRING_BY_REPLACING macro for the GNUstep builds (it looks like stringByReplacingOccurrencesOfString is only available after GNUstep 1.20).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4040 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-09 15:05:18 +00:00
Jens Ayton
b5a207c598 Comm log messages are now spoken. (Feature request #4970)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4039 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-09 14:18:29 +00:00
Jens Ayton
29ea9c70e8 Build unbreakage, yay.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4038 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-09 12:31:54 +00:00
Eric Walch
fbbeea6765 Changed the shipWillLaunchFromStation handler for the player, so that the player already has a valid launch-position and launch-orientation.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4037 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-08 17:59:23 +00:00
Jens Ayton
56f5e760ce Implemented frame callbacks.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4035 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-08 17:03:04 +00:00
Jens Ayton
53996131e3 Quick fix for non-Mac debug configuration breakage.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4033 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-08 13:26:44 +00:00
Jens Ayton
7067036207 Compatibility fixes for libpng 1.5.0, and some general libpng usage fixes. Didn't update to 1.5.0 for Mac because it's buggy and spews a bunch of spurious warnings.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4030 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-07 15:13:58 +00:00