Commit Graph

5771 Commits

Author SHA1 Message Date
quacksouls
4c4c4a0335
DOC: additionalMsec is no longer experimental (#576)
The attribute `additionalMsec` of the object `BasicHGWOptions` was experimental in v2.2.2.  It is now a stable feature.
2023-06-06 17:19:07 -04:00
Snarling
40b89baca1
MISC: Various small fixes (#574)
* ns.ls filter can include leading slash in filename
* scp from terminal accepts multiple filenames
* terminal displays root / instead of ~ as base
* cd with no args returns to root
2023-06-06 08:46:07 -04:00
Aleksei Bezrodnov
027db7e867
MISC: optimize corp affordable upgrade level calculation (#570) 2023-06-06 01:45:28 -04:00
omuretsu
abbf99f2cb Dev changelog update 2023-06-04 12:12:55 -04:00
Aleksei Bezrodnov
7050c90378
UI: Fix several issues with script editor tabs (#554) (#567) 2023-06-04 12:01:06 -04:00
zerbosh
bda1daf49f
CORPORATION: parse material Sell field once (#562) 2023-06-04 10:28:35 -04:00
zerbosh
d8fee8e25a
CORPORATION: fixed Sell Buttons (#564) 2023-06-04 00:13:26 -04:00
David Walker
3c6b5a1a83
BUGFIX: Fix corp issues relating to imports (#568)
Also clarify the Smart Supply options to be more clear on what they do.
2023-06-04 00:11:07 -04:00
Snarling
403beef69e
PRESTIGE: Make bitnode reset synchronous again (#566)
* Make prestige synchronous
2023-06-03 18:04:45 -04:00
Snarling
ec9e7ffa3a
GANG: Fix respectGainRate being stored incorrectly (#565) 2023-06-03 16:44:35 -04:00
Aleksei Bezrodnov
dd9849f53d
BUGFIX: script tab reordering (#563) 2023-06-03 14:26:55 -04:00
Aleksei Bezrodnov
99954ebd1e
REFACTORING: ScriptEditor (#560) 2023-06-03 13:55:25 -04:00
omuretsu
886f402a43 Fix infinite time to hack on 0-difficulty servers 2023-06-02 12:32:06 -04:00
omuretsu
68405b2873 Changelog update 2023-06-01 15:27:07 -04:00
Kateract
10215a924c
CORP: Add maxProducts property to division, consolidate maxProducts logic (#551) 2023-06-01 15:20:54 -04:00
David Walker
0d6015104e
BUGFIX: Proper default title for loaded RunningScripts (#557) 2023-06-01 06:42:55 -04:00
David Walker
4d1cdaad32
UI: Add title tooltips to tail window elements (#558) 2023-06-01 06:42:06 -04:00
omuretsu
7240bbe8b7 Fix hotfix 2023-05-30 20:47:01 -04:00
omuretsu
8bc67f542a Satisfy lint 2023-05-30 20:06:13 -04:00
omuretsu
b65bd62345 More hotfixes...
* Script editor theme could be corrupted leading to a recovery screen, this should fix that.
* Because script filepath changes were moved before the detection of .ns files, a check was added for .ns files in BaseServer so they get the better name.
2023-05-30 20:00:43 -04:00
Snarling
1aa53739cc Hotfix 30 May 2023 (#555) 2023-05-30 18:48:16 -04:00
omuretsu
469c70ed4b Update dev changelog 2023-05-29 18:43:16 -04:00
bezrodnov
606b4bee95
UI: Prevent terminal scroll on progress bar update (fix #94) (#544) 2023-05-29 14:59:17 -04:00
bezrodnov
ea8f5cede7
add close modal button (#546) 2023-05-29 11:54:14 -04:00
David Walker
e51527aa86
BUGFIX: More savegame loading fixes (#543)
* Fix loading issues back to pre-1.0
* Be more robust about issues with files not being maps
* Avoid non-fatal error when there's no LastExportBonus
2023-05-29 07:10:26 -04:00
Snarling
5f2a1c3f27 TERMINAL: Fix original alias syntax (#545) 2023-05-29 06:54:51 -04:00
omuretsu
ae8f26f03b More hotfix
* Fix empty solution for all valid math expressions
2023-05-28 05:25:44 -04:00
Snarling
8e4492685d Fix scan analyze display (#539) 2023-05-27 19:30:24 -04:00
omuretsu
72a631d4ed Another lint fix 2023-05-27 08:46:28 -04:00
omuretsu
8bf13b6fd3 fileExists no longer case sensitive for programs 2023-05-27 08:39:29 -04:00
omuretsu
ad3b217b8f lint fix
Fix sloppy unlinted hotfix code
2023-05-27 01:58:47 -04:00
omuretsu
e03a366f12 hotfix broken spring water 2023-05-27 01:53:13 -04:00
David Walker
db26d054fc
Various fixes to our upgrade logic (#536)
Stuff broke over time, especially with the major changes we made leading
up to 2.3. We should test with older saves if/when we make large changes
in the future.

Fixes #532
2023-05-27 00:16:31 -04:00
omuretsu
ab207ce36c Fix more terminal usage error text 2023-05-26 15:45:49 -04:00
omuretsu
40babcb2ee more hotfixing
Hotfixed usage tips for alias
Hotfixed prestigeHomeComputer to avoid crashing prestige
Added checking at startWorkerScript to try and find instances where script is launched on wrong server
Fixed corp issue with multibuy not providing multibenefits
2023-05-26 14:59:42 -04:00
omuretsu
912fc98d3a Fix ls clickable links in directory 2023-05-26 12:09:59 -04:00
David Walker
4503da6226
UI: LogBox overhaul (#508) 2023-05-26 08:07:37 -04:00
G4mingJon4s
113af6e711
Add ns.getFunctionRamCost (#526) 2023-05-26 07:46:08 -04:00
bezrodnov
294603fff8
Fix getAugmentationGraftPrice bug (#530) 2023-05-26 04:14:11 -04:00
omuretsu
396e71955e Fix scp logs
Hostname was not being displayed correctly
2023-05-26 04:04:17 -04:00
omuretsu
4f83d6a58a 2.3.1 dev start 2023-05-25 18:55:04 -04:00
omuretsu
7f6b96fda0 Hotfix
Prevent crash due to renamed files not being able to re-launch automatically
2023-05-25 18:16:10 -04:00
omuretsu
f75c185d39 Final 2.3.0 2023-05-25 16:45:51 -04:00
David W
97ea35bd5b
Clarify exec needs script to be on remote server (#512) 2023-05-25 16:27:56 -04:00
Nikolai Korolev
b72eb125f2
DOC: Fix parameter name in documentation (#525) 2023-05-25 16:26:43 -04:00
Snarling
87f2ae459d
UI: Better support for custom player React content (#513) 2023-05-22 05:28:24 -04:00
omuretsu
0d55b957f1 Small cat fix
cat no longer shows error message for no file found when a message or literature file was found
2023-05-22 01:52:01 -04:00
Aloït R
8dad2e746f
Fix missing bracket (#519) 2023-05-21 10:07:29 -04:00
David Walker
9d9f6b4dcd
Fix incorrect progress (#516) 2023-05-21 10:04:40 -04:00
Nikolai Korolev
2e9dc32deb
DOC: Specify optional parameters in hacknet functions (#515) 2023-05-18 01:28:56 -04:00
omuretsu
75706d273a Build fix
Two files somehow missed saving their renaming.
2023-05-17 18:36:49 -04:00
omuretsu
c1f842e5c7 More corporation renaming
Just renaming files / functions. Industries are the static categories that divisions can operate within, divisions are the actual branches of the company. A lot of stuff was still written as if Industries are the actual branches of the company, which is even less accurate now that a corporation is allowed to have multiple divisions operating in the same industry.

Also removed the incorrect tooltip description of what tea does (it's now just a flat +2 increase)
2023-05-17 17:28:24 -04:00
omuretsu
27a6b619eb Lint fix
Also reduce unnecessary imports
2023-05-16 11:41:55 -04:00
omuretsu
00522fb8f3 Fix infinite loop detection
Also debounce it with the ram calc to improve performance
2023-05-16 11:27:11 -04:00
omuretsu
b44050cfec Fix oldcorp loading 2023-05-16 08:36:14 -04:00
omuretsu
f4655b8e1b Typo fix 2023-05-15 23:12:17 -04:00
omuretsu
6c730d46f4 Dev branch always show changelog regardless of location 2023-05-15 23:05:36 -04:00
omuretsu
df237b0842 Fix Stanek fix 2023-05-15 23:01:19 -04:00
omuretsu
21162c8cdd Fix stanek not recalculating stats immediately on game load 2023-05-15 22:55:57 -04:00
omuretsu
ce9ceb05a3 Revert hostname in tail titlebar 2023-05-15 20:26:18 -04:00
omuretsu
48396bf8cb Changelog update 2.3 2023-05-15 18:39:01 -04:00
Snarling
2ae3ac52f1
CORPORATION: Corp changes prior to 2.3 finalization (#503) 2023-05-15 18:06:57 -04:00
David Walker
e2e9b084bc
SETTINGS: Add an autoexec setting (#505) 2023-05-09 00:13:05 -04:00
omuretsu
4e07900c5a Fix hacknet level base cost constant 2023-05-05 23:22:54 -04:00
Snarling
ebae35b1fb
CODEBASE: Expand lint rules, and Aliases are stored as maps (#501) 2023-05-05 03:55:59 -04:00
Snarling
d25254caf1
BUGFIX: Prevent crash that could occur with server named runningScripts (#502) 2023-05-03 20:19:56 -04:00
omuretsu
003be33886 Lint fix 2023-05-03 07:31:29 -04:00
omuretsu
3c996a47ea Fully remove formatCode function (trim on script save) 2023-05-03 07:21:23 -04:00
David Walker
ad5a1c4bac
NETSCRIPT: Revert FormattedCode type (#500) 2023-05-03 07:13:35 -04:00
David Walker
8b7166e4ed
UI: Fix (most) perf issues in Active Scripts (#498) 2023-04-30 19:31:29 -04:00
Snarling
802f2f1c66 Blacklist some more special characters
Also improved readability of the valid character section by using escapeRegExp
2023-04-28 15:33:05 -04:00
Snarling
8f684fa74c Changelog and markdown update 2023-04-28 14:45:55 -04:00
Snarling
e1aff1a315 Lint fix 2023-04-28 11:49:05 -04:00
Snarling
350679bc83 Program path bugfix + wget use contentFile 2023-04-28 11:42:35 -04:00
Snarling
8fd4eee8e9 Fix wget with text file target 2023-04-28 11:14:29 -04:00
David Walker
aa7facd4ba
NETSCRIPT: Greatly speed up script launching, and remove the limitation unique args per script (#440)
* Remove the limitation unique args per script
* Internal changes to how runningScripts are stored on the server, to make common usage faster.
2023-04-27 18:21:06 -04:00
Snarling
f81297dcd6
ls display is responsive (#492) 2023-04-26 15:18:26 -04:00
Snarling
d9ef53e2e8 Fix SF12 wrong multipliers applied 2023-04-25 09:31:53 -04:00
Snarling
6024c81113
NETSCRIPT: add ns.getResetInfo(#490)
* Move lastAugReset and lastNodeReset back to main API under getResetInfo, also included currentNode.
* The associated properties are deprecated on getPlayer()
2023-04-25 05:22:36 -04:00
Snarling
62adaf3006
Various bugfix/cleanup (#489)
* parseCommands no longer removes excess whitespace (it was unneeded and also had a bug in it relating to commands that ended in a quote mark)
* more documentation and some variable renaming
* Fix script editor focus bug on navigating to the editor from sidebar
* Fix initialization for lastNodeReset and lastAugReset
2023-04-24 15:48:49 -04:00
omuretsu
9004b12256 Actually fix quoted string args 2023-04-24 13:21:58 -04:00
omuretsu
c4776753f1 Fix quoted section detection 2023-04-24 13:05:50 -04:00
omuretsu
3106c03b5b Fix broken run command 2023-04-24 12:54:09 -04:00
David Walker
be4b0267a6
TERMINAL: Greatly improve ANSI handling (#485)
- Add support for 2;r;g;b color codes (much easier to deal with
  than 5;x256 style codes)
- Fix 40-47 (standard background colors) so that they work
- Add support for italic
- Add support for empty arguments interpreted as 0
  (0 is still not supported for "reset style", since it's not needed
  with our non-standard usage of resetting styles on every escape
  sequence, and it might cause compat issues)
- Fix ordering of 0-15 in the x256 colors to match the standard. The
  "main" colors (selected via 30-37 for FG and 40-47 for BG) are still
  artificially bright for FG, kept for compatibility, but there's no
  reason to screw up the x256 colors. (Hopefully usage of that section
  should be small anyway.)
2023-04-24 11:04:37 -04:00
David Walker
b3c0027b66
NETSCRIPT: Change error return of hackAnalyzeThreads (#482)
Fixes #102
2023-04-24 11:04:19 -04:00
Arron Chapman
e7fcda19c1
UI: Added hostname to LogBox title (#478) 2023-04-24 10:33:16 -04:00
Snarling
e0272ad4af
FILES: Path rework & typesafety (#479)
* Added new types for various file paths, all in the Paths folder.
* TypeSafety and other helper functions related to these types
* Added basic globbing support with * and ?. Currently only implemented for Script/Text, on nano and download terminal commands
* Enforcing the new types throughout the codebase, plus whatever rewrites happened along the way
* Server.textFiles is now a map
* TextFile no longer uses a fn property, now it is filename
* Added a shared ContentFile interface for shared functionality between TextFile and Script.
* related to ContentFile change above, the player is now allowed to move a text file to a script file and vice versa.
* File paths no longer conditionally start with slashes, and all directory names other than root have ending slashes. The player is still able to provide paths starting with / but this now indicates that the player is specifying an absolute path instead of one relative to root.
* Singularized the MessageFilename and LiteratureName enums
* Because they now only accept correct types, server.writeToXFile functions now always succeed (the only reasons they could fail before were invalid filepath).
* Fix several issues with tab completion, which included pretty much a complete rewrite
* Changed the autocomplete display options so there's less chance it clips outside the display area.
* Turned CompletedProgramName into an enum.
* Got rid of programsMetadata, and programs and DarkWebItems are now initialized immediately instead of relying on initializers called from the engine.
* For any executable (program, cct, or script file) pathing can be used directly to execute without using the run command (previously the command had to start with ./ and it wasn't actually using pathing).
2023-04-24 10:26:57 -04:00
Snarling
6f56f35943
Add deprecation messages (#486)
Add back getPlayer().playtimeSinceLastX, but with deprecation messages applied
2023-04-24 10:21:43 -04:00
hydroflame
72037b5dab
Update Constants.ts (#481) 2023-04-20 01:55:00 -04:00
Snarling
0df984eea0
CODEBASE: Add Jsonable Map and Set types, move player.sourceFiles to a map (#473) 2023-04-18 03:19:45 -04:00
Snarling
c44bdc1018 Remove unreachable code 2023-04-12 21:05:53 -04:00
G4mingJon4s
d01ba91654
SINGULARITY: Added aug and node identifiers (timestamps of last resets) (#472) 2023-04-12 13:13:42 -04:00
Snarling
f761eed377
NETSCRIPT: Type correctness for getServer (#476) 2023-04-11 15:12:55 -04:00
T.J. Eckman
751fe82f92
HASHNET: Company Favor (#469) 2023-04-08 23:24:09 -04:00
David Walker
ed9e6d5ea3
NETSCRIPT: Compiled modules will be even more shared (#468) 2023-04-07 21:08:39 -04:00
omuretsu
f74002cce0 Fix and rebuild doc 2023-04-07 07:49:11 -04:00
quacksouls
4ade263ae8
DOC: typo fixes in sleeves API (#467)
A bunch of typographical fixes in the documentation of the Sleeve API.
2023-04-07 07:45:14 -04:00
Snarling
a6dfdff3ba
Fix build issue 2023-04-07 02:45:19 -04:00
Snarling
04d49e3a6d
SCRIPTS: Script modules are reused when they are imported (#461)
Also corrects some compile race conditions.
2023-04-07 00:33:51 -04:00
T.J. Eckman
677686fa20
SINGULARITY: getCompanyPositionInfo (#460) 2023-04-04 12:00:54 -04:00