Commit Graph

9049 Commits

Author SHA1 Message Date
David Walker
dc5c43db2e REFACTOR: Make getPlayer 10x faster (#2548) 2026-03-03 14:21:34 -08:00
catloversg
5e71612fd7 UI: Update toolbar of in-game editor (#2551) 2026-03-03 14:07:08 -08:00
catloversg
45366a1a42 DOCUMENTATION: Update guides (#2550) 2026-03-03 14:05:14 -08:00
David N
17f8c354e0 UI: Add inline script RAM usage text to each active script (#2546) 2026-03-03 13:38:59 -08:00
catloversg
cf1f5224fd BLADEBURNER: Rebalance charisma exp gain of Recruitment action (#2549) 2026-03-03 13:36:11 -08:00
catloversg
c14b4955f6 DOCUMENTATION: Clarify how share power affects reputation gain rate of non-hacking work (#2544) 2026-02-28 11:50:53 -08:00
Michael Ficocelli
3d41c348bc DNET: Rebalance / player feedback (#2533) 2026-02-28 11:48:03 -08:00
Joshua
15e1ab9af7 BLADEBURNER: Adjusted team bonus computation to make one member help (#2541) 2026-02-27 17:19:27 -08:00
catloversg
cfb536cd01 BUGFIX: Fix issues with RFA auto-reconnecting feature (#2535) 2026-02-26 13:34:28 -08:00
catloversg
47d8db8b91 DOCUMENTATION: Follow-up of #2523 (#2529) 2026-02-24 13:30:43 -08:00
catloversg
144fd50774 UI: Add indicator of RFA connection status to overview panel (#2497) 2026-02-24 12:11:20 -08:00
Misha279-UA
c85d9cbe8c CCT: Add "Find Largest Rectangle in a Matrix" coding contract (#2519) 2026-02-24 12:10:42 -08:00
catloversg
6626f0d5d1 DOCUMENTATION: Document quirky behavior of ns.flags when default value is nullish (#2528) 2026-02-24 12:03:10 -08:00
catloversg
d677b4ad18 CODEBASE: Update comment of LoadingScreen of ComplexPage enum (#2527) 2026-02-24 11:59:18 -08:00
catloversg
dbc58f1f58 DOCUMENTATION: Update BitNode recommendation short guide (#2523) 2026-02-23 12:09:21 -08:00
David Walker
8f4313b180 Revert "PIPE: Add pipe support for passing data into and out of terminal commands (#2395)" (#2524)
This reverts commit 92b8b58588.

Accidental merge on my part - the code is in decent shape, but isn't meant to go in for 3.0.
2026-02-22 11:28:10 -08:00
Michael Ficocelli
92b8b58588 PIPE: Add pipe support for passing data into and out of terminal commands (#2395) 2026-02-22 11:18:23 -08:00
catloversg
4a22e16058 WORKFLOW: Fix wrong instruction of generating docs (#2522) 2026-02-21 11:58:50 -08:00
catloversg
0c118ede38 DOCUMENTATION: Use relative links instead of absolute links (#2521) 2026-02-21 11:58:15 -08:00
catloversg
67fd763c30 JEST: Show coding contract names when their tests failed (#2520) 2026-02-21 10:20:31 -08:00
David Walker
42acdc6d84 UI: Tweak CSS/Position of Darknet Docs link (#2517)
Per Discord discussion, the lower left seems to be more visible.
2026-02-21 10:17:15 -08:00
catloversg
00b9034980 UI: Show errors if using nano/vim with patterns that do not match any files (#2515) 2026-02-19 09:53:01 -08:00
David Walker
2b542257a9 MISC: Update changelog (#2514)
Latest commit: 9279b16
2026-02-18 13:52:02 -08:00
Michael Ficocelli
9279b16729 DNET: Adjust balance from player feedback (#2512) 2026-02-18 13:41:48 -08:00
catloversg
8f77dc2df0 UI: Show hints of BitNode documentation and allow opening it in BitVerse (#2513) 2026-02-18 10:08:53 -08:00
catloversg
f7483243fd UI: Use font family setting when rendering MUI Link component (#2511) 2026-02-18 09:59:28 -08:00
catloversg
7c3473e98d MISC: Update changelog and version number (#2509) 2026-02-17 01:27:21 +07:00
David Walker
42bdbbc2c8 MISC: Update blood donations (#2508)
Per Hydroflame's request
2026-02-16 10:12:52 -08:00
catloversg
9a6e80129f UI: Improve navigation system of in-game documentation viewer (#2499)
* UI: Improve navigation system of in-game documentation viewer

* Update based on feedback

* Update based on feedback
2026-02-16 09:00:58 -08:00
catloversg
dd78a2cb44 API: Remove RAM cost of hacknet namespace and set RAM cost of each hacknet API (#2502)
* API: Remove RAM cost of hacknet namespace and set RAM cost of each hacknet API

* Fix Jest tests

* Update based on feedback
2026-02-16 09:00:02 -08:00
catloversg
775a1b1e4b CODEBASE: Refactor ImportSave component (#2505) 2026-02-15 10:57:40 -08:00
catloversg
77d83a2fdc UI: Add option to disable minimap in script editor (#2504) 2026-02-15 10:56:01 -08:00
catloversg
dc0c3b6fa3 JEST: Add tests for checking getAnswer and solver of coding contracts (#2503) 2026-02-15 10:53:58 -08:00
David Walker
b51ed8fd59 BUG: Fix missed cases in offline server handling (#2495)
There were two large holes in the existing offline server handling:

1. It didn't include IPs, so scripts that used IPs instead of hostnames
   would get exceptions thrown for "server not found."
2. Coverage was very low for non-Darknet APIs. Maybe most of them don't
   need to be covered, but many obvious ones like "ps", "killall" and
   "hasRootAccess" were missing. IMO the only reliable answer is one
   that enforces *all* are covered via the type system.

To accomplish the second part, helpers.getServer() was changed to return
null when a server is offline. This intentionally breaks a lot of its
utility, which was to return a server unconditionally. To compensate,
its utility was increased - it now also does unknown argument
processing, allowing it to subsume a common line that all callers were
repeating.

Some callers switched to ctx.workerScript.getServer(), because they
didn't actually need to be using helpers.getServer(). Similarly, a few
callsites switched to GetServerOrThrow(), for the cases where it should
be guaranteed that the server is valid. The rest are returning a
default/failure response when the server is offline. (Except for
contracts, which threw on failure already anyway.)
2026-02-15 10:29:47 -08:00
catloversg
b5ab495837 BUGFIX: Hacknet server UI shows NaN hash rate when 100% RAM is being used (#2500) 2026-02-15 10:27:21 -08:00
David Walker
a0bbdfd871 DARKNET: Refactor/adjust getPixelPosition (#2501)
This simplifies the logic. It also adjusts the position of special
servers slightly; in particular, they are horizontally centered
(appearing in-between the adjacent row, and not merely staggered).

The split into two functions is in preparation for perf improvements
that require calculating this without access to the server.
2026-02-13 20:19:17 -08:00
Michael Ficocelli
26db9f2955 DNET: More fixes and feedback (#2489)
* Add some re-rendering improvements to avoid the canvas and visual servers getting desynched

* removed underlevelled nerf to low-level servers; improved charisma level docs

* Remove offscreen dynamic culling

* PR feedback; add cache file names to tooltip

* Ensure stasis link servers get loaded properly; ensure darkweb has neighbors to prevent unit tests from failing; remove extra optional chaining accessors
2026-02-13 17:23:24 -08:00
catloversg
68700ff01f API: Expose ProgramName enum (#2492) 2026-02-13 11:51:42 -08:00
catloversg
be66b766a2 DOCUMENTATION: Fix invalid links in ns.sleep and ns.asleep (#2496) 2026-02-11 10:46:04 -08:00
David Walker
26b5c28df6 REFACTOR: Speed up by-ip lookups by introducing a new map entry (#2488)
Thankfully, the existing AllServers map is not exported, so we can
ensure that all the changes are only local to this file.

This also fixes a bug if renameServer was called with the same
name. (Probably calling code checked that case already.)
2026-02-11 10:43:52 -08:00
catloversg
826fd42296 DOCUMENTATION: Improve help text of scp and run (#2493) 2026-02-11 10:42:10 -08:00
catloversg
ac34d6508d BLADEBURNER: Stop randomizing action difficulty (#2491) 2026-02-11 10:36:10 -08:00
catloversg
638c791047 MISC: Change how coding contract rewards are randomized (#2490) 2026-02-11 10:34:59 -08:00
David Walker
62f7501b43 REFACTOR: Change getFailureResult to checkDarknetServer (#2494) 2026-02-11 08:42:27 -08:00
catloversg
97987fe35b BUGFIX: Global states are not reset properly between each Jest test (#2487) 2026-02-10 10:13:00 -08:00
catloversg
95b739f703 BUGFIX: Darknet state is not reset properly on prestige (#2486) 2026-02-10 09:39:31 -08:00
David Walker
ed727d6e74 DARKNET: Buff packet sniffing slightly (#2485)
Refactor the sniff code so that successful sniffs for the current server
are tagged server_name:password, not just those for adjacent servers.
2026-02-10 08:10:33 -08:00
Michael Ficocelli
bab6280735 DNET: Add JS object properties as server names; refactor save/load/server storage to support this (#2482) 2026-02-10 00:13:47 -08:00
Groot-0909
b99e522d1c UI: Update incorrect ps command shown in help (#2484) 2026-02-08 09:37:04 -08:00
catloversg
8633e94899 UI: Update icon of DARKNET_BACKDOOR and DARKNET_DEPTHS achievements (#2480) 2026-02-08 08:40:35 -08:00