Commit Graph

3864 Commits

Author SHA1 Message Date
Daniel Xie
cdd51e675d Rebalancing crime exp rates, small UI improvements and bug fixes 2017-05-04 23:54:40 -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
c862969198 Fixed a bug with displaying Augmentations at a faction. More minor rebalancing for Augmentation requirements 2017-05-04 14:42:27 -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
219373e48e Hacknet Node production and Crime rebalancing 2017-05-04 13:37:57 -05:00
Daniel Xie
b0bc7ed3c7 Rebalancing crime exp and small UI improvements 2017-05-04 02:05:43 -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
97c132418a More rebalancing for Augmentations 2017-05-03 14:25:24 -05:00
Daniel Xie
b76498b19b Rebalancing augmentations 2017-05-03 13:18:09 -05:00
Daniel Xie
a92e9c941d Added Netburners faction - untested 2017-05-03 12:58:09 -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
36a261bd2e Rebalancing to job wages, hack time, and create program level requirements 2017-05-02 12:06:46 -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
097807282d Small UI change - HacknetNode production added toFixed(2) 2017-05-01 22:56:48 -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
9fa616b61a More bugfixes for failed Netscript code 2017-05-01 12:04:30 -05:00
Daniel Xie
37a38c1e27 Fixed at least some of the bugs with Evaluator. needs more testing 2017-05-01 00:39:48 -05:00
Daniel Xie
53273596e2 Playtesting - Small UI improvements. Bug in evaluator that needs fixing 2017-04-27 17:01:26 -05:00
Daniel Xie
2e73efc6ef Playtesting - Fixes and rebalancing 2017-04-27 15:59:57 -05:00
Daniel Xie
b61754ddd0 Finished implementing Hacknet Nodes. Seems to be working fine 2017-04-27 15:02:58 -05:00
Daniel Xie
e2947cc8c3 more work on HacknetNode.js and also added css content for PurchaseRamForHomeBox 2017-04-27 00:01:21 -05:00
Daniel Xie
14fb303504 Began implementing 'hacknet nodes' 2017-04-26 16:51:00 -05:00
Daniel Xie
0a94026d02 Added abilit to purchase RAM for home computeR- untested 2017-04-25 17:24:08 -05:00
Daniel Xie
66681ccae5 Added functions for purchasing additional RAM for home computer 2017-04-25 16:35:17 -05:00
Daniel Xie
25b5016fda Renamed PurchaseServers.js to ServerPurchases.js (more generic file). 2017-04-25 15:18:00 -05:00
Daniel Xie
9d5694e7b5 Added Leadership and Management courses 2017-04-25 14:14:01 -05:00
Daniel Xie
3519cd88f7 Added requirements whena pplying for promotion 2017-04-25 02:14:24 -05:00
Daniel Xie
a11a319d72 Rebalancing 2017-04-24 16:18:04 -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
5870430ea7 Small UI improvements 2017-04-24 10:35:10 -05:00
Daniel Xie
dbdb089887 Playtesting - Rebalancing, bugfixes, improved UI 2017-04-23 20:43:41 -05:00
Daniel Xie
d6c094f4de Playtesting - Rebalancing 2017-04-22 21:32:51 -05:00
Daniel Xie
c69d6ce538 playtesting - rebalancing 2017-04-22 15:29:23 -05:00
Daniel Xie
17efb718a4 Playtesting - Rebalancing and bug fixes 2017-04-22 03:41:49 -05:00
Daniel Xie
75125d5891 Merge branch 'dev' of https://github.com/danielyxie/netburner into dev 2017-04-21 17:22:30 -05:00
Daniel Xie
edb329325c Playtest - Bug fixing 2017-04-21 17:22:25 -05:00
Daniel Xie
37de720bc4 Changed trivial stuff 2017-04-21 16:13:44 -05:00
Daniel Xie
0ceaca5f92 Added leaveFaction() 2017-04-21 15:56:44 -05:00
Daniel Xie
2345faedbc Merge branch 'dev' of https://github.com/danielyxie/netburner into dev 2017-04-21 14:06:51 -05:00
Daniel Xie
52bf4fa0d5 Added the TITN41 augmentation and added it to Silhouette fac 2017-04-21 14:06:41 -05:00
Daniel Xie
c1c37f008e Playtesting - Fixed bugs and some rebalancing with foreign servers 2017-04-20 03:29:07 -05:00
Daniel Xie
fd70bf259b Added Silhouette Faction. Needs to add Augs for it 2017-04-19 16:54:01 -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
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
ffda024431 fixe some bugs 2017-04-17 07:26:54 -05:00
Daniel Xie
a02663edf5 Added DarkWeb.js file 2017-04-14 12:20:57 -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
685103c5d4 Implemented 'rm' command. FIxed some bugs 2017-04-13 14:36:03 -05:00
Daniel Xie
558939fd85 Rebalanced RAM of foreign servers 2017-04-13 13:03:59 -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
3ecbed1351 Finished tutorial text for cities 2017-04-12 16:34:08 -05:00
Daniel Xie
5a8b5c2dd1 Merged tutorial text changes 2017-04-11 21:06:19 -05:00
Daniel Xie
a1e80cc0ab Added some tutorial text 2017-04-11 21:05:21 -05:00
Daniel Xie
8658a1bdfd Added perks to Company object 2017-04-11 15:51:03 -05:00
Daniel Xie
2e4925c45d began adding stuff for Perks. Also refactored some constants 2017-04-11 15:42:06 -05:00
Daniel Xie
e9c2fd46ff Added logging to scripts 2017-04-11 08:59:48 -05:00
Daniel Xie
be641b19db Finished adding Tutorial text 2017-04-11 08:45:56 -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
771e304e7a More prep to handle Create Program functionality. Need to format each item in the Create Program List first, then make an item for each possible program that can be created 2017-02-28 16:06:12 -06:00
Daniel Xie
6f5c54b849 Some small fixes and getting ready to implement CreateProgram content 2017-02-28 15:20:37 -06:00
Daniel Xie
2d40afb740 Fixed formatting issue 2017-02-28 11:47:43 -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
9153c48b23 Updated some of the Faction Info entries 2017-02-24 14:48:15 -06:00
Daniel Xie
db476ee902 Changed text to show 'Apply for Promotion' At a company if you already have a job there. Script runtime errors create dialog boxes now 2017-02-24 09:11:45 -06:00
Daniel Xie
06726e890b Finished adding information for all augmentations 2017-02-23 15:41:20 -06:00
Daniel Xie
286bd52090 Added even more Augmentation info 2017-02-22 16:07:55 -06:00
Daniel Xie
58874efa5f Added info for another augmentation 2017-02-21 16:23:42 -06:00
Daniel Xie
a29ea6ea5d Added information for some augmentations 2017-02-21 16:11:59 -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
4a60874a3a Display Faction content, including Augmentations. Added requirements for Augmentations. Created PurchaseAugmentationBox.js. Next step is to create the reset function needed for prestiging 2017-02-17 16:19:25 -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
1c26d2953b Began adding requirements for Factions 2017-02-09 16:40:55 -06:00
Daniel Xie
7e8e88db3e Added Augmentations to their faction 2017-02-09 12:35:28 -06:00
Daniel Xie
b25d685381 Added some more Augmentations. Need to add them to factions now (do this in Augmentations class init rather than Factions, will probably be easier) 2017-02-08 16:50:22 -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
d20da28c51 Reformatted DialogBox and PurchaseServerBox. Implemented purchase server, untested (will test when I do a playthrough so i get enough moeny) 2017-02-05 19:29:17 -06:00
Daniel Xie
fc2dc82f1a Implemented Applying to jobs. Working on Purchasing Servers 2017-02-03 16:05:59 -06:00
Daniel Xie
afda3338bd More work on CompanyJobApplication.js, unfinished and untested. need to add popups saying if u got the job or not 2017-02-02 22:02:27 -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
c7b093830b Did more work on initlocationbuttons() 2017-02-01 21:15:57 -06:00
Daniel Xie
c4ca37bbca Adding Location.js to git 2017-01-30 23:19:32 -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
76aa8cb9c4 Finished adding positions to the companies 2017-01-11 11:44:59 -06:00
Daniel Xie
090fd9edff Added the Positions to Company objects for about half the companies, need to finish the rest 2017-01-10 16:42:55 -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
25bf876f4a Preparing code to create the Factions page 2016-12-22 11:13:00 -06:00
Daniel Xie
8239e94a3a Created servers for some of the Factions. THese factions are joinable when you hack into the servers 2016-12-22 10:19:02 -06:00
Daniel Xie
65ba93190b Added augmentations 2016-12-22 09:56:15 -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
fc3d52b832 Refactored Factions class so that it works with saving/loading. Defined initFactions() function for currently brainstormed factions 2016-12-20 14:31:41 -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
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
8c58710495 Resolving and rejecting at the top level now returns a reference to workerScripts. This makes killing/deleting a running script possible. The feature appears to be working now 2016-12-06 10:59:20 -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
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
867ae191b5 Refactored Netscript code into their respective files since it will no longer be done in Web Worker 2016-11-29 17:07:24 -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
320526ebb3 Added stuff to Script queue functionality..it's gonna get deleted anyways so w.e 2016-11-25 16:08:04 -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
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
a4f92f7520 Fixed mege conflicts 2016-11-17 09:34:38 -06:00
Daniel Xie
62fbb5452d Added some factions 2016-11-17 09:31:52 -06:00
Daniel Xie
40b0b585e1 Added InputStream, Tokenizer, and Parser(unfinished) class. Changed Newerth to Aevum 2016-11-14 00:42:31 -06:00
Daniel Xie
f311b0b84f Began deining the Faction class 2016-11-03 16:36:01 -05: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
8530e51628 Finished initializing new servers (johnson ortho and newerth police). Finished init functions for Company class, and began declaring all possible companies. 2016-11-01 16:19:57 -05:00
Daniel Xie
6e0644555c Began defining the Company class 2016-11-01 00:44:04 -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
Daniel Xie
0a13496984 Trying to get hack progress bar to work 2016-10-26 22:34:18 -05:00
Daniel Xie
d268ea09f8 Added debugging statements to try and figure out whats wrong when the time is calculated for hacks 2016-10-24 16:36:23 -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
0b7f19fd8c Added function to calculate Player's hacking skill based on exp 2016-10-21 16:15:45 -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
f6212a4c6d Finished creating all the companies (for now) and adding their starting properties in the init function 2016-10-20 13:07:12 -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
Daniel Xie
9772525263 Adding basic Player and Server class definitions 2016-10-14 16:02:06 -05:00