Commit Graph

102 Commits

Author SHA1 Message Date
danielyxie 4cc6437408 Updated WorkerScript-related code for the workerScripts array->map change 2019-06-24 22:48:54 -07:00
danielyxie 821725cf4d Initial commit for converting workerScripts pool to Map data structure 2019-06-24 22:48:54 -07:00
James Aguilar 3ef9042051 fix two cases where markUpdated was not properly called 2019-06-02 15:38:45 -04: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
danielyxie fef7aaba8f Adding more directory-related unit tests. Several more bug fixes and QoL improvements 2019-05-14 01:35:37 -07:00
danielyxie b0918d7bd3 Fixed numerous reported bugs. Refactored some of the directory-related code. Added documentation for MasonDs changes to hack/grow/weaken 2019-05-11 19:20:20 -07:00
danielyxie 29e0ce5f96 Fixed merge conflicts 2019-05-11 02:20:09 -07:00
Mason Dechaineux 44c26165f4 (feat) optional threads argument to netscript functions hack, weaken, grow 2019-05-11 02:05:40 -07:00
danielyxie cdb5dfec62 Resolved more circular dependencies. Installed acorn-walk and imported it in RamCalculations using ES6 modules. Fixed bugs in stock market rework 2019-05-06 18:01:06 -07:00
danielyxie 8a5b6f6cbc Refactored stock buying/selling code into its own file. Refactored WorkerScript & NetscriptEnvironment into their own Typescript classes. Refactored a ton of code to remove circular dependencies 2019-05-04 21:03:40 -07:00
danielyxie 0d14cd6e7e Improved module import styling for all top-level src files 2019-04-14 02:07:29 -07:00
danielyxie 473f0f1447 Refactored Server/Script/Files code to TypeScript 2019-03-04 17:40:28 -08:00
danielyxie 107977e6f4 Various bugfixes 2019-02-20 00:42:27 -08:00
danielyxie 840df3087f Various QOL improvements and bug fixes 2019-02-08 18:46:30 -08:00
danielyxie 8c8e3f2476 Implemented several optimizations - running scripts dont keep track of script refs or a map of ALL servers. Not completely tested yet 2019-02-05 23:06:48 -08:00
danielyxie e730383420 v0.43.0 2019-02-04 21:42:11 -08:00
danielyxie 8d2c007bcb Implemented new Editor Option: CodeMirror. (Vim mode not 100% done yet) 2019-01-27 14:08:45 -08:00
danielyxie a2237d4319 More bug fixes for Sleeve/Resleeve features. Rebalancing for Sleeve/Resleeve and stock market. Added an option to remove source files in the dev menu 2019-01-21 20:39:52 -08:00
danielyxie 61150f5823 Revert "Revert "Gang rework""
This reverts commit be0a08d70c.
2018-10-29 11:09:33 -05:00
danielyxie be0a08d70c Revert "Gang rework" 2018-10-23 13:47:00 -05:00
danielyxie 3bd7ad77b7 Adjusted RAM costs for Singularity functions and document/window. Fixed bug with calling print() in NetscriptJS 2018-10-17 15:32:15 -05:00
danielyxie 7730c5d092 When a NS function throws an error, clear the script environment's runningFn flag to allow players to properly catch errors without the concurrent calls error screwing them over 2018-10-09 13:45:30 -05:00
danielyxie 420fd0c5ad write()/read() now work for script files. You can now use angled brackets in tprint() (and create DOM elements). Added CodingContract implementation 2018-10-01 19:51:32 -05:00
Daniel Xie ea6cc3da55 Fix array/object bug with new JS Interpreter for Port functions (read, write, and tryWrite) 2018-08-06 10:25:22 -05:00
danielyxie fabc45f496 Fixed bug with calling scp() on an array 2018-07-29 15:14:24 -05:00
danielyxie 5161ca7739 JS-Interpreter fix sprintf and vsprintf by converting JS Interpreter objects to Native objects when passing in arguments. JS-Interpreter add error/exception line numbers wherever possible 2018-07-25 14:53:54 -05:00
danielyxie 88755f1d0f Added import functionality to Netscript 1.0 2018-07-20 09:28:03 -05:00
danielyxie c449dee97e Fixed bug with Corporaiton healthcare. Fixed bug with new netscript 1.0 JS Interpreter properly throwing errors 2018-07-15 13:03:33 -05:00
danielyxie 3ffc820519 Fixed new Netscript1 Interpreter to work for functions returning Arrays/Objets. Untested. Also still needs new Hacknet Node implementation 2018-07-10 23:41:26 -05:00
danielyxie dcd6292ed2 Fixed bugs with new HelperFunctions 2018-07-10 00:11:18 -05:00
Steven Evans 6701503c78 [refactor] Moved 'compareArrays' to its own TS file 2018-07-08 20:17:52 -04:00
Steven Evans 1a5208f78f [refactor] Moved 'printArray' to 'arrayToString' TS file 2018-07-08 20:17:51 -04:00
Steven Evans 39c9488768 [refactor] Moved 'roundToTwo' to its own TS file 2018-07-08 20:17:48 -04:00
danielyxie 78c5a1b0f4 Initial commit for new Netscript 1 Intepreter 2018-07-08 18:53:24 -05:00
Olivier Gagnon 2090554238 fixed ramUsed wrong calculation 2018-07-05 23:15:01 -04:00
danielyxie 30b9624e1f Updated documentation 2018-07-03 21:12:46 -05:00
danielyxie 3213032427 Fixed incompatibility issues with Edge (due to spread syntax). Fixed issue with Terminal autocomplete and capitalized commands. Script ram is now rounded to 2 decimal places 2018-07-02 22:35:12 -05:00
Olivier Gagnon 50a1e83b55 more .js wrongly removed 2018-06-26 13:38:55 -04:00
Olivier Gagnon 6bdf946790 remove all .js from all appplicable imports 2018-06-26 12:34:11 -04:00
danielyxie 22b64dcc4a Implemented BN-7 2018-06-24 19:13:50 -05:00
danielyxie aa17b02da7 Added var declaration in Netscript 1.0. Loops and conditionals no longer incur RAM cost, but base RAM cost increased from 1.4 to 1.6 GB 2018-06-22 14:39:15 -05:00
danielyxie 5e38355152 Added Bladeburner API (untested). Rebalanced Bladeburner. Bladeburner progress no longer resets when installing Augmentations. Fixed up BN-12 2018-06-08 10:51:48 -05:00
danielyxie 82f1c14656 Added dynamic RAM evaluation to Netscript to prevent exploits by evading RAM usage in NetscriptJS. Calling a HacknetNode API Netscript fn now immediately updates HacknetNodeWrappers 2018-06-06 11:02:21 -05:00
danielyxie c0ca464b5d Added a ?noScripts query string that can be used to start the game without loading any scripts. 2018-05-17 14:50:27 -05:00
danielyxie c7e155d4bc Refactored NetscriptJS to take in the NS environment as a parameter to main 2018-05-17 12:10:12 -05:00
danielyxie abb5b9895f Merge branch 'dev' of https://github.com/danielyxie/bitburner into nsjs-memoryleak 2018-05-13 01:07:12 -05:00
danielyxie 6b9dc76f41 Fix bug where sometimes Active Scripts UI wouldnt fully update after an Augmentation reset. This most likely happened because the player has too many scripts running, and they all get added to task queue to get deleted 2018-05-11 20:54:59 -05:00
danielyxie 054cb63227 Debugging nsjs memoryleak 2018-05-11 19:45:40 -05:00