• xtrn/lord2/lord2.js

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Thursday, November 19, 2026 10:48:17
    https://gitlab.synchro.net/main/sbbs/-/commit/5e0fefb11ecb609f4822cbb2
    Modified Files:
    xtrn/lord2/lord2.js
    Log Message:
    lord2: actually close stime.dat and time.dat after rewriting them

    load_time() truncated and rewrote both files, then evaluated "f.close"
    without calling it, so the buffered write only reached disk if the File
    object happened to be finalized cleanly. When it wasn't, both files were
    left at 0 bytes and every later run, the nightly /MAINT event and
    players entering the game alike, threw "Corrupt .../stime.dat" until the
    files were repaired by hand.

    The missing parentheses date from c1909b32bcb (2019-09-23).

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)