5000 Commits

Author SHA1 Message Date
cim
3543686aad Fix populator bug, add new LANE_WPS region 2013-08-06 18:39:00 +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
c8a9435de9 ship.isTurret property 2013-08-04 23:01:38 +01:00
cim
67c8f40349 JS garbage collection
Force garbage collection at more points where a short pause is okay. Log garbage collections called in update() for tracking purposes. So far they don't seem to have been needed with the additional planned ones.
2013-08-04 20:37:08 +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
a6902cf007 Increase MAX_SCAN_NUMBER to 32.
Most of the time it makes no difference, but in a busy situation it stops ships getting overwhelmed by a cloud of cargo pods and missing the action.
2013-08-04 12:28:41 +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
202ff3e418 JSAI: the shuttle AI is fine for escape pods too 2013-07-24 18:06:04 +01:00
cim
f128abf309 JSAI: Rock hermit 2013-07-23 22:37:07 +01:00
cim
9aa62fc2bd JSAI: main station AI 2013-07-23 21:21:49 +01:00
cim
ea972edabc Bugfix: entity.isInSpace should be true for stations (STATUS_ACTIVE) 2013-07-23 20:11:57 +01:00
cim
e880d8c12c JSAI: defense ship AIs 2013-07-22 23:15:17 +01:00
cim
89b1c76eb7 Fix bug in JSAI docking routine 2013-07-22 21:30:10 +01:00
cim
363d7bbeb2 JSAI: Miner/Scavenger AI (the two are very similar, so one AI can do both) 2013-07-22 21:24:27 +01:00
cim
968eace6db JSAI: shuttle AI 2013-07-21 23:25:41 +01:00
cim
228344c540 JSAIs for Thargoids and Thargons.
Thargons now act as escorts for the warships.
2013-07-21 11:10:47 +01:00
cim
83a7ac49d7 New ship property ship.AIScriptWakeTime for event aiAwoken
Replaces the need for hundreds of timers.
2013-07-20 12:20:41 +01:00
cim
3cbeed8d11 Fix police station patrol behaviour, a few other minor bugs 2013-07-20 09:14:58 +01:00
cim
a4ae37c849 Change autoAIs for more testing what we have so far.
Set trader, pirate, escort, hunter, police AIs to JS by default
2013-07-19 22:51:43 +01:00
cim
5ce15389d6 Adjust waypoint setting methodology
New script method: ship.patrolReportIn(station)
2013-07-19 20:18:53 +01:00
cim
1811b2a3f7 Merge branch 'master' of github.com:OoliteProject/oolite into javascript-ai 2013-07-18 23:01:57 +01:00
cim
27e76f345f Add police lane patrol AI (acts as both lead and wingman) 2013-07-18 23:00:23 +01:00
cim
7c6f7b9a6e New JS property: ship.markedForFines (bool, ro) 2013-07-18 20:55:05 +01:00
cim
5db0182765 More fixes to pirate AI. 2013-07-17 22:44:26 +01:00
cim
9f06814022 Fix various crashes when 'null' is the ship given to a ship method 2013-07-17 20:22:36 +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
51651f2475 As previous: don't be scared of fleeing ships 2013-07-16 18:29:46 +01:00
cim
73db0d2752 High-accuracy AIs bugfix
Should only attempt to dodge laser fire if the aggressor actually has a weapon mounted there.
2013-07-16 18:23:45 +01:00
cim
8372845a9f More pirate AI work
Still not finished...
2013-07-15 23:14:47 +01:00
Jens Ayton
f437d81a12 Remove some unused things 2013-07-15 21:12:42 +02:00
Jens Ayton
87501d8e16 Bump Mac-specific 2013-07-15 20:59:49 +02:00
Jens Ayton
34588377cd Sign hygiene 2013-07-15 20:58:49 +02:00
Jens Ayton
0a0885d91f Fix .gitignore excluding src/Core on case-insensitive file systems 2013-07-15 20:58:01 +02:00
Jens Ayton
f7a664f18c Add OOHPVector and OOJSPopulatorDefinition to Xcode project 2013-07-15 20:56:07 +02:00