1612 Commits

Author SHA1 Message Date
Jens Ayton
3c89480647 AI tweaks: added exitAIWithMessage: and messageSelf:, made exitAI alias of exitAIWithMessage: RESTARTED, added optional message parameter to JS Ship.exitAI().
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2044 127b21dd-08f5-0310-b4b7-95ae10353056
2009-02-08 20:39:48 +00:00
Jens Ayton
63a6ba94a3 Enforced use of accessors to get at Entity status property in order to help track down status-is-DOCKED-but-dockedStation-is-nil messages when scripts test whether player is docked; as a side effect, the bug seems to have gone away.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2043 127b21dd-08f5-0310-b4b7-95ae10353056
2009-02-08 15:46:23 +00:00
Jens Ayton
8d9611ea8b Fix four sound hiccoughs when stopping and starting fuel injectors quickly.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2041 127b21dd-08f5-0310-b4b7-95ae10353056
2009-02-07 16:42:13 +00:00
getafix
613165a8ee Fixed wrong default option in Joystick Configuration menu for SDL builds. The default option is always set to the first option of the first option-page.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2040 127b21dd-08f5-0310-b4b7-95ae10353056
2009-02-07 14:05:06 +00:00
Jens Ayton
faf58aa744 Attempt to fix occasional bug where ship remains targeted despite being out of range.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2039 127b21dd-08f5-0310-b4b7-95ae10353056
2009-02-07 13:48:22 +00:00
Jens Ayton
ca68c038a4 JavaScript tweaks: deprecated entity IDs; made Entity.position and Entity.orienation read/write since their read-onliness wasn't really accomplishing anything; added toSource() method to Vector and Quaternion; Vector() and Quaternion() constructors can now be called without the new keyword, allowing the use of call() and apply().
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2038 127b21dd-08f5-0310-b4b7-95ae10353056
2009-02-07 12:53:09 +00:00
Nikos Barkas
2bb7420bbb Fixed some compiler complaints on OOShipGroup.m.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2036 127b21dd-08f5-0310-b4b7-95ae10353056
2009-02-06 22:07:57 +00:00
Jens Ayton
358543e7ed Rearranged GNUmakefile for easier diffing and browsing. (Roughly matches layout of Xcode project, which is useful as long as it's mostly being edited by me.)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2035 127b21dd-08f5-0310-b4b7-95ae10353056
2009-02-06 21:48:50 +00:00
Jens Ayton
b268bed080 Fixed further build breakages.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2034 127b21dd-08f5-0310-b4b7-95ae10353056
2009-02-06 20:39:20 +00:00
Jens Ayton
701b315d3e Fixed build breakages.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2033 127b21dd-08f5-0310-b4b7-95ae10353056
2009-02-06 20:36:21 +00:00
Jens Ayton
18abac1954 Fixed stupid bug preventing JS ShipGroup from working.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2030 127b21dd-08f5-0310-b4b7-95ae10353056
2009-02-06 16:51:39 +00:00
Jens Ayton
12e982fa06 Removed a bunch of temporarily #ifed-out stuff from previous commit.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2029 127b21dd-08f5-0310-b4b7-95ae10353056
2009-02-06 16:42:22 +00:00
Jens Ayton
dbde672d01 "Small" change to group and escort handling, now with explicit group objects. I really must stop making "small" changes. (N.b.: JavaScript ShipGroup currently fails to work in interesting ways.)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2028 127b21dd-08f5-0310-b4b7-95ae10353056
2009-02-06 16:13:36 +00:00
Jens Ayton
1ccfa1ea58 Fix crashing bugs in error reports in JS Timer constructor.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2025 127b21dd-08f5-0310-b4b7-95ae10353056
2009-02-03 17:04:50 +00:00
Jens Ayton
614341a04d Implemented dropMessages: and debugDumpPendingMessages AI commands. Added experimental dealyedReactToAttackAI, and used it in planetPatrolAI.plist (which was previously ignoring missiles).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2022 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-31 14:16:53 +00:00
Jens Ayton
204bb2248d Made logging-echo-to-stderr preference work on all platforms; updated header comment in logcontrol.plist.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2021 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-31 12:51:48 +00:00
Jens Ayton
ec5f7901df Added use-texture-lod-bias preference to work around glitch on ATi systems.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2020 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-31 01:56:18 +00:00
Nikos Barkas
c29d757b29 Fixed an apparent copy/paste error of the previous commit.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2019 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-30 14:01:39 +00:00
Jens Ayton
2a6175402c Added delay parameter to playerStartedJumpCountdown event.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2018 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-30 13:56:05 +00:00
Nikos Barkas
40b74059c2 Scripted asteroids with any primary role now create boulders when destroyed, as long as they contain the role asteroid in their roleset. Scripted boulders with any primary role create splinters when destroyed, as long as they have the role boulder in their roleset.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2016 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-29 17:31:22 +00:00
Jens Ayton
8275ac7cc0 Removed now-pointless logging-show-app-name option.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2015 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-27 21:43:34 +00:00
Jens Ayton
a078fd7812 Oh yeah, r2013 requires a cache flush.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2014 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-25 20:16:53 +00:00
Jens Ayton
475398f489 Full sript whitelisting support. Some script actions and conditions could do with pre-sanitizing.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2013 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-25 20:15:42 +00:00
Jens Ayton
10a6c34355 Removed 1280 bytes of unused junk from ParticleEntity.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2012 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-25 18:14:54 +00:00
cmdrjames
bd5baee02e findEntitiesMatchingPredicate orders by distance from player. for dockEntities we need to get the closest station to the entity, not from the player.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2011 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-25 14:09:54 +00:00
Jens Ayton
f99efad2ea Fixed typo that was causing anisotropic texure filtering to be permanently disabled. Renamed hidden tweak parameter for anisotropic filtering from texture-anisotropy-bias to texture-anisotropy-scale, and changed default value from 1.0 to 0.5.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2010 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-24 12:16:00 +00:00
Nikos Barkas
e4adae07fd Removed debug flag code for procedurally textured planets (not required anymore). Added the ALLOW_PROCEDURAL_PLANETS macro to the SDL builds makefile.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2009 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-22 07:20:25 +00:00
Nikos Barkas
66d376cb90 Fixed a small possible issue with initialization of doProcedurallyTexturedPlanets.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2008 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-21 19:30:34 +00:00
Nikos Barkas
2961b0e723 Read and write the procedurally textured planets option from/to the preferences file, like all other game options.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2007 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-21 18:42:57 +00:00
Nikos Barkas
819c878a0c Made procedurally textured planets a game option. Requires definition of the ALLOW_PROCEDURAL_PLANETS macro. Procedurally textured planets as a debug flag remains by defining the ALLOW_PROCEDURAL_PLANETS_AS_DEBUG_FLAG.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2006 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-21 18:22:43 +00:00
Nikos Barkas
f17187aaf7 Remove unnecessary and probably buggy assignment to nil AI in -launchDefenseShip.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2005 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-19 09:05:11 +00:00
Nikos Barkas
a592352262 Reverted a no-optimization of the previous commit.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2002 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-16 19:14:17 +00:00
Nikos Barkas
39c54d0d88 Some optimizations, especially regarding procedural textures generation for planets.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2001 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-16 17:23:09 +00:00
Jens Ayton
f932b28dc7 Fixed severe Jens-being-an-idiot bug in r1998.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1999 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-16 09:55:28 +00:00
Jens Ayton
164fd3f2e9 Implemented whitelisting for legacy script conditions, and accidentally optimized evaluation while at it. Conditions for world scripts are currently sanitized (i.e. whitelisted, aliases resolved, syntax checked and partially tokenized) on the fly; this will be cached once sanitizing is implemented for actions. Deleted unused class OOLegacyEventHandlerScript.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1998 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-16 01:24:01 +00:00
Jens Ayton
7e258819b9 Implemented shader uniform binding whitelisting.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1997 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-13 08:51:46 +00:00
Jens Ayton
3997e2c835 Merged -[ShipEntity nearestPlanet] and -[ShipEntity nearestLargeBody]. Cleanup. Added uniform bindings to whitelist.plist.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1996 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-12 19:47:11 +00:00
Jens Ayton
7c2ab9b595 It's a good idea to save everything before checking in.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1995 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-12 18:32:43 +00:00
Jens Ayton
46c7fef016 Whitelist fixes based on forum suggestions.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1994 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-12 18:19:27 +00:00
Jens Ayton
b02f108735 Implemented AI validation OXP verifier stage. Removed invalid and unused shuttleAI.plist.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1993 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-12 18:04:02 +00:00
Jens Ayton
3b1db9072d Work towards securing legacy scripts, AIs and shader uniform bindings by whitelisting methods. Game will now print an error message if non-whitelisted methods are used in AIs; in 1.74, this will be changed to dropping non-whitelisted commands from AI actions. My intention is to have similiar mechanisms in place for scripts and uniform bindings by 1.73 release.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1991 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-11 15:53:01 +00:00
cmdrjames
f9c45d3323 Fix for: [ Bug #14011 ] Carriers should have groupID set.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1990 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-11 15:20:01 +00:00
Nikos Barkas
b2e61962a7 Fixed defense police ships launching with wrong AI (bug #015037). Changed NPCShipLaunchedFromStation handler name to stationLaunchedShip.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1986 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-11 14:07:34 +00:00
Nikos Barkas
ca6972e025 Fixed a bug where role probability sets were getting corrupted during creation of mutable copies of themselves, under certain conditions. Fixes the particularly annoying bug of the missing buoys.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1983 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-09 07:10:47 +00:00
Nikos Barkas
cab167d520 Added the station script event handler NPCShipLaunchedFromStation. Changed the primary role of pirate ships launched from stations to defense_ship. Both as per Eric's recommendations.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1982 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-08 13:08:03 +00:00
cmdrjames
fea4c08750 q-mines are now more selective in what they cascade
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1981 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-08 00:07:07 +00:00
Jens Ayton
09e44b5f9c Missing files.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1979 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-07 23:51:58 +00:00
Jens Ayton
14e48aad0e Removed unused port_radius attributes.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1978 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-07 23:49:45 +00:00
Jens Ayton
c434cb64f1 Implemented AI method scanForNearestShipMatchingPredicate:.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1977 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-07 23:27:49 +00:00
Nikos Barkas
7ff394ceaf Slightly improved language for the processor count log header message on the SDL builds.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1975 127b21dd-08f5-0310-b4b7-95ae10353056
2009-01-06 17:26:28 +00:00