David Walker
8b7166e4ed
UI: Fix (most) perf issues in Active Scripts ( #498 )
2023-04-30 19:31:29 -04:00
David Walker
aa7facd4ba
NETSCRIPT: Greatly speed up script launching, and remove the limitation unique args per script ( #440 )
...
* Remove the limitation unique args per script
* Internal changes to how runningScripts are stored on the server, to make common usage faster.
2023-04-27 18:21:06 -04:00
omuretsu
37d2f57e53
Fix atExit loop
...
atExit clears itself from the WorkerScript before being executed.
2023-02-23 08:39:47 -05:00
Snarling
6f08aee8f6
Fix zombie scripts ( #203 )
...
Also made installAugmentations synchronously perform reset, but added a short timeout to the callback script launch for balance.
2022-11-08 12:17:34 -05:00
OverlordQ
046ba80935
Update killWorkerScript.ts
...
Remove spurious console debugging line
2022-09-29 08:20:49 -04:00
Snarling
25be5c2990
Remove unused augmentationStats interface
...
All augmentations have all multipliers
2022-09-27 16:20:26 -04:00
Snarling
0e67fbee21
Unify error handling
2022-09-27 15:51:25 -04:00
Snarling
7d37736058
unified errors
2022-09-27 15:35:39 -04:00
Snarling
572c68738f
Unify error handling
2022-09-27 15:34:47 -04:00
Snarling
5798c4c7d3
Unify error handling
2022-09-27 15:32:09 -04:00
Olivier Gagnon
2fc17423ff
Improve the robustness of the tutorial.
2022-09-27 13:35:51 -04:00
Olivier Gagnon
0e569344e7
rm console log
2022-08-23 11:28:40 -04:00
Snarling
32afaae3e2
Improve atExit error message
2022-08-16 20:37:50 -04:00
Snarling
0c358c588e
ns.atExit errors more readable, allows ns functions
2022-08-16 20:16:57 -04:00
Snarling
09322bd54a
lint
2022-08-07 21:56:48 -04:00
Snarling
1af97ec5aa
fix running/worker script comparison
2022-08-07 11:40:42 -04:00
Olivier Gagnon
49f6fda1e4
remove last colon any for now
2022-07-20 01:48:54 -04:00
Olivier Gagnon
4bee746576
rm any
2022-07-15 01:51:30 -04:00
Heikki Aitakangas
a578763b89
Use a dedicated ScriptDeath type to signal script termination instead of WorkerScript
...
Problem with throwing WorkerScript is that the termination signal object can pass
through user code, which permits user to modify that object and all parts of the
game state accessible through it.
2022-04-02 23:28:21 +03:00
Heikki Aitakangas
59da79a427
Refactor netscriptDelay and script kill interaction
...
Store the Promise reject function instead of resolve in WorkerScript, since
it's only used when killing a script that's blocked in delay. And when killing
a script, reject the delay Promise with the WorkerScript as cause.
2022-01-09 02:36:54 +02:00
Olivier Gagnon
5470f9fdc1
wd diff increase
2021-12-03 16:21:35 -05:00
Olivier Gagnon
ef781a0627
plenty of bf
2021-11-15 23:49:33 -05:00
Olivier Gagnon
c34d53bc14
Added recent scripts subpage of active scripts
2021-10-23 16:04:00 -04:00
Olivier Gagnon
dce11f525a
fix a few bug
2021-10-22 15:21:10 -04:00
Olivier Gagnon
3fddb3c9f2
added atExit
2021-10-14 20:13:26 -04:00
Olivier Gagnon
8f13363466
prettier
2021-10-11 16:38:50 -04:00
Olivier Gagnon
f9afff57b2
fix ram miscalc
2021-10-09 15:07:42 -04:00
Olivier Gagnon
bbf3a1d19a
fix server ram recalc
2021-10-08 23:45:54 -04:00
Olivier Gagnon
7d0536a4d2
finish convert to hostname
2021-10-07 17:55:49 -04:00
Olivier Gagnon
a7dfb1a537
more convertion from ip to hostname
2021-10-07 16:56:01 -04:00
Olivier Gagnon
be29481689
unexport AllServers
2021-10-07 16:04:04 -04:00
Olivier Gagnon
06f716c0fa
moved a bunch of files
2021-09-25 14:42:57 -04:00
Olivier Gagnon
dc2bf871cf
all typescript
2021-09-24 21:49:49 -04:00
Olivier Gagnon
61e3959a25
Improve event emitter
2021-09-18 15:44:39 -04:00
Olivier Gagnon
2a13db39c7
fix sleeve memory bug
2021-09-08 23:47:34 -04:00
Olivier Gagnon
a18bdd6afc
prettify, sorry for the big ass commit
2021-09-04 19:09:30 -04:00
Olivier Gagnon
d745150c45
all the lints
2021-05-01 03:17:31 -04:00
Olivier Gagnon
3fad505096
run auto fix lint
2021-04-29 23:52:56 -04:00
danielyxie
042f926700
Minor bugfixes with killing Netscript scripts, and cleaned up text
2019-07-15 21:40:43 -07:00
danielyxie
3a374de210
killWorkerScript() now takes an optional argument for whether to rerenderUI. This is used to batch UI updates on killall()
2019-06-24 22:48:54 -07:00
danielyxie
4cc6437408
Updated WorkerScript-related code for the workerScripts array->map change
2019-06-24 22:48:54 -07:00
danielyxie
3b7f9c9fb0
Fixed issues with Active Scripts UI. Implemented event emitter for Active Scripts UI
2019-05-17 13:41:16 -07:00
danielyxie
c1ec3c5eba
Finished refactoring Active Scripts UI into React/TypeScript. Currently untested
2019-05-16 23:44:59 -07:00
danielyxie
42804b0cd3
Refactored 'workerScripts' array and killWorkerScript() fn to be their own modules in TypeScript
2019-05-15 23:05:36 -07:00