Commit Graph

142 Commits

Author SHA1 Message Date
Daniel Xie
0c184f9ad3 Autocompletetion for command ends with a space 2017-06-02 20:46:43 -05:00
Daniel Xie
d1e4ef77fd Tab autocompletion now works on commands. Updated to v0.19.6 2017-06-02 20:26:17 -05:00
Daniel Xie
7701249cfe Added changelog to Constants.js. Terminal commands are no longer case sensitive 2017-06-02 19:41:46 -05:00
Daniel Xie
697855d0f5 scp terminal command now overwrites. Updated version to 0.19.5 2017-06-02 14:54:36 -05:00
Daniel Xie
f738034033 scp() command in scripts now overwrites scripts at destination. Fixed some bugs in Network creation 2017-06-02 14:46:14 -05:00
Daniel Xie
9122077206 FIxed a bug with manuallyHacked flag 2017-06-02 09:45:33 -05:00
Daniel Xie
94dd4395be Adding messages. Changed hacking factions to rely on hacking their specific servers to get the invite. Made Augmentations more expensive 2017-06-01 23:15:45 -05:00
Daniel Xie
ebeac47d12 Fixed UI issues. Added offline production for grow(), weaken(), and hack() in Netscript scripts 2017-05-31 20:57:49 -05:00
Daniel Xie
d825b25c73 Added functions for weakening server security and updated docuemtnation 2017-05-31 12:37:32 -05:00
Daniel Xie
07d9dc6db8 Server security increases slightly when hacked 2017-05-31 11:45:30 -05:00
Daniel Xie
ad6f74a16d Lowered cost for NeuroFlux governor. Fixed tab completion for scp command. Fixed bugs with Netscript scp command 2017-05-29 21:02:41 -05:00
Daniel Xie
3ff1e8e87d Added scp command to netscript. Nerfed Hacknet Node augmentations 2017-05-29 20:25:52 -05:00
Daniel Xie
54bf26689f Added scp terminal command 2017-05-29 19:18:48 -05:00
Daniel Xie
af47baf4fa Buffed crimes and hacking. Increased growth rate of servers. Added getHostanme command. Added preventDefault() for ctrl+b in script editor. Buffed Neuroflux Governor, which adds 1% to all multipliers, and made it more expensive. Nerfed Hacknet Node base production. Fixed nested for loop issue 2017-05-29 17:37:38 -05:00
Daniel Xie
6316cbae23 Minor UI changes 2017-05-25 03:09:51 -05:00
Daniel Xie
0fd5323d52 Added scan-analyze to Interactive Tutorial 2017-05-24 18:23:28 -05:00
Daniel Xie
84eb295527 Added functionality to create Deepscan programs. Untested 2017-05-24 16:35:24 -05:00
Daniel Xie
0fcde41a87 scan-analyze now properly works with depth using DFS. The formatting of the otuput needs to be improved 2017-05-24 12:07:33 -05:00
Daniel Xie
5c16759908 Clicking outisde popup dialog box closes it. Grow() time is now based on hacking level 2017-05-24 08:49:52 -05:00
Daniel Xie
f756f09dbe Player starts with 8GB of RAM on home. scan-analyze displays RAM. Increased percentage money hacked 2017-05-24 00:05:31 -05:00
Daniel Xie
6b40482e6c Added hasRootAccess() and getNumHacknetNodes commands to netscript 2017-05-23 13:17:37 -05:00
Daniel Xie
73c07841a3 Added scan-analyze. Faction rep from donating affected by faction rep multiplier 2017-05-23 12:36:35 -05:00
Daniel Xie
9b83035187 Save Aliases object. Fixed bug when buying Neuroflux Governor 2017-05-23 11:15:17 -05:00
Daniel Xie
a3c104ca4e Added aliases 2017-05-23 10:12:09 -05:00
Daniel Xie
f325aeb897 Nerfed the top 2 Netburner augmentations. Slightly icnreased cost for upgrading ram and core for Hacknet nodes 2017-05-23 08:49:20 -05:00
Daniel Xie
14e6b604b4 Bug fix 2017-05-22 22:50:06 -05:00
Daniel Xie
b8ccddf256 Changed tabbing i script editor so that it uses four spaces rather than the tab char" 2017-05-15 23:37:14 -05:00
Daniel Xie
823fda5344 Changed bad text in tutorial text 2017-05-15 22:31:05 -05:00
Daniel Xie
223bc3c2c6 Properly focuses on Script editor when its opened 2017-05-15 22:27:47 -05:00
Daniel Xie
0019494ad2 Added mem command 2017-05-14 21:46:52 -05:00
Daniel Xie
416f3e7b47 Refactored script RAM usage to be calculated based on commands. Updated RAM on foreign servers to balance. Balnaced company wages 2017-05-10 16:10:06 -05:00
Daniel Xie
94aafba04b Added 3 more crimes..home computer no longer reset on prestige 2017-05-08 11:00:34 -05:00
Daniel Xie
534f5c1dbe Small UI improvements, balancing crime money 2017-05-06 14:12:45 -05:00
Daniel Xie
2e55f1d472 Implemented interactive tutorial! 2017-05-06 01:24:01 -05:00
Daniel Xie
66e4fa26a2 Added Dark web. Needs testing 2017-05-05 10:50:55 -05:00
Daniel Xie
56ebfaf2bf refactored saving/loading by making it into a class. Tested and debugged prestige mechanic 2017-05-04 20:08:44 -05:00
Daniel Xie
b0bc7ed3c7 Rebalancing crime exp and small UI improvements 2017-05-04 02:05:43 -05:00
Daniel Xie
86900c0879 Began implementing Crimes mechanic...plus karma and statistics for it. Readjusted the ciriminal factions requirements acordingly 2017-05-03 12:52:54 -05:00
Daniel Xie
3eccf23a41 Minor UI improvements, fixed job requirements to make them inline with multiplers of 5, rebalancing hacking times 2017-05-02 23:38:58 -05:00
Daniel Xie
635ef04967 Added Augmentations for new Hacknet Node faction and rebalancing company positions so the requirements are in even numbers 2017-05-02 14:24:24 -05:00
Daniel Xie
6edd7f1a49 Added grow() command - it is untested and does not worki n offline yet. Some small rebalancing and UI changes 2017-05-02 11:28:54 -05:00
Daniel Xie
c3eaaded70 Added command history using both up and down keys 2017-05-01 22:05:26 -05:00
Daniel Xie
5943590ffb Working on tab completion. Almost there, some kinks to work out 2017-05-01 16:38:49 -05:00
Daniel Xie
1fa0ef339a Added up button history mechanic to terminal..the basics work 2017-05-01 12:23:20 -05:00
Daniel Xie
b61754ddd0 Finished implementing Hacknet Nodes. Seems to be working fine 2017-04-27 15:02:58 -05:00
Daniel Xie
f4ec2e9067 Added University/study + taking class mechanics. Minor improvements to UI and some rebalancing 2017-04-24 14:10:35 -05:00
Daniel Xie
edb329325c Playtest - Bug fixing 2017-04-21 17:22:25 -05:00
Daniel Xie
c1c37f008e Playtesting - Fixed bugs and some rebalancing with foreign servers 2017-04-20 03:29:07 -05:00
Daniel Xie
51d351f894 Playtesting - FIxed small bug 2017-04-19 16:40:26 -05:00
Daniel Xie
e2e0bba3c2 Playtesting - Fixed bugs 2017-04-19 16:39:25 -05:00
Daniel Xie
9b408cb995 Playtesting - Fixed bugs 2017-04-19 14:19:33 -05:00
Daniel Xie
77f386d14a Playtesting - Fixed some bugs, refactoring 2017-04-17 23:32:17 -05:00
Daniel Xie
685103c5d4 Implemented 'rm' command. FIxed some bugs 2017-04-13 14:36:03 -05:00
Daniel Xie
52297268f6 Addded Perk class, Traveling functionality, fixed bugs with script logging and terminal commands 2017-04-13 12:33:34 -05:00
Daniel Xie
2e4925c45d began adding stuff for Perks. Also refactored some constants 2017-04-11 15:42:06 -05:00
Daniel Xie
e2ad62c62a More work on Tutorial 2017-04-05 16:09:37 -05:00
Daniel Xie
14684dd6d5 Finished Create Program functionality (needs testing) and did work on Tutorial 2017-03-31 16:47:06 -05:00
Daniel Xie
8de538a59a More work on Create Program 2017-03-31 07:32:04 -05:00
Daniel Xie
0ed3d65ae5 Added a bunch of small fixes and features, don't remember exactly what lol 2017-02-16 12:52:11 -06:00
Daniel Xie
fc2dc82f1a Implemented Applying to jobs. Working on Purchasing Servers 2017-02-03 16:05:59 -06:00
Daniel Xie
8dbca029de Factions should save and load properly (not fully tested). Terminal now scrolls to the bottom when something is posted 2016-12-21 12:36:42 -06:00
Daniel Xie
d656ee3114 Implemented control + c functionality to stop running cmds such as hack() and analyze() 2016-12-21 10:33:00 -06:00
Daniel Xie
e2316e4a1d Can now do things such as ctrl+c in Terminal without it auto focusing on the input. Implemented offline exp gain 2016-12-19 14:59:13 -06:00
Daniel Xie
962b057ff8 Implemented basic functionality for the Active Tabs menu. Works for online production 2016-12-19 12:20:19 -06:00
Daniel Xie
96fb37c6d1 Fixed loadAllRunningScripts(), now seems to be working properly 2016-12-15 11:51:23 -06:00
Daniel Xie
23c036827f Fixed script hack(), should be working now. Changed some numbers to rebalance. Implemented script RAM usage. If a script uses too much ram it will not run (untested) 2016-12-14 14:29:40 -06:00
Daniel Xie
c485f28e20 updated README with TODOS. FIxed kill command and sleep() command in script 2016-12-13 17:52:32 -06:00
Daniel Xie
7a5a9ccb65 Implemented kill command. UNTESTED, TEST THIS WHEN YOU CAN 2016-12-06 12:09:23 -06:00
Daniel Xie
437ebc2703 Implemented Hack and sleep in script. IMplemented functionality that allows scripts to stop (rejecting the Promises). Scripts will now automatically stop if they are not infinite. THIS IS UNTESTED TEST THIS WHEN I CAN. Still need to implement kill command 2016-12-05 16:31:46 -06:00
Daniel Xie
6d9f0669ba Added an autosave feature that auto saves every minute. Made the updateHackProgress() take in the number of cycles that have passed when calculating its progress 2016-12-02 15:57:20 -06:00
Daniel Xie
d5d198cbb4 Refactored Code to make Save/Load work. This included re-structuring classes so that they contained only native objects/arrays of native objects and using a Reviver function in the JSON.parse. Cleaned up some code that was no longer needed 2016-12-01 16:18:18 -06:00
Daniel Xie
b821fc2ea9 Added utilities for generic reviver, toJSON, and fromJSON. Eventually will be used for loading and saving objects 2016-11-30 16:08:21 -06:00
Daniel Xie
2d41a63707 Added some TODOs 2016-11-29 17:38:50 -06:00
Daniel Xie
77f0c31777 Got NetScript working asyhcronously with Promises! Only for loops have been tested though. Still need to test while loops and ifs. While loops should work if the for loops do, idk about if statements though. If statements aren't a high priority right now though 2016-11-29 16:56:05 -06:00
Daniel Xie
1efee3b7d6 Testing making the script runner NOT be a different web worker thread. 2016-11-28 16:13:13 -06:00
Daniel Xie
4687b80256 Tried to integrate Promises + web workers into Netscript code. Doesn't work at all right now 2016-11-28 16:02:06 -06:00
Daniel Xie
f38fd340f4 Implement Script Editor (mostly) 2016-11-24 16:30:33 -06:00
Daniel Xie
d372ce5980 Fixed some bugs, began adding a Script class 2016-11-21 00:11:14 -06:00
Daniel Xie
8d87b74eaf Finished implementing Netscript. Not completely tested yet. Find out how to make it multithreaded (Web Workers is the best way according to internet 2016-11-17 16:25:40 -06:00
Daniel Xie
6cf9339919 Refactored the hacking progress code into an action progress code so that it can be reused for analyze and anything else that requires an animated progress bar. Implemented analyze 2016-11-01 00:30:59 -05:00
Daniel Xie
f6aaef455d Added full hack functionality with animated progress bar and everthing. All thats left is balancing exp/money gains and also taking care of porthack stuff. Also fixed the terminal not being scrollable 2016-10-27 13:26:00 -05:00
Daniel Xie
0a13496984 Trying to get hack progress bar to work 2016-10-26 22:34:18 -05:00
Daniel Xie
0307b3334d Added port properties to server. Wrote code for hacking() and PortHacking, currently untested 2016-10-24 16:16:51 -05:00
Daniel Xie
1446a8d96e Fixed some issues with the width of terminal 2016-10-24 02:18:01 -05:00
Daniel Xie
4ea83fa199 Added functions to create a random network with foreign servers 2016-10-24 01:34:04 -05:00
Daniel Xie
4517020719 Added some init functions to the engine's init(). Began writing out the hack function for servers 2016-10-20 16:34:21 -05:00
Daniel Xie
4057f946d8 Implemented df and cls/clear commands 2016-10-20 16:11:01 -05:00
Daniel Xie
ce0ca6c24d Fixed syntactical bugs/typos 2016-10-20 13:26:38 -05:00
Daniel Xie
672cd697d6 Added more companies. Began creating Init() function for all foreign servers 2016-10-19 16:43:49 -05:00
Daniel Xie
47e19f5862 Added a few more commands to Terminal (not the implementation). Began defining some of the foreign servers that will exist 2016-10-18 16:37:53 -05:00
Daniel Xie
a1fd46232e Added cases for all the commands that will be implemented for now. Updated Server class to contain information about servers, home computer, etc. Added a few fields to Server that will be used when hacking, as well as constructor. 2016-10-17 16:23:23 -05:00
Daniel Xie
7c03b274d7 Added Player, Server, Terminal, and engine javascript files. Implemented basic terminal UI. Implemented main menu tabs (only added Character and Terminal for now 2016-10-17 03:24:39 -05:00