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