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 |
|