Commit Graph

201 Commits

Author SHA1 Message Date
catloversg 9920b6ae4d MISC: Add source map to transformed scripts (#1812)
* MISC: Add source map to transformed scripts

* Print error to console
2025-01-19 13:50:50 -08:00
catloversg 5b6380a5c3 MISC: Add more error info to error dialog and tail log (#1813) 2025-01-08 18:22:13 -08:00
catloversg 67704f2ab0 CODEBASE: Use "esnext" target when transforming code with swc (#1810) 2024-11-30 16:02:32 -08:00
catloversg 7a4b3e23c1 CODEBASE: Show error dialog when finding out old bugs in pre-v2.4.0 (#1816)
* CODEBASE: Show error dialog when finding out old bugs in pre-v2.4.0

* Only show error dialog once
2024-11-30 15:31:44 -08:00
catloversg 22b6458c22 REFACTOR: Handle migration of ActionIdentifier in Bladeburner code instead of GenericReviver (#1799) 2024-11-27 01:22:23 -08:00
catloversg 3846c69204 BUGFIX: Infinite loop when migrating player's scripts from pre-v1.0.0 (#1798) 2024-11-27 01:18:43 -08:00
catloversg 7d03a9ef32 CODEBASE: Improve type checks in SaveObject.ts (#1774) 2024-11-27 00:35:09 -08:00
catloversg 9d8ac65aaf BUGFIX: Generic Reviver does not handle Message class (#1796) 2024-11-24 13:46:18 -08:00
catloversg 05da0efc81 REFACTOR: Mitigate cyclic dependency between Jsonable classes (#1792) 2024-11-23 15:53:31 -08:00
catloversg 8c4fcfe045 CODEBASE: Recheck all usages of typecasting with JSON.parse (#1775) 2024-11-20 23:47:02 -08:00
David Walker 5faa418c74 REFACTOR: Better casting in JSONReviver.ts (#1780) 2024-11-19 11:45:26 -08:00
catloversg d824cd4fa6 CODEBASE: Add comments to Generic_fromJSON (#1776) 2024-11-18 15:36:23 -08:00
catloversg 75cf9c88b5 CODEBASE: Fix lint errors 3 (#1758)
This is a really big refactor because it actually *fixes* a lot of the lint errors instead of disabling them.
2024-11-14 08:18:57 -08:00
catloversg 4f84a894eb MISC: Add error cause to exceptionAlert and Recovery mode (#1772) 2024-11-12 19:27:18 -08:00
catloversg 5d26f4fa56 GANG: Show error popup when there are errors (#1763)
* GANG: Show error popup when there are errors

* Only show error once when it's in a hot code path
2024-11-11 07:41:38 -08:00
catloversg 36c143b687 CODEBASE: Fix lint errors 2 (#1756) 2024-11-06 23:09:11 -08:00
catloversg 81e068ba9c MISC: Include React component stack in Recovery Mode report (#1750) 2024-11-04 16:20:02 -08:00
catloversg f6502dd490 CODEBASE: Fix lint errors 1 (#1732) 2024-11-03 22:35:14 -08:00
catloversg bc51733fbe MISC: Improve exception alert (#1709) 2024-10-21 20:36:29 -07:00
David Walker bedd398789 CCT: Add new Square Root coding contract (#1656)
To make this simpler, there is now a general-purpose util for getting
random bigints. I don't know if anyone else will use it, but it makes
this code simpler.

I also rejiggered the type-checking on contracts a little more, because
the previous refactor didn't quite catch all the mistakes that could be
made.
2024-09-30 20:18:58 -07:00
Denis Čahuk cde5e3f6ae MISC: Refactor BLADEBURNER Identifier Lookup (#1646) 2024-09-14 17:39:18 -07:00
catloversg 818d7446be MISC: Rename getRandomArbitrary (#1605) 2024-08-21 16:50:51 -07:00
catloversg 289f60d8c8 BLADEBURNER: Add API to calculate max upgrade count of skill (#1475) 2024-08-16 13:15:20 -07:00
Tom Prince 2f95d21503 UI: Sync UI updates to game updates. (#1512)
There are a bunch of React components that update at the same rate
that the game engine processes cycles. Rather than have each place
that does so start its own timer to update that often, add a new
react hook that triggers an update shortly after the engine completes
a cycle.
2024-08-01 23:57:43 -07:00
Tom Prince c3dc275d34 MISC: Show values of constants in type hints. (#1515) 2024-07-26 01:56:09 -07:00
catloversg ceaf27714b MISC: Remove testing code in ScriptTransformer (#1499) 2024-07-17 23:23:18 -07:00
David Walker abe7a43eec MISC: Always include stack trace in Recovery Mode (#1487)
We are getting some more error reports coming in that don't have enough
info in them. It turns out that populating the stack trace was gated
behind the dev flag; in reality, production builds are where we need it
most. Even if it ends up being obfuscated (source maps should prevent
this), we can figure out the actual source lines with enough effort if
need be.

This also changes to using the actual stack trace, rather than the
"component" trace (the tree of JSX objects), since knowing where the
code failed is far more valuable. Also, it ensures we get the full error
details when things go wrong in savefile loading.
2024-07-14 22:51:18 -07:00
catloversg 864613c616 MISC: Support JSX, TS, TSX script files (#1216) 2024-07-14 14:47:10 -07:00
catloversg f18d28fc6e DOCUMENTATION: Add link to NS API documentation (#1460) 2024-07-06 12:54:56 -07:00
catloversg b8f03cb50b BLADEBURNER: Remove unused code (#1368) 2024-06-08 13:51:05 -07:00
Yichi Zhang 54d099e552 TERMINAL: Fix autocomplete for mixed case strings (#1323) 2024-05-29 11:34:46 -07:00
gmcew fe14d4fef3 CCT: Minor simplification of 'Shortest Path' solver (#1288)
BFS shouldn't need some checks.
Also allows deletion of a helper file used by this function only.
2024-05-23 00:44:41 -07:00
catloversg 175af0bd28 BUGFIX: Improve implementation of getRandomInt (#1282) 2024-05-18 15:12:06 -07:00
Snarling 574c284321 API: Add API break utilities, and add an API break for bladeburner.getCurrentAction (#1248) 2024-05-14 19:24:03 -04:00
gmcew 1b8205e9d5 UI: Bladeburner console to use Settings.TimestampsFormat for logging (#1265) 2024-05-11 19:10:55 -04:00
David Walker 384d1c1a2b NETSCRIPT: A minorly breaking change around script launch, and refactoring. (#1213) 2024-04-23 20:21:05 -04:00
catloversg 7b993f3550 MISC: Remove file-saver (#1217)
Also refactor to dedup our own download code
2024-04-19 13:38:44 -07:00
Snarling 6669c4da6a BLADEBURNER: Typesafety / refactoring (#1154) 2024-03-28 21:52:37 -04:00
catloversg 8553bcb8fc MISC: Support compression of save data (#1162)
* Use Compression Streams API instead of jszip or other libraries.
* Remove usage of base64 in the new binary format.
* Do not convert binary data to string and back. The type of save data is SaveData, it's either string (old base64 format) or Uint8Array (new binary format).
* Proper support for interacting with electron-related code. Electron-related code assumes that save data is in the base64 format.
* Proper support for other tools (DevMenu, pretty-save.js). Full support for DevMenu will be added in a follow-up PR. Check the comments in src\DevMenu\ui\SaveFileDev.tsx for details.
2024-03-27 21:08:09 -07:00
catloversg db226ce0b8 MISC: Remove isString utility function (#1185) 2024-03-23 02:46:52 -07:00
Snarling e9d1ddfaf3 SAVEGAME: Reduce size of savefile (#1148)
Storing less info in the save for Factions/Companies if it's still the default info
2024-03-11 08:58:10 -04:00
Caldwell 3d6692b292 MISC: clamping numbers (#1104) 2024-02-27 09:47:00 -05:00
Snarling 373ced2efe GO: Various changes before 2.6.0 (#1120) 2024-02-26 08:05:10 -05:00
deansvendsen cb7c75a3ce MISC: Gang Expenses category in MoneySource (#1043) 2024-01-23 18:18:56 -05:00
Snarling 97d679bdac MISC: Protect against reassigning certain globals (#972) 2023-12-16 05:03:52 -05:00
Snarling 36312c660d CODE: Enable es2023 features (#870) 2023-10-23 04:49:12 -04:00
Caldwell e992cb966a CORPORATION: adding prevState and changed state display in the warehouse UI (#861) 2023-10-23 04:48:06 -04:00
missymae#2783 ff0118f2f4 UI: Update general devmenu page (#835) 2023-10-23 04:01:21 -04:00
Snarling 38f693e2c1 ENUMS: Followup for #859 (#868) 2023-10-17 07:19:32 -04:00
Caldwell 269a74d5c0 CODEBASE: update dependencies (#852) 2023-10-07 18:52:48 -04:00