• xtrn/utopia/utopia.js

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sat Jan 24 22:12:07 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/32d243e9f8ba8778cef98958
    Modified Files:
    xtrn/utopia/utopia.js
    Log Message:
    Encapsulate the rules, not the game functions

    I anticipate I'll want to support tracking/iterating and providing multiple sets of rules that the user can choose from and sysops might want to provide their own. And high score lists should be specific to the set rules used to play the game. So the *rules* should have been encapsulated (and were not).

    However, the game functions were encapsulated via the Utopia object and
    we'll never have multiple instances of this Utopia object, so just get rid
    of that (and over 600 required uses of 'this.that' syntax).

    Whew! That's more like it. Yes, the script-global namespace is all polluted with variables and objects now, but this is better suited to my taste.
    --- SBBSecho 3.35-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sun Jan 25 04:18:59 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/4fe495ec6ab9823fe55bebbb
    Modified Files:
    xtrn/utopia/utopia.js
    Log Message:
    Add buildable docks which are required for building boats

    ... and the merchat will now trade with a dock, not "Industry"

    You can extend the dock with a bridge, making a pier

    Can't build diagnoally to the dock/pier though, kind strict. (N,S,E, or W
    of the dock only) - I might make that more liberal to keep one or two boats from keeping one from building (though that does encourage bridge building).

    Other nice user niceties added, like showing the health of individual
    item the cursor is on.
    --- SBBSecho 3.35-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sun Jan 25 15:23:59 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/0958ba1616c91d21bef48233
    Modified Files:
    xtrn/utopia/utopia.js
    Log Message:
    Time was being throttled by the inkey() timeout (of 500ms)

    Holding down <any> key would allow time to move at the (increased) rate,
    that was the clue.
    --- SBBSecho 3.35-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Mon Feb 2 16:32:31 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/95935a478aae2d83a329e131
    Modified Files:
    xtrn/utopia/utopia.js
    Log Message:
    Scores are stored in JSONL instead of JSON file now, for easier appending

    The rules files now can just be a "diff", i.e. they don't have to contain every property from the rules object - just the ones that are desired to be different from the built-in rules.

    Displaying the rules and map played for each high score now.

    Fix some UI issues when first build failed and other times the alerts/news or legend didn't quickly reflect changes made by the player.

    Default map and rules can be specified by include "default: true" for the desired [map:*] and [rules:*] sections in settings.ini

    Restore the (V)iew High Scores option to the [Q]uit prompt
    --- SBBSecho 3.36-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Mon Feb 2 18:27:49 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/992aa9015714bef6df405c48
    Modified Files:
    xtrn/utopia/utopia.js
    Log Message:
    Better randomly-generated land masses

    The "rough edges" were not distributed evenly, the odds of getting a half
    block that boardered water on the north was much less than on the south edge
    of the map. This meant that land masses tended to be "flat tops". The switch case fall-through logic was a bit flawed.

    Added a shaded "rocks" block to the randomly-gen'd maps. I played with adding even more rock shades but the results were just messier (to my eyes).

    The map editor can add shaded blocks to maps with the '\' key. ANSI Artists,
    do your thing, please!
    --- SBBSecho 3.36-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sun Feb 8 21:49:55 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/0d2ebe5488d7f2a6c2c1ffaa
    Modified Files:
    xtrn/utopia/utopia.js
    Log Message:
    Solve multi-pirate attack again (gotta break out of the inner for-loops)

    Some cosmetic improvements.

    More ranks.

    Add populatation (min) threshold before unhealthy pop start dying off
    --- SBBSecho 3.36-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Mon Jan 26 03:54:59 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/b6ef48a5d87bd9749331a726
    Modified Files:
    xtrn/utopia/utopia.js
    Log Message:
    Added animals (another food source), smarter boats

    Some UI enhancements and other nice features (e.g. P to Pause)
    --- SBBSecho 3.35-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Tue Feb 10 01:34:58 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/ab1ec2f992729ec8c832c20f
    Modified Files:
    xtrn/utopia/utopia.js
    Log Message:
    Priority based PT Boat pursuit/escort restored

    Fix some UI things

    Add Ctrl-W to map editing to insert a water cell (shift shells to the right) --- SBBSecho 3.36-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Tue Feb 10 18:18:34 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/713ad02936336706e094c76a
    Modified Files:
    xtrn/utopia/utopia.js
    Log Message:
    Alert-tip when building boats about lifting anchor to trawl/patrol

    Display quit menu over in the legend area
    --- SBBSecho 3.36-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Tue Feb 10 19:10:44 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/910ca85973143dc901c5e21e
    Modified Files:
    xtrn/utopia/utopia.js
    Log Message:
    Fix typo
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Wed Feb 18 02:25:15 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/3378adfc7eaeb0407b5c72d0
    Modified Files:
    xtrn/utopia/utopia.js
    Log Message:
    Don't spawn pirates on top of eachother
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Tue Feb 24 14:59:58 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/94bafd72885e327a8c354845
    Modified Files:
    xtrn/utopia/utopia.js
    Log Message:
    Display spinning cursor for Quit prompt

    messed up display, similar to issue #1081
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Tue Feb 24 19:10:10 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/0aaa2ca531befc5721b0657d
    Modified Files:
    xtrn/utopia/utopia.js
    Log Message:
    Rebels don't attack forts (duh)

    Solve: ATTEMPTED Rebel attack of Fortress thwarted by Fort Defenses!

    And include all rules in high scores. I was attempting to sort by both
    rules and scores, but that just ended up including all the "Challenging"
    scores since it sorts alphabetically first. Maybe we'll display multiple
    sets or the current rules that are in force. Something like that.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)