378 Commits

Author SHA1 Message Date
cim
27e76f345f Add police lane patrol AI (acts as both lead and wingman) 2013-07-18 23:00:23 +01:00
cim
5db0182765 More fixes to pirate AI. 2013-07-17 22:44:26 +01:00
cim
99a1fac41e More work on the pirate AI
There's still a subtle bug in the logic somewhere that makes them sometimes return to attacking the player after having been paid off but before picking up all the cargo they've been given.
2013-07-16 22:33:42 +01:00
cim
8372845a9f More pirate AI work
Still not finished...
2013-07-15 23:14:47 +01:00
cim
3e9f6741e7 Make a start on pirate AI (doesn't work yet) 2013-07-14 23:11:25 +01:00
cim
b8da00024b Allow trader AI to make distress calls
JS-sourced distress calls don't automatically dump cargo or flee
2013-07-14 21:28:19 +01:00
cim
34ce5ed934 Add trader AI, more updates to AI library
ship.dumpCargo can now take optional number of items to dump (not for player ship)
2013-07-14 19:02:16 +01:00
cim
0e69dae8f4 Add escortAI, update and debug AI library, system.stations property 2013-07-13 23:18:05 +01:00
cim
3cdd7af7b1 Bounty hunter AI in JS 2013-07-13 19:13:30 +01:00
cim
b9bf5619e3 AILib: handle cascade mines, basic group combat, some cleanup 2013-07-13 11:36:28 +01:00
cim
051f51505a New JS methods for ship, update priority lib
ship.checkCourseToDestination()
ship.getSafeCourseToDestination()
2013-07-13 09:53:53 +01:00
cim
8a88c95162 Add a docking behaviour for the priority AI 2013-07-12 23:00:39 +01:00
cim
9847b2fc45 Initial commit of priority-based AI library 2013-07-12 19:44:14 +01:00
cim
e102fbd55c Merge pull request #38 from OoliteProject/javascript-populator
Javascript populator and high-precision coordinate system

Closes #22, implements partially #36 but some tuning of populator and especially repopulator will be needed later
2013-07-11 13:10:09 -07:00
cim
955cca855a Adjust nova sun settings a little 2013-07-10 20:09:16 +01:00
cim
380c9f8f4a Nova and related adjustments
- increase default corona flare
- increase nova corona flare ranges to match
- make nova stars in expansion phase keep high corona flare
- make flare changes in nova mission use frame callback for smooth changes
2013-07-08 19:01:38 +01:00
cim
be589dbc47 Correct variable name in script 2013-07-04 17:02:24 +01:00
cim
d04eba66de Make system.populatorSettings work, cleanup and document 2013-07-03 18:30:57 +01:00
cim
6d12aa177e Make navigation buoys rotate again 2013-07-03 17:43:49 +01:00
cim
2b224685f3 Nova system population
Changes default populator for system, for easiest compatibility with old save games, OXPs with novas, etc.
2013-07-03 17:11:47 +01:00
cim
242002cf1a Add system repopulator
Runs every 20 seconds to keep number of ships in system up
2013-07-03 15:48:25 +01:00
cim
4205ba932c Finish populator named locations (issue #36) 2013-07-03 12:26:08 +01:00
cim
217c618a09 Make sure new populator runs on all branches, replicate (ish) old populator behaviour. 2013-07-01 18:15:57 +01:00
cim
68cbeed17b Start system populator framework.
Adds buoys, nothing else
2013-07-01 13:46:13 +01:00
Chris Morris
6bb8e901f4 Padding on parcel contracts still wasn't quite sufficient for really short trips, which could expire before you got to the station. Add four hours to deadlines.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5678 127b21dd-08f5-0310-b4b7-95ae10353056
2013-05-12 00:23:15 +02:00
Chris Morris
c01af88cab Fix crash on failed mesh load, plus other bugs exposed at same time
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5662 127b21dd-08f5-0310-b4b7-95ae10353056
2013-03-29 13:56:43 +00:00
Nikos Barkas
50895952b2 Version bump to 1.77.1.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5623 127b21dd-08f5-0310-b4b7-95ae10353056
2013-01-21 10:15:06 +00:00
Chris Morris
fa6c66235c Bug fixes:
- use lighting for cloud layer to avoid oddities at low ambient levels
 - include cargo premium and passenger advance in new contracts data
 - check case where escorts could end up scan CLASS_NOT_SET


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5614 127b21dd-08f5-0310-b4b7-95ae10353056
2013-01-12 15:01:27 +00:00
Chris Morris
3d6ceaf44e Adjust missile detonation for better compatibility with 1.76 code
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5604 127b21dd-08f5-0310-b4b7-95ae10353056
2013-01-05 16:28:11 +00:00
Nikos Barkas
afb09f9a7e Here goes another year. Happy 2013. The Reference Sheet and the Readme still need to have year references bumped.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5596 127b21dd-08f5-0310-b4b7-95ae10353056
2012-12-31 09:00:28 +00:00
Chris Morris
2126f420bf Fix bugs found by Eric in contracts APIs
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5595 127b21dd-08f5-0310-b4b7-95ae10353056
2012-12-30 12:53:17 +00:00
Chris Morris
bef181932f Add property clock.adjustedSeconds, use to give better calculation of contract deadlines.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5549 127b21dd-08f5-0310-b4b7-95ae10353056
2012-11-29 10:47:11 +00:00
Chris Morris
8a1a34a492 Avoid parcel contracts which are likely to expire before the player even enters the system.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5547 127b21dd-08f5-0310-b4b7-95ae10353056
2012-11-27 20:08:44 +00:00
Chris Morris
f8e0f48cc8 Increase size of deposit required for contracts to remove defaulting exploit
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5535 127b21dd-08f5-0310-b4b7-95ae10353056
2012-11-25 10:30:08 +00:00
Chris Morris
d497aebc53 Equipment condition scripts now include context of award.
NEU, cloak moved to use condition scripts rather than TL:99 hack
Base equipment now uses condition script to allow OXP writers to deny particular items at their own stations. (e.g. no fuel)


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5514 127b21dd-08f5-0310-b4b7-95ae10353056
2012-11-18 16:33:41 +00:00
Chris Morris
e1c5326e28 Add background/overlay to no-contract summary pages for interfaces.
Add extra safety check to cargo contract generator.


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5501 127b21dd-08f5-0310-b4b7-95ae10353056
2012-11-14 19:57:04 +00:00
Chris Morris
e91e9d688b Fix HUD-losing bug with interface scripts
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5500 127b21dd-08f5-0310-b4b7-95ae10353056
2012-11-14 18:48:30 +00:00
Chris Morris
b8761626c0 mission.exitScreen r/w property (only useful to set from callback)
mission.screenID property (set from screenID property in runScreen)
Built-in interfaces set a screenID 
Update Changelog.


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5485 127b21dd-08f5-0310-b4b7-95ae10353056
2012-11-12 15:01:07 +00:00
Jens Ayton
25fa5730db Added missing world scripts to Xcode project.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5468 127b21dd-08f5-0310-b4b7-95ae10353056
2012-11-02 11:11:11 +00:00
Chris Morris
603a934fa8 Add interfaces for cargo and passenger contracts. Including:
- API to allow OXPs to insert contracts
 - New customsounds entries for contract acceptance and rejection
 - New choicesKey parameter to make choice unselectable
 - More than 5 contracts viewable at once


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5466 127b21dd-08f5-0310-b4b7-95ae10353056
2012-11-01 20:36:08 +00:00
Chris Morris
6c87f5c487 Fix various mission screen / parcels bugs
GUI_SCREEN_INTERFACES now triggers guiScreenChanged
GUI_SCREEN_STATUS now triggers guiScreenWillChangeTo
Parcels script now has an API to add parcels to list
Parcels script now has a variable to set a custom overlay


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5435 127b21dd-08f5-0310-b4b7-95ae10353056
2012-10-19 18:05:03 +00:00
Chris Morris
dae5fa6466 Allow mission screens (while docked) to choose their exit screen.
Update parcels script to exit to the interface screen.


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5433 127b21dd-08f5-0310-b4b7-95ae10353056
2012-10-18 18:26:37 +00:00
Chris Morris
7ecd1f84bf Fix error in parcels scripts.
Document "interfaces" entry in screenbackgrounds.plist


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5426 127b21dd-08f5-0310-b4b7-95ae10353056
2012-10-12 19:13:39 +00:00
Chris Morris
dccd6497bc - Add "allowInterrupt" parameter to mission.runScreen. If set, function keys still work within the mission screen, exiting it *without callback*. Intended mainly to allow interfaces to blend in with the main GUI a little better.
- Applied "allowInterrupt" to parcel contracts.
 - Consequential change to player.ship.targetSystem to allow setting from shipWillLaunchFromStation


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5420 127b21dd-08f5-0310-b4b7-95ae10353056
2012-10-11 21:14:02 +00:00
Chris Morris
aa15e3e1bc Lasers: worsen aim a bit to compensate for beam rate of fire
Parcels: fix contract time calculation, increase effect of reputation on price


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5391 127b21dd-08f5-0310-b4b7-95ae10353056
2012-10-02 20:58:51 +00:00
Chris Morris
a4b9803430 Fix bug in contract summary display, adjust tab stops
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5377 127b21dd-08f5-0310-b4b7-95ae10353056
2012-09-29 10:02:07 +00:00
Chris Morris
478698a2da Fix compiler warning in AI
Fix interstellar bug in parcel contracts (Berlios #18735)


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5345 127b21dd-08f5-0310-b4b7-95ae10353056
2012-09-21 16:56:06 +00:00
Chris Morris
cc769b14b6 Make background for parcel delivery maps come from screenbackgrounds.plist
Add some more (unused in core) entries to screenbackgrounds.plist so that OXPs can define slightly different backgrounds for F6 screens and their missionscreen alternates. 


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5334 127b21dd-08f5-0310-b4b7-95ae10353056
2012-09-17 17:53:08 +00:00
Chris Morris
40c975ffcb Fix potential crash with interfaces.
Remove "far too late" parcel contracts from the list.


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5329 127b21dd-08f5-0310-b4b7-95ae10353056
2012-09-15 20:18:56 +00:00
Chris Morris
266294005b - Add "interfaces" mechanism to stations (F4) to allow "pull" rather than "push" access to mission screens.
- Add parcel deliveries to interfaces so that there's something there.
- Tweak mission screen options to add colour to choices, for parcel consistency with r5320.


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5327 127b21dd-08f5-0310-b4b7-95ae10353056
2012-09-14 19:49:53 +00:00