73 Commits

Author SHA1 Message Date
cim
9ec115c0f7 Adjust combat target acquisition for escorts, fix bug in ECM assistance 2013-08-23 20:01:38 +01:00
cim
805ca6a238 Adjustments to pirate demand size and threat assessment calculation 2013-08-22 18:38:01 +01:00
cim
2fb4822833 Fix bug in acquireCombatTarget
-DDEBUG_LASER_TYPES compile-time option to allow easier visual inspection of the "autoWeapons" changes
2013-08-19 21:05:56 +01:00
cim
3dc9ef82cc conditionInCombat is called on just about every AI reconsideration; optimise it 2013-08-18 19:15:09 +01:00
cim
637043cd2c Slightly optimise conditionLosingCombat, and fix bug in witchspace flee 2013-08-18 16:36:57 +01:00
cim
f8e88a56b5 Fix bug in friendly/hostile/trading station selection 2013-08-17 20:41:36 +01:00
cim
8fd2a655e4 Prefix internal cache names with oolite_ 2013-08-17 15:19:25 +01:00
cim
6393b99fca Allow fleeing to witchspace in certain situations 2013-08-17 14:39:16 +01:00
cim
ada2aa8a2d Serious efficiency fixes to last few commits
ship.findNearestStation()
2013-08-17 13:26:37 +01:00
cim
13b7c1afff Add station.allegiance (allegiance shipdata) property
Adjust AIs to avoid hostile stations
Adjust pirate AI to not rob the same target twice in a row
2013-08-16 21:44:27 +01:00
cim
ba71ac58b2 Adjust pirate interceptor AI to assist nearby pirates in trouble 2013-08-16 18:00:46 +01:00
cim
b829eef4a2 Police witchpoint patrols AI adjustments 2013-08-12 18:45:09 +01:00
cim
2ad55255f1 System repopulation 2013-08-11 22:56:53 +01:00
cim
03f7fb174b Adjust populator functions to allow easy launching from station or planet
Fix pirate lurk calculations, tune a few other AI behaviours
2013-08-11 20:51:46 +01:00
cim
75d5748bce Bounty hunter leader AI 2013-08-10 08:34:33 +01:00
cim
9edbe45d63 Add pirate interceptor AI, fix some bugs in pirate freighter AI 2013-08-09 18:00:18 +01:00
cim
b00b1bb550 First go at pirateFreighter/Fighter AIs
Fix bug with launching ships with escorts, tidy up functions
New: ship.notifyGroupOfWormhole()
Introduce AI template blocks to compact AI writing even further.
2013-08-09 13:09:54 +01:00
cim
14d4bb555a Adjust AIs
traderAI for courier and smuggler variants
bountyHunterAI to limit patrol length
2013-08-08 16:00:20 +01:00
cim
dc094a9d05 Fix test for player hostility 2013-08-08 11:47:03 +01:00
cim
3a03c81957 Fix combat detection 2013-08-07 22:45:31 +01:00
cim
baaece6a36 Merge branch 'javascript-ai' into steady-state-ecosystem 2013-08-07 17:20:28 +01:00
cim
f8ea9f2cfa Fix another typo 2013-08-07 17:20:02 +01:00
cim
4e1999ccf5 Merge branch 'javascript-ai' into steady-state-ecosystem
Bugfix
2013-08-07 17:10:28 +01:00
cim
0b3ec5b216 Fix infinite loop typo 2013-08-07 17:09:47 +01:00
cim
a8a1327ec5 Slight random delay on AI initialisation to smooth out system population 2013-08-07 17:08:31 +01:00
cim
7bd3e1dd92 Merge branch 'javascript-ai' into steady-state-ecosystem
Conflicts:
	Resources/Scripts/oolite-ailib.js
2013-08-07 16:40:03 +01:00
cim
dfdc3aaa78 More optimisations; move threat assessment code into ObjC 2013-08-07 16:29:24 +01:00
cim
a348ad3827 Optimise some commonly-called functions 2013-08-07 12:27:22 +01:00
cim
6660fa5890 Memory efficiency in handler application 2013-08-07 10:53:44 +01:00
cim
677fed54f4 Start: Redo populator with planned ecosystem groups
Doesn't have new roles yet
Population numbers, etc. are way off what they need to be
Several AIs missing
2013-08-06 18:40:15 +01:00
cim
d8c968cf13 Adjust thargoid threat assessment 2013-08-05 20:23:13 +01:00
cim
1bc115810a Adjust some odds usage 2013-08-05 15:42:26 +01:00
cim
fe5cef097f Initial draft of odds calculations, fix fleeing bugs 2013-08-05 14:14:50 +01:00
cim
555b18017e Try to move JS garbage-collection out of the way of other code.
Probably should force a garbage collection at points where it's likely to be less noticeable.

Future Spidermonkey versions may have a better garbage collector for real-time apps, with the number of HTML5 apps there are, but it looks like we'd have to make significant API changes to use one.
2013-08-04 14:49:52 +01:00
cim
9a497c4f3e Fix bug causing thargoid response routines to be rather slow 2013-08-04 14:20:20 +01:00
cim
c92a70fd0a JSAI: Responses to thargoids
ship.checkScanner now has optional parameter to restrict scan to powered entities
Restore thanks-for-help messages
2013-08-04 12:29:44 +01:00
cim
ba804d0f3d JSAI comms: a couple of utility functions
_setCommunications to set comms variables in bulk
_getCommunicationPersonalities to get configured personalities for a role
2013-08-03 17:47:43 +01:00
cim
75dec8ed31 Improve comms system so that some roles/personalities can be prevented from falling back to generic 2013-08-03 14:55:48 +01:00
cim
2af5c49665 Add more communications events, fix a few bugs
Also adds some temporary comms messages for testing. The problem this exposes with the current implementation of generic.generic (thargoids) needs work.
2013-08-02 22:16:54 +01:00
cim
cda41d73eb Redo JSAI comms methodology
Now much more possible for OXPs to add more comms messages.
Priority system to allow occasional messages on particular topics without overwhelming the comms with constant updates.

Also, fix my text editor using 2 tabs as the indent level for JS...
2013-08-01 22:40:23 +01:00
cim
db62296090 Fix some more bugs in pirateAI cargo demand generation
Also make it possible to do a quick checkScanner which ignores cargo/rocks and replace some internal uses of checkScanner
2013-07-28 12:07:39 +01:00
cim
2394756106 Fix problems with escorts following through wormholes 2013-07-27 21:40:07 +01:00
cim
ca919dab4c Boulders might technically have a bounty but the police shouldn't shoot at them 2013-07-27 18:09:24 +01:00
cim
45812dad88 Fix bugs with thargoid AIs 2013-07-27 15:39:23 +01:00
cim
71713b26a9 Finish reorganisation of priority AI file
Also fix bug in Q-mine fleeing, make sure 'ship' property is read-only.
2013-07-27 12:29:59 +01:00
cim
a7eb0bf1bf JSAI: cleanup
Rename a couple of inconsistent methods
Make the AILib object use private and prototype functions for efficiency
Start reorganising the AILib file to make it easier to edit in future
2013-07-26 18:52:11 +01:00
cim
be388e4fa2 JSAI: Constrictor 2013-07-25 20:09:53 +01:00
cim
be6d167f38 JSAI: Q-bomb
New ship script event: shipWasDumped (opposite of shipWasScooped)
2013-07-25 18:31:14 +01:00
cim
b6b3f227a3 JSAI: Missiles 2013-07-24 21:56:50 +01:00
cim
f128abf309 JSAI: Rock hermit 2013-07-23 22:37:07 +01:00