Jens Ayton
c82db84119
Fix for positioning of image legends in HUDs. Generalized registration of 'well-known' files in file scanner OXP verifier stage.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1114 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-29 22:12:52 +00:00
Jens Ayton
33588e1dfa
Moved schema schema to Schemata folder.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1113 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-29 14:18:05 +00:00
Jens Ayton
122102af4f
Cleanup; merged some very similar methods; made most HUD parameter reading use OOCollectionExtractors; made most of Universe use OOCollectionExtractors; added some schemata; moved schemata to separate folder. GNUmakefile.postamble has been updated to copy this folder into Resources/, but note that it isn't needed in final builds.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1112 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-29 14:17:30 +00:00
Jens Ayton
069571302d
Wrote a tool for testing plist schemata.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1111 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-28 18:53:04 +00:00
Jens Ayton
1b66670b7d
Added performHyperSpaceExitWithoutReplacing AI method.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1110 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-28 12:40:27 +00:00
Nikos Barkas
4df82ff604
Hopefully fixed the setSpecificPlanetInfo problem that prevented planet data from being updated by scripts.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1109 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-28 10:23:28 +00:00
Jens Ayton
8a6252398d
Redesigned plist verifier to allow recursive definitions. As a bonus, this simplified the code by removing the -normalize... methods. Shipdata.plist entry schema and schema schema now conform to working schema schema. Schema.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1108 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-27 16:33:28 +00:00
Jens Ayton
97fc89995b
Reworked plist schema verifier to use NSError, allowing more informative error messages. Wrote a schema for plist schemas, but it can't currently be used because it has recursive references. (Fix: resolve macros at run time instead of preprocessing.)
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1107 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-27 00:53:44 +00:00
Jens Ayton
40355e0032
Fix for really dumb bug in Validate_Array(); removed redundant, shadowing variable in ErrorWithDictionary().
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1106 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-26 13:52:13 +00:00
Nikos Barkas
67f72d1076
Nitpicking. A spelling correction and a forgotten argument in runVerificationIfRequested.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1105 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-26 09:34:58 +00:00
Jens Ayton
97211c9285
* Fixed backing up of log (OS X only).
...
* Only release plist parsing error messages under OS X (this is a documented requirement that doesn't follow normal usage, and isn't the right thing under GNUstep.)
* Work on shipdata.plist and model verifier stages.
* equipment_price_factor fixes: exploit when low equipment_price_factor doesn't affect refund prices, minimum equipment_price_factor of 0.5.
* Made fuel unsigned.
* Implemented property list schema verifier to simplify implementation of plist checkers.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1104 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-25 16:43:29 +00:00
Jens Ayton
b5d7ca37ee
Work on shipdata.plist verifier stage; started fixing problems it reported with built-in shipdata.plist.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1103 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-21 11:03:32 +00:00
Jens Ayton
9c66ca113c
Added some verifier stages that don't actually do anything yet but make my auto-generated Graphviz file of the dependency graph look much cooler.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1102 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-20 22:44:37 +00:00
Jens Ayton
63f739dfb8
Unbroke OXP verifier.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1101 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-20 22:14:22 +00:00
Jens Ayton
66797761f4
Fixed makefile, hopefully.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1100 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-20 20:02:48 +00:00
Jens Ayton
8898364de2
OXP verifier: architectural changes, added design note, generate Graphviz file instead of text dump to debug dependency graph.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1099 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-20 16:29:40 +00:00
Jens Ayton
ad1b7f8204
Updated GNUmakefile for OXP verifier stuff.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1098 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-19 12:11:38 +00:00
Jens Ayton
de2b1b194c
OXP verifier validates equipment.plist, ignores .svn and CVS directories.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1097 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-19 12:09:01 +00:00
Jens Ayton
5d858a99f2
Added Read Me file detection and demoships.plist validation to OXP verifier.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1096 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-19 11:21:01 +00:00
Jens Ayton
675f2918e5
OXP verifier now checks requires.plist; added infrastructure to handle plists in verifier and fixed dependency management.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1095 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-19 10:44:52 +00:00
Jens Ayton
7780ef63bb
OXP verifier can now identify bad case in standard folder names and config file names. Infrastructure is in place for general case mismatch detection. Fixed Windows build warnings reported by Sotho Tal Ker in forum.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1094 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-18 23:53:51 +00:00
Jens Ayton
9aa1e3947e
Removed lingering bits of OOS code.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1093 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-18 21:21:06 +00:00
Jens Ayton
83c614dce2
Fix for makefile and OXPVerifier.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1092 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-18 21:20:06 +00:00
Jens Ayton
e7c18ce0e8
Beginings of -verify-oxp support. Fix for freeze when like_ships refers to unknown ship. Ship set-up now fails if subentity set-up fails.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1091 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-18 15:42:58 +00:00
Jens Ayton
693bf7ac0d
Removed OOS script support.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1089 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-17 10:48:43 +00:00
Jens Ayton
a3cee138b8
Bumped version number to 1.69.2. Removed support for deprecated shader features. Added caching of GL texture names to avoid expensive glGenTextures()/glDeleteTextures() call. Set texture cache size to something sensible (50 at the moment), but textures are being leaked. Fixed loss-of-precision bug in OOCollectionExtractors' double methods. Added collection extractor methods for vectors, quaternions, and non-negative floats/doubles. Switched on -Werror for OS X build.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1088 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-17 10:42:36 +00:00
Jens Ayton
569b690990
Synching project in preparation for tagging.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1086 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-14 14:36:49 +00:00
Jens Ayton
1f8d82b8ee
Switched to JavaScript implementation of cloaking device mission.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1085 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-14 13:53:50 +00:00
Jens Ayton
9e7a3be090
Fixed problem where docking did not work properly after scooping certain canisters. Fix addresses specific problem and also catches more general case. Also fixed exceptions being thrown (and ignored, but logged) when pressing or releasing a dead key (e.g., accent key) under Mac OS X.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1084 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-14 12:06:49 +00:00
Jens Ayton
3676998564
Files accidentally excluded from r1080.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1082 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-14 09:57:10 +00:00
Jens Ayton
c7b6b5f144
Fixed minor Xcode project glitches
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1078 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-13 14:45:43 +00:00
Jens Ayton
dd79b5dba9
Added some debug code. (OS X Only:) added support for Smart Crash Reports (to all builds) and SCR installation support (test releases only).
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1076 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-13 14:31:07 +00:00
Jens Ayton
839cc06cf0
Fiddled with logging, made OS X debug menu load a little later so that its file lookup is affected by data cache rebuilding.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1075 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-12 15:10:56 +00:00
Jens Ayton
78275bee85
Implemented auto_ai ship attribute. Clamped laser head values for shaders. Tweaked logging to avoid sporadic 'logging not inited' message while quitting.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1074 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-12 11:33:26 +00:00
Nikos Barkas
43cb23d54d
Fixed loadgame screen changing current galaxy seed. Fixed damaged equipment not appearing orange and half priced on the equipment purchase screen. Eliminated warning in ParticleEntity.m. Added TextureStore.m in the compile list, because of linker errors if it is missing.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1073 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-11 15:09:47 +00:00
Jens Ayton
2c03f45ffb
Attempted fix to crash in CollisionRegion led to cascade of other dangling-pointer crashes. Reverted, and brute-forced it by ensuring entities do not die until the end of an update cycle.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1072 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-11 13:13:01 +00:00
Jens Ayton
1cbd1dbd43
There's no particular utility in explicitly excluding limits.h on non-GNUstep systems.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1071 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-09 18:18:47 +00:00
Nikos Barkas
d17d06337c
Various GNUstep port compilation fixes. Some more unsigned-signed comparison fixes for the SDL ports. Replaced bcopy with memmove in GuiDisplayGen.m setTabStops method for maximum portability (MinGW/GCC 3.4.2 does not contain the bcopy function in string.h).
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1070 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-09 18:01:48 +00:00
Jens Ayton
949cd8da04
Load screen now uses file extensions (urgh) to recognize saved games rather than trying to parse every file as a plist. Fixed display of giant question mark for unknown ship types (but it draws in the wrong place in wide windows, which probably also affects long ships).
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1069 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-09 14:58:33 +00:00
Jens Ayton
8a85b1a657
Fixed crash when shooting off frangible subentities. Added notequal operator for legacy scripts. Removed unused enumerant GUI_SCREEN_INVENTORY. Added logging-echo-to-stderr option (OS X only) and changed default for logging-show-app-name to NO on OS X (was already NO for other platforms). Scripts no longer run when paused and on a menu screen.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1068 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-08 22:47:30 +00:00
Jens Ayton
b81b118146
Log messages now go to a file (~/Library/Logs/org.aegidian.oolite/Latest.log) under OS X.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1067 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-08 13:01:09 +00:00
Jens Ayton
32880688f0
Reduced player ship trade-in values by a blanket 75% in an attempt to stop the earning-money-by-buying-similar-ships-repeatedly exploit. This is insufficient! It's still possible to make money this way in some cases.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1066 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-08 09:27:09 +00:00
Jens Ayton
bfc5cae918
Broke queue mechanism out of OOTextureLoader into separate class, partly for neatness and partly because I need it for something else.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1065 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-08 09:04:43 +00:00
Jens Ayton
b7f50b454c
Fixed bug in fix to dockEscorts bug.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1064 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-07 19:45:53 +00:00
Jens Ayton
b3b04859ab
Enabled more warning flags (-Wextra -Wno-unused-parameter -Wno-missing-field-initializers) in OS X build, and fixed several hundred resulting warnings (mostly by using more appropriate types). Bumped version number to 1.69.1. Fixed unable-to-buy-in-shipyard bug. Attempt to fix dockEscorts crash bugs (needs testing). Sundry cleanup, especially of AI and GuiDisplayGen; all exception throws now in standard form. Removed some dead code. Use correct key for Advanced Nav Array if no keyconfig.plist found. Changed OOCollectionExtractors to always clamp integer values to the requested type's range rather than truncating like NSNumber. Removed inconsistently-used and apparently-unneeded NSLock from AI.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1063 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-07 15:44:50 +00:00
Jens Ayton
8a673c223e
Undid previous revision, which was based on faulty implementation.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1062 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-06 15:16:36 +00:00
Jens Ayton
81eec06aea
Changed texture 'type' parameter under Windows to something apparently more optimal. Needs testing -- are colours right? Is performance noticably changed?
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1061 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-06 11:01:14 +00:00
Jens Ayton
f0b1addbeb
Fixed legacy script method awardCredits: always setting the player's balance to 0. Fixed JS script method system.legacyAddShipsWithinRadius() ignoring radius parameter. Made JS methods that use legacy script methods always set the legacy script system script target to ensure consistent behaviour.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1059 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-04 12:12:58 +00:00
Nikos Barkas
edd19a72ff
Fix for the awardCredits bug.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1058 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-04 11:37:55 +00:00
Nikos Barkas
6fd8ba7ee2
Fix (lack of) death_actions.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1057 127b21dd-08f5-0310-b4b7-95ae10353056
2007-07-03 06:12:58 +00:00