611 Commits

Author SHA1 Message Date
dajt
910685fa52 Fixed GNUmakefile so JS stuff compiles in the trunk on Win32.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@854 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-12 10:05:33 +00:00
Jens Ayton
5965e2265a Added Windows JS libraries to trunk. Added JS files to the makefile. Won't build on Linux, might build on Windows as-is.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@853 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-11 20:14:51 +00:00
Jens Ayton
64f80b08cb Merged in JavaScript branch, but haven't got it to do anything yet.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@852 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-11 17:41:38 +00:00
Jens Ayton
31c5de5763 Bumped version number.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@850 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-11 14:07:34 +00:00
Jens Ayton
eda894e7dc Possibly fixed mouse control bug under OS X. Or not.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@849 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-11 13:09:28 +00:00
Jens Ayton
b00b0c8162 Fixed sound glitch (similar to streaming sound one, but smaller).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@848 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-11 13:00:14 +00:00
Jens Ayton
1bd331c79f Fixed redundant log message when there's no cache.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@847 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-11 11:17:57 +00:00
Jens Ayton
d55d020000 Made OS X deployment build build with no warnings. Fixed problem with previous bug fix to streaming audio. Stayed up way too late.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@845 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-11 02:14:12 +00:00
Jens Ayton
f506dbe08c Changed boolean preference force_streaming_sound to integer preference max_buffered_sound.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@844 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-10 16:26:50 +00:00
Jens Ayton
34aa44d687 Mac-only sound fixes: hopefully fixed streaming sound stop crash -- the conditions for it don't seem to manifest on my single-processor system. Removed last instances of Objective-C method calls in real-time sound rendering thread \(mmm, crunchy IMP caching\). Added force_streaming_sound preference for debugging purposes. Fixed buffer size calculation and tweaked threshold for using streaming sound -- sounds larger than 1 MB \(uncompressed\) will now be streamed, rather than 16 MB for stereo and 8 MB for mono.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@843 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-10 16:08:37 +00:00
Jens Ayton
e03b0918fb Cache is now rebuilt if search paths or modification dates have changed.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@842 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-09 18:41:57 +00:00
Jens Ayton
dfb2cafe63 Added high-level documentation of OOCache. Disabled cache integrity checking (OOCACHE_PERFORM_INTEGRITY_CHECKS macro). Avoid re-writing unmodified cache.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@841 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-09 17:07:46 +00:00
Jens Ayton
4d788e7122 Real implementation of OOCache. Prunes old entries as necessary -- currently when going above 128 entries, to 80%, i.e. 102; it also prunes before saving (which is done every time the player docks) to reduce the chance of a prune during combat, although the cost of that shouldn't be noticable. To do: proper testing, verification of splay tree self-optimization, documentation.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@840 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-09 01:35:38 +00:00
Jens Ayton
96f6f3983a Re-implemented simple dictionary-based OOCache which I wrote yesterday but forgot to svn add before checking in. I'm working on another implementation with efficient support for pruning old entries.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@838 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-08 11:29:16 +00:00
Jens Ayton
c9707576f8 Split OOCache off into separate class. Currently trivial, but I'm about to rewrite it from scratch.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@837 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-07 16:15:04 +00:00
Jens Ayton
3458ac975a Disabled inverse square root optimization (it was messing with laser accuracy) and reduced mouse control dead zone.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@836 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-07 14:32:57 +00:00
Jens Ayton
42881e443c Fixed FastInvSqrt() for Win32 (I hope).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@835 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-07 12:39:27 +00:00
dajt
59227c7be6 Including limits.h in GNUstep builds to get UINT_MAX for OOCacheManager.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@834 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-07 09:15:32 +00:00
dajt
8cd6a28a19 Fixed loop which checks cmd line args to start at arg 1.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@833 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-07 09:14:20 +00:00
Jens Ayton
2e19031d89 Unified implementation of pollFlightArrowKeyControls: -- one less #ifndef.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@832 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-07 00:28:55 +00:00
Jens Ayton
ec55398a9d Broke cache out into separate OOCacheManager class. Moved cache (under OS X) to ~/Library/Caches/org.aegidian.oolite/Data Cache.plist. Use binary plist format (on OS X) for cache. Detect byte sex mismatch in cache handling.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@831 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-06 23:50:32 +00:00
Jens Ayton
abe53df44f Yaw control working on OS X; disabled in strict mode.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@830 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-06 18:40:34 +00:00
Jens Ayton
ece83a5097 Made Advanced Navigational Array available_to_all.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@829 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-06 16:39:58 +00:00
Jens Ayton
4b6ed7b81f Commented OOLogging internal functions.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@828 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-06 11:31:24 +00:00
Jens Ayton
cd389cd2d5 Attempt to fix proroblems with logging under GNUStep.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@827 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-06 11:04:01 +00:00
Jens Ayton
b97023eb63 Added more spiff to spiffy log system (code was expecting config file to be in the wrong place). OOLoggified GLSL setup. Re-rejiggered Xcode project -- now puts stuff in the right folders _and_ notices when files change.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@826 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-06 02:05:45 +00:00
Jens Ayton
199b6fd004 Fiddled with build process again - now it runs properly from outside of Xcode.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@824 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-05 16:41:12 +00:00
Jens Ayton
7824a4371d Cleaned up FastInvSqrt().
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@823 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-05 15:42:52 +00:00
Jens Ayton
82e3e25027 Further improved Mac build process.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@822 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-05 14:58:51 +00:00
Jens Ayton
0214517dd8 Found a version number and copyright string I'd forgotten to update.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@821 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-05 14:44:56 +00:00
Jens Ayton
4358294d92 Removed project file references to in-progress stuff, squashed a spurious uninitialized variable warning.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@820 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-05 14:42:46 +00:00
Jens Ayton
46508e662b More OOLogification.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@819 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-05 14:34:26 +00:00
Jens Ayton
89a8501491 Added Advanced Navigational Array code by another_commander. Stopped saving textured planet flag in save files as it's experimental and, er, in need of further performance optimization. (Should be saved in preferences rather than game files anyway.)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@818 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-05 13:19:11 +00:00
Jens Ayton
631971078a Converted much of PlayerEntityScripting to OOLog(). Replaced DEBUG_SCRIPT with flexible OOLogging metaclass goodness. Added OOLogIndentIf()/OOLogOutdentIf(). Fixed some bugs in OOLogging.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@817 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-04 19:01:58 +00:00
Jens Ayton
c0019d4048 Fixed up Xcode build process to build and embed Spotlight metadata importer. Also did the copyright notice dance in metadata importer source. Cleaned up group paths in Xcode project. Unbroke deployment build. Wished I had more computers to run distributed builds on.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@815 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-04 14:05:05 +00:00
Jens Ayton
f8c5158df1 More OOLog stuff. Reduced use of ObjC message calls in sound pseudo-RT thread (could potentially cause lockups, apparently) -- should look into C implementation of VirtualRingBuffer.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@814 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-04 13:30:09 +00:00
Jens Ayton
768b1c75ab Added oolog command line tool to manipulate OOLogging settings. Moved bits of OOCASound over to OOLog. Hijacked NSLog to call OOLog(@"unclassified", foo) instead.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@813 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-04 12:35:25 +00:00
Jens Ayton
ba718f3b70 Import OOLogging from OOCocoa.h. Rearranged logcontrol.plist. Changed to camelCase for both message classes and metaclasses. Added ability to override an explicit logcontrol.plist setting with 'inherit'.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@812 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-04 11:22:06 +00:00
Jens Ayton
1c6dfae3e2 Sexed up OOLogging with metaclass system and locking.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@811 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-03 19:05:50 +00:00
Jens Ayton
bb28b341c1 Moved more messages over to OOLogging, moved most log message classes into the relevant files rather than OOLogging.h to reduce recompiling.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@810 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-03 16:07:19 +00:00
Jens Ayton
73e9925e1f Converted a number of verbose log messages to use OOLog. Changed default of logging-show-class to YES.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@809 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-03 15:40:23 +00:00
Jens Ayton
a5bf79141c Added base-256 random number methods for scripting.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@808 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-03 13:30:34 +00:00
Jens Ayton
70cd6edb4b Bugs in OOLogging.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@807 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-02 21:48:54 +00:00
Jens Ayton
dbc2c00db4 Added OOLogging to makefile.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@806 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-02 21:27:47 +00:00
Jens Ayton
5b60374c50 Typo.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@805 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-02 21:26:09 +00:00
Jens Ayton
f3d32ecfa4 Added OOLog(), a replacement for NSLog().
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@804 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-02 21:20:18 +00:00
Jens Ayton
a8d25204fc Updated license terms in documentation. Added GPL.TXT.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@803 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-02 16:14:49 +00:00
dajt
a5b613da69 Fixed some compilation problems due to renamed files.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@802 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-01 23:43:04 +00:00
Jens Ayton
7daabe218c More license comments.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@801 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-01 20:05:06 +00:00
Jens Ayton
e19f162679 More license comments.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@800 127b21dd-08f5-0310-b4b7-95ae10353056
2007-03-01 19:56:45 +00:00