Commit Graph

157 Commits

Author SHA1 Message Date
danielyxie
b7157b63e0 Implemented a money tracker that keeps record where all of the player's money comes from. Players can see a breakdown in the 'Stats' page 2019-02-22 13:22:39 -08:00
danielyxie
107977e6f4 Various bugfixes 2019-02-20 00:42:27 -08:00
danielyxie
60960559e1 Removed logging statements used for debugging 2019-02-12 01:18:26 -08:00
danielyxie
8266492001 Fixed bug and added compatibility for converting RunningScript offline dataMap to version v0.43.1 2019-02-12 01:14:38 -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
a09ea46a38 Added BitNode multipliers for purchased servers. Fixed bugs in new Script Editor implementation. Added documentation for script editors 2019-01-29 22:02:27 -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
4383d1393d Fixed re-balanced Corporation issues. Converted several popups in the Corporation mechanic to support Enter/Esc hotkeys 2018-12-24 23:55:54 -08:00
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 be0a08d70caacd9bc3a43faab2825cd5f3c68e1f.
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