hydroflame
570b8caf78
Merge pull request #2873 from SagePtr/purchaseserver-args
...
Add user-friendly invalid argument number message to purchaseServer
2022-03-08 16:39:54 -05:00
Nikolai Korolev
25e28df42b
Fix Static Ram Circumventing for all NS functions
2022-03-07 16:18:58 +03:00
Nikolai Korolev
b2ec5d1691
Fix error message for scp
2022-03-07 11:40:06 +03:00
hydroflame
f11e7bac6a
Merge pull request #3005 from rhobes/patch-1
...
Fix https://github.com/danielyxie/bitburner/issues/2996 : weakenAnalyze miscalculation
2022-03-01 11:16:31 -05:00
Heikki Aitakangas
66ceff4e33
Fix #3037 : wrap user-supplied atExit function so that we can't accidentally leak game objects as 'this'
2022-02-26 01:00:02 +02:00
M
6d87d7b743
Fix https://github.com/danielyxie/bitburner/issues/2996
...
Trivial fix of https://github.com/danielyxie/bitburner/issues/2996 by adding the BN multiplier to analyze.
2022-02-19 14:21:39 -08:00
phyzical
66ec3f4964
fix function name in error for better trace
2022-02-13 17:10:11 +08:00
phyzical
9770853e29
removed the isNs interface guard as its redunant
2022-02-13 17:08:55 +08:00
phyzical
e8954bc1ee
added basic type check to tryWritePort
2022-02-07 22:14:48 +08:00
phyzical
6ed5a445a8
added check for NS interface with user defined guard
2022-02-07 21:56:04 +08:00
Chris Rabe
3e61780fad
fix: fixed hackAnalyzeThreads returning infinity
2022-01-31 08:14:10 +10:00
Phil
08d0b4cbae
Adding support for text/select options in Prompt command
2022-01-30 14:06:18 +00:00
SagePtr
db5476ebd0
Add user-friendly invalid argument number message to purchaseServer
2022-01-30 00:04:45 +02:00
smolgumball
2add4e9112
Merge branch 'dev' into add-ns-getRecentScripts
2022-01-26 19:07:02 -07:00
hydroflame
1a34d5e363
Merge pull request #2703 from lethern/patch-1
...
purchaseServer error message fix + small docs change
2022-01-26 00:50:42 -05:00
Terrana
f2c4109211
Add ns.printf function
...
Behaviour is consistent with that of tprintf versus tprint and
should be equivalent to ns.print(ns.sprintf(...))
2022-01-21 12:08:47 +00:00
lethern
61cea12ca2
purchaseServer: improved error message for ram > maxRam
2022-01-19 19:09:33 +01:00
smolgumball
74e2acfa6f
Add ns.getRecentScripts()
2022-01-19 00:04:48 -07:00
Olivier Gagnon
d2ec38753b
Merge branch 'dev' of github.com:danielyxie/bitburner into dev
2022-01-18 18:59:17 -05:00
Olivier Gagnon
d0a44a6088
change asleep
2022-01-18 18:57:43 -05:00
hydroflame
bb34d6b582
Merge pull request #2618 from pigalot/Corp-Api-Updates
...
Corp api updates
2022-01-18 18:05:23 -05:00
Olivier Gagnon
05cbc25a8f
1.4
2022-01-18 14:03:24 -05:00
lethern
bb6c2cd79e
Update NetscriptFunctions.ts
2022-01-17 23:53:44 +01:00
hydroflame
27a54217eb
Merge pull request #2653 from nickofolas/fix/refactor-loops
...
Refactor `for ... in` loops
2022-01-17 16:01:04 -05:00
pigalot
360b8d8d16
Add has corp to the api player object
2022-01-16 16:11:31 +00:00
nickofolas
ab841f7530
Refactor for ... in
loops
2022-01-15 18:45:03 -06:00
hydroflame
c0f6399a96
Merge pull request #2590 from deathly809/feature/ns_support_rm
...
Add support for the mv command in NS
2022-01-15 18:26:31 -05:00
hydroflame
0b36c9a4b2
Merge pull request #2648 from SlyCedix/scp-def
...
Add function signature for scp(files, destination)
2022-01-15 18:23:56 -05:00
hydroflame
03f71bd5f4
Merge pull request #2485 from Ornedan/netscriptdelay-check-stop
...
Refactor netscriptDelay and script kill interaction
2022-01-15 17:26:23 -05:00
Cyn
b179a6a53a
make hostname2 argument of scp optional
2022-01-15 16:42:04 -05:00
zeddrak
bf48741792
Correction for ns.hack pro-rated security increase
...
corrects an issue where hacking with more threads than was needed to hack all remaining money from a server with availMoney < maxMoney would have irregular results on security increase.
fix for issue #2307
discord thread: https://discord.com/channels/415207508303544321/931980343970513026/931980345329479750
2022-01-15 11:33:46 -08:00
Jeffrey A. Robinson
0002daa3e9
Merge branch 'dev' of https://github.com/deathly809/bitburner into dev
2022-01-14 17:14:41 -08:00
Jeffrey A. Robinson
dc6432fa4e
getWeakenTime should take an optional hostname
2022-01-14 17:14:35 -08:00
Jeffrey A. Robinson
910c9d9e7e
Correctly label functions so that disableLog will work
2022-01-12 16:55:45 -08:00
Jeffrey A. Robinson
bedea0ac73
Add support for the mv command in NS
2022-01-12 09:53:54 -08:00
hydroflame
d2fadfe600
Merge pull request #2582 from deathly809/bug/helper_number_should_handle_nan
...
Ensure INetscriptHelper number function handles NaN
2022-01-12 11:14:51 -05:00
zeddrak
4d0a5a43c0
Made hack log msg consitent with grow and weaken
...
Changed hack log message from "executing target" to "executing on target".
This makes it consistent with grow and weaken; and reads better as well.
2022-01-12 05:58:12 -08:00
Jeffrey A. Robinson
3b765b2865
Ensure INetscriptHelper number function handles NaN
2022-01-11 22:24:03 -08:00
daan flore
0d006d0a64
Adding correct type to getPortHandle function
2022-01-10 22:49:42 +01:00
Olivier Gagnon
d8a5f5b03c
many fixes
2022-01-09 15:24:32 -05:00
Heikki Aitakangas
c6ff982b1d
Remove stopFlag checks made redundant by the netscriptDelay change
2022-01-09 02:42:36 +02:00
TheMas3212
446810d98f
Fix toLowercase in fileExists check for literature and message files
...
fixes #2245
2022-01-09 06:11:42 +11:00
Olivier Gagnon
925bed4430
fix scp
2022-01-04 22:25:41 -05:00
Olivier Gagnon
4860d6dc83
Merge branch 'dev' of github.com:danielyxie/bitburner into dev
2022-01-04 19:09:38 -05:00
Olivier Gagnon
c59a267437
change sf4
2022-01-04 19:09:34 -05:00
Woody Lam
f65e546c32
Fix #2329 NUKE.exe runtime error
2022-01-04 21:40:21 +00:00
nickofolas
23b21e63a0
Validate RAM amount in ns.purchaseServer()
2022-01-03 17:00:32 -06:00
TheMas3212
e3e1770439
Fix Typedef for getScriptIncome/getScriptExpGain
...
Current Typedef does not allow using the run with no arguments for
totals versions
2021-12-31 23:31:46 +11:00
TheMas3212
f3aed87fa4
Fix Typing on kill in NetscriptFunctions.ts
...
forgot to mark hostname as optional
2021-12-31 11:12:43 +11:00
hydroflame
636fc7cda0
Merge pull request #2204 from ErzengelLichtes/fix-port-validation
...
DRY: Consolidated the code for retrieving a port so it will have consistent errors checks.
2021-12-29 11:30:18 -05:00
Olivier Gagnon
04f2cfe522
Merge branch 'dev' of github.com:danielyxie/bitburner into dev
2021-12-29 02:04:28 -05:00
Olivier Gagnon
0fc95e6215
text editor improvements
2021-12-29 02:04:24 -05:00
ErzengelLichtes
b13f146bc3
Changed writing specific text to be more generic
2021-12-27 11:36:14 -08:00
BrokenName
90ca9407d5
Update NetscriptFunctions.ts
...
Undid removal of writePort data validation
2021-12-27 10:38:00 -08:00
BrokenName
7c846abb65
DRY: Consolidated the code for retrieving a port so it will give consistent errors.
2021-12-27 10:06:38 -08:00
MageKing17
a16cb745c5
Get rid of console spam in NetscriptFunctions.ts
...
This was filling up the console and making it hard to debug anything other than `exec` calls.
2021-12-24 19:34:34 -08:00
Andrew Cooper
17b11f107f
hackAnalyzeThreads will return zero instead of NaN when checking the effect of zero threads on a server with zero cash.
2021-12-22 01:12:45 +00:00
hydroflame
26106fa71d
Merge pull request #2077 from MartinFournier/feature/get-theme
...
Add ns.ui.getTheme() api function
2021-12-21 10:57:58 -05:00
Olivier Gagnon
41a7109baa
fix
2021-12-20 15:48:26 -05:00
Martin Fournier
65d0877edc
Add ns.ui.getTheme() api function
2021-12-20 14:37:10 -05:00
Olivier Gagnon
5dc9ac040a
toast time config
2021-12-20 13:29:04 -05:00
MageKing17
e521415273
Update NetscriptFunctions.ts
...
Just a simple change to make `alert` and `toast` reuse `argsToString` instead of `toNative` and `JSON.stringify` directly.
Fixes #2015 .
2021-12-19 16:58:49 -08:00
Olivier Gagnon
555216a39b
Add confirmation to installing
2021-12-18 18:13:49 -05:00
hydroflame
0ff110492e
Merge pull request #1982 from wynro/add-ALL-to-enableLog
...
Add support for ALL argument in enableLog function
2021-12-18 14:39:44 -05:00
Guillermo Robles
b14432329a
Add support for ALL argument in enableLog function
...
- Fixes : #1928
2021-12-17 17:33:33 +01:00
Olivier Gagnon
6ef99e138c
fix BN exploit
2021-12-16 12:40:24 -05:00
Olivier Gagnon
5b38ee3cfb
fix undying script bug
2021-12-14 19:39:55 -05:00
theit8514
3437a0a730
Await scp multiple script copy
2021-12-12 19:50:53 -05:00
Olivier Gagnon
11ba8c91be
getServer of hacknet doesn't return undefined
2021-12-12 13:47:05 -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
737276e855
corp api
2021-12-03 23:06:04 -05:00
Olivier Gagnon
d4ebc46a19
merge dev
2021-12-03 15:35:45 -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
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
f0a004e75b
Fix a bunch of scripting related stuff.
2021-11-25 11:47:31 -05:00
Bart Koppelmans
b6b191bdbe
Fixed tprintf also printing the file name
2021-11-20 20:54:31 +01:00
Olivier Gagnon
60d34c3cc6
rebuild
2021-11-19 23:45:34 -05:00
Olivier Gagnon
c88dade19a
fix tprintf catching errors
2021-11-19 22:58:41 -05:00
Olivier Gagnon
b80d12b9f8
v1.0.2 part 1
2021-11-19 15:44:12 -05:00
Olivier Gagnon
762b5b44aa
spawn defaults to 1 thread
2021-11-18 18:00:20 -05:00
Olivier Gagnon
43a6521403
more work on bn13
2021-11-13 23:45:26 -05:00
Olivier Gagnon
56ddcd9a45
more work on bn13
2021-11-13 22:44:17 -05:00
Olivier Gagnon
6bd6b3061e
rename some stuff and close some exploits
2021-11-12 15:42:57 -05:00
Olivier Gagnon
3112dc60c0
few more bugfixes
2021-11-11 23:28:08 -05:00
Olivier Gagnon
3edbfd6916
wtf
2021-11-11 20:09:38 -05:00
Olivier Gagnon
7cc4295c63
fix a few bugs
2021-11-10 07:52:26 -05:00
Olivier Gagnon
88b4a7d862
bugfix
2021-11-05 17:12:52 -04:00
Olivier Gagnon
362d2eb51d
Fix a few bugs and also added the concept of gang power multiplier
2021-11-05 13:20:52 -04:00
Olivier Gagnon
73d0f2074c
formulas time in millis
2021-11-05 00:27:30 -04:00
Olivier Gagnon
14150d3e33
work on making the netscript api tighter
2021-11-03 20:19:52 -04:00
Olivier Gagnon
c5fb5155f3
work on making sure all the functions are accounted for
2021-11-03 18:16:10 -04:00
Olivier Gagnon
b2bf3fc21f
v1 api breaks
2021-11-02 22:11:22 -04:00
Olivier Gagnon
9b0726ca9a
documentation
2021-10-30 16:03:34 -04:00
Olivier Gagnon
2e8cdc23d9
use NetscriptDefinitions as source of truth
2021-10-27 23:58:07 -04:00
Olivier Gagnon
53cb37a9fd
added some funcions
2021-10-27 21:07:58 -04:00
Olivier Gagnon
f92db3b8f8
fix ram miscalc
2021-10-27 19:10:15 -04:00
Olivier Gagnon
8ab9a27966
fix ram miscalc
2021-10-27 18:55:06 -04:00
Olivier Gagnon
8f097ebb32
v0.58.0
2021-10-27 15:16:16 -04:00
Olivier Gagnon
48988e228e
track money more precisely.
2021-10-27 14:18:33 -04:00
Olivier Gagnon
080b5a4a1f
merge dev
2021-10-26 23:11:47 -04:00
Olivier Gagnon
6d39fda3fa
fix a few bugs
2021-10-23 15:22:58 -04:00
Olivier Gagnon
9493768c0b
fmt
2021-10-23 10:09:43 -04:00
Snarling
2867a15b95
Re-add cautionary tale for editing imported scripts
2021-10-19 20:25:37 -04:00
Snarling
d035a4099f
Streamlining for NetscriptFunctions
...
* Functions that used GetServer and then threw an error on null now use safeGetServer to do that for them.
* Parameter names for ip have been changed to hostname.
* Functionality of getPurchasedServers(false) to return an array of IPs was restored (it was broken by the change to hostnames as primary key).
* Dynamic ram message was updated to omit the part about modifying imported scripts, since this is no longer an issue.
* Dynamic ram violation samples were updated so that they would actually avoid using the variable name 'scan' (which would not subvert ram calculations).
* Included a fix for getServer to default to script's current server if no hostname is specified (per doc page).
2021-10-19 10:13:19 -04:00
Olivier Gagnon
75caf77231
merge dev and added purchased server softcap
2021-10-16 22:39:56 -04:00
Olivier Gagnon
c96c7e3d2e
v0.57.0
2021-10-16 22:32:48 -04:00
Olivier Gagnon
c0420d1787
merge dev
2021-10-16 15:46:25 -04:00
Olivier Gagnon
84a1d27b9a
fix bug with workForFaction
2021-10-16 15:43:28 -04:00
Olivier Gagnon
d2f2ab07d7
merge dev
2021-10-15 15:13:48 -04:00
Olivier Gagnon
c1d4ced331
autocomplete
2021-10-15 13:12:18 -04:00
Olivier Gagnon
6b0e5416c4
wtf
2021-10-15 12:47:43 -04:00
Olivier Gagnon
3fddb3c9f2
added atExit
2021-10-14 20:13:26 -04:00
Olivier Gagnon
fe6473f426
gotoLocation sing function
2021-10-14 19:43:19 -04:00
Olivier Gagnon
3d97f2d770
build new function
2021-10-14 15:30:26 -04:00
hydroflame
f60af97e74
Merge pull request #1485 from Tyasuh/dev
...
upgradeHomeCores
2021-10-14 15:28:58 -04:00
tyasuh.taeragan@gmail.com
db9c3193f7
Commented Fixes
2021-10-14 15:20:05 -04:00
tyasuh.taeragan@gmail.com
f6ffe5b5be
Corrective Revisions
2021-10-14 14:35:57 -04:00
tyasuh.taeragan@gmail.com
cee716bbb0
Typo Corrections
2021-10-14 12:22:35 -04:00
tyasuh.taeragan@gmail.com
737d9e027f
upgradeHomeCores
2021-10-14 12:01:42 -04:00
Olivier Gagnon
d3fc6a9d48
split NetscriptFunctions
2021-10-14 03:22:02 -04:00
Olivier Gagnon
eb846c1318
merge dev
2021-10-14 02:12:15 -04:00
Olivier Gagnon
e245c2d3a7
fixed a few things
2021-10-14 02:07:05 -04:00
Olivier Gagnon
3f1d4875e7
Added toast function
2021-10-13 17:25:58 -04:00
Olivier Gagnon
e436d7f3a0
up to date omg
2021-10-13 02:27:55 -04:00
Olivier Gagnon
0dbeac52ac
Added alert function
2021-10-12 20:02:37 -04:00
Olivier Gagnon
87c63cde59
merge v0.56.0
2021-10-12 01:35:30 -04:00
Olivier Gagnon
83137a2364
v0.56.0
2021-10-12 00:29:16 -04:00
Olivier Gagnon
78d9c25671
fix error message with wrong reviver, refactor part of player
2021-10-11 23:14:15 -04:00
Olivier Gagnon
65ee49fb92
Added cp command
2021-10-11 22:34:04 -04:00
Olivier Gagnon
8e07cc999d
change GB to TBPBEB
2021-10-11 18:14:10 -04:00
Olivier Gagnon
8f13363466
prettier
2021-10-11 16:38:50 -04:00
Olivier Gagnon
dd61fd6efb
document learn js and make getServer not require sf5
2021-10-11 16:18:05 -04:00
Olivier Gagnon
010f43e5d4
few bugfix
2021-10-11 14:26:44 -04:00
Olivier Gagnon
3d36982a56
fix disableLog not disabling blade functions
2021-10-11 13:31:12 -04:00
Olivier Gagnon
752534bc4d
fix joinBladeburner
2021-10-09 12:49:53 -04:00
Olivier Gagnon
8e4722c5e7
write can be awaited in order to wait for the ram calculation to go through
2021-10-08 14:05:47 -04:00
Olivier Gagnon
effa9f15af
growthanalyze has core argument
2021-10-08 12:09:44 -04:00
Olivier Gagnon
8d7f0488f8
merge dev
2021-10-07 17:58:32 -04:00
Olivier Gagnon
7d0536a4d2
finish convert to hostname
2021-10-07 17:55:49 -04:00
Olivier Gagnon
a7dfb1a537
more convertion from ip to hostname
2021-10-07 16:56:01 -04:00
Olivier Gagnon
be29481689
unexport AllServers
2021-10-07 16:04:04 -04:00
Olivier Gagnon
b1d1de9118
revert growthAnalyze stuff because it causes errors
2021-10-06 19:41:36 -04:00
Olivier Gagnon
75a2742911
fix netscript port read not correctly converting ns1 objects
2021-10-05 16:37:54 -04:00
Olivier Gagnon
a420a87eba
fix bug with hacknet servers and grow
2021-10-05 15:23:30 -04:00
Olivier Gagnon
c5e29dafc4
fix mc
2021-10-04 22:31:07 -04:00
Olivier Gagnon
bb0bdb776b
extracted some of the Netscript functions into their own file.
2021-10-04 22:25:21 -04:00
Olivier Gagnon
48b839d68c
Added font size to text editor
2021-10-04 21:06:55 -04:00
Olivier Gagnon
c47a5bc8cc
added grow, weaken, and time compression
2021-10-04 19:58:34 -04:00
Olivier Gagnon
7304e5379f
sg
2021-10-03 20:34:36 -04:00
Olivier Gagnon
fae6e6d22f
fix research tree, kinda
2021-10-02 00:24:50 -04:00
Olivier Gagnon
94550dbaee
forgot about grwothAnalyze
2021-10-01 23:03:37 -04:00
Olivier Gagnon
3f5b412547
fixed prompt
2021-10-01 22:53:23 -04:00
Olivier Gagnon
9cbb525da3
remove hacking missions
2021-10-01 15:26:12 -04:00
Olivier Gagnon
62cd8ffcc6
pre-dialogbox-convert
2021-10-01 01:00:50 -04:00
vmesecher
ce578206eb
Fixes Corporation bribe uninentionally affect Bladeburners under certain circumstances. Also contains small lint fixes found by running npm run lint.
2021-09-25 15:43:30 -07:00
Olivier Gagnon
793d9b34ce
update BN13 for new UI
2021-09-25 17:21:50 -04:00
Olivier Gagnon
06f716c0fa
moved a bunch of files
2021-09-25 14:42:57 -04:00
Olivier Gagnon
f7aa393a8f
fix getNodeStats error
2021-09-25 13:03:09 -04:00
Olivier Gagnon
8b15adda8a
lint
2021-09-25 02:36:49 -04:00
Olivier Gagnon
b0f20c8c8f
lint
2021-09-25 01:26:03 -04:00
Olivier Gagnon
dc2bf871cf
all typescript
2021-09-24 21:49:49 -04:00