388 Commits

Author SHA1 Message Date
cim
ce2d77557d Make sure pirate escorts have a bounty, fix initial pirate cargo 2013-08-14 21:10:29 +01:00
cim
02d6dd2dca Use correct message class for populator debug logs 2013-08-13 21:18:44 +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
2da8ada948 Adjust populator functions for bounty hunters 2013-08-11 13:01:31 +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
bcc93120d7 Add smugglers to pirate targets, give m/h hunters a pack 2013-08-08 16:21:21 +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
4018ab2b73 Tune populator numbers a little more 2013-08-08 12:53:49 +01:00
cim
dc094a9d05 Fix test for player hostility 2013-08-08 11:47:03 +01:00
cim
fb8ff90cc2 Fix combat detection 2013-08-07 22:45:54 +01:00
cim
3a03c81957 Fix combat detection 2013-08-07 22:45:31 +01:00
cim
6508a52e08 Position ships for pirate freighter remote, correct role name 2013-08-07 22:19:05 +01:00
cim
ab0e7db465 Add new roles to shipdata 2013-08-07 21:08:09 +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
0642f0468c Tune the numbers a little bit. 2013-08-06 21:27:59 +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
d169c64312 Adjust nova mission to use populator
Removes normal traffic from the system when player enters, making it less likely they will escape by following a wormhole.
2013-08-01 17:53:40 +01:00
cim
d3ab9e05d7 Modify mission scripts to use populator to add mission ships 2013-07-31 21:29:29 +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