Commit Graph

254 Commits

Author SHA1 Message Date
catloversg bd2af9392f UI: Show useful error messages when loading unsupported save data from newer versions (#2425) 2025-12-18 14:51:48 -08:00
catloversg a47867c406 CODEBASE: Refactor code related to in-game documentation link (#2422)
Nice!
2025-12-17 13:39:44 -08:00
Paul Setzer 968c0c2a8c CONTRACTS: Generate test contracts on executing host by default. Add support for optional parameter to specify the server. (#2417) 2025-12-16 16:23:59 -08:00
catloversg 2167a92af1 CODEBASE: Allow specifying migrator when migrating player's scripts (#2418) 2025-12-14 15:58:27 -08:00
imcute_aaaa 77fe36db89 BUGFIX: Coding contracts may have duplicate names (#2399) 2025-11-26 23:59:11 -08:00
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
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
Shy 4ad9a96788 MISC: Support css file type (#2378) 2025-11-05 14:05:31 -08:00
catloversg a69ee132f9 CODEBASE: Prepare for save data migration of next beta version (#2369) 2025-10-30 10:25:34 -07:00
catloversg d421d4fcf9 MISC: Make TIX access independent from WSE account (#2342) 2025-10-11 17:28:45 -07:00
catloversg 21ddb99fd5 MISC: Export save data before migrating to v3 (#2304) 2025-09-02 22:55:44 -07:00
catloversg 95e38164f7 GANG: Rename equipment that uses real brand names (#2293) 2025-08-26 15:12:46 -07:00
gmcew 15776e36e3 CONTRACTS: Clean up helpers, expand documentation, Hamming wording again (#2296) 2025-08-25 17:16:26 -07:00
catloversg ff106bb764 BUGFIX: Error message shows blob URL instead of script name (#2265) 2025-07-23 14:30:25 -07:00
catloversg 6bf501fb78 API: Make some APIs throw error when server is invalid (#2261) 2025-07-23 14:20:20 -07:00
catloversg 902367d8b6 MISC: Add removal of API server to list of breaking changes (#2205) 2025-07-22 00:42:46 -07:00
Michael Ficocelli dd128842af INFIL: Add stat requirements; Add market consequences for spamming infiltration (#2210)
The primary parts are changing the way stats affect infiltration difficulty, to make rewards more intuitive and balanced, and adding a "market demand" mechanism, which kicks in when doing lots of infils quickly. With current parameters, market demand shouldn't affect manual play at all, and won't affect most auto-infil terribly (it depends how they're implemented).

This was a complex change, see PR #2210 for the full context
2025-07-20 11:01:47 -07:00
David Walker 4059be3d8c DOC: Move all docs into en/ subdirectory (#1505)
* DOC: Move all docs into en/ subdirectory

PR #1502 is working on adding a Chinese translation to the docs. In
general, I encouraged this (in #1452) as a path towards getting useful
translated content in the game without requiring a massive
refactor/rearchitecting of everything.

To support this, this takes the first step of moving our docs into an
en/ subdirectory, so that other languages can live alongside. No effort
is made at this time to support or select between alternate languages;
this is a pure-rename refactor.
2025-07-19 19:15:56 -07:00
catloversg e3ea611928 CORPORATION: Remove VeChain (#2245) 2025-07-17 14:24:19 -07:00
catloversg 3a67db7876 MISC: Update migration instruction for breaking change of ns.nFormat (#2247) 2025-07-17 14:22:10 -07:00
catloversg b8398ba4c1 CODEBASE: Update dev dependencies (#2246) 2025-07-17 14:21:03 -07:00
catloversg 4a2244d4e7 UI: Show terminal warning instead of popup for breaking changes (#2244)
* UI: Show terminal warning instead of popup for breaking changes

* Run prettier
2025-07-16 17:10:02 -07:00
catloversg 477d01652b CORPORATION: Remove Spring Water industry (#2240) 2025-07-16 01:07:55 -07:00
catloversg f182030385 CORPORATION: Use different term for dividend modifier instead of tax (#2237) 2025-07-11 12:55:46 -07:00
catloversg 6c7783aa85 CORPORATION: Remove DreamSense upgrade (#2232) 2025-07-10 01:40:36 -07:00
catloversg 9b59fcbb5f BUGFIX: Running scripts may be loaded before main UI (#1726) 2025-07-05 18:10:51 -07:00
catloversg d7642b34d0 API: Rename FactionName.BachmanAssociates to FactionName.BachmanAndAssociates (#2183) 2025-06-25 13:11:37 -07:00
catloversg a506554e04 BUGFIX: ns.bladeburner.getActionRepGain returns wrong value (#2186) 2025-06-21 13:35:00 -07:00
Michael Ficocelli 18f84396e2 FEATURE: Add "Recent Errors" tab and improved error modal (#2169) 2025-06-16 16:43:21 -07:00
catloversg cf72937faf UI: Improve Recovery Mode screen (#2206) 2025-06-16 16:38:51 -07:00
catloversg 2cabb98095 API: Rename BN multiplier RepToDonateToFaction to FavorToDonateToFaction (#2178) 2025-06-03 01:21:59 -07:00
catloversg 7d2686ed1b API: Standardize names of Stock APIs (#2173) 2025-06-02 02:36:36 -07:00
catloversg b17b0d710b BUGFIX: API break detector does not detect affected code in some cases (#2172) 2025-06-02 02:22:25 -07:00
catloversg 6a23c85e12 UI: Search and read NS API docs in editor tab and documentation tab (#2163) 2025-05-31 23:53:20 -07:00
catloversg 98f6cc9554 MISC: Make nuke and port cracking APIs return false instead of throwing error (#2153) 2025-05-31 21:28:50 -07:00
catloversg e34a29c458 MISC: Add removal of fuzzy matching to list of breaking changes (#2149) 2025-05-30 03:38:56 -07:00
catloversg 4e5044124c CORPORATION: Rename setAutoJobAssignment API to setJobAssignment (#2146) 2025-05-22 12:42:16 -07:00
catloversg 37d9284d33 MISC: Remove deprecated tail-related APIs (#2143) 2025-05-19 20:10:15 -07:00
G4mingJon4s 2b8c008be1 NETSCRIPT: Moved formatting functions to their own interface (#1635) 2025-05-14 09:13:35 -07:00
whiskeyfur 5e2d038e05 MISC: Updated createRandomIP to use the full 32 bit space (#2113) 2025-05-14 01:17:52 -07:00
catloversg eea6733e3b MISC: Export crash report when a fatal error occurs (#2106) 2025-05-10 22:45:37 -07:00
catloversg b53180ff1e MISC: Remove APIs that were deprecated a long time ago (#2088) 2025-05-10 22:10:48 -07:00
catloversg 23ad55554e UI: Add "Run" action to run current script in editor (#1987) 2025-03-04 02:43:31 -08:00
David Walker f16b6b92b8 CODEBASE: Version 2.8 stuff (#1989)
Change dev version from 2.7.1 to 2.8.0

Also adjust the save data migration code for the latest check to use "<"
instead of "<=" to agree with the style of everything else.
(I noticed this due to investistigating bumping the version, but that
happens as part of the release commit so it shouldn't be done yet.)
2025-03-01 15:25:22 -08:00
catloversg 91b68db1fe BUGFIX: Multiple problems with Job tab (#1976) 2025-02-28 12:52:08 -08:00
catloversg 8ed83f3d37 MISC: Add key binding feature (#1830) 2025-02-27 22:59:12 -08:00
catloversg 23bc4e8804 MISC: Show user-friendly error message when there is syntax error in scripts (#1963) 2025-02-16 01:27:26 -08:00
LJ 42a7941db7 Fix invalid filenames upon loading save (#1147) 2025-02-16 01:07:40 -08:00
catloversg 67aff2a6a0 BUGFIX: Wrong plural form in modal of coding contract (#1939) 2025-02-01 21:42:56 -08:00
catloversg 7d95400108 MISC: Fix typo in API break notice of v2.6.1 (#1936) 2025-01-30 10:27:40 -08:00