Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Good questions!

PETSCII prompts in scripts: waitfor() doesn't match the raw bytes. It matches what DIALTONE reads as plain text. On a C64 board, colour and cursor codes are removed, letters stay letters (upper or lower case), and graphics characters turn into a ·. Matching ignores case. So on a fancy prompt like a coloured bar with "HANDLE:" inside it, just wait for the word:

waitfor("handle", 60)

It still matches even if the board changes colour between every letter. Some tips:

- Wait for a short, distinctive word ("handle", "password", "main menu"), not the whole line.

- If a prompt has no letters at all (pure grrds the board prints before it, then add ashort pause: wait(1).

- If a board asks different things on different calls, waitany() tells you which one came first: local n =

waitany({"password", "new user"}, 30)

- To see exactly what DIALTONE reads, use print(screen()). It writes the visible screen text to the status line.

Pressing Enter in a script: sendln("text") types the text and then Return. A bare Enter is sendln(""), or sendraw(13), which is Return on a C64 board too. send("text") types without pressing Enter.

Logging in automatically: you don't need a script for this. Open the board in the Host Directory (Alt+H, pick the board, Edit), type your user name and password under Login, and that's it. The next time you call, DIALTONE types them

when the board asks, once each. It also gets before the login ("hit DEL", "Commodoregraphics (y/n)?"). It won't answer a sysop's math question. "Log in automatically" is on by default. Your login is

stored encrypted for your Windows account, ao too.

If a board needs more steps, add a login script to it in the same Edit window. The script gets your saved login as

user and password:

waitfor("handle", 60)

sendln(user) waitfor("password", 30)

sendln(password)

Headless, no window at all: DIALTONE can also run with no window, driven by your own program:

Dialtone.exe --pipe bbs.example.com:23 --text --log call.cap

Your script talks to the board through stdin and stdout. It works from cmd, PowerShell, WSL or Python. --text turns PETSCII, ATASCII and ANSI into plain UTF-8 text with the colour codes removed, so matching prompts is easy. It can do uploads too (--protocol punter, zmodem and oludes ready-made Python samples insamples\pipe. They log in, upload and log off: cbase_upload.py handles a C64 C*Base board (it even gets past a "solthis sum" check) and amiexpress_upload.py haapter 13 of the manual has all the options.Headless mode is in the full version.