2561 Commits

Author SHA1 Message Date
Jens Ayton
cd760213e7 Energy bombs are now only available in strict mode. Strict mode-compatible equipment is now explicitly flagged instead of using count (and thargon is now strict-compatible).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2960 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-10 22:00:18 +00:00
Eric Walch
67c7f428c5 - demolight position is now already defined on startup.
- fixed crash with boulders and splinters that had a maxFlightspeed of zero.
- fixed rounding problem on the Carrier Market screen for Pays < 100

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2959 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-10 21:13:14 +00:00
Jens Ayton
7fa2001692 Slight variations in colour and specularity on oceans.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2958 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-10 16:06:45 +00:00
Jens Ayton
172c51ce14 Minor build fixes for distance map tool.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2957 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-10 15:38:53 +00:00
Jens Ayton
93e82f18c6 Fixes for debris_role.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2956 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-10 15:26:25 +00:00
Jens Ayton
f270d1d8be OOPlanetTextureGenerator.m no longer uses statics, and noise generation is more cleanly separated out.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2955 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-10 14:56:27 +00:00
Jens Ayton
4dd43e3581 Asteroids and boulders can now specify custom debris roles. Setting a planet texture to a non-existent texture now has no effect instead of producing a black planet.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2954 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-10 12:40:21 +00:00
Nikos Barkas
7763a11733 Fixed menu wrapping (More/Back) in status screen, when more than two equipment pages were available.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2953 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-10 11:52:47 +00:00
Marc
193a5b5c4c - Lights on on/off switch added to shaders, could also be used as a dimmer switch in the future. :) This should finally fix bug #16268: Lighting issues for shaders.
- HUD whitelisting, part 0.5!

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2952 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-10 10:23:20 +00:00
Jens Ayton
5d4a200fbd Ships now have a slight specular effect in shader mode, just as they do in non-shader mode. If specular_map is specified, specular coour and shininess defaults change to nominal maximum values so it's clear something is happening.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2951 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-09 21:35:43 +00:00
Jens Ayton
f1393d68b5 Cleanup; fixed a bug in default shader with normal mapping; less harsh shadows on shaderless new planets.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2950 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-09 20:18:21 +00:00
Jens Ayton
458fa19a7a Advanced cross-platform multiplication sign technology.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2949 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-09 20:16:02 +00:00
Nikos Barkas
9adb2a029b Oops. Too much punctuation.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2948 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-09 19:54:49 +00:00
Nikos Barkas
828597618d A bit of clean up in the up/down menu wrapping code and a fix for incorrect selectable row range in the load commander screen when the list of commanders contained less items than the available gui rows.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2947 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-09 19:51:53 +00:00
Nikos Barkas
669d039e6d Fixed menu navigation sound not playing on menu wraparound.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2946 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-09 17:58:19 +00:00
Nikos Barkas
ccdc7116e7 Added up and down arrow keys wrapping in menus.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2945 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-09 17:33:11 +00:00
Jens Ayton
2f36bdd77b Removed unused variable camera.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2944 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-09 17:33:02 +00:00
Marc
4022a5e9ee Oops! Corrected a warning to display only when appropriate to do so, and some minor tidying up...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2943 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-09 12:36:38 +00:00
Marc
e81b28dc7f Small stuff:
- Debug console's :spawn now uses a proper js method, instead of legacy_addShips.
- the new looser definition of 'thargon' now applies to all equipment methods.
- faster switch between in-flight sunlight & GUI lighting.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2942 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-09 11:34:53 +00:00
Marc
c1cdf6f2df - fix: NPC missiles setup - thargoid missiles to be specific - are now handled better. In particular, if a thargoid missile is not defined fully (both shipdata & equipment plists), 'thargon' will be used instead. Thargoids can now use normal missiles/bombs as well. At the moment, thargon replacement 'equipment' needs TL set for NPC only, and needs to have 'thargon' either at the beginning or at the end of its role name.
- fix: if an NPC uses subentities as their primary weapons, ship.forwardWeapon used to return no weapon at all. It now returns the first forward weapon it finds amongst the ship's subentities. Still not ideal, but better than before.
- player entity: dump bugfix, & minor code cleanup.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2941 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-09 10:01:59 +00:00
Jens Ayton
109898a9f6 Added abs coordinates to FPS stuff.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2940 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-08 19:46:06 +00:00
Marc
1e89df6f05 - new: subtly highlight targeted planet on the short range chart.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2939 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-08 17:48:46 +00:00
Eric Walch
eebf2d7743 - now use light-1 position in VIEW_GUI_DISPLAY to set the lighting correct.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2938 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-08 09:15:27 +00:00
Jens Ayton
d2b156ec5d Systems in G1-G4 which are supposed to have pink or vast oceans now do.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2937 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-07 23:46:33 +00:00
Eric Walch
cce1002a13 Light source now also moves when a script moves the sun to new position.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2936 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-07 17:55:34 +00:00
Marc
4bb82218a5 - rev2933 part II: slightly better handling of preloadPlanetTexturesForSystem exceptions.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2935 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-07 11:41:10 +00:00
Nikos Barkas
9ef21615c0 Mouse control: Pressing Shift+Ctrl+M will now switch to mouse control, with x-axis controlling yaw instead of roll. In this case, roll can be adjusted from keyboard. When in normal mouse control, yaw is adjustable from keyboard and mouse x-axis is assigned to roll as normal. Testing with joystick for ensuring no keyboard overrides are broken may be required.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2934 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-06 16:47:48 +00:00
Marc
6f1d347368 - fix: bypassed a weird preloadPlanetTexturesForSystem / F6 clash: in some cases it would cause setGuiToShortRangeScreen & setGuiToLongRangeScreen to return prematurely. It'll probably need some proper analysis, but in the meantime this fix seems to work!
- minor cleanup.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2933 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-06 14:42:05 +00:00
Marc
da29a09953 - fix: hopefully no more messages from beyond the grave: 'target lost', 'aft view', and 'xxx damaged' - which occasionally would appear on-screen during game over - should now be a thing of the past.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2932 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-04 19:01:20 +00:00
Jens Ayton
bdddd2eccd Minor cleanup.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2931 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-04 10:31:00 +00:00
Marc
cc8fcefa44 - fix for rev2927 part II: zombie culling code fully stopped from interfering with the player, hopefully. Game Over seems to work ok again, including game restarts.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2930 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-04 07:10:26 +00:00
Marc
95b2d2f6ba - Partly reined in the zombie killer code from rev2927, so dying doesn't crash Oolite to the desktop. However, the game doesn't seem to want to restart once the player's dead. More reining in will be needed, will have a look in 10 hours or so, if it hasn't been sorted by then.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2929 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-04 06:55:09 +00:00
Marc
bb5e6e963d - fix: oolite.setScreenBackground() & oolite.setScreenOverlay() from rev2921 ( the latter was called .setScreenForeground() before ) now change background & overlay for as long as the current GUI screen is still active, as originally intended.
- change: mission.runScreen now accepts the 'overlay' parameter (was 'foreground', which isn't recognised anymore).
- fix: report_screens now call the guiScreenChanged() event too.
- new: added the following keys to screenbackgrounds.plist: 'mission_overlay', 'overlay', 'docked_overlay', 'paused_overlay', 'paused_docked_overlay'. If viewing a gui screen when pause was started, and paused_overlay/paused_docked_overlay produce a texture, the overlay texture is displayed instead of the 'Paused - press P' message.
- fix: save game screen now behaves more like other screens - it responds to the various F keys (while still allowing numbers to be typed in), and the [back] & [more] onscreen buttons work when clicked.

- bouns fixes: random bugfix to a deprecated function redirect, and the 'overwrite game?' mini screen now responds to the translated y/n keys instead of hardcoded ascii values.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2928 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-04 06:22:35 +00:00
Jens Ayton
6ba078a08e Added code to avoid probable cause of STATUS_DEAD ghost ships, and moar code to catch them if they appear anyway. (Bug #16624)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2927 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-03 12:46:16 +00:00
Eric Walch
86d0553639 - gave the miniature planet an orientation with the pole at the top right on the F7 display.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2926 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-01 20:30:15 +00:00
Jens Ayton
be99b4b933 Better diagnostics for script failures during load, and some maths fiddling from my holiday.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2925 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-01 16:34:52 +00:00
Eric Walch
f502f30e66 - planets now rotate around their poles, even script added ones
- changing orientation by JS script now correctly changes the rotation axis
- relocated the "stationLaunchedShip" handler
- escorts looking for a new master won't find masters that are busy targeting the escort.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2923 127b21dd-08f5-0310-b4b7-95ae10353056
2010-01-01 11:19:14 +00:00
Marc
6bfe4ef87e - Made the universe a bit more random: simply looking up the witchpoint coordinates doesn't reset the main random number generator any more. Retained predetermined pseudo-randomness inside the system populator.
- Removed some now unnecessary 'extra randomness' code.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2922 127b21dd-08f5-0310-b4b7-95ae10353056
2009-12-31 08:18:20 +00:00
Marc
b30952a7dd - Textures NFS: fastest texture generation yet! It might be a bit difficult to make it faster.
- New oolite.setScreenBackground() & oolite.setScreenForeground() functions. Can be used within gui change events to dynamically override screenbackgrounds.plist settings.
- fixed '( Furry Frogs)' (& similar) display glitch in F7 screen: it now reads '(Furry Frogs)'.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2921 127b21dd-08f5-0310-b4b7-95ae10353056
2009-12-31 04:30:17 +00:00
Marc
6a6e209684 - addShip() and addGroup() without position parameter are now explicitly spawned at the witchpoint, in case the coordinates origin is moved in the future (made heliocentric perhaps?)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2920 127b21dd-08f5-0310-b4b7-95ae10353056
2009-12-30 13:38:00 +00:00
Marc
c4f1b10be1 - corrected mac compile warnings
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2919 127b21dd-08f5-0310-b4b7-95ae10353056
2009-12-30 12:18:28 +00:00
Marc
bb93c112da - yet more go-faster tweaks to the texture generator.
- integrated the previously separate atmosphere generator inside OOPlanetTextureGenerator, to avoid noise generator overheads.
- added NEW_ATMOSPHERE compile-time switch to OOPlanetEntity.

- tidying up of contract market generators: while they're still slow, some dead code was removed.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2918 127b21dd-08f5-0310-b4b7-95ae10353056
2009-12-30 09:17:01 +00:00
Eric Walch
c0b6f16429 - Made the position variable optional in: system.addShips(role : String, count : Number[, position: Vector][, radius: Number]). When only the two first parameters are used, it now does the same as system.legacy_addShips(). This will avoid programming confusion.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2917 127b21dd-08f5-0310-b4b7-95ae10353056
2009-12-29 16:22:42 +00:00
Marc
6670980465 - faster planet rendering.
- minor tweak to pole caps appearance.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2916 127b21dd-08f5-0310-b4b7-95ae10353056
2009-12-28 21:29:44 +00:00
Marc
56d3c67389 - 'fix' for pitch black continents & shadows in windows. Planets & miniature planets now look the same on all platforms.
- Polar caps part I: now generated planets have caps, to hide the texture distortion at the poles. Will need some more work.
- Some speed tweaks to the rendering code.


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2915 127b21dd-08f5-0310-b4b7-95ae10353056
2009-12-28 10:43:42 +00:00
Marc
6f2ee3d132 - Reverted pirates to full nastiness!
- Stopped dumping atmosphere textures for now.
- Harmonised TL to 98 for NPC-only equipment. And reworded comments!
- Windows & linux now don't show detailed planet options when compiled with NEW_PLANETS any more.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2914 127b21dd-08f5-0310-b4b7-95ae10353056
2009-12-27 16:45:11 +00:00
Eric Walch
3c8cee9a0e - Restored STATUS_LAUNCHING for launching ships and its associated "LAUNCHED OKAY" message.
- Floating debris and small objects in front of the dock no longer blocks station launches.
- Launching of escorted ships is no longer interrupted by docking ships. (This prevents having a mother jumping out the system while still having docked escorts)

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2913 127b21dd-08f5-0310-b4b7-95ae10353056
2009-12-27 14:59:39 +00:00
Eric Walch
2f48ec24a2 - The default route for system.addShiptsToRoute() is now withchpoint->station (not witchpoint->planet)
- NPC ships can now be awarded with EQ_SHIELD_BOOSTER  and EQ_SHIELD_ENHANCER by script. (added EQ_SHIELD_ENHANCER as a npc only equipment)

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2912 127b21dd-08f5-0310-b4b7-95ae10353056
2009-12-25 12:09:46 +00:00
Marc
a6ee988be4 - Custom Screens Part III: all messages are displayed above the background picture now, and miniature planets/demo ships don't influence the background colour/dimness any more.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2911 127b21dd-08f5-0310-b4b7-95ae10353056
2009-12-25 09:34:56 +00:00
Marc
562d33d19d Custom Screens Part IIb: updated the mac project file to include the new stuff.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2910 127b21dd-08f5-0310-b4b7-95ae10353056
2009-12-24 22:55:25 +00:00