2791 Commits

Author SHA1 Message Date
Marc
21587b3f4d - new js function: player.ship.awardEquipmentToCurrentPylon(equipmentInfoExpression)
Similar to ship.awardEquipment(), allowed only while a missile/mine is being launched, and replaces the missile/mine currently being launched with the specified missile/mine.
Returns true if the replacement was successful, false otherwise.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3417 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-27 01:28:02 +00:00
Jens Ayton
ee25d0586e Use chnagedScriptHandlers.plist to handle renamed event handlers - in this case, shipTargetDestroyed/shipDestroyedTarget and shipTargetLost/shipLostTarget. This generates appropriate deprecation warnings and all that jazz.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3416 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-26 22:23:52 +00:00
Jens Ayton
4f306f2b3b Moved JS setScreenBackground() and setScreenForeground() into global object. oolite object is for info about application.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3415 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-26 21:42:14 +00:00
Jens Ayton
9ee645891d Removed some scary commented out code that looked as though it should be necessary, but actually isn't.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3414 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-26 21:34:32 +00:00
Jens Ayton
925970619e Cleanup.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3413 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-26 21:01:32 +00:00
Jens Ayton
0e00274072 Material test suite now runs on startup and does not require debug OXP.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3412 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-26 20:58:16 +00:00
Jens Ayton
d0fc6e191b Removed old nameless missile/mine armed messages (not used).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3411 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-26 19:42:12 +00:00
Jens Ayton
9a0347a4b5 Tidying up a bit.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3410 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-26 19:34:40 +00:00
Jens Ayton
e65f1a3cf5 Added EquipmentInfo.allEquipment.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3409 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-26 19:34:27 +00:00
Jens Ayton
badbc4b8c5 Restored old Ship.hasEquipment() behaviour, added deprecation warning.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3408 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-25 19:35:53 +00:00
Jens Ayton
3973891e2b Silenced warning when using missile with no corresponding equipment.plist entry (because that was historically not required).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3407 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-24 20:35:58 +00:00
Jens Ayton
6ee2a9e059 Ship.hasEquipment() now temporarily generates a warning rather than an exception if called with a _DAMAGED key. In this case, it works as before. If the key doesn't have a _DAMAGED suffix, it now checks for the existence of both the damaged and undamaged versions, which is the correct new behaviour.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3406 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-24 20:27:12 +00:00
Jens Ayton
88276c144a Changed error for subentities with zero orientation to a warning, since it's fixable (and in fact already was being fixed).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3405 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-24 19:47:02 +00:00
Jens Ayton
141bd16b1a Actually disabled the thing I said I disabled in 3403.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3404 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-24 19:38:05 +00:00
Jens Ayton
c1bf8843ae Disabled attempt to distiguish between boolean and integer NSNumbers when converting to JS values, because that distinction cannot be made in GNUstep.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3403 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-24 19:25:58 +00:00
Jens Ayton
944c001ff2 Fixed cascading error for broken old-style subentity declaration.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3402 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-24 19:19:58 +00:00
Darren Salt
5f76bbccb3 Fix up GeForce 5xxx matching for correctness (in case of 5-digit numbers).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3401 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-23 22:30:26 +00:00
Darren Salt
54f1e8c304 Oops. Missing backslash.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3400 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-23 22:29:02 +00:00
Darren Salt
5bd3ce8aba Fix up Intel 8xx/9xx matching.
Remove a duplicate \d; require a word break before matching an 8 or a 9.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3399 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-23 22:11:39 +00:00
Darren Salt
64907426fd Tighten Radeon R300 matching to exclude R4xx while still including RS4xx and RC4xx.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3398 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-23 22:08:14 +00:00
Jens Ayton
9258c94c9e Made a note of the fact that -[OOMesh calculateVertexTangents] makes no sense whatsoever.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3397 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-22 15:50:26 +00:00
Nikos Barkas
f2c21e455d Lasers are shown at the end of the equipment list again, like they have always had.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3396 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-22 15:45:37 +00:00
Jens Ayton
b2c11bf6f2 Fixed nasty, nasty uninitialized variable in r3391.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3395 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-22 15:00:15 +00:00
Jens Ayton
e548b72068 Use correct face area calculation when generating tangents for model with explicit normals but implicit tangents. Keep broken calculcation for normal-smoothing for bugwards-compatibility with existing models.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3394 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-22 14:49:18 +00:00
Darren Salt
e0edf2e740 Extend Radeon R3xx detection.
* Match R400 series, RC410, RS480; AIUI, same shader capabilities as R3xx.
* No point in matching on "Tungsten", which is only relevant for Intel hw.
* Disable line/point anti-aliasing when using Mesa (done in software).
* Handle classic Mesa and Gallium3D separately for clarity (for now) and
  for future divergence wrt anti-aliasing.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3393 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-21 22:36:34 +00:00
