Commit Graph

148 Commits

Author SHA1 Message Date
danielyxie 8778e835e0 Importing from external URLs in scripts now properly recognizes both https and http URLs 2018-11-13 21:01:57 -08:00
danielyxie 4c3219bb9e Revert "Revert "Gang rework""
This reverts commit be0a08d70c.
2018-10-23 13:55:42 -05:00
danielyxie be0a08d70c Revert "Gang rework" 2018-10-23 13:47:00 -05:00
danielyxie e73ebe843f Gang-rework bugfixes and rebalancing. Started adding Gang API 2018-10-19 19:30:02 -05:00
danielyxie 097c866e6f Don't log RAM calculator parse errors. Add semicolons and newlines when importing from URL in NSJS 2018-10-09 11:56:22 -05:00
danielyxie 781f2f09b4 Changed buttons that used <span> elements to use <button> elements. Allowed processing for modules that are dynamically imported from URL 2018-10-09 11:56:22 -05:00
danielyxie a7592250f3 Finished wget() Netscript fn implementation. Updated documentation 2018-10-01 19:51:32 -05:00
danielyxie 44ce4bc674 Added RAM usage calculations for wget() Netscript fn 2018-10-01 19:51:32 -05:00
danielyxie f78f0ec1a7 Implemented Coding Contracts 2018-10-01 19:51:32 -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
danielyxie 6cb7704eed Move all Theme color settings to FconfSettings rather than Settings. Add setting for default/classic main menu style 2018-10-01 19:51:32 -05:00
danielyxie d50c5abb66 Refactored all code that uses the numeral library to use a wrapper class. Implemented configurable locale setting through this wrapper class 2018-09-12 11:29:02 -05:00
Matthew Goff 2d9f3856c7 formatNumber -> numeral in more locations 2018-09-01 08:42:56 -05:00
danielyxie 8b99e46d5e Updated Interactive Tutorial and added a few helpful links to the hackers-starting-handbook Literature file 2018-08-29 14:06:21 -05:00
Daniel Xie c5841b65fe Fixed a bug where the special harcoded keywords that are search for in script RAM calculation would be counted once per 'scope' 2018-08-20 00:25:55 -05:00
Steven Evans 26b0840f26 [refactor] Breaking out page tracking from 'engine' 2018-08-02 14:33:07 -04:00
Steven Evans 7313d551f1 [refactor] Pulling out post to terminal to its own file. 2018-08-02 14:26:24 -04:00
Steven Evans 3130b410e2 [refactor] pulling getTimestamp off Terminal 2018-08-01 13:38:54 -04:00
danielyxie 497186355f New Hacknet Node Netscript API - initial commit 2018-07-14 19:25:50 -05:00
Steven Evans 6701503c78 [refactor] Moved 'compareArrays' to its own TS file 2018-07-08 20:17:52 -04:00
Steven Evans 107f1de18d [refactor] Moved createElement into its own TS file
This is the start at separating out UI related work from potentially backend
related work. This distinction will help when Web Workers can be
introduced to get around the background tab limitation for scripts.
2018-07-08 20:17:49 -04:00
Steven Evans 39c9488768 [refactor] Moved 'roundToTwo' to its own TS file 2018-07-08 20:17:48 -04:00
Steven Evans be577164e3 [refactor] Removed export of "numOccurrences"
Does not appear to actually be used outside of StringHelperFunctions.ts
2018-07-08 20:15:07 -04:00
danielyxie 78c5a1b0f4 Initial commit for new Netscript 1 Intepreter 2018-07-08 18:53:24 -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 89ecb15b6f Merge pull request #324 from hydroflame/hydroflame-convert-ts
first conversion
2018-06-25 20:02:40 -05:00
danielyxie 22b64dcc4a Implemented BN-7 2018-06-24 19:13:50 -05:00
Olivier Gagnon 53ddfbc9ec first conversion 2018-06-22 17:30:24 -04:00
danielyxie 3a291cf4dd Merge pull request #303 from kopelli/typescript
Add Typescript and TSLint to the tool chain
2018-06-22 15:11:49 -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
Steven Evans 942c26b27e Merge branch 'dev' into typescript 2018-06-20 22:10:20 -04:00
danielyxie abfb1b1947 Merge pull request #301 from hydroflame/beautify
Add a button to beautify scripts in text editor
2018-06-20 16:57:58 -05:00
danielyxie c365696447 Reverse const change in Script RAM parser. Built documentation 2018-06-15 00:58:35 -05:00
danielyxie 8620a4d30c Fix issue with 'Object.prototye' functions throwing errors during NetscriptJS RAM calculation. Fixed type with new Travel Confirmation setting loading to the correct initial value. Fixed Competition/Demand display for Products. Changed RAM for window/document access to be 100 2018-06-14 14:51:06 -05:00
Steven Evans 67cee8642b [refactor] Converted TextFile to TypeScript 2018-06-14 09:11:28 -04:00
Olivier Gagnon c35395e302 added beautifier button in text editor 2018-06-14 02:26:54 -04:00
Olivier Gagnon af2e04db10 window and document symbold now occur impossibly high ram cost in nsjs 2018-06-13 03:57:25 -04:00
danielyxie 81e828d7e7 Removed debug logging statement for ram parser AST 2018-06-02 22:10:24 -05:00
danielyxie 957ce44316 v0.37.2 2018-06-02 20:37:56 -05:00
danielyxie 565f0dd517 v0.37.1 2018-05-22 19:09:04 -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 9a9096bc70 Reset Script module when it is saved 2018-05-13 03:08:18 -05:00
danielyxie bf5b3c371e More work on NSJS memory leak fix 2018-05-12 18:19:49 -05:00
danielyxie 054cb63227 Debugging nsjs memoryleak 2018-05-11 19:45:40 -05:00
danielyxie 024138eabd Rebalancing Gyms and training in Bladeburner. Updated Active Scripts UI page to update once per second. Updated changelog 2018-05-10 12:14:45 -05:00
danielyxie 96b12f7f68 Added ENABLE_TIMESTAMPS Fconf Setting. Put a soft-cap on stock price. Cleaned up a number rounding display issue for Gang UI (100.03% territory, etc.). Refactored ActiveSCriptsUI code to use a queue to sequentially run 'tasks' that handle the adding/deleting of items and server panels 2018-05-07 12:25:44 -05:00
danielyxie dbaa5e0012 Merge pull request #224 from hydroflame/base-ram-constant
make script base cost a constant
2018-05-06 16:31:18 -05:00