Kalgoorlie Retro Docs

Documentation for the Kalgoorlie Retro BBS, its games and servers

User Tools

Site Tools


ironbarkbbs:doors

Doors

[[section]]
code = "GAMES"
name = "Games"

[[section.door]]
code = "LORD"
name = "Legend of the Red Dragon"
kind = "dos"
dir = "lord"            # xtrn/lord = E:\LORD
command = "start.bat %#"
fossil = true           # load KFOSSIL first

Kinds:

  • dos: a DOS door, in its own DOSBox-X (or DOSBox) per caller, with no window. Drive C: is dos/, D: is the node folder with the drop files, E: is xtrn/. The caller is connected to COM1 (3F8, IRQ 4) through DOSBox's serial port. FOSSIL doors need fossil = true: KFOSSIL is loaded first. Under DOSBox-X the door sees real carrier detect, so a caller hanging up is noticed at once and the door saves and exits; plain DOSBox has no carrier line, so there KFOSSIL reports carrier as always on. Use DOSBox-X: it also has SHARE (file locking), which doors such as TradeWars 2002 need.
  • native: a Linux or Windows program. io = "stdio" (the default) runs it on a pseudo-terminal (Linux) or pipes (Windows); io = "socket" gives it a DOOR32 socket handle (%h, and line 2 of DOOR32.SYS).
  • rlogin / telnet: passes the caller to another system: host = "192.168.1.20:5130", rlogin_user (default: the caller's name), rlogin_server_user (%p passes the password the caller logged on with), rlogin_term (LORD Server uses xtrn=A). Door Hub: point an rlogin door at the connector's local port with rlogin_term = "xtrn=CODE". DoorParty: run DoorParty's connector as usual and add rlogin doors pointing at it, with rlogin_user = "%k" (the caller's own DoorParty password, made once and kept, as Synchronet does), rlogin_server_user = "%a" and rlogin_term set to the DoorParty game code (lord, tw2002 …, or empty for the full list). Synchronet's Door Hub connector works the same way with rlogin_user = "%{doorhub}".
  • bbslink: a BBSLink.net game. Put the codes BBSLink gave you in ironbark.toml:
[bbslink]
syscode = "..."
authcode = "..."
schemecode = "..."

and set the door's command to the BBSLink door code (lord, teos, … or menu).

  • builtin: bulletins, oneliners, gazette, lastcallers, who, automsg, bbslist (the BBS list, section 10), script:NAME, the two built-in games minefield and ridgeguns (below), and the sysop's programs useredit, config, menuedit, fileman and bulletinmgr (section 18).

Command codes: %# node, %n node folder (with a trailing slash; D:\ for DOS), %f DOOR.SYS, %a alias, %u user number, %r rows, %c columns, %t minutes left, %h socket handle, %p password, %k the caller's DoorParty password, %{NAME} their password for another service such as %{doorhub}, %% a percent sign. The Synchronet importer brings over the DoorParty and Door Hub passwords Synchronet kept, so callers keep their accounts there.

A door can also have access (an access string, e.g. "!GUEST") and cost (credits charged each time; users with exemption X play free).

Every door gets DOOR.SYS, DORINFO1.DEF (and DORINFOn.DEF), CHAIN.TXT and DOOR32.SYS in its node folder (in upper and lower case on Linux). Other options: level, sysop_only, ansi_only, single_node (one caller at a time), cycles (DOSBox speed for this door).

When a caller hangs up inside a DOS door that doesn't notice by itself, Ironbark waits [dosbox] hangup_grace_secs (120) for it to give up, then stops DOSBox.

Door maintenance runs as a timed event (below) with dos = true.

Sections inside sections

A section with parent set to another section's code is a sub-menu of that section. It shows in the parent's list among the doors, with a » after its name, in the order of doors.toml (sub-sections written before the parent come before its doors, ones written after come after). Choosing it opens it; Q or Enter goes back up one level. Sections nest to any depth.

[[section]]
code = "GAMES"
name = "Games"

[[section]]
code = "LORDGAMES"
name = "LORD games"
parent = "GAMES"          # shows as "LORD games »" in Games

[[section]]
code = "TESTS"
name = "Sysop tests"
parent = "LORDGAMES"
sysop_only = true         # hidden from everyone else

The door menu's first list has only the top-level sections (no parent). level, access and sysop_only apply at every level: a sub-section a caller can't use is not shown, and nothing inside it can be reached. The heading shows the path (“Games » LORD games External Programs”), and @XTRN_SEC@ gives the same path in menu/xtrn_head. A parent must be a section that exists, a section can't be its own parent and there can be no loops; ironbark check, Configuration and the BBS at start-up refuse such settings. In Configuration > Doors the sections show as a tree and Inside section picks the parent; + and - move a section past its neighbour at the same level. The web admin's Doors page shows the tree too.

Built-in games

Two games come with Ironbark and need nothing installed. A new BBS has both in the Games section; to add them to an existing doors.toml:

[[section.door]]
code = "MINEFIELD"
name = "Goldfields Minefield"
kind = "builtin"
builtin = "minefield"

[[section.door]]
code = "RIDGEGUNS"
name = "Ridge Guns"
kind = "builtin"
builtin = "ridgeguns"

Goldfields Minefield is a minesweeper game: open every safe square without opening an old shaft. Cursor keys (or h j k l) move, Space or Enter opens, F or M puts a flag, and Space on an opened number whose flags are all placed opens the squares around it. The first square opened is never a shaft. Boards: Beginner 9 x 9 with 10 shafts, Intermediate 16 x 16 with 40, Expert 30 x 16 with 99. The daily board is an Intermediate board that is the same for every caller that day, with a clear patch already opened; each caller gets one scored try (the first move uses it) and can replay it unscored. Each board keeps its own top ten fastest times, shown before and after a game. Callers without ANSI get a plain-text board and type squares such as C12 (row C, column 12) or F C12 to flag.

Ridge Guns is a two-gun artillery game on a random ridge, drawn with block characters. Each turn the gunner sets the angle (0-90) and charge (1-100) - Up/Down and Left/Right, PgUp/PgDn for steps of 10, or A and C to type a value - and fires. The wind changes every turn, shells dig craters, and a gun knocked to 0 loses. It needs ANSI.

  • Against the computer: easy, medium or hard. The computer walks its aim in from where its shells land; the harder levels allow for the wind and wobble less.
  • Against another caller: C lists the callers on other nodes; the one picked gets a node message and has two minutes to open Ridge Guns and accept. The moves pass through the database, so nothing else is needed. Each gunner has two minutes to fire. A caller who hangs up, gives up or runs out of time loses; if a session stops answering for 45 seconds, the other gunner is given the game.
  • Standings shows wins and losses against callers and against the computer.

The scores live in the BBS database (tables mines_scores, mines_daily, ridge_matches, ridge_moves, ridge_results). Node messages that arrive during a game are shown after it.


From the Ironbark Sysop Guide, which is also in every download as SYSOP-GUIDE.txt.

ironbarkbbs/doors.txt · Last modified: by 127.0.0.1