- made js engine less likely to stall on reset after player's death.
- better feedback in case of load game failure due to js issues.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4665 127b21dd-08f5-0310-b4b7-95ae10353056
- fix: only call frameCallBacks when game is actually running.
- fix: js reset problems should not stall/crash the game anymore. Kept test harness (#if 0-ed) for further tests.
- yep, some code cleanup.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4664 127b21dd-08f5-0310-b4b7-95ae10353056
- Unless explicitly in normal flight or docked, the game actively unpauses itself. This fixes 'frozen' pause mode when in witchspace tunnels.
- Pause buttons weren't working when using the autopilot. Fixed.
- Regression fix: pressing 'fast dock' while on autopilot stops the autopilot, as before.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4663 127b21dd-08f5-0310-b4b7-95ae10353056
- energy now won't get negative on long update intervals with active cloak. e.g. on exiting a wormhole.
(should probably fully switched of during jumping)
- ported player inactive cloak behavior to npc cloak.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4653 127b21dd-08f5-0310-b4b7-95ae10353056
- added some checks when trying to add an escort to a ship via .escortGroup.addShip() - much more testing needed.
- better handling of thargoid edge cases than rev4649
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4652 127b21dd-08f5-0310-b4b7-95ae10353056
* Tentative fix for [ Bug #18322 ] Can't reset javascript.
- Improved log messaging: somewhat clearer 'can't reset javascript' log message, also initial speech synth status now written to the log.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4648 127b21dd-08f5-0310-b4b7-95ae10353056
- Added an AI command 'checkHeatInsulation' (returns either: INSULATION_OK or INSULATION_POOR)
- ship_temperature no longer becomes negative (and stays negative) after a witchspace jump from a hot area. (delta_t can be several seconds on the first update after a jump)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4647 127b21dd-08f5-0310-b4b7-95ae10353056
- Fix: if player stops a jump countdown, correctly report which type of jump was stopped.
- minor code cleanuppery, removed surplus player rating calculation.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4645 127b21dd-08f5-0310-b4b7-95ae10353056
- removed unnecessary extra blank lines.
- when all possible types of cargo are in the hold, show alien items quantity on the manifest screen!
- If more passengers/contracts/missions than can be displayed, show '...' rather than overflowing into the HUD area.
* fix: no passengers / contracts from hacked strict mode savegames.
* fixed a contract_record memleak.
- whitespaces code cleanup.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4641 127b21dd-08f5-0310-b4b7-95ae10353056
Improving the fix would likely require massive refactoring of GuiDisplayGen, with repercussions across the whole game. Further code tweaks postponed to after MNSR.
- also minor cleanup.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4635 127b21dd-08f5-0310-b4b7-95ae10353056
- rev4632 redux: improved isValid fix - shouldn't have any side effects now.
- rev4623 redux: code cleanup, and entities that spawn alloys/scrap metal will still do so when closer to a full universe.
tentative fix: shipScoopedOther() should now fire properly for every scooped event, not just for scripted targets. NB: fix to be rolled back if not working properly.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4634 127b21dd-08f5-0310-b4b7-95ae10353056
- Prevent a freeze when a worldScript tries to resurrects the player on dying because of an energy blast. (same fix as in shipEntity, r4624)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4628 127b21dd-08f5-0310-b4b7-95ae10353056
- Simpler explosion effect when universe is full
- Entities that spawn alloys/scrap metal will still do so without exceeding entities limits.
- system.addShip() & .addGroup() - only ships actually added to the universe are added to the returned array.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4623 127b21dd-08f5-0310-b4b7-95ae10353056
A fuller message is printed on the log, the last AI message is discarded instead of joining the deferred messages stack, and Oolite carries on, rather than crashing horribly.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4621 127b21dd-08f5-0310-b4b7-95ae10353056