Commit Graph

268 Commits

Author SHA1 Message Date
Santiago Kent
dea7bd79c8 Added the getStockSymbols method to the TIX API, wich returns an array of the tradable symbols 2018-10-01 19:51:32 -05:00
danielyxie
0e7b6599bb wget() Netscript function always returns a Promise 2018-10-01 19:51:32 -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
427cdb48ba Initial commit for implemeenting wget and refactoring some Server-related code 2018-10-01 19:51:32 -05:00
danielyxie
11c60a87c2 grow() no longer reports Infinite growth when money is at 0 2018-10-01 19:51:32 -05:00
danielyxie
d624d2f86f Fixed bug with contract generation when player doesn't have a job. Added bladeburner.getActionRepGain() function 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
56b2f581d8 Added donateToFaction(), isLogEnabled(), and getScriptLogs() Netscript functions. Added optional hacking/int level parameters to getHackTime/getGrowTime/etc functions 2018-09-11 13:56:23 -05:00
danielyxie
26fa9cfe82 Rebalanced Stock Market and Bladeburner. Refactored Stock class to Typescript 2018-09-06 11:07:59 -05:00
danielyxie
395fc3b9df Added tryWrite() as a native Netscript function. Updated documentation to reflect the fact that port handles no longer work in Netscript 1.0 2018-08-30 15:27:47 -05:00
danielyxie
5ede6be8e5 Refactored functions that calculate hacking time/exp gain/chance/ etc into a separate file 2018-08-30 12:00:38 -05:00
danielyxie
2bf6871ece V0.40.2 BUndle and minor bug/typo fixes 2018-08-25 23:26:42 -05:00
Daniel Xie
e4f02b298b Added Four Sigma (4S) Market Data feature, and its Netscript TIX API functions as well 2018-08-24 15:44:48 -05:00
Daniel Xie
de0f891d52 Various rebalances to Bladeburner: Buffed Augmentations. Simulacrum costs less rep but more money. Slightly more money gained from contracts. Operations give more rank. More Synthoid communities. Added getBonusTime() and getSkillUpgradeCost() to Bladeburner API. Operation count increases faster and is more randomized. Decreased rate at which contracts/ops level up 2018-08-11 20:05:32 -05:00
danielyxie
72bd1f22c5
Merge pull request #423 from Kline-/fix-getActionTime
Fix bladeburner.getActionTime returning null
2018-08-10 00:06:38 -05:00
Steven Evans
9a7fa5d12c
Merge branch 'dev' into refactor-out-circular-dependencies 2018-08-07 10:00:49 -04:00
Daniel Xie
faa5e807d5 Updating documentation and Netscripy syntax highlighting for v0.40.1 community update. Bitrunners now has CranialSignalProcessors 3-5. CyberSec now has Cranial Signal Processors 1-2. 2018-08-05 03:37:28 -04:00
Matthew Goff
9b099fcee9
Fix bladeburner.getActionTime returning null 2018-08-04 16:52:45 -05:00
Steven Evans
826a8799fa [refactor] Extracting Locations to its own file to remove circular dependency 2018-08-02 14:33:08 -04: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
danielyxie
93bada0119
Merge pull request #396 from hydroflame/favor-gain
added favor related funtions
2018-08-02 10:40:48 -04:00
Steven Evans
06a0b75b1c [feature] added "getPurchasedServerCost" NS function 2018-07-30 21:31:12 -04:00
Olivier Gagnon
142e141f6f added favor related funtions 2018-07-27 21:46:37 -04:00
danielyxie
b34057f2d3 Added more error line numbers to JS Interpreter. Reputation needed for megacorp faction reduced from 250k -> 200k. Fixed bladeburner.getActionobject() bug with general actions 2018-07-27 19:00:57 -05:00
danielyxie
47134a9640 Fixed bug where hacking special servers w/ no money would result in NaN because of a '0 / 0' in fortify() calculation 2018-07-25 15:58:36 -05:00
Olivier Gagnon
a4f2c3c7a8 added getOwnedAugmentation function 2018-07-25 00:31:17 -04:00
danielyxie
54ec0110e2
Merge pull request #362 from hydroflame/max-servers-func
Max servers func
2018-07-20 12:24:27 -05:00
Olivier Gagnon
54c0d97048 added bladeburner functions related to action levels 2018-07-20 00:06:59 -04:00
Olivier Gagnon
55650ab7a5 forgot my semicolons 2018-07-19 22:23:43 -04:00
Olivier Gagnon
a2b5ca10ac added purchasable servers functions to get constants 2018-07-19 22:21:11 -04:00
danielyxie
5845fa8702 Fixed merge conflicts 2018-07-15 20:48:27 -05:00
danielyxie
44e4325a5d
Merge pull request #358 from danielyxie/new-hacknetnode-api
New hacknetnode api
2018-07-15 20:43:04 -05:00
danielyxie
a605dd4491 Bladeburner API getCurrentAction() now returns null if current action is 'Idle' 2018-07-15 20:39:07 -05:00
danielyxie
2b38a8cd2a Merge branch 'dev' of https://github.com/danielyxie/bitburner into dev 2018-07-14 20:06:23 -05:00
danielyxie
497186355f New Hacknet Node Netscript API - initial commit 2018-07-14 19:25:50 -05:00
Olivier Gagnon
4a17c5a49c limit fortifying to the amount of hck thread you needed to drain the server 2018-07-12 21:16:24 -04:00
danielyxie
e97861f42b Bladeburner API Improvements: Added getCurrentAction(). getSkillLevel() now fails if no argument is passed 2018-07-12 00:01:52 -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
015524f049 [refactor] Moved 'powerOfTwo' to 'isPowerOfTwo' 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
a6293474a9 [refactor] Moved "isString()" to its own TS file 2018-07-08 20:15:06 -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
danielyxie
c8421168b6 Copying a NetscriptJS script with scp now properly clears its 'module'. 2018-06-29 00:39:05 -05:00
Olivier Gagnon
6bdf946790 remove all .js from all appplicable imports 2018-06-26 12:34:11 -04:00
danielyxie
13dbd9f26c Merge PRs and fix issues 2018-06-26 09:49:28 -05:00
danielyxie
89ecb15b6f
Merge pull request #324 from hydroflame/hydroflame-convert-ts
first conversion
2018-06-25 20:02:40 -05:00
danielyxie
b2a24002ee
Merge pull request #266 from hydroflame/streamline-create-programs
Streamline create programs
2018-06-25 19:34:08 -05:00
danielyxie
75ff10b5c2 Added documentation for Bladeburner API. Fixed typo in BN-7 description. 2018-06-25 14:07:03 -05:00
danielyxie
22b64dcc4a Implemented BN-7 2018-06-24 19:13:50 -05:00
Olivier Gagnon
3af76f50ab
Merge branch 'dev' into streamline-create-programs 2018-06-22 20:48:26 -04:00
Olivier Gagnon
53ddfbc9ec first conversion 2018-06-22 17:30:24 -04:00
Steven Evans
942c26b27e
Merge branch 'dev' into typescript 2018-06-20 22:10:20 -04:00
Olivier Gagnon
0ea6312d49
Merge branch 'dev' into streamline-create-programs 2018-06-20 18:50:08 -04:00
danielyxie
856f7a0cd2
Merge pull request #264 from hydroflame/streamline-darkweb
streamline darkweb
2018-06-20 16:56:10 -05:00
danielyxie
f5be9e5da7 Fix bug with spawn() 2018-06-17 14:19:43 -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
danielyxie
fa42d4ee43
Merge pull request #288 from hydroflame/netscript-ps
Netscript ps function
2018-06-13 09:17:58 -05:00
danielyxie
ff12c87913
Merge pull request #279 from hydroflame/prevent-work-faction-bn2
prevent players from doing work through singularity in BN2 when the p…
2018-06-13 08:57:59 -05:00
Olivier Gagnon
758f00419b added ps function to netscript, returns the list of processes currently running on that server 2018-06-13 00:03:02 -04:00
Olivier Gagnon
dd87a1bad3 prevent players from doing work through singularity in BN2 when the player already joined a faction 2018-06-10 00:55:25 -04:00
Olivier Gagnon
efa6438981 fixed display bug in growth log 2018-06-09 02:58:33 -04:00
danielyxie
bbb5f04c87 Merged pull requests and fixed merge conflicts 2018-06-08 11:19:22 -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
Olivier Gagnon
289a005fbb made upgrade home ram cost consistent and precision to 5 to display better in game 2018-06-07 14:54:34 -04: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
f28ffcc49e
Merge pull request #270 from hydroflame/fix-travelToCity
made travel cost a constant and prevent travelToCity from traveling i…
2018-06-04 09:09:39 -05:00
danielyxie
e31c8a1fc0
Merge pull request #259 from hydroflame/streamline-crimes
streamline crimes code
2018-06-04 09:04:46 -05:00
Olivier Gagnon
4b6dbee628 made travel cost a constant and prevent travelToCity from traveling if the player doesn't have enough money 2018-06-03 21:09:12 -04:00
danielyxie
957ce44316 v0.37.2 2018-06-02 20:37:56 -05:00
Olivier Gagnon
aa56227851 streamline programs 2018-06-01 19:31:34 -04:00
Olivier Gagnon
85d4d5a5ab streamline darkweb 2018-06-01 17:05:05 -04:00
Steven Evans
10d7e43f01 [refactor] Pull in 'decimal.js' as an npm dependency 2018-05-30 15:54:13 -04:00
Olivier Gagnon
cb0d70de85 streamline crimes 2018-05-29 16:36:52 -04:00
danielyxie
565f0dd517 v0.37.1 2018-05-22 19:09:04 -05:00
redd
e71b44283b
fixed throw
makeRuntimeRejectMsg now references correct function causing the throw:
2018-05-13 01:50:13 +01:00
danielyxie
7fe704de1e
Merge pull request #220 from hydroflame/crime-commit-log
FIX #207 commitCrime now takes enable/disable log into account
2018-05-10 12:15:01 -05:00
danielyxie
dfb5cbf02d Merging changes from pull requests. Re-adding package lock.json 2018-05-09 02:21:47 -05:00
danielyxie
2c4c5ce6a3
Merge pull request #228 from hydroflame/ns-hacknet-multiplier
NS function to get player's hacknet multipliers
2018-05-09 02:16:14 -05:00
Olivier Gagnon
dcc09d561e
Merge branch 'dev' into improve-get-script-ram 2018-05-07 16:00:24 -04:00
Olivier Gagnon
577f73dce7 getScriptRam now optionally take hostname/ip or default to localhost 2018-05-07 15:56:55 -04:00
danielyxie
9d1bcd989b Merge branch 'dev' of https://github.com/danielyxie/bitburner into dev 2018-05-06 16:34:07 -05:00
danielyxie
c3663af14e
Merge pull request #222 from hydroflame/script-name
added getScriptName
2018-05-06 16:31:33 -05:00
danielyxie
3147f9edeb Updated Server instantiation with new Server constructor. Minor rebalances to BN6 2018-05-06 16:20:00 -05:00
Olivier Gagnon
39ed2c40dd added hacknet multiplier netscript function 2018-05-06 14:22:29 -04:00
James Aguilar
3f5398f8dc Fix purchaseServer's use of new Server() 2018-05-06 09:23:07 -04:00
Olivier Gagnon
96f0f14a95 commitCrime now takes enable/disable log into account 2018-05-06 04:01:43 -04:00
Olivier Gagnon
60cc6e15d5 added getScriptName 2018-05-06 03:27:16 -04:00
danielyxie
8dba456b65 Merge jaguilar's changes to incorporate Netscript JS (PR #212) 2018-05-05 17:13:35 -05:00
danielyxie
9acc422f05 v0.36.0 - Bladeburner BitNode (BN-6) 2018-05-02 12:38:11 -05:00
danielyxie
e3c435270b V0.35.0. Adding netscript_tests in game testbench. 2018-03-03 15:05:33 -06:00
danielyxie
779ce25ae5 v0.34.5. Also adding webpack config and package-lock.json 2018-02-24 16:55:06 -06:00
danielyxie
24e99ed8d9 Wraithan's changes 2018-02-17 21:08:54 -06:00
danielyxie
1f5ab50b79
Revert "Fix some stuff with ls() and cat" 2018-02-16 15:03:16 -06:00
danielyxie
d37e8f1d5f
Merge pull request #190 from wraithan/fix-ls-txt
Fix some stuff with ls() and cat
2018-02-16 15:03:06 -06:00
danielyxie
f82d216e10 v0.34.4 2018-02-14 22:26:43 -06:00
Wraithan (Chris McDonald)
6a3ac7165d fix bug with ls() that prevented including .txt files 2018-02-10 12:19:08 -08:00
danielyxie
470b66e304 Bugfixes for Corporations. hacknetnodes now accounts for RAM usage. Start of v0.34.3 2018-01-29 23:14:17 -06:00
danielyxie
5f817c8016 V 0.34.2 Changes 2018-01-27 00:52:39 -06:00
danielyxie
8d72dd0f4e fileExists() now works on text files. Starting redoing Company mgmt employee UI 2018-01-21 14:53:16 -06:00
danielyxie
8ad28908e8
Merge pull request #170 from devoidfury/fileExists-txt
fileExists netscript function now works with txt files
2018-01-19 23:40:29 -06:00
danielyxie
e88a3936f3 v0.34.1 2018-01-19 22:47:57 -06:00
Tom Hunkapiller
5f52d31836 fileExists netscript function now works with txt files 2018-01-02 01:12:54 -06:00
danielyxie
d5bd1665d0 Bugfixes for cancelOrder(), selling stocks for Corporation, and updating RAM usage on prestige. Also added in-game documentation for clear() and exit() 2017-12-10 23:04:00 -06:00
danielyxie
3f61ec1cab v0.34.0 changes 2017-12-06 21:45:47 -06:00
danielyxie
9e5db4b644 Merged conflicts. Fixed several minor bugs. Increased infiltration exp. TIX api functions return transaction value rather than boolean. Hacking Mission changes for v0.34.0 2017-12-02 22:19:49 -06:00
danielyxie
944d796772 Fixed Netscript error message typos 2017-11-02 22:32:31 -05:00
danielyxie
03fdaeaba4 Changed confirm to prompt, updated version, more stock market balancing 2017-11-02 22:11:14 -05:00
danielyxie
bc6f0da677 Fixed Netscript interpreter memory issues by breaking promise chains in while and for loops. Improved Stock Market UI. Added a button to kill script from log display box. Added confirm() Netscript function 2017-11-02 16:47:09 -05:00
danielyxie
52967d7f9d Refactored Code using Bluebird Promises. Still has memory issues. Added Buy Max and Sell All to stock market UI 2017-11-01 17:56:30 -05:00
danielyxie
7c4ac00f5a Replaced strict equality comparisons for null with loose eq comparisons 2017-10-25 17:05:12 -05:00
danielyxie
4dc87af132 v0.32.0 - Added BitNode-8: Ghost of Wall Street 2017-10-25 14:47:47 -05:00
danielyxie
4ccad83e5e Initial implementation of BitNode-8: Ghost of Wall Street. Added TextFile.js to git. Added design for company management 2017-10-20 16:59:54 -05:00
danielyxie
969973181b Added documentation for new features 2017-10-15 21:09:49 -05:00
danielyxie
cf471acad6 Fixed save issue. Rebalancing 2017-10-14 20:55:41 -05:00
danielyxie
4186326771 Added new Text Files (downloadable) and their corresponding Terminal commands. Added sprintf and vsprintf. 2017-10-12 15:10:34 -05:00
danielyxie
246acf5966 Game now uses indexedDb. Added new Bond Forgery crime. Added commitCrime() and getStats() Singularity functions. Removed getIntelligence(). Balance changes to crime/infiltration 2017-10-11 21:00:22 -05:00
danielyxie
04bfcc0f20 All v0.30.0 Changes 2017-10-09 23:56:48 -05:00
danielyxie
662f30cc38 Added :q, :x, :wq Vim Ex commands. Added ADR-v2 Pheromone new Augmentation. Fixed bugs and added improvements to Hacking missions. 2017-10-01 21:35:22 -05:00
danielyxie
22a5d3b3cc Finished BETA version of Missions. All other changes for v0.29.1 2017-09-27 10:13:42 -05:00
danielyxie
2523222565 More work on Hacking mission 2017-09-25 21:44:33 -05:00
danielyxie
c93a398fbf Continue statement, began work on missions 2017-09-21 16:27:31 -05:00
danielyxie
d1f4f8fd36 All v0.29.0 changes 2017-09-19 13:38:03 -05:00
danielyxie
e3991b8795 v0.28.6 changes 2017-09-15 09:06:59 -05:00
danielyxie
f8ff4cfba6 Added javascript math module 2017-09-11 18:31:42 -05:00
danielyxie
024546b4f1 v0.28.4 - Bug fixes, getScriptIncome(), syntax highlighting for regular Netscript functions, 2017-09-11 18:14:51 -05:00
danielyxie
19b861c4f7 Fixed bug with purchasing NeuroFlux using purchaseAugmentation() Singularity fn 2017-09-08 14:16:48 -05:00
danielyxie
1e459c9ec7 v0.28.3 changes 2017-09-07 00:45:14 -05:00
danielyxie
b17f89eba7 v0.28.0 Changed - Integrate ACE editor 2017-09-01 09:12:40 -05:00
danielyxie
97eeef7d0d scp and donate for rep bug fixes 2017-08-31 12:19:28 -05:00
danielyxie
110138f3ee Fixed some bugs with Stock Market 2017-08-31 00:04:23 -05:00
danielyxie
ff5359dc3d Fixed bugs with new Singularity Functions 2017-08-30 13:36:59 -05:00
danielyxie
7a05d3585a All 0.28.0 Changes - Bitnodes 4 and 11 and webpack migration 2017-08-30 12:44:29 -05:00
danielyxie
33c10ccc64 Began creating universityCourse singularity function 2017-08-22 13:48:04 -05:00
danielyxie
e2d0477203 Began implementing Singularity functions 2017-08-21 11:59:06 -05:00
danielyxie
faf19addee 0.27.3 Changes 2017-08-19 20:36:19 -05:00
danielyxie
cf99c4f10b Added literature (.lit files). Fixed bug with Gang Territory. Updated documentation 2017-08-18 12:20:51 -05:00
danielyxie
3db6d9d007 0.27.0 2nd Tier Prestige + Gangs 2017-08-13 00:01:33 -05:00
danielyxie
4a99c04772 Refactored Server() to take old init args in constructor. Removed Server.init(). Faction reputation is now exponential. Increased infiltration exp gains. DOM now loads before scripts 2017-08-02 23:21:15 -05:00
danielyxie
ddca05f4c5 Balancing. Buffed crimes, infiltration, jobs, nerfed hacking 2017-08-01 14:03:45 -05:00
danielyxie
53d514d28e Decimal.js support for player's money. Buffed early game servers. 2017-07-29 11:25:40 -05:00
danielyxie
0e64359814 Lowered hacking exp gain. Added deleteServer(). Maximum of 25 purchaseable servers. Added autocompletion for ./ command. Oustanding faction invitations. Suppress Faction invites and messages 2017-07-26 21:56:14 -05:00
danielyxie
2afb313a53 Added several configurable game settings. Added donate button. Added Hacknet Node API functions for getting cost of upgrades 2017-07-25 09:39:56 -05:00
danielyxie
d5be649bbd Added autocompletion for aliases. Added autocompletion for any number of arguments. Added getServerRam() function 2017-07-24 20:06:40 -05:00
danielyxie
e653b7b315 All v0.26.0 changes 2017-07-21 17:54:55 -05:00