• DosBox SHIM

    From apam@21:1/125 to All on Mon May 14 08:24:02 2018
    Hi All

    I'm quiet pleased with myself... I wrote something and it worked without
    much effort lol.

    Basically, it allows dosbox to run in stdio mode instead of socket
    inheritance mode, meaning that you can use it via SSH, and possibly on
    Mystic with Linux.

    How it works....

    Well you set up the door in dosbox, and in the dosbox.conf set the serial
    port to server:127.0.0.1 port:9999 (change 9999 with an unused port,
    different one for each door). then you run the shim from your bbs, it
    calls a script that runs dosbox, dosbox connects to the shim, sends it's
    serial data to the shim which then outputs it to stdio for pickup by the
    BBS.

    Using the server socket was an idea from ENiGMA 1/2 - Thanks Nu!!

    The setup is a bit convoluted, but I will write documentation soon. It
    will be included in Magicka v0.10-alpha. (It might work on Mystic too,
    but no promises)

    Andrew

    --- MagickaBBS v0.10alpha (Linux/x86_64)
    * Origin: Exotica BBS - telnet://exoticabbs.com:2023/ (21:1/125)
  • From Avon@21:1/101 to apam on Mon May 14 11:30:40 2018
    On 05/14/18, apam pondered and said...

    Hi All

    I'm quiet pleased with myself... I wrote something and it worked without much effort lol.


    Some of it I understood and some I did not (well quite a bit :)) but well
    done it's always cool when you can create something and magic happens :)

    Yay you!

    --- Mystic BBS v1.12 A39 2018/04/21 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Static@21:2/140 to apam on Mon May 14 02:25:30 2018
    On 05/14/18, apam said the following...

    Well you set up the door in dosbox, and in the dosbox.conf set the serial port to server:127.0.0.1 port:9999 (change 9999 with an unused port, different one for each door).

    You could conceivably have two nodes try to run the same door concurrently.

    --- Mystic BBS v1.12 A39 2018/04/21 (Linux/64)
    * Origin: Subcarrier BBS (21:2/140)
  • From apam@21:1/125 to Static on Mon May 14 17:02:54 2018
    On 05/14/18, apam said the following...

    Well you set up the door in dosbox, and in the dosbox.conf set th
    port to server:127.0.0.1 port:9999 (change 9999 with an unused po different one for each door).

    You could conceivably have two nodes try to run the same door
    concurrently.

    No, dosbox doesn't have file locking, so running the same door twice at
    the same time is not supported. Even if someone didn't test first if the
    door was in use, the shim would fail as it can't bind the same port
    twice.

    Andrew

    --- MagickaBBS v0.11alpha (Linux/x86_64)
    * Origin: Exotica BBS - telnet://exoticabbs.com:2023/ (21:1/125)