Jens Ayton
58fa60d9df Made gpu-settings.plist regexps more general, and added ATI R300 family.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3392 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-21 20:27:06 +00:00
Jens Ayton
8f66eb050b Refactored default material set-up for comprehensibility and graceful degradation. (Bug #17175)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3391 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-21 15:52:59 +00:00
Jens Ayton
dd205c915b Fixed a shader error when using normal map but no specular lighting at all. Odd thing to do, but valid.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3390 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-21 15:01:48 +00:00
Jens Ayton
852bcd9b4a Added check for GL_MAX_TEXTURE_IMAGE_UNITS_ARB, and exposed GL_MAX_TEXTURE_IMAGE_UNITS_ARB and GL_MAX_TEXTURE_UNITS_ARB to JS (pertains to bug #17175)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3389 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-21 12:35:57 +00:00
Jens Ayton
c34d78f428 Introduced specular_modulate_color and emission_modulate_color as per bug #17175, and renamed illumination_color to illumination_modulate_color to match (but not diffuse_color or ambient_color, as these can still be either overall colours or modulating colours depending on whether there's a diffuse map).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3388 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-20 19:41:49 +00:00
Jens Ayton
f74836f3b5 An OXP can now cause the debug console object to be created even if the debug OXP is not loaded (basically a special case for the material test suite).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3387 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-20 19:03:43 +00:00
Jens Ayton
ef28620dca More explicit handling of support for systems without texture combiners.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3386 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-20 16:50:10 +00:00
Nikos Barkas
a7a18ecbcc Fixed texture combiners crash on systems with OpenGL version less than 1.3.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3385 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-20 14:03:07 +00:00
Eric Walch
6bd4f90ccd Fixed an addShip() positioning bug introduced with 3375
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3384 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-19 21:24:49 +00:00
Jens Ayton
f0c0738233 Relaxed requirements for JS ship.hasEquipment()/canAwardEquipment(): they now return false instead of throwing an exception when passed a non-existent equipment key, unless it ends with _DAMAGED.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3383 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-19 20:43:14 +00:00
Nikos Barkas
0842e943ee - Fixed crash in SDL builds, where unpausing the game after a hyperspace jump would segfault when GUI backgrounds were installed.
- Added to the source tree the source files that have to be changed for building the libespeak.dll v1.43.03 for Oolite Windows.
- Updated documentation on external libraries source code changes to include libespeak.dll and instructions for building it.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3380 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-19 16:50:41 +00:00
Darren Salt
801be96415 Correctly quote command-line arguments.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3379 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-19 16:30:30 +00:00
getafix
659714282e deb packages: Updated oolite wrapper script to support command line arguments.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3378 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-19 10:06:32 +00:00
Nikos Barkas
70409b30e8 Unbreakage.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3377 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-19 06:11:58 +00:00
Marc
ae0d0a449b - Corona tweaks, including a fix for Bug #17172 (sun corona was too random)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3376 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-19 03:54:28 +00:00
Jens Ayton
74d35d7299 -[OOCharacter basicSetUp] now restores both of the random seeds it clobbers. This fixes positioning of spawned ships. (Bug #17173)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3375 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-18 23:25:53 +00:00
Nikos Barkas
2d158ebac9 Fixed crash when attempting to load a savegame with an OXP ship not in AddOns at the time of load.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3374 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-18 22:19:25 +00:00
Jens Ayton
7c090fae60 Turned off OOCombinedEmissionMapGenerator debug dumps. Look at all the pretty pictures!
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3373 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-18 21:05:29 +00:00
Jens Ayton
a7d4e9d548 Fixed leak of demo2 screen ships (bug #17168).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3372 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-18 19:54:08 +00:00
Jens Ayton
74c2795425 Removed "in a future version" messages from legacy script whitelist. All non-whitelisted methods are now rejected. (Previously, non-whitelisted action methods were allowed, but non-whitelisted query methods were dropped, with two conflicting log messages.)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3371 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-18 19:34:40 +00:00
Jens Ayton
3df2a3e3dd Implemented HUD dial whitelisting.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3370 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-18 19:26:26 +00:00
Jens Ayton
62456b09f6 The following JS ship methods now take either an EquipmentInfo or a valid equipment identifier (not including _DAMAGED identifiers), described as equipmentInfoExpressions: awardEquipment(), canAwardEquipment(), equipmentStatus(), hasEquipment(), removeEquipment(), setEquipmentStatus().
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3369 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-18 18:39:33 +00:00
Jens Ayton
9b7b467cc1 Added a backdrop to material test suite, so that black cubes actually show up. Also found a way to break HUD drawing code, and fixed it.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3368 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-18 18:12:40 +00:00
Jens Ayton
ec16b0742b Fixed full-screen startup problem introduced in r3325, and fixed the horrible voodoo code causing it.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3367 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-18 16:40:34 +00:00
Jens Ayton
5f84c63462 Fixed some scaling and conversion bugs in OOCombinedEmissionMapGenerator. Mac DebugOXP New Ship menu item now works like :spawn macro.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3366 127b21dd-08f5-0310-b4b7-95ae10353056
2010-05-18 16:28:05 +00:00