gmcew
93a9475b8d
Fix hashnet server list ( #1779 )
...
Remove WD if TRP isn't installed.
2024-11-18 14:23:01 -08:00
catloversg
75cf9c88b5
CODEBASE: Fix lint errors 3 ( #1758 )
...
This is a really big refactor because it actually *fixes* a lot of the lint errors instead of disabling them.
2024-11-14 08:18:57 -08:00
catloversg
97ca8c5f5e
CODEBASE: Fix lint errors 4 ( #1773 )
...
Co-authored-by: Michael Ficocelli <ficocemt@gmail.com>
2024-11-14 07:47:35 -08:00
catloversg
4f84a894eb
MISC: Add error cause to exceptionAlert and Recovery mode ( #1772 )
2024-11-12 19:27:18 -08:00
catloversg
246d668951
CORPORATION: Rewrite validation code for strings of price and quantity ( #1753 )
2024-11-12 07:39:21 -08:00
catloversg
9bba6a0a41
CORPORATION: Fix negative stored material ( #1771 )
2024-11-12 07:24:59 -08:00
catloversg
9013ea935a
BUGFIX: nano and vim use wrong template for text files ( #1770 )
2024-11-12 07:22:17 -08:00
catloversg
5d26f4fa56
GANG: Show error popup when there are errors ( #1763 )
...
* GANG: Show error popup when there are errors
* Only show error once when it's in a hot code path
2024-11-11 07:41:38 -08:00
catloversg
72a63b15cb
API: Return active SF levels in getOwnedSourceFiles and ResetInfo.ownedSF ( #1761 )
...
* DOCUMENTATION: Clarify getOwnedSourceFiles when player overrides active levels of SFs
* Return Player.activeSourceFiles instead of Player.sourceFiles
* Get rid of zeroes in the map
2024-11-10 22:56:57 -08:00
catloversg
cb9e281c45
UI: Auto focus hashnet upgrade modal ( #1768 )
2024-11-10 22:54:51 -08:00
catloversg
40651a757d
CORPORATION: Clarify ns.corporation.bribe() ( #1766 )
2024-11-10 22:53:27 -08:00
catloversg
c638d858c6
DOCUMENTATION: Clarify FactionWorkRepGain multiplier ( #1767 )
2024-11-10 16:40:13 -08:00
catloversg
e825492319
CORPORATION: Expose valuation via ns.corporation.getCorporation() ( #1765 )
2024-11-10 16:32:25 -08:00
catloversg
daec7482fa
UI: Change order of information in stats progress bar ( #1764 )
2024-11-10 16:30:47 -08:00
catloversg
650cf51acb
DOCUMENTATION: Add more information for deprecated nFormat API ( #1762 )
2024-11-10 16:27:35 -08:00
catloversg
f4c2b29d40
GANG: Show confirmation popup if player enables territory clashes while being too weak ( #1760 )
2024-11-09 21:12:17 -08:00
G4mingJon4s
d6874d68aa
UI: Added the ability to change the font size ( #1703 )
2024-11-09 16:50:18 -08:00
catloversg
90cb8a9551
MISC: Add proper type check to AST walking code ( #1757 )
2024-11-09 15:34:46 -08:00
catloversg
36c143b687
CODEBASE: Fix lint errors 2 ( #1756 )
2024-11-06 23:09:11 -08:00
catloversg
e3c10e9f0f
MISC: Always add script's earnings to its parent ( #1754 )
2024-11-06 18:44:38 -08:00
catloversg
60c4be0496
MISC: Add generic type as returned type for action and checking ( #1748 )
2024-11-06 18:10:56 -08:00
catloversg
36eb12098f
CORPORATION: Fix typo in documentation ( #1752 )
2024-11-06 18:03:04 -08:00
catloversg
c7cf0b853b
MISC: Minor code change in SkillElem.tsx ( #1751 )
2024-11-04 16:24:15 -08:00
catloversg
81e068ba9c
MISC: Include React component stack in Recovery Mode report ( #1750 )
2024-11-04 16:20:02 -08:00
catloversg
e5e4e2693f
DOCUMENTATION: Clarify getSkillUpgradeCost and fix typo in BaseTask ( #1749 )
2024-11-03 23:27:59 -08:00
catloversg
772762493f
BLADEBURNER: Change sleeveSize from property to getter ( #1746 )
2024-11-03 23:19:01 -08:00
catloversg
56c797e23f
BLADEBURNER: Remove duplicate getRecruitmentSuccessChance ( #1745 )
2024-11-03 23:16:54 -08:00
catloversg
bc02d4f92f
BLADEBURNER: Change skill.canUpgrade and Skills UI ( #1744 )
2024-11-03 23:08:19 -08:00
JMack6490
5786d7adcb
DOCUMENTATION: Update NetscriptDefinitions.d.ts ( #1743 )
...
Added line 5934: using hackAnalyzeThreads on a server you cannot hack returns -1
2024-11-03 22:54:43 -08:00
catloversg
b388865317
UI: Fix typo in CovenantPurchasesRoot.tsx ( #1740 )
2024-11-03 22:38:19 -08:00
catloversg
c8183e55db
BUGFIX: Crash in theme editor modal ( #1735 )
2024-11-03 22:38:01 -08:00
catloversg
f6502dd490
CODEBASE: Fix lint errors 1 ( #1732 )
2024-11-03 22:35:14 -08:00
catloversg
f7ee3a340f
MISC: Remove or change popup shown when system clock moved backward ( #1739 )
2024-10-30 04:15:43 -07:00
catloversg
a12c48ed43
UI: Disable font ligatures by default ( #1729 )
2024-10-27 22:39:01 -07:00
ballardrog
0bf378a1b0
IPVGO: Add getCheatCount(). ( #1734 )
2024-10-27 18:52:23 -07:00
catloversg
b01527a9dc
MISC: Update blood donation ( #1736 )
2024-10-27 18:40:23 -07:00
Michael Ficocelli
6df3dcdc82
IPVGO: Add optional board state argument to the go analysis functions ( #1716 )
2024-10-27 17:31:06 -07:00
Michael Ficocelli
ecc2d92edb
IPVGO: uncheck the 'show prior move' feature when a new game is started ( #1728 )
2024-10-27 17:25:04 -07:00
catloversg
810cfc8b21
MISC: Validate hostname and port of RFA ( #1721 )
2024-10-23 18:12:04 -07:00
catloversg
f49d3b32a5
DOCUMENTATION: Clarify cyclesWorked of Task ( #1725 )
2024-10-23 16:18:18 -07:00
catloversg
9a0400d3df
API: Improve built-in print APIs when printing objects containing Map or Set ( #1723 )
2024-10-23 16:01:58 -07:00
catloversg
d0022aac2b
DEVMENU: Reset other gangs when leaving gang ( #1715 )
2024-10-23 01:55:22 -07:00
catloversg
b72c03acf0
DOCUMENTATION: Clarify "completion" property of GraftingTask ( #1713 )
2024-10-21 21:22:17 -07:00
catloversg
3ce2ae5fd7
API: Change type of skill name parameter of skillMaxUpgradeCount API ( #1712 )
2024-10-21 20:39:56 -07:00
catloversg
c5e50ba327
MISC: Improve discoverability of Corporation documentation ( #1711 )
2024-10-21 20:38:56 -07:00
catloversg
867f79c5ab
API: Improve built-in print APIs when printing Promise objects ( #1710 )
2024-10-21 20:37:40 -07:00
catloversg
bc51733fbe
MISC: Improve exception alert ( #1709 )
2024-10-21 20:36:29 -07:00
catloversg
6d8084f40e
MISC: Improve tutorial, documentation and discoverability of NS API documentation ( #1697 )
2024-10-20 20:37:42 -07:00
catloversg
a3e1b297ca
MISC: Expose more information of HiveMind augmentation ( #1701 )
2024-10-20 20:36:42 -07:00
catloversg
97489629d9
CLI: Add warning when installing backdoor on backdoored server ( #1705 )
2024-10-20 20:36:02 -07:00
Denis Čahuk
2e6aa8989c
BLADEBURNER: UI now shows tooltips on action success chance to indicate which stat it scales with ( #1699 )
2024-10-20 20:35:03 -07:00
catloversg
cc4c6d150b
UI: Remove unnecessary newlines when augmentation does not have stats ( #1698 )
2024-10-20 01:09:30 -07:00
David Walker
424ae160ba
NETSCRIPT: Fix dynamicRamUsage returned by getRunningScript() ( #1704 )
...
Fixes #1700
2024-10-20 00:52:57 -07:00
Pimvgd
24ab173d6c
UI: Fix typo in field work description ( #1691 )
2024-10-09 21:18:57 -07:00
Alain Bryden
cd99006c4e
NETSCRIPT: Update ScriptDeath to extend Error ( #1685 )
...
* Update ScriptDeath to extend Error
- Rename the "name" property to "hostname" so that it doesn't clash with inherited Error.name property.
- Extend Error, this way if a user ends up catching it they can:
- Test the type of error caught (name) and ignore it if desired
- Get a stack trace and find out where they went wrong
- Not require special case error printing logic for catching things that are neither strings, nor Error objects.
It is possible (but unlikely) that this could make killing scripts slower in some circumstances.
2024-10-09 21:18:06 -07:00
catloversg
cace34d759
BUGFIX: Wrong calculation in team casualties of Bladeburner action ( #1672 )
2024-10-07 23:55:11 -07:00
catloversg
2fa8dd41ac
BUGFIX: Missing tooltip when doing faction work ( #1679 )
2024-10-07 23:51:02 -07:00
egg362
dc328b14df
MISC: Fixes to typos in augmentation descriptions ( #1680 )
2024-10-07 23:28:21 -07:00
catloversg
b829534067
BUGFIX: Scripts are killed too late when prestiging ( #1683 )
...
* Scripts are killed too late when prestiging
* Kill all scripts earlier
2024-10-07 23:20:58 -07:00
catloversg
e644c0e91e
API: Make condition of donateToFaction consistent ( #1686 )
2024-10-07 23:14:09 -07:00
catloversg
3ef3821a08
DOCUMENTATION: Clarify condition of ns.corporation.bribe ( #1687 )
2024-10-07 23:12:35 -07:00
Caldwell
ccd9118b93
MISC: add stopFlag check before running main ( #1689 )
...
It's possible that before the script starts runn, the stopFlag is set.
2024-10-07 22:57:35 -07:00
catloversg
4d60c833cc
MISC: Remove mention of Hacking Mission ( #1684 )
2024-10-06 22:58:24 -07:00
Ben Rog-Wilhelm
dad34a09dd
CONTRACT: Fix incorrect description of Hamming Codes in Integer to Encoded Binary. ( #1677 )
2024-10-04 03:51:31 -07:00
David Walker
bedd398789
CCT: Add new Square Root coding contract ( #1656 )
...
To make this simpler, there is now a general-purpose util for getting
random bigints. I don't know if anyone else will use it, but it makes
this code simpler.
I also rejiggered the type-checking on contracts a little more, because
the previous refactor didn't quite catch all the mistakes that could be
made.
2024-09-30 20:18:58 -07:00
catloversg
32e00aff7a
BUGFIX: Wrong parameter requirement of ns.bladeburner.setTeamSize ( #1673 )
2024-09-30 20:18:25 -07:00
lucebac
7513fec507
EDITOR: import resolution in code editor ( #1661 )
...
* FIX: import resolution in code editor
Since I did not find any callback where we could just load imports
on-demand, I opted for just loading all scripts from the server where
a given script was opened from command line. This does not include
scripts which are already open, only files which are not yet opened
will be loaded.
2024-09-26 11:36:42 -07:00
Yichi Zhang
2b4410739d
HACKNET: Remove hacknet servers from ServerType.Foreign ( #1665 )
2024-09-25 16:19:25 -07:00
Denis Čahuk
b86044bcc1
BLADEBURNER: Move bladeburner team losses to Casualties ( #1654 )
2024-09-23 17:03:01 -07:00
catloversg
c2727b5127
BUGFIX: Change generation rate of CCTs ( #1657 )
2024-09-22 21:35:34 -07:00
catloversg
53c8296baf
BUGFIX: Follow-up of #1658 (Wrong team size in Bladeburner) ( #1662 )
2024-09-22 21:33:01 -07:00
catloversg
ade92ed297
BUGFIX: Wrong size of table cell in Import Save Comparison UI ( #1659 )
2024-09-20 21:02:57 -07:00
catloversg
70e16bf349
BUGFIX: Wrong team size when all team members die in Bladeburner's action ( #1658 )
2024-09-20 02:31:15 -07:00
David Walker
21ffa5322f
MISC: Refactor coding contracts for type safety ( #1653 )
...
* MISC: Refactor coding contracts for type safety
This refactor does three things without any behavior changes:
* Adds type safety by introducing generic type parameters to the coding
contract definitions, so they can use concrete types instead of
"unknown". This also eliminates a bunch of boilerplate casts.
* Removes the unneeded CodingContractType class. We can use the metadata
type directly.
* Introduces a new hidden state to coding contracts. Instead of
generating and storing the data (which is what is shown to the user as
the problem's input), the state is stored instead. This allows
problems to (for instance) generate the answer up-front, and check the
solution directly against the answer, instead of needing to embed a
solver in the problem (which can then easily be ripped from the source
code).
For compatibility, state == data by default. I plan to make use of this
feature in a followup, but it is unused currently.
2024-09-15 23:53:10 -07:00
Denis Čahuk
cde5e3f6ae
MISC: Refactor BLADEBURNER Identifier Lookup ( #1646 )
2024-09-14 17:39:18 -07:00
David Walker
f39402e8be
BLADE: Use "grow" semantics for population estimate ( #1624 )
...
This changes the way percantage-based population estimates work, so that
they have a similar mechanism to grow(). This allows natural recovery
from 0, and also falling to 0 in finite steps.
This also changes the formula for reducing estimates to est / (1 + p)
instead of est * (1 - p). The latter becomes overpowered at large p,
we've seen this formula issue elsewhere (such as BN modifiers).
2024-09-13 23:41:10 -07:00
Michael Ficocelli
2a5b0ca4e9
IPVGO: Prevent issues caused by resetting the board while the go AI is in flight ( #1608 )
2024-09-07 18:33:49 -07:00
catloversg
4f426e1b20
UI: Change description of Documentation button in Script Editor ( #1644 )
2024-09-07 18:08:16 -07:00
G4mingJon4s
651b17739c
NETSCRIPT: Add ns.self() as a free info function ( #1636 )
...
* added utility info
* moved info to running script
* fix for RAM cost
* description changes
Co-authored-by: David Walker <d0sboots@gmail.com>
* fixed wrong formatting
* Added parent to ignored fields
---------
Co-authored-by: David Walker <d0sboots@gmail.com>
2024-09-07 17:34:24 -07:00
catloversg
0ce5cd35dc
DOCUMENTATION: Fix mangled NS API TSDoc ( #1643 )
2024-09-07 17:29:23 -07:00
nobody0
17e906cd76
Update NetscriptDefinitions.d.ts to match class BitNodeMultipliers ( #1642 )
2024-08-30 19:31:04 -07:00
Fireball5939
95394b5956
DOCUMENTATION: Improve ns.enableLog() docs to remove a missleading description ( #1634 )
...
Changed ns.enableLog documentation to be very similar to ns.disableLog, to remove possible confusion that it only undoes the effects of ns.disableLog
2024-08-26 19:49:44 -07:00
Tahvohck
47b261f520
STANEK: Typo fix in description ( #1627 )
...
Fixing a typo (missing space) in the CotMG faction info text.
2024-08-25 10:14:33 -07:00
Nicole
b4f2a5c641
set static information netscript costs to 0 ( #1628 )
2024-08-25 10:09:36 -07:00
catloversg
3750363d95
MISC: Show more information about documentation in last step of tutorial ( #1630 )
2024-08-25 10:04:55 -07:00
catloversg
e58a7d8eaa
DEVMENU: Use Autocomplete instead of Select in more tools ( #1631 )
2024-08-25 10:02:28 -07:00
catloversg
2e42a1f781
DOCUMENTATION: Minor changes in index page ( #1626 )
2024-08-24 14:11:11 -07:00
catloversg
ac0c9bd7e8
BUGFIX: Missing error handler when calling libarg ( #1625 )
2024-08-24 14:08:42 -07:00
gmcew
49629d1d28
UI: Remove extra "label=" text from SmartSupply interface ( #1622 )
2024-08-23 21:27:36 -07:00
Yichi Zhang
028e779602
NETSCRIPT: Don't make dynamicLoadedFns entries for free functions. ( #1617 )
2024-08-23 21:23:41 -07:00
Nicole
2141032432
BLADE: Fix population estimate percent growth when estimate is 0 ( #1620 )
2024-08-23 21:22:41 -07:00
catloversg
be515cc195
BUGFIX: Crash in b1tflum3 and destroyW0r1dD43m0n API ( #1619 )
2024-08-23 21:06:53 -07:00
catloversg
329d8ca8e6
BUGFIX: Wrong skill multipliers in Bladeburner ( #1615 )
2024-08-23 21:04:13 -07:00
bupjae
95bb6a33df
DOCUMENTATION: Clarify experience gain of sleeves ( #1609 )
2024-08-22 12:53:16 -07:00
Nicole
7f5c4e1fe0
API: Reduced RAM cost for ns.getPurchasedServers ( #1614 )
2024-08-22 00:44:21 -07:00
catloversg
614bec1e13
DOCUMENTATION: Fix wrong description of ns.corporation.createCorporation ( #1612 )
2024-08-21 17:50:47 -07:00
catloversg
4a3dcf8a26
MISC: Expose internal data in dev build ( #1611 )
2024-08-21 17:50:11 -07:00
Sol
8d9f63f49f
UI: Fix incorrect information given in pserv upgrade error msg. ( #1602 )
2024-08-21 17:48:55 -07:00
catloversg
818d7446be
MISC: Rename getRandomArbitrary ( #1605 )
2024-08-21 16:50:51 -07:00
Nicole
995e367432
DOCS: Correct function signature for hashUpgradeCost ( #1603 )
2024-08-21 16:47:26 -07:00