• Re: Dosemu - Trade Wars 2002

    From ryan@21:1/168 to Analog on Thursday, November 07, 2019 07:01:53
    Does this require a Desktop linux environment or installing a window manager?

    Yeah, but these can be extremely lightweight, and there are some benefits of having a VNC-able server with xorg.

    How does it work with serial redirection?

    TWGS runs its own telnet server on port 2002. So to launch it, from your BBS, you just have an outbound telnet to localhost port 2002.

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: monterey bbs (21:1/168)
  • From ryan@21:1/168 to Blue White on Thursday, November 07, 2019 07:02:47
    I am sorry. Everywhere I typed "dosbox" I meant dosEMU. :)

    Gotcha :) dosemu ain't perfect by any stretch but can support multiplayer in most instances.

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: monterey bbs (21:1/168)
  • From Analog@21:2/123 to ryan on Thursday, November 07, 2019 08:36:32
    I'm not too interested in running a desktop OS. I guess if that's your perogative, then you could do that. The problem is you still have to run multiple instances of the DOS OS since you're not running the BBS inside of
    the emulator. If you run the Telnet version of TWGS, that is probably fine. I guess you could simply install Ubuntu Desktop, install some emulator (WINE, DosBox, ETC) that can run Win 3.1. Then launch multiple TWGS in Win 3.1 and have it sit on multiple telnet ports for multinode. I don't know how WINE
    works so don't bust my balls here.

    My route is to have a real linux headless setup, running minimally qemu with
    a tiny DOS image to host the environment for TW2002 3.09. Then, using a
    network share (either MSClient or NSF for dos, yes this is a thing), connect
    to the instance and run a node with a simple network share for the game
    files. This alleviates file lock issues between emulator instances and is
    more realistic to how old DOS shares worked.

    At some point it's your preference. I like headless, hate XORG and VNC on linux. I use X-forwarding a lot and it works great over SSH but for a bbs I like the command line and text only. Not graphical interface.

    Good points in all these comments though for anyone wanting to go the desktop or cli route.

    Cheers,
    Analog

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: deadbeatz.org (21:2/123)
  • From ryan@21:1/168 to Analog on Friday, November 08, 2019 00:37:46
    I'm not too interested in running a desktop OS. I guess if that's your perogative, then you could do that. The problem is you still have to run multiple instances of the DOS OS since you're not running the BBS inside of the emulator. If you run the Telnet version of TWGS, that is probably fine. I guess you could simply install Ubuntu Desktop, install some emulator (WINE, DosBox, ETC) that can run Win 3.1. Then launch multiple TWGS in Win 3.1 and have it sit on multiple telnet ports for multinode.
    I don't know how WINE works so don't bust my balls here.

    Wine is just a simple windows emulator (in spite of it being called "Wine Is Not an Emulator" :P but it's stupid easy and should "just work". No muss, no fuss. You don't have to install Windows inside of it, a 32 bit program will likely just work easily. And if you google digitalocean ubuntu vnc you will have everything you need to get VNC set up in about 3 minutes, and then you
    can 'sudo apt install wine' to get wine installed. It's a five minute process that will work forever :)

    And my linux setup is 100% headless. This is a cloud VM. There is no monitor attached to this machine, nor has there ever been.

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: monterey bbs (21:1/168)
  • From Analog@21:2/123 to ryan on Friday, November 08, 2019 06:44:45
    Do the instances of applications running in wine share a filespace? Can you launch WINE from the CLI and redirect the serial output to the console?

    Just curious

    -A

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: deadbeatz.org (21:2/123)
  • From ryan@21:1/168 to Analog on Friday, November 08, 2019 08:20:13
    Do the instances of applications running in wine share a filespace? Can you launch WINE from the CLI and redirect the serial output to the console?

    It's not serial output, it's a server with a GUI, and lives in xorg. It does understand shared filespace, that's not a problem. But it has to be launched from within xorg. That said, it's all pretty seamless, xorg starts on boot
    and this is launched to hit display :1 which puts it in the VNC session.

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: monterey bbs (21:1/168)
  • From Accession@21:1/200 to Analog on Sunday, November 17, 2019 07:33:21
    On 05 Nov 2019, Analog said the following...

    I got Trade Wars 2002 3.09 working with Mystic and 64 bit kernel!!!

    Basically, I installed MS Dos 6.22 (the real stuff) using QEMU. Added X00 fossil driver and SHUTDOWN.COM I grabbed from the internet. I then installed TW2002 v3.09 with DPMI no problem. Then in Mystic, I
    just call a bash script that creates a "run.bat" file for the node (standard stuff here). The script then launches qemu and redirects the serial I/O to STDIO (the terminal program you're using).

    Nice work. Now with multinode do you plan on trying to spin up multiple instances of DOS? If that's the only option - and to cut down on the worries
    of sharing and back doors, maybe think about making it so that it can only be ran on one node at a time? It's not like there's going to be a huge wave of players wanting to play it at the same time anyway. ;)

    With that said, since you've been able to spin up DOS successfully, have you thought about possibly trying to run less BBS/door specific and more DOS based games? I mean, if you could actually get multinode to work the possibilities may include setting up a small DOOM or Quake server accessible right from the BBS.

    Regards,
    Nick

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: _thePharcyde telnet://bbs.pharcyde.org (Wisconsin) (21:1/200)
  • From Accession@21:1/200 to Al on Sunday, November 17, 2019 07:34:16
    On 05 Nov 2019, Al said the following...

    That is registered coolness. I wondered if qemu might be a solution but have not looked at it yet. I think qemu can be used on a Pi as well?

    I believe QEMU is one of the _only_ worthwhile options for the Pi at the moment.

    Regards,
    Nick

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: _thePharcyde telnet://bbs.pharcyde.org (Wisconsin) (21:1/200)
  • From Accession@21:1/200 to Al on Sunday, November 17, 2019 07:42:49
    On 05 Nov 2019, Al said the following...

    Awesome. On my debian 10 here dosemu isn't available as a package but I see several qemu-* packages. I'm hoping one day to get a menu full of Operation Overkill ][ maps.

    Dosemu may not be available in the current Debian repositories, but if you
    are able to enable an old repository it should be available. Looks like the last migration of dosemu was for the Britney testing branch back in 2015?

    According to their pkg tracker, dosemu hasn't been worked on in ages so has failed their standards due to being outdated, which may or may not introduce bugs in regards to newer packages.

    Regards,
    Nick

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: _thePharcyde telnet://bbs.pharcyde.org (Wisconsin) (21:1/200)
  • From Analog@21:2/123 to Accession on Saturday, November 23, 2019 14:17:21
    Nice work. Now with multinode do you plan on trying to spin up multiple instances of DOS? If that's the only option - and to cut down on the worries of sharing and back doors, maybe think about making it so that

    Yes, I have succesfully run multiple instances of qemu with Dos for
    multinoding my games. Here's the crux, if you run TW2002 type multinode games, they need access to the game files simultaneously. Since QEMU snapshots all directories you pass into it, this negates the ability of an instance of DOS
    to share common files with another instance.

    My magic workaround was NFS. The NFS for dos worked beautifully. For anyone interested, here's what I did:

    1. Setup NFS for dos, see here: http://www.toughdev.com/content/2018/08/using-nfs-to-transfer-files-between-win dows-and-ms-dos-6-22

    Word wrap issue so you'll have to copy paste and cleanup that link.

    2. Setup NFS server in Ubuntu. I had to allow all "*" but I don't have external access to my NFS ports so it's safe.

    3. Then what I did was mount that share in the dos image on boot. Next, copy all game files for each multinode game to the NFS mount/gamedir. This is the key.

    4. Edit game to point to NFS mount for game files. Easy with TW2002.

    5. Then I created a clone of the dos.img file (dos image) for each node. This is because qemu will lock the image, so if multiple nodes are playing, they need their own img. It was 10 megabytes so no biggie.

    6. The next thing I did was setup my autoexec.bat in each image to call a file on the NFS share "run.bat". This file is created dynamically with a complex bash script called from mystic. I posted it in my tutorial on deadbeatz.org. Basically, it creates the runner for any particular game you want to play.
    When the dos image is loaded, it simply runs that file which can dynamically load any game you have in the image. I hope this makes sense.

    7. Profit...

    That's about it. Pretty complex for running dos multinode in linux but once you get it working, it works fine. I wanted to run FreeDOS instead of Dos 6.22 because FreeDOS has great power management which helps cut down on CPU railing. MsDOS has power.exe you can load, but it isn't graceful and tends to rail the cpu sometimes. However, FreeDOS did not mount any NFS shares. It would run, but no drive was actually present. If I can get this working, I would be much happier with the setup.

    Cheers,
    Analog

    --- Mystic BBS v1.12 A43 2019/03/03 (Windows/32)
    * Origin: deadbeatz.org (21:2/123)