Commit Graph

30 Commits

Author SHA1 Message Date
catloversg
6a9abd9544 DOCUMENTATION: Update mention of outdated getStockForecast API (#2578) 2026-03-16 12:46:43 -07:00
catloversg
90f6db6d24 MISC: Allow parsing unknown options with data.flags in autocomplete (#2539) 2026-03-04 12:27:12 -08:00
catloversg
45366a1a42 DOCUMENTATION: Update guides (#2550) 2026-03-03 14:05:14 -08:00
catloversg
47d8db8b91 DOCUMENTATION: Follow-up of #2523 (#2529) 2026-02-24 13:30:43 -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
0c118ede38 DOCUMENTATION: Use relative links instead of absolute links (#2521) 2026-02-21 11:58:15 -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
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
826fd42296 DOCUMENTATION: Improve help text of scp and run (#2493) 2026-02-11 10:42:10 -08:00
Michael Ficocelli
425bff8217 DNET: Update documentation (#2483) 2026-02-07 19:25:56 -08:00
Michael Ficocelli
451aed153f DARKNET: Add glossary of terms to the documentation page (#2469) 2026-02-06 04:57:30 -08:00
catloversg
4c7e3d0833 UI: Show karma in Stats page and explain what it is in documentation (#2475) 2026-02-05 10:07:51 -08:00
catloversg
00339a206c DOCUMENTATION: Move current changelog to changelog-v2.md (#2461) 2026-02-03 04:14:17 -08:00
Michael Ficocelli
6073964768 DARKNET: Darkweb Expansion Project & Bitnode (#2139)
This is BN15. It is a really big change; see the PR for all the details.
2026-02-03 03:40:36 -08:00
catloversg
d7c1c7be72 UI: Remove BitNode's difficulty in BitNode selection popup (#2454)
* UI: Remove BitNode's difficulty in BitNode selection popup

* Run prettier
2026-01-25 20:34:54 -08:00
catloversg
2edad3ed37 DOCUMENTATION: Update math notations in corporation docs (#2452) 2026-01-20 13:04:38 -08:00
EntenBu
95528ebb09 Add a question and a grammatical fix in faq.md (#2446)
"Made with beginners in mind" might be a bit of an overstatement, but I'm not gonna quibble on the wording. (IMO we are less "let me hold your hand while you learn how to cast your fishing rod" and more "I shoved you into the pond, grab some fish or smth idk")
2026-01-12 15:58:55 -08:00
catloversg
b76ceb725f DOCUMENTATION: Clean up "doc" folder (#2427) 2025-12-19 12:28:09 -08:00
EntenBu
6f9447e27e DOC: Add FAQ and another JIT batcher illustration to documentation (#2400) 2025-12-17 13:30:58 -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
7ca364f49f DOCUMENTATION: Fix wrong commands in getting_started.md (#2349) 2025-10-13 08:59:53 -07:00
gmcew
15776e36e3 CONTRACTS: Clean up helpers, expand documentation, Hamming wording again (#2296) 2025-08-25 17:16:26 -07:00
gmcew
b8e39fe05c DOC: Update 'Hacking Algorithms' page (#2288)
* Update hackingalgorithms.md

* Update src/Documentation/doc/en/programming/hackingalgorithms.md

d0s corrections

Co-authored-by: David Walker <d0sboots@gmail.com>

* Update src/Documentation/doc/en/programming/hackingalgorithms.md

d0s corrections

Co-authored-by: David Walker <d0sboots@gmail.com>

* Suggest changes

* Add heading for Proto-batcher

Co-authored-by: David Walker <d0sboots@gmail.com>

* Run prettier

---------

Co-authored-by: David Walker <d0sboots@gmail.com>
Co-authored-by: CatLover <152669316+catloversg@users.noreply.github.com>
2025-08-23 11:14:16 -07:00
catloversg
cfa8f59602 DOCUMENTATION: Update Remote API docs (#2258) 2025-07-23 14:16:24 -07:00
catloversg
85094d4fb4 DOCUMENTATION: Mention TypeScript support and update example in React docs (#2263) 2025-07-22 13:25:00 -07:00
catloversg
effa0ff17b DOCUMENTATION: Update infiltration docs (#2259) 2025-07-22 00:14:35 -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