Commit Graph

84 Commits

Author SHA1 Message Date
Jeffrey A. Robinson 5f864c123b When saving we were not saving the script content 2022-01-14 19:01:11 -08:00
Martin Fournier aec2763b27 Ignore trailing whitespace for dirty file asterisk
Saved scripts is stored on servers with its starting & trailing whitespace removed, so
comparison would fail and show the file as dirty when there was a
trailing newline in the script.
2022-01-14 05:34:33 -05:00
Martin Fournier 4b06bdd89c Add detailed ram cost to mem command 2022-01-05 16:41:48 -05:00
Olivier Gagnon c59a267437 change sf4 2022-01-04 19:09:34 -05:00
hydroflame 5c5cc9708d Merge pull request #2172 from theit8514/script-caching
Cache the blobs generated by scripts
2021-12-29 11:53:30 -05:00
Olivier Gagnon 0fc95e6215 text editor improvements 2021-12-29 02:04:24 -05:00
theit8514 8f77f720e6 Cache the blobs generated by scripts 2021-12-23 23:06:01 -05:00
Olivier Gagnon ed86577d6c imports are more flexible 2021-12-23 15:57:32 -05:00
Martin Fournier 65d0877edc Add ns.ui.getTheme() api function 2021-12-20 14:37:10 -05:00
Dan b2add6c26b fix(commands): error feedback, wording consistency
Found most (hopefully all) places where the error message wording
incorrectly was shown to the tune of 'no script exists', where it should
have been showing to the effect of 'script is not running'.
Also cleaned up some of the consistency in the wording and added a
'helper' export for knowing valid script extensions used in validation
of 'isScriptFilename', so we can have consistent error messaging.

Resolves danielyxie/bitburner#1966
2021-12-19 03:10:43 +00:00
Olivier Gagnon 737276e855 corp api 2021-12-03 23:06:04 -05:00
Olivier Gagnon d4ebc46a19 merge dev 2021-12-03 15:35:45 -05:00
Olivier Gagnon 13b08d7cc8 terminal parses boolean exactly. 2021-12-03 14:44:32 -05:00
Alain Bryden ef23033b2c #1773 - Fix duplicate file extensions
For some time now, filenames have included the extension, so there's no need to append ".js" either on a single-file download or zip download.

While I was in the area, I also fixed .txt files in a folder - they had the same bug as scripts used to (appear in the zip as an underscore). I consolidated the code since it was the same for script files and text files.

I also added the ability to download *.js and *.ns (previously only supported *, *.script, and *.txt)

I also made the wildcard matching just a bit more flexible, so if someone really wanted to, they could go "download *blah.js" and get all scripts ending with that pattern ¯\_(ツ)_/¯
2021-11-25 23:06:13 -04:00
Olivier Gagnon 56ddcd9a45 more work on bn13 2021-11-13 22:44:17 -05:00
Olivier Gagnon 3f28b066b0 working on timestamps and make netscript function highlight more specific. 2021-11-11 10:07:16 -05:00
Olivier Gagnon d99d3fc222 dont run inf loop check on ns1 scripts 2021-10-29 01:23:15 -04:00
Olivier Gagnon d1d0ccf345 added possible infinite loop checker 2021-10-28 23:04:26 -04:00
Olivier Gagnon a7632aed29 fix static ram miscalc for stock market 2021-10-27 17:35:02 -04:00
Olivier Gagnon 49d807c9a9 fix static ram calc 2021-10-27 16:17:02 -04:00
Olivier Gagnon eb846c1318 merge dev 2021-10-14 02:12:15 -04:00
Olivier Gagnon 6543e73f6f Fix blade corp gang equal 0 2021-10-12 19:23:36 -04:00
Olivier Gagnon 87c63cde59 merge v0.56.0 2021-10-12 01:35:30 -04:00
Olivier Gagnon 8e4722c5e7 write can be awaited in order to wait for the ram calculation to go through 2021-10-08 14:05:47 -04:00
Olivier Gagnon 8d7f0488f8 merge dev 2021-10-07 17:58:32 -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 c5e29dafc4 fix mc 2021-10-04 22:31:07 -04:00
Olivier Gagnon c47a5bc8cc added grow, weaken, and time compression 2021-10-04 19:58:34 -04:00
Olivier Gagnon 793d9b34ce update BN13 for new UI 2021-09-25 17:21:50 -04:00
Olivier Gagnon 06f716c0fa moved a bunch of files 2021-09-25 14:42:57 -04:00
Olivier Gagnon b0f20c8c8f lint 2021-09-25 01:26:03 -04:00
Olivier Gagnon 5c6c472b64 Augmentations in mui 2021-09-25 01:06:17 -04:00
Olivier Gagnon ad75fa5ebc convert to ts 2021-09-24 18:13:20 -04:00
Olivier Gagnon 2e05f14c0d convert to ts 2021-09-24 16:34:21 -04:00
Olivier Gagnon b8faa9dc0b convert player to ts 2021-09-23 18:47:43 -04:00
Olivier Gagnon f9a4eadb71 removed some of fconf 2021-09-22 01:36:17 -04:00
Olivier Gagnon 45f2f85a30 big work 2021-09-17 19:43:08 -04:00
Olivier Gagnon 89ea9aaff5 oops 2021-09-17 02:58:02 -04:00
Olivier Gagnon 05718e00ea mostly convert terminal to react 2021-09-16 18:10:28 -04:00
Olivier Gagnon 2922e42055 most terminal converted to ts 2021-09-16 18:10:28 -04:00
Olivier Gagnon 2a13db39c7 fix sleeve memory bug 2021-09-08 23:47:34 -04:00
Olivier Gagnon 506122f5b8 fmt, remove corp routing, lint 2021-09-06 15:06:08 -04:00
Olivier Gagnon a18bdd6afc prettify, sorry for the big ass commit 2021-09-04 19:09:30 -04:00
David Edmondson 38880f69e1 Update acorn for optional chaining support 2021-09-02 13:56:30 -07:00
Olivier Gagnon b67c03ff8a hotfix broken editor shortcuts 2021-08-21 01:54:39 -04:00
Olivier Gagnon ed62a3ebc2 deleted ace and monaco 2021-08-20 15:46:59 -04:00
Olivier Gagnon 258716388e focus works 2021-08-20 15:46:59 -04:00
Olivier Gagnon df457a0c6e v0.52.5 2021-08-19 16:37:59 -04:00