Commit Graph

233 Commits

Author SHA1 Message Date
catloversg
5a2bdfc9f1 CODEBASE: Update NodeJS to v24 (#2456) 2026-01-28 22:10:55 -08:00
TheAimMan
210c338f86 SLEEVES: Add sleeve commands to purchase sleeves and memory via the API (#2443) 2026-01-20 12:55:51 -08:00
Michael Ficocelli
4218b01dfb IPVGO: Do not update captures on passed analysis boards (#2415) 2025-12-21 13:44:24 -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
imcute_aaaa
77fe36db89 BUGFIX: Coding contracts may have duplicate names (#2399) 2025-11-26 23:59:11 -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
catloversg
a703e8753b JEST: Refactor tests that add home server manually (#2358) 2025-10-21 20:57:14 -04:00
catloversg
6837f334fd CODEBASE: Remove redundant check in getServer utility function and serverExists API (#2357) 2025-10-19 11:45:30 -07:00
catloversg
d421d4fcf9 MISC: Make TIX access independent from WSE account (#2342) 2025-10-11 17:28:45 -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
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
catloversg
9d5342732c JEST: Add Jest test to test migration from v2 to v3 (#2305) 2025-09-05 23:40:02 -07:00
Michael Ficocelli
cad38f015c IPVGO: Prevent tiny islands surrounded by offline nodes during initial board generation (#2310) 2025-09-05 23:26:57 -07:00
David Walker
d4cb50fbf1 BUGFIX: Fix calculateExp so that it won't return a too small result (#2274)
* BUGFIX: Fix calculateExp so that it won't return a too small result

Due to floating point rounding issues, when applying the inverse
operation and flooring, roughly half the time we would get the next
lower skill level. This quickly finds a slightly higher result that
gives the correct inverse.

* clearer test layout
2025-07-31 12:54:31 -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
hydroflame
407dad0d6b MISC: Update blood donations (#2216) 2025-06-26 15:15:57 -07:00
catloversg
8aa73b2c65 MISC: Detect circular dependencies when generating modules (#2194) 2025-06-21 13:32:47 -07:00
catloversg
510a9a6be5 BUGFIX: Documentation navigator does not handle external URL properly (#2202) 2025-06-21 13:31:52 -07:00
Michael Ficocelli
18f84396e2 FEATURE: Add "Recent Errors" tab and improved error modal (#2169) 2025-06-16 16:43:21 -07:00
catloversg
a794fddaf7 MISC: Add file metadata (timestamps) (#2199) 2025-06-16 16:34:06 -07:00
HansLuft778
67017c5782 TERMINAL: Add RAM usage and detailed file size to ls -l output (#2135) 2025-06-02 02:23:22 -07:00
catloversg
eaf4014516 MISC: Update blood donation (#2151) 2025-05-23 14:12:26 -07:00
catloversg
90555a64e6 MISC: Add achievements for BN14 (#2140) 2025-05-20 14:32:13 -07:00
whiskeyfur
5e2d038e05 MISC: Updated createRandomIP to use the full 32 bit space (#2113) 2025-05-14 01:17:52 -07:00
catloversg
a9900072da MISC: Remove support for running NS1 scripts (#2083) 2025-04-11 13:41:48 -07:00
Michael Ficocelli
f6e7ef082c IPVGO: Add support for highlighting nodes and adding small text (#1996) 2025-03-31 13:36:30 -07:00
Michael Ficocelli
17ffabdfa5 IPVGO: Add new analysis method to set a custom testing board state (#2029) 2025-03-22 23:52:26 -07:00
catloversg
7f443427ea CODEBASE: Suppress false-positive console errors caused by RamCalculation.test.ts (#2002) 2025-03-07 15:15:54 -08:00
catloversg
23ad55554e UI: Add "Run" action to run current script in editor (#1987) 2025-03-04 02:43:31 -08:00
catloversg
8ed83f3d37 MISC: Add key binding feature (#1830) 2025-02-27 22:59:12 -08:00
G4mingJon4s
b61e93b246 CODINGCONTRACT: Move internals to a separate folder (#1932) 2025-02-11 22:04:23 -08:00
Michael Ficocelli
c8d2c9f769 IPVGO: Support scripts playing against each other as each color on "No AI" boards (#1917)
This is a big change with a *lot* of moving parts.

The largest part of it is enabling scripts to `playAsWhite` as a parameter to many Go functions. In the implementation, this involved a significant rewrite of `opponentNextTurn` promise handling.

A number of other changes and bugfixes are included:
* Fixes the issue where handicap stones are added on game load.
* Better typing for error callbacks.
* Throw errors instead of deadlocking on bad cheat usage.
* Return always-resolved gameOver promise after game end
* Added a new `resetStats` api function.

---------

Co-authored-by: David Walker <d0sboots@gmail.com>
2025-02-02 20:47:16 -08:00
catloversg
de6b202341 CODEBASE: Refactor Player.applyForJob (#1947) 2025-02-02 09:29:18 -08:00
catloversg
a4217b448a MISC: Standardize behavior of connect CLI and Singularity API (#1933) 2025-01-31 11:20:17 -08:00
catloversg
ada903f356 CODEBASE: Refactor ns.singularity.purchaseAugmentation (#1879) 2025-01-28 10:42:25 -08:00
catloversg
0f9144a059 CODEBASE: Validate theme, editor theme, and styles (#1789) 2025-01-08 19:20:05 -08:00
catloversg
b66eff0379 JEST: Fix flaky stock market test (#1834) 2024-12-12 02:58:35 -08:00
catloversg
1e6c9d69e2 JEST: Move TerminalMatching.test.ts (#1801) 2024-11-27 01:23:51 -08:00
catloversg
faed78cf2c CODEBASE: Validate AllGangs and StockMarket after loading with JSON.parse (#1783) 2024-11-27 01:13:47 -08:00
catloversg
bb0b857f71 JEST: Add tests for b1tflum3 and destroyW0r1dD43m0n API (#1802) 2024-11-27 00:06:11 -08:00
catloversg
8c4fcfe045 CODEBASE: Recheck all usages of typecasting with JSON.parse (#1775) 2024-11-20 23:47:02 -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
246d668951 CORPORATION: Rewrite validation code for strings of price and quantity (#1753) 2024-11-12 07:39:21 -08:00
catloversg
772762493f BLADEBURNER: Change sleeveSize from property to getter (#1746) 2024-11-03 23:19:01 -08: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