• Issue with DosEmu doors; external.bat is writing wrong path.

    From Badopcode@VERT/DHBBS to All on Friday, December 01, 2017 07:50:17
    Hey everyone,
    Running into trouble setting up DosEmu doors.

    So my setup for the door is...

    Start-up Directory: ../doors/oldlord/
    Command Line: start.bat %#

    When I run this, there is a problem finding the executable. So I looked at
    the external.bat being called and it is writing this...

    @echo off
    set DSZLOG=D:\PROTOCOL.LOG
    set SBBSNODE=D:
    set SBBSNNUM=1
    set SBBSCTRL=F:
    set SBBSDATA=G:
    set SBBSEXEC=H:
    lredir del E:
    lredir del F:
    lredir del G:
    lredir del H:
    lredir E: linux\fs\opt\sbbs\doors
    lredir F: linux\fs\opt\sbbs\ctrl
    lredir G: linux\fs\opt\sbbs\data
    lredir H: linux\fs\opt\sbbs\exec
    E:
    cd
    call F:\emusetup.bat
    call start.bat 1
    exitemu
    REM For debugging: /usr/bin/env HOME=/opt/sbbs/ctrl/ QUIET=1 DOSDRIVE_D=/opt/sbbs/node1/ /usr/bin/dosemu.bin -I"video { none }"
    -I"keystroke \r" -I"serial { virtual com 1 }" -f/etc/dosemu/dosemu.conf - ED:external.bat -o/opt/sbbs/node1/dosemu.log
    /opt/sbbs/node1/dosemu_boot.log

    So the issue is the batch file is never changing directory to the door game. I bugged with xtrn.cpp to see what I could see. Maybe understand what I did wrong. So I put fprintf(dosemubat, "REM %s\r\n", startup_dir); on line 1575 the output was...
    REM /opt/sbbs/doors/oldlord/
    Which looks right to me. No clue why the code that grabs the last directory
    is setting str to null.

    ---
    þ Synchronet þ Darkest Hour BBS
  • From Nelgin@VERT/EOTLBBS to All on Saturday, December 02, 2017 16:06:06
    On Fri, 1 Dec 2017 07:50:17 +0000, "Badopcode" <badopcode@VERT/DHBBS>
    wrote:

    Hey everyone,
    Running into trouble setting up DosEmu doors.

    So my setup for the door is...

    Start-up Directory: ../doors/oldlord/
    Command Line: start.bat %#

    When I run this, there is a problem finding the executable. So I looked at >the external.bat being called and it is writing this...

    @echo off
    set DSZLOG=D:\PROTOCOL.LOG
    set SBBSNODE=D:
    set SBBSNNUM=1
    set SBBSCTRL=F:
    set SBBSDATA=G:
    set SBBSEXEC=H:
    lredir del E:
    lredir del F:
    lredir del G:
    lredir del H:
    lredir E: linux\fs\opt\sbbs\doors
    lredir F: linux\fs\opt\sbbs\ctrl
    lredir G: linux\fs\opt\sbbs\data
    lredir H: linux\fs\opt\sbbs\exec
    E:
    cd
    call F:\emusetup.bat
    call start.bat 1
    exitemu
    REM For debugging: /usr/bin/env HOME=/opt/sbbs/ctrl/ QUIET=1 >DOSDRIVE_D=/opt/sbbs/node1/ /usr/bin/dosemu.bin -I"video { none }" >-I"keystroke \r" -I"serial { virtual com 1 }" -f/etc/dosemu/dosemu.conf - >ED:external.bat -o/opt/sbbs/node1/dosemu.log
    /opt/sbbs/node1/dosemu_boot.log

    So the issue is the batch file is never changing directory to the door game. I >bugged with xtrn.cpp to see what I could see. Maybe understand what I did >wrong. So I put fprintf(dosemubat, "REM %s\r\n", startup_dir); on line 1575 >the output was...
    REM /opt/sbbs/doors/oldlord/
    Which looks right to me. No clue why the code that grabs the last directory >is setting str to null.

    ---
    þ Synchronet þ Darkest Hour BBS
    Maybe try using \ rather than / ? I don't know if it'll make a
    difference but since it's going to be using DOS...?

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com