Commit Graph

2770 Commits

Author SHA1 Message Date
BuildTools
59498f780a Small css tweaks 2021-12-18 07:11:59 -06:00
Martin Fournier
733f04c343 Add an option to suppress the 'Saved Game' toast 2021-12-18 08:01:15 -05:00
Robin Rexstedt
87d8f67df1 make nFormat return a string 2021-12-18 13:12:23 +01:00
BuildTools
2265f797c4 Added the ability to open multiple script files at a time
Fixed a bug where ram would stay the same when switching between scripts

Fixed bug where updating ram could cause the GUI to crash

The editor will now go to the last edited line when switching tabs.

Tidied up the script editor UI
2021-12-18 04:10:25 -06:00
Jared Jolton
5e5e2c60aa
Fix typo in AutolinkProgram description 2021-12-17 21:58:05 -07:00
Nicholas Colclasure
8ba5199e54 Fix problems finding root files in cat and ns.read
Cat ends up translating the path it receives from relative to absolute twice, which I fix by changing the filename to an absolute path before it's passed to getTextFile with a leading "/" so that it doesn't interpret the filename as being relative.

Read I fixed by causing getTextFile to remove the leading "/" from files that are in the root directory, since that is required to translate their name into the native "filesystem"s format.
2021-12-17 20:40:46 -08:00
Adraxas
069d76df25 Fix NS.exec signature 2021-12-17 18:40:00 -08:00
hydroflame
504a8a4be5
Merge pull request #1971 from MartinFournier/feature/hashes-upgrades
Fix #1863: Add getHashUpgrades hacknet function
2021-12-17 15:50:46 -05:00
Billy Vong
b3f9380ebd prettier 2021-12-17 12:56:48 -05:00
hydroflame
2b5cc03e79
Merge pull request #1968 from MageKing17/patch-1
Quickly fix silly typo mentioned on Discord.
2021-12-17 12:55:58 -05:00
hydroflame
5b79712817
Merge pull request #1985 from billyvg/fix/prevent-ctrl-alt-j-navigation
Prevent `ctrl+alt+j` from navigating to Jobs
2021-12-17 12:55:08 -05:00
Billy Vong
6fb5565b08 remove unused code 2021-12-17 12:48:50 -05:00
Martin Fournier
84c77c1d2c Fix #1889: Add skill progress to overview
Adds a progress bar for each stat to show how close to level up you are.
2021-12-17 12:44:18 -05:00
Billy Vong
f4ea1ae970 Merge branch 'dev' into fix/prevent-ctrl-alt-j-navigation 2021-12-17 12:39:57 -05:00
Billy Vong
cdd85c09e1 Merge branch 'dev' into feat/add-vim-mode 2021-12-17 12:38:16 -05:00
Billy Vong
659211e1ff Prevent ctrl+alt+j from navigating to Jobs
This is a browser hot key to open the Chrome Developer Tools.
2021-12-17 12:35:47 -05:00
Billy Vong
fb5d374279 feat: Add vim mode to script editor
This adds an option to turn on vim mode using the `monaco-vim` library.
2021-12-17 12:34:00 -05:00
Guillermo Robles
b14432329a Add support for ALL argument in enableLog function
- Fixes: #1928
2021-12-17 17:33:33 +01:00
Martin Fournier
da0cc6d8f1 Fix #1974: Change default input to deferred
The value does not change automatically now, there's a "Set" button in
the popup to trigger the onColorChange event.
2021-12-17 11:00:00 -05:00
Martin Fournier
217b94d0a0 Fix #1863: Add getHashUpgrades hacknet function
Adds a new functions ofr hacknet servers that returns the list of
available hash upgrades.
2021-12-17 05:35:17 -05:00
MageKing17
e8b4d15078
Update TutorialRoot.tsx
Correct "NS1 vs NS1" typo.
2021-12-17 00:35:23 -08:00
Olivier Gagnon
ae6f8c5ee7 make tutorial better 2021-12-16 20:54:50 -05:00
Olivier Gagnon
81e291ef6a change color of terminal input 2021-12-16 20:20:07 -05:00
Olivier Gagnon
99f3566e52 bugfix 2021-12-16 20:09:19 -05:00
Billy Vong
9b64551197 Merge branch 'dev' into feat/add-ctrl-u-clear-line 2021-12-16 17:07:39 -05:00
Billy Vong
2e9a42d74c add comment 2021-12-16 17:03:49 -05:00
Billy Vong
2804b6ae56 remove console 2021-12-16 17:03:15 -05:00
Billy Vong
d4bf6100a3 feat: Add ctrl+u/k/w hotkeys
Adds the `ctrl+u/k/w` hotkeys to clear line before and after, as well as deleting word before cursor. I implemented deleting word after cursor, but I have not repod the functionality in bash, so I did not add the hotkey.
2021-12-16 16:59:24 -05:00
hydroflame
55d386a504
Merge pull request #1952 from MartinFournier/feature/git-commit-version
Fix #1880: Show git commit of bundled app
2021-12-16 15:45:25 -05:00
hydroflame
88666ec3fa
Merge pull request #1953 from danielyxie/dev
doc
2021-12-16 15:30:22 -05:00
Olivier Gagnon
33e918fc49 doc 2021-12-16 15:28:53 -05:00
Martin Fournier
e8e2760c73 Fix #1880: Show git commit of bundled app 2021-12-16 15:25:59 -05:00
Olivier Gagnon
e16fba2418 scan doc 2021-12-16 15:21:00 -05:00
hydroflame
c38992be8d
Merge pull request #1949 from danielyxie/dev
build
2021-12-16 12:58:30 -05:00
Olivier Gagnon
5718800b91 doc update 2021-12-16 12:41:18 -05:00
Olivier Gagnon
6ef99e138c fix BN exploit 2021-12-16 12:40:24 -05:00
Olivier Gagnon
3c67da02f3 typo 2021-12-16 12:33:44 -05:00
Olivier Gagnon
9292484ed0 minor tweak 2021-12-16 12:29:41 -05:00
Olivier Gagnon
a1af0318d8 minor error message tweak 2021-12-16 12:20:04 -05:00
hydroflame
b05645a61c
Merge pull request #1936 from TheCoderJT/issue1920
Issue1920
2021-12-16 12:19:23 -05:00
hydroflame
43aba18b77
Merge pull request #1933 from Saynt-Garmo/dev
Issue 1911
2021-12-16 12:18:16 -05:00
Olivier Gagnon
52f2e52456 minor tweak to scp error message 2021-12-16 12:14:48 -05:00
hydroflame
0a63de4539
Merge pull request #1932 from theit8514/cp-1922
Update cp and mv terminal commands #1922
2021-12-16 12:14:15 -05:00
Olivier Gagnon
16431f1031 minor tweak to doc 2021-12-16 12:13:00 -05:00
hydroflame
2da9f87031
Merge pull request #1895 from TheCoderJT/editingGitDocs
Editing git docs
2021-12-16 12:11:05 -05:00
Olivier Gagnon
91c7811a36 format 2021-12-16 12:04:09 -05:00
Olivier Gagnon
d7f9cb8cec make setFocus a little more robust 2021-12-16 12:02:46 -05:00
Hedrauta
9e9a1ca882 Update codingcontracttypes.ts 2021-12-16 16:05:46 +01:00
Jordan Turner
e1e032b61f added semi colons they were missing at the end of some examples 2021-12-15 22:15:29 -07:00
Jordan Turner
db9b0a8ec8 added await before the ns2 method calls 2021-12-15 22:01:44 -07:00
Jordan Turner
3926913790 updated appearach of example sections based on alainbryden suggestion 2021-12-15 21:47:18 -07:00
theit8514
2e133bcf0a Fix return type of isFocused 2021-12-15 20:55:47 -05:00
theit8514
d59601f848 Add return value and code style cleanup 2021-12-15 20:48:19 -05:00
theit8514
cd4c98d942 Only change to terminal when focused 2021-12-15 20:44:08 -05:00
theit8514
c50c92f9b5 Update SF requirement to match documentation 2021-12-15 20:33:48 -05:00
theit8514
2726420709 Add errors and only change page when focus changes 2021-12-15 20:33:48 -05:00
theit8514
07d449afc2 Ensure focus does not change between calls to work 2021-12-15 20:33:48 -05:00
theit8514
ad57f3dc73 Work functions do not take focus
setFocus readded and updated to send the user to the Work page if focusing.
2021-12-15 20:33:48 -05:00
Jordan Turner
ac79d0aea4 adjusted the wording and added dynamic player server location 2021-12-15 17:52:08 -07:00
Jordan Turner
4836617745 made the terminal error more clear based on issue 1920 2021-12-15 17:19:45 -07:00
tyasuh.taeragan@gmail.com
ce0de40e59 Issue 1934 2021-12-15 18:10:29 -05:00
tyasuh.taeragan@gmail.com
61e962ec12 Issue 1911 2021-12-15 17:59:03 -05:00
theit8514
8ef227595a Add support for relative paths in mv
Fixes mv command deleting file on overwrite
2021-12-15 17:46:36 -05:00
theit8514
4e022c68e9 Add support for relative paths in cp
Fix cp error messages
Add support for directory destinations (e.g. copy file.js directory)
2021-12-15 17:36:15 -05:00
Jordan Turner
632e1f70f3 added rs to backricks to color code syntax 2021-12-15 10:25:54 -07:00
Jordan Turner
687682fcbd added syntax useage to github ns page 2021-12-15 10:10:32 -07:00
Olivier Gagnon
5b38ee3cfb fix undying script bug 2021-12-14 19:39:55 -05:00
Olivier Gagnon
4d80813707 bugfix 2021-12-14 15:56:11 -05:00
Olivier Gagnon
de9fb24156 Fix scripts dying of weird causes. 2021-12-13 22:26:22 -05:00
Olivier Gagnon
c1e3a170ab Augmentations page shows stats reductions 2021-12-13 20:28:21 -05:00
Olivier Gagnon
e5b4dd8e90 Files should be saved on the server that opened them. 2021-12-13 20:08:58 -05:00
Olivier Gagnon
50bc9496ec fix gym not giving discoutns 2021-12-13 19:46:08 -05:00
Olivier Gagnon
1b42b51e5f few bugfix 2021-12-13 18:44:52 -05:00
Olivier Gagnon
7b8e486e3a fix typo in doc 2021-12-13 15:50:01 -05:00
theit8514
3437a0a730 Await scp multiple script copy 2021-12-12 19:50:53 -05:00
Olivier Gagnon
7d6947ee01 fix unknown script die for known reason 2021-12-12 14:57:44 -05:00
Olivier Gagnon
e117548895 fix some stack traces not printing file name 2021-12-12 14:49:02 -05:00
Olivier Gagnon
4460bf1613 fix shortcuts 2021-12-12 14:02:45 -05:00
Olivier Gagnon
11ba8c91be getServer of hacknet doesn't return undefined 2021-12-12 13:47:05 -05:00
Olivier Gagnon
dea8abef1d better error message for bad args 2021-12-12 13:30:28 -05:00
Olivier Gagnon
5f696aba72 Merge branch 'dev' of github.com:danielyxie/bitburner into dev 2021-12-12 12:48:26 -05:00
Olivier Gagnon
69a9448e47 fix typos 2021-12-12 12:46:56 -05:00
DJMatch3000
445fbd59c7
Player Stats ui bugfix
Fixed a mix-up with Bladeburner stats on the Player Stats page
2021-12-10 15:45:17 -05:00
Olivier Gagnon
172998bef5 boost noodle bar 2021-12-09 16:47:26 -05:00
Olivier Gagnon
2eaa33c9f3 nerf manualHack int gain but differently 2021-12-09 16:30:03 -05:00
Olivier Gagnon
769aad8ead nerf manualHack int gain 2021-12-09 16:26:49 -05:00
Olivier Gagnon
394a286646 formulas for ascension 2021-12-09 12:52:51 -05:00
Olivier Gagnon
5e916ee3bd tighten bn13 2021-12-09 10:45:33 -05:00
Olivier Gagnon
7e6a0bbf56 make BN13 harder 2021-12-09 10:15:50 -05:00
Olivier Gagnon
d195b00ab6 Added option to suppress TIX limit/stop orders 2021-12-08 20:21:44 -05:00
Olivier Gagnon
c915cd06d8 corp doc 2021-12-08 20:03:22 -05:00
Olivier Gagnon
14317628e6 formulas doc 2021-12-08 19:19:07 -05:00
Olivier Gagnon
5a15df9ce7 rename the functions I created 2 minutes ago. 2021-12-08 19:03:33 -05:00
Olivier Gagnon
6eba92b36c rename the functions I created 2 minutes ago. 2021-12-08 18:41:49 -05:00
Olivier Gagnon
d64ce5271e fix receiving multiple times the same invite 2021-12-08 18:29:56 -05:00
Olivier Gagnon
ed821617c0 save files are now chronologically named 2021-12-08 18:27:57 -05:00
Olivier Gagnon
35fa4a4117 fix sleeve function not returning cha 2021-12-08 18:27:14 -05:00
Olivier Gagnon
0306397f53 fix buying negative memory 2021-12-08 18:25:49 -05:00
Olivier Gagnon
2af57cb01e formulas for gang stuff 2021-12-08 18:19:30 -05:00
Olivier Gagnon
d01d75606a few bugfix 2021-12-08 17:39:01 -05:00
Olivier Gagnon
133d80749d add bn14 location 2021-12-04 23:47:53 -05:00
Olivier Gagnon
a845c5ac8f rm tail bound 2021-12-04 18:58:26 -05:00
Olivier Gagnon
25aa5d3afe corp api 2021-12-03 23:08:11 -05:00
Olivier Gagnon
737276e855 corp api 2021-12-03 23:06:04 -05:00
corver
2f55cd27c5 Fix some Bladeburner typos 2021-12-03 16:45:48 -05:00
corver
83090bfa8c Match descriptions of BN5 and SF5 2021-12-03 16:30:06 -05:00
Olivier Gagnon
f487a0c0e9 loosed hacking nerf 2021-12-03 16:27:49 -05:00
Olivier Gagnon
5470f9fdc1 wd diff increase 2021-12-03 16:21:35 -05:00
Olivier Gagnon
3c27893aa3 v1.1.0 2021-12-03 16:14:13 -05:00
hydroflame
ceb008c9fe
Merge pull request #1816 from cvr-119/netscript
Add missing properties of Server interface
2021-12-03 16:09:56 -05:00
Olivier Gagnon
647ccd6a7b BN13 2021-12-03 16:09:13 -05:00
corver
118fddb1bb Add missing properties of Server interface 2021-12-03 16:00:49 -05:00
Olivier Gagnon
8e11e25904 release bn13 2021-12-03 15:45:39 -05:00
Olivier Gagnon
d4ebc46a19 merge dev 2021-12-03 15:35:45 -05:00
Olivier Gagnon
798c9867a7 logbox cant go outside body 2021-12-03 15:31:25 -05:00
Olivier Gagnon
f111beb399 rm consolelog 2021-12-03 15:20:31 -05:00
Olivier Gagnon
e6b263e6ec make infil reward more consistent. 2021-12-03 15:11:31 -05:00
Olivier Gagnon
68cff084ff int helps lower program creation req 2021-12-03 14:49:44 -05:00
Olivier Gagnon
0b92f706ad terminal parses boolean exactly. 2021-12-03 14:46:40 -05:00
Olivier Gagnon
13b08d7cc8 terminal parses boolean exactly. 2021-12-03 14:44:32 -05:00
Olivier Gagnon
99ed9b25a3 autolink less lines 2021-12-03 14:17:29 -05:00
Olivier Gagnon
49a545f00e many bugfix 2021-12-03 14:12:32 -05:00
Olivier Gagnon
d852649f2b log issue 2021-12-03 13:54:49 -05:00
Olivier Gagnon
773f50ba67 doc n steam copypaste 2021-12-02 18:42:30 -05:00
theit8514
9b4e612be2 Update return type 2021-12-02 12:36:09 -05:00
theit8514
cb1aa452a1 Move getOwnedSourceFiles to NetscriptFunctions 2021-12-02 12:17:33 -05:00
Olivier Gagnon
9b009b980c achievements stuff 2021-12-01 14:26:49 -05:00
theit8514
788f1a1d37 Keep faction invites if not accepted on reset 2021-11-30 03:02:04 -05:00
Olivier Gagnon
3a6d51134a Merge branch 'dev' of github.com:danielyxie/bitburner into dev 2021-11-28 23:51:08 -05:00
Olivier Gagnon
7ee5d8d71a more achievements 2021-11-28 23:51:01 -05:00
hydroflame
2dfc52351d
Merge pull request #1797 from alainbryden/patch-2
Bad copy pasta from isFocused -> setFocus
2021-11-28 13:14:46 -05:00
Olivier Gagnon
e262c9bb38 achievements 2021-11-27 15:07:25 -05:00
Olivier Gagnon
d257cb84ad keep factions now just give an invite. 2021-11-27 11:44:48 -05:00
Alain Bryden
ca2948b854
Bad copy pasta from isFocused -> setFocus 2021-11-26 23:02:02 -04:00
Olivier Gagnon
59d5fa9ef5 fix coding contract focus 2021-11-26 18:59:25 -05:00
Olivier Gagnon
03a703c4b0 fix 2021-11-26 18:56:58 -05:00
Olivier Gagnon
b941753e1b more fixes 2021-11-26 18:54:06 -05:00
Olivier Gagnon
f17870926b tail box close on soft reset 2021-11-26 18:47:12 -05:00
Olivier Gagnon
6e71258a53 fix disable log for tix api 2021-11-26 18:43:50 -05:00
Olivier Gagnon
6fb38b5439 getRunningScript fix 2021-11-26 18:37:03 -05:00
Olivier Gagnon
c05518e162 workerscript log takes a function now, hopefully this will increase performance. 2021-11-26 18:30:58 -05:00
Olivier Gagnon
fe3aa5a357 rm references to fconf 2021-11-26 18:05:14 -05:00
Olivier Gagnon
1cecfa7108 few fixes 2021-11-26 18:04:33 -05:00
Olivier Gagnon
6c24ed69a2 merge prs 2021-11-26 17:56:49 -05:00
Olivier Gagnon
39df55cfe5 fix logbox color 2021-11-26 17:55:14 -05:00
hydroflame
a21e2f0dd5
Merge pull request #1791 from alainbryden/1766-fix-blackjack-double-loss
#1766 - Fix blackjack double loss, black-on-black text
2021-11-26 17:51:45 -05:00
Alain Bryden
f7da154411 Blackjack pays 1.5x, fix appearances
I'll lead with this so it doesn't look like I snuck it in: Winning by blackjack is special and usually pays 1.5x so I made it so :) All the infrastructure was already in place.

Fixed bkack-on-black text, I didn't even know the game kept count of your cards for you! Improved the way it's displayed a bit (screenshot in PR)

Also simplified the code that determines gains and applies the win since there was some duplication there.
2021-11-26 00:37:18 -04:00
Alain Bryden
dbde0b8112 #1766 Fix blackjack double loss
Bet was being removed twice instead of just once. This fact was accounted for in the win and tie if branches, but not the loss branch.
2021-11-25 23:28:23 -04:00
Alain Bryden
ef23033b2c #1773 - Fix duplicate file extensions
For some time now, filenames have included the extension, so there's no need to append ".js" either on a single-file download or zip download.

While I was in the area, I also fixed .txt files in a folder - they had the same bug as scripts used to (appear in the zip as an underscore). I consolidated the code since it was the same for script files and text files.

I also added the ability to download *.js and *.ns (previously only supported *, *.script, and *.txt)

I also made the wildcard matching just a bit more flexible, so if someone really wanted to, they could go "download *blah.js" and get all scripts ending with that pattern ¯\_(ツ)_/¯
2021-11-25 23:06:13 -04:00
Olivier Gagnon
f0a004e75b Fix a bunch of scripting related stuff. 2021-11-25 11:47:31 -05:00