Commit Graph

81 Commits

Author SHA1 Message Date
Zoë Hoekstra
ec81fb60c3
Create ports on demand. Increase max to infinity. 2022-09-01 16:13:10 +02:00
Snarling
ef1f376c09 format, lint, remove unused "running" property on ws 2022-08-27 22:32:48 -04:00
Snarling
6f36e9cdc5 Fix/Unify NS1 wrapper 2022-08-27 20:56:12 -04:00
Olivier Gagnon
5f41226c21 Fix scp and write in ns1 2022-08-26 17:49:27 -04:00
Snarling
648b7e84bf Some cleanup 2022-08-09 18:09:26 -04:00
Snarling
208495e269 Initial commit 2022-08-09 18:09:24 -04:00
Snarling
3a2e676c9b Move error functionality to new wrapper 2022-08-09 18:09:24 -04:00
Olivier Gagnon
2d522ea1e6 allbuild commit e9254edf 2022-07-21 15:09:55 -04:00
Olivier Gagnon
1b90b42881 rm more any 2022-07-18 02:28:21 -04:00
Olivier Gagnon
5b8eea66d4 rm some any 2022-07-15 23:34:27 -04:00
Olivier Gagnon
59e55de9ca fix all function being async lmao 2022-07-15 02:11:06 -04:00
Olivier Gagnon
4bee746576 rm any 2022-07-15 01:51:30 -04:00
Snarling
99a0337a14 Dirty fix for available ram float errors
1MB added to available ram when checking if available is sufficient. All actual ram values in game are a multiple of 50MB so an extra 1MB can't ever allow additional script load to be ran.
2022-05-06 08:56:19 -04:00
Olivier Gagnon
a11e2868df fmt 2022-04-11 21:45:55 -04:00
hydroflame
a17b81dff3
Merge pull request #2925 from Ornedan/necro-script-fix
Necro script fix
2022-04-11 21:36:07 -04:00
TheMas3212
433873c5e2
run formater 2022-04-12 08:27:53 +10:00
TheMas3212
8d5632eb3e
fix netscript wrapper to wrap all functions, not just the top level 2022-04-12 08:20:34 +10:00
Olivier Gagnon
48f80f25d6 fmt and lint 2022-04-06 19:30:08 -04:00
Heikki Aitakangas
a6710eb3e5 No need to return WorkerScript from startNetscript*Script promises, their only calling function already has the correct object in a variable 2022-04-02 23:28:23 +03:00
Heikki Aitakangas
cbd59975d4 makeRuntimeRejectMsg expects the 'msg' to be string-like 2022-04-02 23:28:23 +03: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
hydroflame
8506dcfed5
Merge pull request #3115 from ApamNapat/remove_unreachable_code
Removed unreachable code
2022-03-20 21:46:23 -04:00
BB
9c9550ad42 Removed unreachable code 2022-03-20 19:33:10 +01:00
Master-Guy
7ec1ced729
dialogBox+stop on NS1 async function throw 2022-03-19 18:21:18 +01:00
BB
4eb59ac70c Turned on no-useless-concat lint and fixed it in code 2022-03-16 20:44:52 +01:00
Olivier Gagnon
d0a44a6088 change asleep 2022-01-18 18:57:43 -05:00
Olivier Gagnon
05cbc25a8f 1.4 2022-01-18 14:03:24 -05:00
nickofolas
ab841f7530 Refactor for ... in loops 2022-01-15 18:45:03 -06:00
TheMas3212
440d9e4978
Clear Netscript ports on augment install / soft reset / bitnode change 2022-01-09 13:43:52 +11:00
Martin Fournier
71487337cb Check if running script is null before offlineProd 2022-01-08 09:13:25 -05:00
Olivier Gagnon
c59a267437 change sf4 2022-01-04 19:09:34 -05:00
Olivier Gagnon
383e56e9c8 floor thread count 2021-12-29 02:51:41 -05:00
Hedrauta
8aae2c9b7f fix typo for #2206 2021-12-28 03:54:04 +01:00
Martin Fournier
9ce8bdd29b Add dialog when app is unresponsive to reload
Checks the electron event 'unresponsive' and triggers a reload / cancel
dialog. Allows all scripts to be killed, checked by default.
Also adds a warning to the terminal when noScript has been executed.
2021-12-22 15:14:03 -05:00
Olivier Gagnon
e9886cc6bc fix uncaught promise 2021-12-20 13:57:07 -05:00
Olivier Gagnon
5b38ee3cfb fix undying script bug 2021-12-14 19:39:55 -05:00
Olivier Gagnon
4d80813707 bugfix 2021-12-14 15:56:11 -05:00
Olivier Gagnon
de9fb24156 Fix scripts dying of weird causes. 2021-12-13 22:26:22 -05:00
Olivier Gagnon
7d6947ee01 fix unknown script die for known reason 2021-12-12 14:57:44 -05:00
Olivier Gagnon
dea8abef1d better error message for bad args 2021-12-12 13:30:28 -05:00
Olivier Gagnon
d4ebc46a19 merge dev 2021-12-03 15:35:45 -05:00
Olivier Gagnon
c05518e162 workerscript log takes a function now, hopefully this will increase performance. 2021-11-26 18:30:58 -05:00
Olivier Gagnon
f0a004e75b Fix a bunch of scripting related stuff. 2021-11-25 11:47:31 -05:00
Olivier Gagnon
632de50a73 convert BN13 to a more conventional one. 2021-11-18 15:38:19 -05:00
Olivier Gagnon
ef781a0627 plenty of bf 2021-11-15 23:49:33 -05:00
Olivier Gagnon
56ddcd9a45 more work on bn13 2021-11-13 22:44:17 -05:00
Olivier Gagnon
fd8be890aa revert omuretsu fix 2021-11-13 20:39:16 -05:00
Olivier Gagnon
61a51519eb Merge branch 'dev' of github.com:danielyxie/bitburner into dev 2021-11-13 19:35:37 -05:00
Olivier Gagnon
badba2eb1b fix scp and write in ns1 2021-11-13 19:33:37 -05:00
Snarling
b0f7fdca44 Fix error throwing for unknown errors
Fix error throwing for unknown errors.

This should prevent unknown script/unknown error message and allow players to see custom errors that they throw.
2021-11-13 09:52:17 -05:00