1674 Commits

Author SHA1 Message Date
Jens Ayton
a9f7317991 Logging to ~/.Oolite/Logs/Latest.log instead of stderr under Linux, part 2 of 2.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1775 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-29 09:36:17 +00:00
Jens Ayton
f28d1f589d Logging to ~/.Oolite/Logs/Latest.log instead of stderr under Linux, part 1 of 2.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1774 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-29 09:34:31 +00:00
Jens Ayton
47563b5518 Added uniform types for random numbers, vectors and quaternions.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1773 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-28 17:39:49 +00:00
Nikos Barkas
5e8da50afc Added the key stations_require_docking_clearance to the universal section of planetinfo.plist. Added logging of native display mode under Windows and Linux.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1772 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-28 10:25:13 +00:00
cmdrjames
7814a2ba28 Fixes for AI from: Eric Walch
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1771 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-26 20:10:24 +00:00
Jens Ayton
a7771707ec Fixed missile collision bug as per eric's analysis.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1770 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-26 08:53:12 +00:00
Nikos Barkas
5a0a0a1184 Added the requires_docking_clearance key for stations in shipdata.plist. Defaults to NO. Added the read/write JS property requiresDockingClearance.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1769 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-24 10:08:39 +00:00
Nikos Barkas
711b189d38 Further improvements to docking clearance. Penalty of 5 percent of credits amount with a ceiling of 5000 Cr applied for anauthorized docking. Station responses to docking clearance selected from lists. No penalty applied when sun is going nova. Only fugitive players are denied clearance to dock. All the above still needs -DDOCKING_CLEARANCE_ENABLED to be compiled in.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1768 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-23 09:51:14 +00:00
Nikos Barkas
3f9ea4d02b Improved implementation of docking clearance request. Added the playerRequestedDockingClearance script handler.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1767 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-21 21:14:54 +00:00
Jens Ayton
16fa3fb94b Added ability to pass parameters using sendScriptMessage:
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1766 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-21 15:57:06 +00:00
Nikos Barkas
9ed1b38567 Very basic initial implementation of docking clearance request. DOCKING_CLEARANCE_ENABLED must be defined in order to compile this in. Moved related hardcoded strings out to descriptions.plist.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1765 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-21 13:01:19 +00:00
Jens Ayton
ee4e599ebf Fixed memory management bug in modified texture code. Simplified code by adding singleton OONullTexture. Minor tweaks to reduce clang static analyzer messages.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1764 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-18 23:09:56 +00:00
Nikos Barkas
b99dc5cc56 Added Eric's proposed playerBoughtEquipment script event handler.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1763 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-17 14:27:22 +00:00
Nikos Barkas
cea5c716dd Fixed textures related crash (not sure if this fix is the best possible, as it is mostly a revert of some code entered at revision 1759, but since it does not seem to crash on modern hardware anymore, it will have to do for now. Testing will be required).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1762 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-13 14:50:58 +00:00
Nikos Barkas
e06aa2a400 Applied a slightly modified version of CmdrLUke's and Cmdr Wyvern's code for joystick deadzone control.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1761 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-07 11:44:23 +00:00
Nikos Barkas
2c8bb802cb Increased default joystick deadzone from 0.02 to 0.05 in hope of achieving slightly better joystick response.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1760 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-05 14:11:10 +00:00
Jens Ayton
c2349842e3 Fixed build with NO_SHADERS defined, and other fixes for Irix. Also fixed some faulty logic confusing textures and materials.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1759 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-02 17:11:07 +00:00
Jens Ayton
5458fc508c Improved error messages for JS addShips commands when passing insufficient parameters. Four static analysis diagnostics fixed: one real one-time memory leak, one false alarm about a memory leak due to silly memory managment, a potential uninitialized variable in key config set-up, and one bug in the clang static analyzer fixed.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1758 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-02 00:41:41 +00:00
Jens Ayton
8b5d9523c0 Some missing shipdata verifier things.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1757 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-01 19:15:52 +00:00
Jens Ayton
3f07f2230c Fiddling with script converter, and bunch of scripting changes as a result: added player.rank, player.legalStatus, system.countShipsWithPrimaryRole(), system.pseudoRandomNumber, system.pseudoRandom100, system.pseudoRandom256; renamed Ship.shipDescription to Ship.name and Ship.shipDisplayName to Ship.displayName. Also, JS console script now strips out trailing line breaks.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1755 127b21dd-08f5-0310-b4b7-95ae10353056
2008-09-01 18:21:21 +00:00
Jens Ayton
705c2aa739 Cleanup and tweakage. Assigning null to a mission variable in JS now deletes it. incomplete JS console lines that are buffered rather than executed are prefixed with _ instead of >.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1753 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-31 18:49:19 +00:00
Nikos Barkas
513bfaccef Reverted experimental code from revision 1748, due to GCC 3.4.2 not being able to handle native ObjC exception syntax.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1752 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-30 16:37:15 +00:00
Jens Ayton
8d71d62b2d Fixed JS system.shipsWithPrimaryRole() as in r1751.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1751 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-30 02:21:49 +00:00
Jens Ayton
379bd91c6d Fixed JS system.filteredEntities(), entitiesWithScanClass() and shipsWithRole() (all were completely non-functional). Added groovy new entity-finding console macros: :nearest, :tnearest, :find, :findS, :target (see debugConfig.plist).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1750 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-30 01:43:00 +00:00
Jens Ayton
c3da65606f Fixed some OXP verifier issues, twiddled OOCocoa.h so clang static analysis works again.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1749 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-29 20:44:06 +00:00
Jens Ayton
28727321da Experimentally checking in some native exception syntax to see if it breaks anyone's build.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1748 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-29 20:26:15 +00:00
Nikos Barkas
9c5d0b418e Fixed a small language problem with MinGW.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1747 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-26 06:01:50 +00:00
cmdrjames
03e2e67761 [ Bug #13945 ] escorts don't have turrets in 1.71.2
There was a look which didn't stop when it got to the ship which owns the subentity, and went up the chain to the group leader.  I have also changed docking behaviour, as during my testing I found that anyone docking would ignore me when I attacked it.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1746 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-25 11:14:53 +00:00
cmdrjames
bedf7cbecc Collision detections were previously set for both ships that were close, but were tested for independently. This gave the impression that maybe only one party would be alerted. I think there is still a problem though, I think ships will normally not avoid collisions with carriers (as they are stations)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1745 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-25 09:43:22 +00:00
cmdrjames
75806ac5e3 Simple fix for traders crashing after launch. Discussed here: http://www.aegidian.org/bb/viewtopic.php?t=4906&highlight=
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1744 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-25 09:27:55 +00:00
Jens Ayton
4d59905fc8 Fix for JS Entity.isValid not working for invalid entities.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1743 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-24 22:32:11 +00:00
Jens Ayton
5307011661 More happy loose end fun.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1742 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-24 22:30:11 +00:00
Jens Ayton
86859ce8e9 Cleaning up my mess.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1741 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-24 22:13:59 +00:00
Jens Ayton
1586904cb3 Cleaning up my mess.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1740 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-24 22:12:53 +00:00
Jens Ayton
61e4d9f989 New SDL sound code. Architecturally more similar to Mac code; main feature is that the same sound can be playing on more than one channel at once. Written without test builds, built almost without fixes and worked straight away, so there are almost certainly lurking bugs waiting to bite.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1739 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-24 21:59:52 +00:00
Jens Ayton
02a8e76d59 Fix for locale issues under Windows.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1738 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-23 14:49:07 +00:00
Jens Ayton
2e5fbccf83 Yet more legacy sound code stripped out for the great interface simplicity win.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1737 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-22 14:43:25 +00:00
Jens Ayton
35d09e3f75 Updated remaining old-style sound code. Afterburner loop fixed to use a single sound file instead of two identical ones.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1736 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-21 20:48:24 +00:00
Nikos Barkas
7947339436 Part three of the fix for conditional equipment addition. I hope this will be the last.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1735 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-18 11:52:30 +00:00
Nikos Barkas
b1011e5e96 Previous fix did not work as expected, reattempting with a hopefully functional one.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1734 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-18 09:47:16 +00:00
Nikos Barkas
1b8301ffc8 Fixed a bug whereby sometimes equipment would not be added to the arsenal during initialization, due to the canAddEquipment check being performed on a partially complete only equipment list.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1733 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-17 07:34:25 +00:00
Nikos Barkas
26584c1f33 Implemented [HeadUpDisplay setReticleTargetSensitive] method. Made reticleTargetSensitive visible to JavaScript as a read/write property.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1732 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-15 08:51:22 +00:00
Nikos Barkas
8a91fa3be7 Implemented the reticle_target_sensitive key in hud.plist. If set to true, selected targets that pass through the center of the reticle cause the targetting box to change color to red. Default is false. Also added a couple of missing break statements in OOJSTimer.m.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1731 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-14 18:36:42 +00:00
cmdrjames
c1b22c284f fix for bounty availability in js
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1730 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-12 20:36:42 +00:00
Nikos Barkas
d731ef1a52 Added the v1.65 code to [UNIVERSE findSystemNumberAtCoords], so that overlapping systems can be selected on the two chart screens. Still not perfect (going to F5 screen will reset the selection), but now travel to such systems is possible.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1729 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-10 12:14:21 +00:00
Jens Ayton
14b36f0f64 Deprecated messy ability to use a list of number arguments as a vector/quaternion literal, in favour of array literals.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1728 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-07 16:12:51 +00:00
Jens Ayton
e10591c31a Renamed JS Vector to Vector3D to avoid namespace issues in JavaScript 2.0. Added bounty property back to JS player. Oversight of player vs. player.ship in built-in scripts.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1727 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-07 08:06:08 +00:00
Jens Ayton
ab359ea4af Noticed an interesting jsapi function; now console can take input split across multiple lines. (Input an empty line to cancel.)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1726 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-06 08:02:49 +00:00
Nikos Barkas
a9a0c88f82 Fixed a small copy/paste error of the previous commit.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1725 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-04 11:39:36 +00:00
Jens Ayton
4ca8806312 Bunch of cleanup, mostly tabs vs. spaces (yes, I'm silly). Reformatted AIs for consistency, and removed do-nothing handlers. Deleted old sky code.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1724 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-03 15:44:57 +00:00