This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
doors:tutorials:dos:dosonpi [2021/01/25 07:52] avon |
doors:tutorials:dos:dosonpi [2021/01/25 07:56] avon |
||
---|---|---|---|
Line 132: | Line 132: | ||
alias auto=edit %0 | alias auto=edit %0 | ||
CALL D:\RUN.BAT | CALL D:\RUN.BAT | ||
- | ---------------------------------------- | + | ---------------------------------------- |
Note how the batch file ends with CALL D:\RUN.BAT. RUN.BAT is the | Note how the batch file ends with CALL D:\RUN.BAT. RUN.BAT is the | ||
Line 139: | Line 139: | ||
=== Setting up the doorgames === | === Setting up the doorgames === | ||
- | |||
You will want to run the DOS VM initially, to setup your doorgames. To do | You will want to run the DOS VM initially, to setup your doorgames. To do | ||
that, you just run qemu normally, but with the mounted local file system. | that, you just run qemu normally, but with the mounted local file system. | ||
I've written a simple batch file that will load the VM. | I've written a simple batch file that will load the VM. | ||
- | + | | |
- | ---------------------------------------- | + | ---------------------------------------- |
- | #!/bin/sh | + | #!/bin/sh |
- | + | ||
- | rm /home/bbs/temp${NODE}/run.bat | + | rm /home/bbs/temp${NODE}/run.bat |
- | + | ||
- | qemu-system-i386 \ | + | qemu-system-i386 \ |
- | -localtime \ | + | -localtime \ |
- | /home/bbs/doors/qemu/freedos.img \ | + | /home/bbs/doors/qemu/freedos.img \ |
- | -boot c \ | + | -boot c \ |
- | -hdb fat:/home/bbs \ | + | -hdb fat:/home/bbs \ |
- | -m 1024 | + | -m 1024 |
- | ---------------------------------------- | + | ---------------------------------------- |
If you are running this remotely, from a terminal like putty, you can add | If you are running this remotely, from a terminal like putty, you can add | ||
the -curses flag. That will give you an interactive shell into the VM. | the -curses flag. That will give you an interactive shell into the VM. | ||
- | |||
The method used for running the VM will mount the /home/bbs directory as | The method used for running the VM will mount the /home/bbs directory as | ||
Line 169: | Line 167: | ||
it will be located at D:\DOORS\LORD | it will be located at D:\DOORS\LORD | ||
- | The dropfile locations will also be on your D: drive. | + | The dropfile locations will also be on your D: drive. |
- | D:\TEMP | + | D:\TEMP |
- | + | ||
- | or for node #2: | + | or for node #2: |
- | D:\TEMP2 | + | D:\TEMP2 |
| | ||
+ | === The working DOORS.SH script === | ||
- | The working DOORS.SH script: | + | This is the script as I have it working for me: |
- | This is the script as I have it working for me: | + | |
| | ||
------------------------------------ | ------------------------------------ | ||
Line 200: | Line 198: | ||
## Operation OverKill II | ## Operation OverKill II | ||
OOII) | OOII) | ||
- | echo "@echo off" > ${gobat} | + | echo "@echo off" > ${gobat} |
- | echo "D:" >> ${gobat} | + | echo "D:" >> ${gobat} |
- | echo "CD \DOORS\OO" >> ${gobat} | + | echo "CD \DOORS\OO" >> ${gobat} |
- | ### Use the CALL command when calling a door batch file. | + | ### Use the CALL command when calling a door batch file. |
- | ### If not used, then the door batch file will not return | + | ### If not used, then the door batch file will not return |
- | ### to the RUN.BAT script to complete execution. If the | + | ### to the RUN.BAT script to complete execution. If the |
- | ### RUN.BAT script does not complete execution, then it will | + | ### RUN.BAT script does not complete execution, then it will |
- | ### not shut down the VM. It will then just go to a dos | + | ### not shut down the VM. It will then just go to a dos |
- | ### prompt and the user will not see it, and will think that | + | ### prompt and the user will not see it, and will think that |
- | ### the game is hung. | + | ### the game is hung. |
- | echo "CALL OOIIDOOR.BAT ${NODE}" >> ${gobat} | + | echo "CALL OOIIDOOR.BAT ${NODE}" >> ${gobat} |
;; | ;; | ||
## Legend of the Red Dragon | ## Legend of the Red Dragon |