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
cim
9aa62fc2bd
JSAI: main station AI
2013-07-23 21:21:49 +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
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