Commit Graph

8938 Commits

Author SHA1 Message Date
David Walker f3e9e3ddc8 BUGFIX: Avoid re-entrency issues with EventEmitter (#2397)
Subscribing or unsubscribing from within an event handler (possibly
transitively) could cause issues or even infinite loops.

This was initially fixed in #2257, which exhibited such problems.
Currently no code is known to have this issue, but it could easily come
up again in the future.
2025-11-22 18:13:44 -08:00
David Walker 50b0cc2808 MISC: Refactor implementation of ports (#2396)
This moves the implementation entirely into the PortHandle class, which
makes the code a bit more streamlined and will allow for other port
implementations in the future.
2025-11-22 17:52:25 -08:00
catloversg 67119e6c9c UI: Improve instructions in recovery mode (#2394) 2025-11-22 09:28:02 -08:00
catloversg ce8852f3a2 BUGFIX: Company's job list shows wrong starting jobs (#2391) 2025-11-21 20:06:31 -08:00
catloversg 5c271eddf1 BUGFIX: Bladeburner console prints main body's HP instead of sleeve's HP (#2390) 2025-11-21 06:52:19 -08:00
imcute_aaaa bb50272e54 MISC: Avoid reinventing core bonus calculation and fix formatting issue (#2387) 2025-11-19 14:18:54 -08:00
David Walker 4d230c3121 REFACTOR: Rewrite infiltration to pull state out of React (#2316)
* REFACTOR: Rewrite infiltration to pull state out of React

Upcoming projects (auto-infil, the possibility of making infil a work
task, etc.) require infiltration state to transition with predictable
timing and be under our control, instead of inside React. This refactor
accomplishes this by pulling the state out into accompanying model
classes.

After this, infiltration can theoretically run headless (without UI),
although it doesn't actually, and you would quickly be
hospitalized due to failing all the minigames.

There should be no user-visible changes, aside from the progress-bars
scrolling much more smoothly.

* Fix console warning in InfiltrationRoot

It turns out true isn't actually a safe value to use in JSX, only false works.

* Fix up some comments
2025-11-16 22:55:06 -08:00
Shy 57ca5ffeaf UI: Prevent showing redundant error toasts on failed RFA auto connect attempts (#2381) 2025-11-08 12:26:41 -08:00
gmcew 7c0286222c API: Move and rename purchased server functions to cloud API (#2367)
* Convert purchased server functions to cloud API

- Create `ns.cloud`
- Change `bitnode multipliers` and `server constants` wording for consistency
- change `server`, `ram` and `getting started` docs for consistency
- Added changes to 3.0.0 API Break and `setRemovedFunctions` in NetscriptFunctions.js

Tested by
- running tutorial `purchase-server-8gb.js`, and a more typical player one
- buying manually using vendor (Alpha Ent in Sector 12)
- deleting them all using script, and checked all deleted functions gave correct error
- Imported completed save to ensure auto-transfer of function work

* Revision in line with comments

- changed more `purchased` to `cloud` references
- Added BN mults auto-conversion

* Update getting_started.md

 - Corrected function names for new `cloud API`

* Don't show `cloud API` warning

v3.0.0 API break auto-replaces `cloud` functions, not warning suggested.

* API Break correction

- `cloud` affected API break replacement changed to be more descriptive and functional

* Fix typo and add empty lines

* Update many things (check commit's description)

- Comments
- Terminal message
- UI Text
- TSDoc
- md docs
- Improve error messages in src\NetscriptFunctions\Cloud.ts
2025-11-07 12:10:33 -08:00
Nick Shelley d1a4ec8337 DOCUMENTATION: Improve wording around host argument of getScriptRam (#2374) 2025-11-07 11:57:33 -08:00
Shy 4ad9a96788 MISC: Support css file type (#2378) 2025-11-05 14:05:31 -08:00
Shy 9cd3ffd308 UI: Expose theme as css custom props (#2380) 2025-11-03 16:58:09 -08:00
EntenBu e599988af7 MISC: Fix typo in README.md (#2375) 2025-10-30 10:28:59 -07:00
catloversg 174e160348 API: Make ActiveFragment extend Fragment (#2373)
* DOCUMENTATION: Fix wrong return type of ns.stanek.activeFragments

* Make ActiveFragment extend Fragment
2025-10-30 10:27:58 -07:00
catloversg a69ee132f9 CODEBASE: Prepare for save data migration of next beta version (#2369) 2025-10-30 10:25:34 -07:00
catloversg a5cb2a97bd UI: Reword tutorial steps to distinguish between instruction and example (#2370)
* UI: Reword tutorial steps to distinguish between instruction and example

* Minor change
2025-10-29 11:47:58 -07:00
Chaddeus 0c5256b83c UI: Correct phrasing in SmartSonar description (#2368) 2025-10-29 11:38:42 -07:00
catloversg c6e40476bb DOCUMENTATION: Fix missing/wrong TSDoc of APIs having optional host parameter (#2371) 2025-10-29 11:15:10 -07:00
catloversg 3e75577ded BUGFIX: Electron app does not show achievement icons (#2362) 2025-10-23 12:39:11 -04:00
catloversg 1d3b96326e DEPS: Update Electron version (#2360) 2025-10-23 12:31:23 -04:00
catloversg a703e8753b JEST: Refactor tests that add home server manually (#2358) 2025-10-21 20:57:14 -04:00
Michael Taylor c6684431b5 UI: Format the shared RAM multipler on the factions (#2355) 2025-10-20 01:53:35 -07:00
catloversg 6837f334fd CODEBASE: Remove redundant check in getServer utility function and serverExists API (#2357) 2025-10-19 11:45:30 -07:00
Petal Ladenson b495deb458 CLI: Let ServerProfiler.exe autocomplete servers (#2356) 2025-10-19 11:36:47 -07:00
catloversg 222e42000c CLI: Add --temporary flag to run command (#2354) 2025-10-18 12:04:39 -07:00
Michael Taylor d785f20921 CODEBASE: Minor React related packages update (#2353)
* CODEBASE: Update @types/react & react-dom packages

Update @types/react and @types/react-dom to
17.0.26 (ts3.8) and 17.0.89 (ts3.8) from
17.0.21 (2021) and 17.0.67.

To major changes, no apparent breaking changes,
mostly packaging fixes.

* CODEBASE: Update react-syntax-higher package

Update from 15.5.0 (2022) to 15.6.6 (August 2025) which
fixes a bug with wrapLines (15.6.0, 15.6.1), fixes some
small bugs in 15.6.3 (line count, spelling), and
primarily updates dependencies, in particular prismjs to 1.30.0.

* CODEBASE: Update react-draggable package

Updates from 4.4.6 to
[4.5.0](https://github.com/react-grid-layout/react-draggable/commits/master/),
some small fixes, updated dependencies. Nothing critical, but
nothing breaking or radical as far as I can tell.

* CODEBASE: Update tss-react package

Patch level update of [tss-react](https://www.tss-react.dev/) package,
from 4.9.10 (Apr 2024) to 4.9.19 (Jul 2025). Appears to be primarily
for React 19 and Material UI 7 support. Low-priority, but should be
low-risk.

* CODEBASE: Update react-refresh package

[react-refresh](https://www.npmjs.com/package/react-refresh)
From 0.17.0 to 0.18.0.
2025-10-18 09:15:52 -07:00
catloversg cb5b80a6d5 DOCUMENTATION: Use alternative fix for newline issue in IPvGO docs (#2350) 2025-10-15 11:58:11 -07:00
catloversg 30a572cfe6 API: Rename "TIX" interface to "Stock" (#2351) 2025-10-14 11:51:54 -07:00
catloversg 7ca364f49f DOCUMENTATION: Fix wrong commands in getting_started.md (#2349) 2025-10-13 08:59:53 -07:00
Adam Weeden 0335d8bc70 STANEK: Add FragmentType to NS Enums (#2341) 2025-10-13 08:57:19 -07:00
catloversg 2dfc2126df CODEBASE: Follow-up of #2344 (#2345) 2025-10-12 13:26:03 -07:00
catloversg 030be41df9 CODEBASE: Refactor Stanek's Gift UI code and change internal FragmentType enum (#2346) 2025-10-12 13:23:45 -07:00
catloversg 950c21d734 API: Update type of Player.factions, GangGenInfo.faction and CorpMaterialConstantData.name (#2347) 2025-10-12 13:00:21 -07:00
catloversg d421d4fcf9 MISC: Make TIX access independent from WSE account (#2342) 2025-10-11 17:28:45 -07:00
catloversg bd4e34fae0 CLI: Do not round down amount of hacked money in "hack" CLI (#2344) 2025-10-10 10:38:50 -07:00
catloversg 5c0f24f5d0 UI: Show server's money in exponential form if it's too small (#2343) 2025-10-10 10:37:35 -07:00
catloversg 2a2b38f4ad UI: Warn player if they run no-arg programs with arguments (#2338) 2025-10-08 14:14:01 -07:00
Michael Taylor f12fc380cc MUI: Update minor version of material UI and Emotion packages (#2339) 2025-10-08 14:11:24 -07:00
Thaccus 625fe46bc3 DOCUMENTATION: Clarify cross-host characteristic of PID and port (#2336) 2025-10-07 13:40:05 -07:00
catloversg 1883af6c38 TOOLS: Enable linting in test folder (#2337) 2025-10-06 23:48:18 -07:00
Michael Ficocelli 0d1f5f3eeb IPVGO: Consistently return error() calls to make sure it is obvious the function halts at that point (#2335) 2025-10-06 14:26:31 -07:00
Michael Taylor 370424af2d JEST: Quiet Jest tests output on expected failures (#2332) 2025-10-05 12:31:15 -07:00
Femboy Fireball 8a2f8bb746 UI: Clarify why you can't buy 4S when disabled (#2311) 2025-10-04 14:45:42 -07:00
catloversg 4b8af02026 WORKFLOW: Add new job to check generated docs (#2329) 2025-10-04 14:41:02 -07:00
catloversg 020b185377 JEST: Enable restoreMocks option and fix lint errors (#2333)
* JEST: Enable restoreMocks option and fix lint errors

* Fix test\jest\Save.test.ts
2025-10-04 14:38:50 -07:00
Femboy Fireball 18b062663d ELECTRON: Allow automatically hiding the top menu in Electron (#2325) 2025-10-03 12:45:18 -07:00
catloversg 7225a2b22e BUGFIX: Color picker appears behind theme editor (#2321)
* BUGFIX: Color picker appears behind theme editor

* Remove unnecessary newline
2025-10-02 16:24:04 -07:00
catloversg 66a5c9568b TOOLS: Update doc.sh (#2331)
* TOOLS: Update doc.sh

* Update as suggested
2025-10-01 12:37:04 -07:00
Ante f9a6cc841e CORPORATION: Expose production limit of material and product (#2330) 2025-10-01 01:04:39 -07:00
catloversg 060e929b68 UI: Print error detail to terminal if script cannot be compiled or there is runtime error while autocompleting (#2328)
* UI: Print error detail to terminal if script cannot be compiled while autocompleting

* Print error if there is runtime error
2025-09-28 22:45:58 -07:00