Commit Graph

158 Commits

Author SHA1 Message Date
Daniel Xie
c331bd7add Edit scripts that are running. Implement maximum money on server 2017-06-06 19:04:18 -05:00
Daniel Xie
1a7a247b4d Re-designed Active Scripts tab. Re-designed growth mechanic to depend on server security. Server growth no longer occurss manually. Bug fixes 2017-06-06 16:22:57 -05:00
Daniel Xie
d3fa9f8c6e Slight rebalancing. Added kill() and killall() commands 2017-06-05 20:34:00 -05:00
Daniel Xie
ce8257fb0c Fixed bug with autocompletion on capitalized leters. Updated to 0.19.7 2017-06-03 15:51:18 -05:00
Daniel Xie
a3d45b3cc2 Script editor now saves state when switching to other tabs. Updated to version 0.19.4 2017-06-02 12:18:53 -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
ba3d7b9aef Updated character page to show growth multiplier 2017-05-31 11:02:40 -05:00
Daniel Xie
6714d664d0 Added Soft Reset ability in Options. Cancelling work only halves reputation, not other stuff liek money and exp. Added 7 new hacking Augmentations 2017-05-31 10:58:09 -05:00
Daniel Xie
f4c90a1612 Fixed issue with Hacknet Node multipliers. Added total production cost display for Active Scripts 2017-05-30 19:00:24 -05:00
Daniel Xie
3ff1e8e87d Added scp command to netscript. Nerfed Hacknet Node augmentations 2017-05-29 20:25:52 -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
bfba6a3d5b Updated Netscript documentation for new Hacknet Node 'API'. Adde game options 2017-05-25 09:50:58 -05:00
Daniel Xie
8cd9e8954d Refactored Netscript Hacknet Node library. Now an array called hacknetnodes[i] can be used to access hacknet nodes, and they can be upgraded with functions 2017-05-25 07:18:34 -05:00
Daniel Xie
84eb295527 Added functionality to create Deepscan programs. Untested 2017-05-24 16:35:24 -05:00
Daniel Xie
d00211a4ff Buffed base production of Hacknet Nodes. Re-calibrated hacker faction invites to account for starting with 8GB of RAM. BruteSSH only takes 10 minutes at most to complete now 2017-05-24 10:32:45 -05:00
Daniel Xie
4d0ee212be UI Improvements. Added two new Netscript functions to purchase Hacknet Nodes 2017-05-20 04:27:42 -05:00
Daniel Xie
0054ab7222 Added a Character ovewview screen 2017-05-20 02:33:33 -05:00
Daniel Xie
48bcfb75b1 Time to create program now affected by hacking level 2017-05-17 09:23:47 -05:00
Daniel Xie
f1b7d78ba3 More rebalancing on hacknet Nodes. Tab in script editor works..not super smooth though. Focus on textarea when script editor opens. code in tututorial now properly ignores all whitespace 2017-05-15 22:06:25 -05:00
Daniel Xie
64717c7915 Fixed bug with offline progress, hopefully. LastUpdate time wasnt being saved properly 2017-05-15 15:12:19 -05:00
Daniel Xie
6c8457fcd8 Still addressing bug with loading offline progress 2017-05-15 14:30:08 -05:00
Daniel Xie
b4db36a115 Think I fixed a bug where offline progress was being calculated wrong 2017-05-15 14:11:40 -05:00
Daniel Xie
bf1469ce15 Updated version 2017-05-15 12:23:20 -05:00
Daniel Xie
56a7ed66a5 Added status text for saving. Minor rebalancing for Hacknet Node RAM Cost 2017-05-15 11:54:23 -05:00
Daniel Xie
51c8e7a6c6 Fixed bug with loading game when working on creating program 2017-05-15 10:28:59 -05:00
Daniel Xie
3919d3e97a Bug fixes for new Netscript commands. Added total Playtime statistics. Minor UI improvements 2017-05-15 09:15:59 -05:00
Daniel Xie
31ef48f4a8 Small UI improvements based on private beta feedback 2017-05-14 21:21:22 -05:00
Daniel Xie
708b800e36 Improved documentation for Netscript. Added a link to Netscript documentation in script editor 2017-05-14 20:43:10 -05:00
Daniel Xie
693e45d98c Fixed some bugs. Updated documentation for Netscript 2017-05-12 13:52:02 -05:00
Daniel Xie
041f195241 Added two new factions, Slum Snakes and Tetrads. Added 4 more augmentations for those factions. Fixed some issues with prestiging 2017-05-12 13:12:32 -05:00
Daniel Xie
3808fe5a3f Minor UI improvements and bug fixes 2017-05-10 15:21:15 -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
20d8a40e17 Playtesting - Rebalancing, UI improvements, added tooltip for programs, home computer no longer reset on prestige 2017-05-08 09:33:26 -05:00
Daniel Xie
21f73088f6 Added neuroflux governor augmentation (the one you can level up 2017-05-07 05:04:54 -05:00
Daniel Xie
315940112c UI Improvements 2017-05-06 17:19:18 -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
e2cbc38920 Adding Interactive Tutorial files - incomplete 2017-05-05 16:27:35 -05:00
Daniel Xie
9f7d6d7bba Bug fixes 2017-05-05 13:13:31 -05:00
Daniel Xie
acc3b8cf89 Create Program refactoring, added a notification for it when it comes up 2017-05-05 11:52:48 -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
2c53073f21 Format numbers to look nice, update info that is displayed on Character page 2017-05-04 15:50:17 -05:00
Daniel Xie
8917284f27 Removed some console.log statements. Fixed bug with displaying Factions Content 2017-05-04 14:29:50 -05:00
Daniel Xie
01f9bf14af Rebalancing Create program times, crime exp gains 2017-05-04 00:27:22 -05:00
Daniel Xie
a934205d08 Added crimes mechanic 2017-05-04 00:05:48 -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
dbdb089887 Playtesting - Rebalancing, bugfixes, improved UI 2017-04-23 20:43:41 -05:00
Daniel Xie
17efb718a4 Playtesting - Rebalancing and bug fixes 2017-04-22 03:41:49 -05:00
Daniel Xie
9b408cb995 Playtesting - Fixed bugs 2017-04-19 14:19:33 -05:00
Daniel Xie
650bdf1f3f Playtesting- fixed bugs 2017-04-19 00:02:40 -05:00
Daniel Xie
77f386d14a Playtesting - Fixed some bugs, refactoring 2017-04-17 23:32:17 -05:00
Daniel Xie
0d6890a565 Added ability to purchase Tor router to access the dark web. Still need to implement functionality for this dark web 2017-04-13 15:21: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
14684dd6d5 Finished Create Program functionality (needs testing) and did work on Tutorial 2017-03-31 16:47:06 -05:00
Daniel Xie
6f5c54b849 Some small fixes and getting ready to implement CreateProgram content 2017-02-28 15:20:37 -06:00
Daniel Xie
37b5152103 Fixed some bugs, Hide Faction Augmentations Content in the hideAllContent() function 2017-02-28 11:10:35 -06:00
Daniel Xie
7aa42321f2 Fixed syntax errors 2017-02-27 16:14:11 -06:00
Daniel Xie
992d0673e5 Display Installed Augmentations Content. Need to add info for each augmentation 2017-02-20 16:45:36 -06:00
Daniel Xie
fa456c48b6 Added Prestiging 2017-02-20 16:06:16 -06: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
ca10704ce0 Got work functionality implemented 2017-02-07 22:48:50 -06:00
Daniel Xie
bedc210b31 Almost done implementing work functionality.Theres an issue with Player finishWork() i think bc its an anonymous function so it doesnt work to call this.finishWork(), idk 2017-02-07 18:27:11 -06:00
Daniel Xie
f5b0796948 Started working on Work functionality 2017-02-05 23:01:01 -06:00
Daniel Xie
fc2dc82f1a Implemented Applying to jobs. Working on Purchasing Servers 2017-02-03 16:05:59 -06:00
Daniel Xie
7382454e83 Did more work on applying for jobs at companies. Need to create constructor/Revivor for companyPositions 2017-02-02 17:33:47 -06:00
Daniel Xie
746a10eecf Fixed some typos in Location.js, began initLocationbuttons() function 2017-01-30 22:43:33 -06:00
Daniel Xie
007d4436c9 Added Locations. Need to add buttons to make everything connect together properly, and also getting/working for josb 2017-01-30 21:41:42 -06:00
Daniel Xie
bf893926b7 Fixed page tabs so all menu pages are working now 2017-01-27 21:10:16 -06:00
Daniel Xie
f1ada52074 Added a constant for cities 2017-01-13 16:20:38 -06:00
Daniel Xie
ceb2305ed8 Load world info and UI, although clicking on a specific location doesn't actually do anything yet 2017-01-11 14:00:51 -06:00
Daniel Xie
e8381743f7 Added Information for many of the factions 2017-01-10 16:23:17 -06:00
Daniel Xie
e89bb00155 Created functions to display Faction content (for a single faction) and added the corresponding html elements. Created framework for loading content for all pages (world, augmentations, etc.) in Engine.js 2017-01-09 16:14:18 -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
f1ec376f33 Implemented server growth (might need rebalancing). No wwhen a script is killed it is properly removed from the Active Scripts tab 2016-12-20 14:18:34 -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
5f1b58fd86 Evaluator + Netscript should now properly handle errors in syntax/runtime errors (almost..still have to implement the properly closing down script when an error is thrown. Check file for TODO). Player skill level should now properly be updated 2016-12-15 16:22:42 -06:00
Daniel Xie
96fb37c6d1 Fixed loadAllRunningScripts(), now seems to be working properly 2016-12-15 11:51:23 -06:00
Daniel Xie
7ec22480a2 Trying to get the functionality to load all running scripts upon load to work 2016-12-14 15:44:18 -06:00
Daniel Xie
334c144bae Upon opening window, all of the running scripts are loaded into WorkerScripts 2016-12-14 15:22:12 -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
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
2fe4e8a19a Changed the game speed so that it wasn't running faster (Rounding the number of game cycles usually caused it to speed up). Save Load function SHOULD be working now 2016-12-01 16:39:13 -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
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
00f8a31246 When game is opened it will automatically try to load from local save, otherwise it begins a new game. Also fixed up save functions 2016-11-24 16:44:48 -06:00
Daniel Xie
f38fd340f4 Implement Script Editor (mostly) 2016-11-24 16:30:33 -06:00
Daniel Xie
1a600ad560 Added offline properties for Script object 2016-11-21 05:22:18 -06:00
Daniel Xie
d372ce5980 Fixed some bugs, began adding a Script class 2016-11-21 00:11:14 -06:00
Daniel Xie
ed7418ac61 Finished defining company and company positions and initialized them in the Engine 2016-11-03 15:43:46 -05:00
Daniel Xie
0e9740dcf9 Continued defining the Company class and began writing initialization for it. Defined a namespace for Constants. 2016-11-02 16:45:10 -05: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
cc6b178a96 Added New Servers.need to properly init them 2016-10-28 16:57:58 -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