GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Tags · NosCoreIO/NosCore.Shared
Tags
7.1.0Name the reputation icon of the first fd line (#298) On entering the game the server sends fd with icon 0 before the line with the character's rank, and ReputationType had no member for 0, so that line failed validation in the packet library. Claude-Session: https://claude.ai/code/session_01CUfJ46iekh4rbiCyoTamtn Co-authored-by: Claude <[email protected]> 7.0.0Target .NET 11 (#294) Claude-Session: https://claude.ai/code/session_014gSmkX8c2PxcxJdoLXzPqf Co-authored-by: Claude <[email protected]> 6.1.0feat: add CellonType The option types a cellon can put on an accessory, shared by the cellon table and the server. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014gSmkUxD9KGmbgzcx1sCB2 6.0.2Decide the console state instead of catching the throw (#259) * fix: decide the console state instead of catching the throw PrintHeader stopped crashing headless startups in 6.0.1 by wrapping the width read in catch (IOException). The state it was catching is directly observable, so it is an if now. Console.WindowWidth needs one of the three std handles to be a console - .NET falls back stdout, stderr, stdin before giving up - so that, and not "is a console attached", is the predicate. Measured on the packed 6.0.2: no console all three redirected WindowWidth throws header 21 wide AllocConsole stdout is a console WindowWidth 120 header 120 wide AllocConsole, all handles piped all three redirected WindowWidth throws header 21 wide The third row is why GetConsoleWindow() is wrong here: a console is attached, and the width read still throws. ConsoleHelper carries the title side too, where the predicate is the opposite one - GetConsoleTitle takes no handle and needs the process to own a console - so NosCore, Injector and ParserInputGenerator can drop their own try { Console.Title = ... } catch blocks. Tested: builds clean, tests green (2 tests, both new). * fix: stdin cannot answer the window-size question HasWindowSize counted stdin, and a console input handle has no screen buffer, so Console.WindowWidth still threw for a process whose output is piped while stdin is on the console - Server.exe > log.txt 2>&1 from a shell. Measured against the packed 6.0.2: stdout+stderr piped, stdin on the console WindowWidth throws PrintHeader threw Console.WindowWidth reads the buffer through stdout, then stderr, then stdin, and only the first two can succeed, so the predicate is those two. Same case now falls back to the headless width and prints. The tests asserted nothing beyond "did not throw". A test process cannot choose whether it owns a console, so each case now asserts the half its own state can prove and stands aside for the other: the title is unchanged when nothing can carry it, and is "NosCore - Port : 4000" when something can; the banner is 20 wide with no readable size, and Console.WindowWidth - 1 with one. CanCarryTitle is public so a test can tell which half applies. Tested: 4 tests, the two that need an owned console skip under dotnet test. All four console states re-measured against the packed 6.0.2, all print. 6.0.1fix: PrintHeader kills headless startup when no console is attached (#… …258) * chore: bump all NuGet packages to latest Co-Authored-By: Claude Fable 5 <[email protected]> * fix: PrintHeader kills headless startup when no console is attached Console.WindowWidth/WindowHeight throw IOException when the process has no console at all (Windows service, container, detached process manager), so the banner took the server down before it did any work. Read the width once through a guarded helper and fall back to the same narrow layout already used when the window height is unknown. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: Claude Fable 5 <[email protected]> PreviousNext
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |