Jens Ayton
c468eddf24
Planet mesh generator: now correctly wraps textures on all seam triangles.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2774 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-21 16:50:16 +00:00
Marc
9de6d2a726
- aargh fix!
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2773 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-21 02:37:00 +00:00
Marc
84c6ee6694
The last mission fun before the weekend!
...
- fix: mission.runScreen is now disabled before game starts (i.e. during demo screens).
- change: mission.runScreen({message'blah'}) is now shorthand for mission.runScreen({message'blah'},null). Similarly, mission.runScreen() is now shorthand for the admittedly not very useful mission.runScreen({},null)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2772 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-20 20:52:12 +00:00
Nikos Barkas
9f90463e66
Eliminated a 'control reaches end of non-void function' warning.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2771 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-20 17:23:09 +00:00
Marc
bf23119d18
- mission.setInstructionsKey fix (the global prefix implementation would not be able to tell which oxp it was called from)
...
- yet another windows DEP fix. There's something inside OOJSScript that windows doesn't like.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2770 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-20 15:27:11 +00:00
Jens Ayton
f8cba46d16
Removed obsolete files and test data accidentally included in r2767.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2768 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-20 15:22:50 +00:00
Jens Ayton
c8445aeb9e
Work on offline generation of data arrays for new planets.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2767 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-20 14:49:24 +00:00
getafix
ba30324d99
Corrected erroneous SVGDumpAppendBaseContour macro definition.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2766 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-20 13:37:41 +00:00
Marc
195d285eec
- fix: mission screens without either title or titleKey are displayed again, including mission.runScreen({}, null);
...
- fix: enabled running new mission screens from inside mission screen callbacks.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2765 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-20 02:51:53 +00:00
Marc
1f7f3c654c
- slightly better handling of case insensitive manifest properties (less indiscriminate, anyway)
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2764 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-19 11:17:40 +00:00
Marc
1731365c11
Yet some more mission fixes
...
- ensure the callback function is called just the once.
- mission.choice is now wiped quietly before running the callback function. the callback argument still reflects the pre-wipe mission.choice
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2763 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-19 05:56:49 +00:00
Marc
3a92c0f7d1
- minor tweaks to missions, reworded one nova screen.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2762 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-19 02:31:04 +00:00
Marc
9ee6b481c4
- manifest['foo'] is now case insensitive:manifest['food'] = manifest['Food'] = manifest['FOOD']
...
- corrected a last-minute snafu with mission screen callbacks & status screen. Should stop doing this when sleepy!
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2761 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-19 00:53:07 +00:00
Marc
116d83f955
missionScreen RFC part III
...
* yet more RFC bugfixes, there were quite a few not-quite-right bits, I _think_ I got all of them now...
* added titleKey as a mission.runScreen parameter, for use with missiontext.plist
* updated all internal missions to use the new mission API, some mission keys normalisation.
* fully tested & fixed both nova & trumbles missions.
* proper fix: no save when the sun is going nova!
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2759 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-18 21:58:32 +00:00
Marc
f7affbc01a
MissionScreen RFC part II:
...
* missionScreenOpportunity now fires up after loading a savegame & at startup, as well as after docking.
* fixed a mission callback related crash.
* fixed clash with fines and mission screens.
* name change for new mission.runScreen parameter shipModel: is now showModel.
* the foreground & background images now display correctly in relation to the spinning demo ship.
- code cleanup
- added missing keys to the shipdata entry schema
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2758 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-17 18:27:11 +00:00
Jens Ayton
388c3bff90
Moved some documentation hidden in the depths of src/ into a Doc/, to increase the chance of someone noticing them.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2756 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-17 00:05:49 +00:00
Jens Ayton
31ae47c6f4
Fix for bogus is_template warning in verifier. Changed scanClass to scan_class in shipdata.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2755 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-16 23:53:13 +00:00
Jens Ayton
08747ab817
Added scan_class to shipdataEntrySchema.plist.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2754 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-16 21:25:20 +00:00
Nikos Barkas
5bc4a8c647
Mouse control can now be enabled also in a window by setting the super secret key 'mouse-control-in-windowed-mode' to YES in the preferences file.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2752 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-15 12:07:59 +00:00
Marc
7bb627586f
* New mission.setInstructions to go with mission.setInstructionsKey, analogous to the mission.addText / mission.addTextKey pair.
...
* mission RFC part I. Initial implementation of the changes proposed in the forum. Will need tweaking.
* added new parameters to mission: title & foregroundImage (identical to backgroundImage atm)
* assorted code tidying up.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2750 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-15 00:24:23 +00:00
Nikos Barkas
59baa235ce
HUD hiding is no more a debug flag, but a proper feature. While in pause, 'o' toggles it on/off. Added visibility of HUD hidenness to scripts via the player.ship.hudHidden read/write boolean property.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2749 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-15 00:12:09 +00:00
Eric Walch
9d963a50b1
- Limited wormhole size in nova systems.
...
- Added scoop positions to all ships that can have fuel scoops.
- Raised asteroid and boulder density to 5. (To discourage boulder ramming)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2748 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-14 22:40:43 +00:00
Nikos Barkas
e1c1924e9e
Build configuration changes to align the SDL builds with the Mac equivalents. Added the pkg-win-deployment configuration for stable releases. The deployment settings are forced, while the test release ones are adjustable. Tested successfully on Windows for the test releae, deployment, snapshot and debug configurations. Linux testing still needed.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2746 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-14 16:18:23 +00:00
Jens Ayton
8d95596e87
Added matrix comparison functions. Removed Blocks from planettool; it is now plain C and should be buildable cross-platform with some fiddling. If you want to fiddle, talk to me.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2744 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-14 14:47:16 +00:00
Jens Ayton
5dd0443728
Refactored AI GraphViz stuff for slightly better legibility and put it in its own file.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2743 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-14 14:29:42 +00:00
Jens Ayton
50a1bca3ef
Cleanup of OOPolygonSprite SVG stuff.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2742 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-14 13:45:48 +00:00
Eric Walch
8119a48c8b
- Corrected bug in the 2 second AI delay for station launches
...
- Corrected escortAI.plist so it now follows their mother better after a station launch
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2741 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-14 13:19:26 +00:00
Eric Walch
d7c3922fba
- Corrected delay in: sendAllShipsAway.
...
- Corrected key for hostile messages in dockingClearance.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2740 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-12 21:25:32 +00:00
Jens Ayton
31a5c76622
sunSkimExitAI fixes: ATTACK_SHIP no longer tries to go to non-existent state HEAD_AWAY_FROM_PLANET on victory; it and FLEE instead go to a state that chooses between restarting and exiting based on current energy level.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2739 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-12 18:15:27 +00:00
Jens Ayton
8bb929b658
AI GraphViz handles set/switchAITo: followed by setStateTo:; added an entry for DEBUG_GRAPHVIZ to log header.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2738 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-12 17:32:42 +00:00
Jens Ayton
d76d50eb1d
minerAI now goes to FLEE rather than non-existing ATTACK_SHIP if attacked in DOCK_WITH_STATION.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2737 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-12 17:18:56 +00:00
Jens Ayton
bd634a4237
Excluded BEHAVIOUR_ATTACK_MINING_TARGET from hasHostileTarget.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2736 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-12 16:23:01 +00:00
Jens Ayton
578a0f351f
AI graphing now handles setAITo: and switchAITo:. TODO: handle returns from setAITo: and hyperspace. Also removed some redundant AI states/handers.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2735 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-12 12:09:54 +00:00
Jens Ayton
07902c2b70
Whitelisted setPrimaryRole: for AIs, and made setStateTo: a normal method.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2734 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-11 15:24:34 +00:00
Nikos Barkas
d176e1cf90
Fixed some breakage in the Windows builds regarding debug Graphviz. It now builds both with and without DEBUG_GRAPHVIZ defined.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2733 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-11 09:10:26 +00:00
Jens Ayton
8435a65b87
Partial implementation of AI graphing tool - pref key: generate-ai-graphviz. Todo: handle setAI: and switchAI:, check for more terminal cases.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2732 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-11 01:22:48 +00:00
Nikos Barkas
7bb682f245
Fixed crash when scanner_display_color1/2 were being set from shipdata.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2731 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-09 09:32:44 +00:00
Nikos Barkas
0de9646ad2
Fixed build warning from previous commit.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2730 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-08 17:59:29 +00:00
Nikos Barkas
33a6ec7f39
OXPs authors can now include notification messages in the OXPMessages.plist file. These messages are read are startup and a notification message appears on the rotating Cobra screen. If less than 5 OXPs are found with messages, these are displayed as well. The OXPMessages.plist is an array of strings that are copied to Latest.log. This way, OXP creators can notify users of OXPs being Works in Progress or pass other information if necessary.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2729 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-08 13:09:09 +00:00
Michael Werle
a64ef42e75
Fixed bug where 'enter' key closing a Mission Screen would get processed by the Status Screen. Removed now unused variable "enterSelectKeyPressed".
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2728 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-08 12:34:21 +00:00
Eric Walch
43b41441cb
Asking docking permission for stations/carriers that don't require permission now does send a DOCKING_REQUESTED / DOCKING_COMPLETE message to the ships AI to react on.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2727 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-07 19:56:01 +00:00
Eric Walch
fd2789fa7a
Added two new properties to ship:
...
* maxThrust (read-only)
* thrust (read/write for npc, read-only for player and clamped between 0 and maxThrust)
Fixed bug with ships flying out of range when attacking with rear military laser.
Changed miner and scavenger AI to not get lost when flying out of a station scanner range.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2726 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-07 11:21:04 +00:00
Nikos Barkas
bde26b04df
Fixed incorrect display of distance and time on Advanced Navigational Array when unreachable systems were targeted.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2725 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-06 16:32:58 +00:00
Marc
89df01f9bb
* fix: js timers should now stop and be garbage collected when the script they're attached to goes out of scope.
...
* fix: timer related windows DEP crashes should now be a thing of the past. Tested with timer-crash-test oxp & windows XP Data Execution Prevention turned on.
Both fixes seem fine, but we'll need to test them thoroughly.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2724 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-06 03:14:32 +00:00
Nikos Barkas
bd42fdb9ef
Added pv4 to contributors' list.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2723 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-05 13:02:29 +00:00
Gary Wong
7784ba69fe
Fixed silly arithmetic error (causing incorrect x_offset on wide
...
aspect ratios) in rev 2719.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2722 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-05 03:35:09 +00:00
Nikos Barkas
426190ca12
Fixed build warnings.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2721 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-04 21:31:01 +00:00
Marc
03a1728895
- Applied pv4's patch to trunk, with modifications.
...
* ship.target = null now works as expected.
* adding trumbles to a ship has now got variable chance of working, depending on how many trumbles are already on board. Always works with 0 or very few trumbles.
- more cleanup: removed a windows compile warning, added a possible freeBSD bugfix, updated a js comment & autoindented Universe.m
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2720 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-04 20:57:11 +00:00
Gary Wong
b5315d49e8
Added "x_origin" and "y_origin" keys to HUD dictionaries, to allow
...
HUDs to specify dial and legend positions with respect to arbitrary
parts of the screen.
Modified the default HUD to use "y_origin" so that the appropriate
parts of the display are aligned with the screen bottom, for any
aspect ratio.
(Co-ordinate #defines in HeadUpDisplay.h have NOT yet been updated, for
compatibility with any custom HUDs which might rely on them.)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2719 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-03 17:36:18 +00:00
Eric Walch
47e64561d5
escorts added over the escort-role in shipdata.plist now also follow the auto_ai setting.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2718 127b21dd-08f5-0310-b4b7-95ae10353056
2009-11-03 17:14:52 +00:00