VOGONS


First post, by hooperre

User metadata
Rank Newbie
Rank
Newbie

RPi3 - RetroPie
1 GB
Win 3.1
Civilization 2 (drive C or D), Storybook Weaver (drive C), but oddly not MSDogs (drive D)
Reproducibility of problem: Always with given applications.
DosBox 0.74
Attempted running 1MBFort.exe at launch with no success referenced here

When I boot up Windows 3.11 by calling windows.bat I can manually run Civ2.exe with no issues. When I attempt to run the command:

C:
cd windows
win winexit.exe c:\mps\Civ2\CIV2.EXE
exit

Same if I attempt to call d:\Civ2\Civ2.exe. I get a memory issue "Insufficient memory to run this application. Quit one or more Windows applications and then try again," but only when attempting to run it with WinExit.exe, which is obviously preferable given I'm launching from EmulationStation. I had 1MBFort running at launch to no avail, but I didn't change anything within 1MBFort. Any thoughts? I'm stuck. 😠

ETA: It happens even if I just call:

C:
cd windows
win c:\mps\Civ2\CIV2.EXE
exit
Last edited by hooperre on 2017-03-06, 17:22. Edited 2 times in total.

Reply 1 of 15, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

Can you duplicate the problem with the latest Windows version of DOSBox? Also, did you set up this Windows 3.1 installation yourself? (What is windows.bat ?)

I don't think anyone has mentioned using 1MBFort here before.

Reply 2 of 15, by hooperre

User metadata
Rank Newbie
Rank
Newbie
Jorpho wrote:

Can you duplicate the problem with the latest Windows version of DOSBox? Also, did you set up this Windows 3.1 installation yourself? (What is windows.bat ?)

I don't think anyone has mentioned using 1MBFort here before.

Thx for the quick response.

Yeah I searched out 1MBFort. Didn't see it mentioned here.

I did the installation myself a while back. But, my file structure is the same/similar as the thread I was viewing on the same topic I was using in an attempt to solve my issue earlier.

# Lines in this section will be run at startup.
# You can put your MOUNT lines here.

imgmount d /home/pi/RetroPie/roms/pc/Civilization2/Civ2.cue -t iso -fs iso
mount c /home/pi/RetroPie/roms/pc/Windows3.1/
C:
cd windows
win c:\windows\runexit d:\Civ2\Civ2.exe
exit

Still no go. This command doesn't auto exe Civ2 and also gives me the insufficient memory when I open it manually.

Reply 3 of 15, by hooperre

User metadata
Rank Newbie
Rank
Newbie

Not sure if this is at all helpful, but with MSDogs:

win d:\DOGS.EXE

works, but

win c:\windows\runexit d:\DOGS.EXE

gives me an error "Application Error Exception EGPFault in module SB16SND.drv at 0001:3193. General protection fault in module SB16SND.drv at 0001:3193." Do I have too many active drivers? Any way to check that out?

Here is my System.INI

[boot]
386grabber=VGA_ENG.3GR
oemfonts.fon=8514OEM.FON
fixedfon.fon=8514FIX.FON
fonts.fon=8514SYS.FON
display.drv=S3TRIO.DRV
shell=progman.exe
network.drv=
mouse.drv=mouse.drv
language.dll=
sound.drv=mmsound.drv
comm.drv=comm.drv
keyboard.drv=keyboard.drv
system.drv=syshook.drv
drivers=mmsystem.dll winmm16.dll msmixmgr.dll
SCRNSAVE.EXE=C:\WINDOWS\DOGBOD16.SCR

[keyboard]
subtype=
type=4
keyboard.dll=
oemansi.bin=

[boot.description]
aspect=100,120,120
display.drv=S3 Trio64V 1.69.02 1024x768 256 C LF
keyboard.typ=Enhanced 101 or 102 key US and Non US keyboards
mouse.drv=Microsoft, or IBM PS/2
language.dll=English (American)
system.drv=MS-DOS System
codepage=437
woafont.fon=English (437)
network.drv=No Network Installed
secondnet.drv=No Additional Network Installed

[386Enh]
device=dva.386
DMABufferSize=64
MaxBPs=768
display=VDDS3764.386
EGA80WOA.FON=EGA80WOA.FON
EGA40WOA.FON=EGA40WOA.FON
CGA80WOA.FON=CGA80WOA.FON
CGA40WOA.FON=CGA40WOA.FON
device=C:\WINDOWS\SYSTEM\windpmi.386
device=C:\WINDOWS\SYSTEM\WIN32S\W32S.386
mouse=*vmd
ebios=*ebios
woafont=dosapp.fon
device=*vpd
keyboard=*vkd
network=*dosnet,*vnetbios
netheapsize=16
device=*vcd
device=*vpicd
device=*vtd
device=*reboot
device=*vdmad
device=*vsd
device=*v86mmgr
Show last 154 lines
device=*pageswap
device=*dosmgr
device=*vmpoll
device=*wshell
device=*PAGEFILE
device=*BLOCKDEV
device=*vfd
device=*parity
device=*biosxlat
device=*vmcpd
device=*combuff
device=*cdpscsi
device=vtdapi.386
device=vpmtd.386
device=vcomm.386
device=serial.386
device=lpt.386
device=ifsmgr.386
device=vcache.386
device=vshare.386
local=CON
FileSysChange=off
COM3Irq=4
COM3Base=03E8
COM4Irq=3
COM4Base=02E8
PagingFile=C:\WINDOWS\WIN386.SWP
MaxPagingFileSize=61440
SysVMIn2ndBank=FALSE
device=vsbpd.386
MinTimeslice=1
WinTimeslice=100,50
WinExclusive=0
Com1AutoAssign=2
Com2AutoAssign=2
LPT1AutoAssign=60
LocalLoadHigh=Off
RMMTimeout=500
lowreservoir=500

[NonWindowsApp]
localtsrs=dosedit,ced

[vcache]
minfilecache=512

[mci]
WaveAudio=mciwave.drv
Sequencer=mciseq.drv
CDAudio=mcicda.drv
AVIVideo=mciavi.drv
QTWVideo=C:\WINDOWS\SYSTEM\MCIQTW.DRV

[drivers]
timer=timer.drv
midimapper=midimap.drv
VIDC.IV41=ir41.dll
VIDC.IV32=ir32.dll
VIDC.IV31=ir32.dll
VIDC.YVU9=iyvu9.dll
VIDC.CVID=iccvid.drv
VIDC.MSVC=msvidc.drv
VIDC.MRLE=msrle.drv
WaveMapper=msacm.drv
MSACM.msadpcm=msadpcm.acm
MSACM.imaadpcm=imaadpcm.acm
Midi=sb16fm.drv
Midi1=sb16snd.drv
Wave=sb16snd.drv
Aux=sb16snd.drv
Mixer=sb16snd.drv
joystick=ibmjoy.drv
VIDS.DRAW=UDH.DLL
DCI=RFMDCI

[DDEShares]
CHAT$=winchat,chat,,31,,0,,0,0,0
SCHAT$=winchat,chat,,31,,0,,0,0,0
CLPBK$=clipsrv,system,,31,,0,,0,0,0
HEARTS$=mshearts,hearts,,15,,0,,0,0,0

[Network]
winnet=nonet
multinet=nonet
FileSharing=No
PrintSharing=No


[svga256.drv]
resolution=2
dpi=96

[network drivers]
devdir=C:\WINDOWS
LoadRMDrivers=No
[sndblst.drv]
Port=220
Int=7
DmaChannel=1
MidiPort=330
HDmaChannel=5
FDMAPlayBack=1
FDMARecording=1
FullDuplex=1
VoiceVolume=16, 16
FMVolume=16, 16
CDVolume=16, 16
LineVolume=16, 16
MicVolume=16
MasterVolume=16, 16
SpeakerVolume=16
AuxVolume=0, 0
InputMasterVolume=16, 16
MuteVirtual=10
OutputMixerSwitch=6
BassTone=16, 16
TrebleTone=16, 16
RecordGain=1, 1
OutputGain=1, 1
AGC=0
Mux_WaveIn=1e
SaveOnExit=0

[Debug]
OutputTo=NUL

[DISPLAY]
decimation=3000
dac-type=nbt
polygon-support=on
ellipse-support=on
scache=on
textrmw=0
fastmmio=on
screen-size=1024
color-format=8
dpi=120

[ibmjoy.drv]
Axes=2

[mciseq.drv]
disablewarning=true

[msacm.imaadpcm]
MaxRTEncodeSetting=6
MaxRTDecodeSetting=6

[msacm.drv]
Playback=SB16 Wave Out [220]
Record=SB16 Wave In [220]
PreferredOnly=1

Reply 4 of 15, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

So, in regards to my other question:

hooperre wrote:

When I boot up Windows 3.11 by calling windows.bat I can manually run Civ2.exe with no issues.

What is windows.bat ? This would seem to be rather crucial in solving the problem.

Reply 5 of 15, by hooperre

User metadata
Rank Newbie
Rank
Newbie
Jorpho wrote:

So, in regards to my other question:

hooperre wrote:

When I boot up Windows 3.11 by calling windows.bat I can manually run Civ2.exe with no issues.

What is windows.bat ? This would seem to be rather crucial in solving the problem.

Ah sorry. It's a batch file in my virtual C: folder. I read it was necessary for sound blaster drivers.

@c:\windows\smartdrv.exe
@SET PATH=%PATH%;C:\WINDOWS;
@SET TEMP=C:\WINDOWS\TEMP
@lh devlod C:\SB16\DRV\CSP.SYS /UNIT=0 /BLASTER=A:220
@lh devlod C:\SB16\DRV\CTMMSYS.SYS
@SET SOUND=C:\SB16
@SET BLASTER=A220 I7 D1 H5 P330 T6
@SET MIDI=SYNTH:1 MAP:E
@C:\SB16\MIXERSET /P /Q
@windows\win /b

I followed a tutorial elsewhere and I think I installed the wrong SB drivers or something. Any idea how to remove them and replace them with the drivers in the guide thread?

Reply 6 of 15, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

None of the entries of this batch file are needed for Windows 3.x (nor are any of the devices you load necessary for Dosbox).

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 7 of 15, by collector

User metadata
Rank l33t
Rank
l33t

Why have a batch file in the Windows directory to start Windows when you could simply use "WIN.COM" in Windows?

The Sierra Help Pages -- New Sierra Game Installers -- Sierra Game Patches -- New Non-Sierra Game Installers

Reply 8 of 15, by hooperre

User metadata
Rank Newbie
Rank
Newbie
collector wrote:

Why have a batch file in the Windows directory to start Windows when you could simply use "WIN.COM" in Windows?

If I use win.com without the batch file I get the memory error.

imgmount d /home/pi/RetroPie/roms/pc/Civilization2/Civ2.cue -t iso -fs iso
mount c /home/pi/RetroPie/roms/pc/Windows3.1/
C:
civ2.bat
exit

Created a Civ2 batch file

@c:\windows\smartdrv.exe
@SET PATH=%PATH%;C:\WINDOWS;
@SET TEMP=C:\WINDOWS\TEMP
@lh devlod C:\SB16\DRV\CSP.SYS /UNIT=0 /BLASTER=A:220
@lh devlod C:\SB16\DRV\CTMMSYS.SYS
@SET SOUND=C:\SB16
@SET BLASTER=A220 I7 D1 H5 P330 T6
@SET MIDI=SYNTH:1 MAP:E
@C:\SB16\MIXERSET /P /Q
@windows\win d:\civ2\civ2.exe /b

This launches the game on start up without the memory error. I don't know I'm baffled.

If I use runexit.exe before the civ2 call it won't open.

Reply 9 of 15, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

Well, standard troubleshooting at this point would be to take lines out of that batch file one by one and see if you can isolate whatever is magically allowing Civ2 to run. I would start by seeing if the environment variables alone (i.e. everything that starts with "SET") are enough. But as Mr. Dominus suggested, none of those lines ought to be necessary, as DOSBox simply doesn't work that way.

Reply 10 of 15, by hooperre

User metadata
Rank Newbie
Rank
Newbie
Jorpho wrote:

Well, standard troubleshooting at this point would be to take lines out of that batch file one by one and see if you can isolate whatever is magically allowing Civ2 to run. I would start by seeing if the environment variables alone (i.e. everything that starts with "SET") are enough. But as Mr. Dominus suggested, none of those lines ought to be necessary, as DOSBox simply doesn't work that way.

@c:\windows\smartdrv.exe
@lh devlod C:\SB16\DRV\CTMMSYS.SYS
@windows\win windows\runexit d:\civ2\civ2.exe

Launches runexit version of Civ 2 but get an error:
Error "+8" in module 4
File open failed: Modules.db
Most recent dos error: 2

If I remove runexit it runs fine.

Reply 11 of 15, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Smartdrv does nothing in Dosbox.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 13 of 15, by hooperre

User metadata
Rank Newbie
Rank
Newbie
collector wrote:

Drop all of the memory management and driver loading stuff.

Appreciate y'all sticking with me so far as I know this is a weird snafu I'm dealing with. I can't find the source that told me to build this batch file and install those drivers. Hope you find this interesting if nothing else...

@c:\windows\smartdrv.exe
@lh devlod C:\SB16\DRV\CTMMSYS.SYS
@windows\win d:\civ2\civ2.exe

This is the minimum I can call without getting the memory error. The first two lines seem necessary for some reason.

@windows\win d:\civ2\civ2.exe

This will yield a memory error if I open any program including FileManager or WinSetup. I feel like if I could just uninstall the soundblaster drivers and install the ones listed in y'all's setup guide maybe I would get somewhere with this, but of course it's not that straight forward with Win3.11. I tried a straight install of your drivers on top of mine and nothing came of it.

Reply 14 of 15, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

I don't know what guide you followed when you made this installation in the first place, but I can't recall anyone mentioning problems like this after following the "Win3.11 in DOSBox" guide on these forums. Maybe starting over from scratch would be the best idea.

(If that sounds like too much trouble, then someone out there probably has a pre-constructed DOSBox+Win3.11 setup – but of course you use such things at your own risk.)

The only other thing I might suggest at this point is changing the "cpu_type" in DOSBox.conf to 486_slow, but that shouldn't be necessary either.

Reply 15 of 15, by hooperre

User metadata
Rank Newbie
Rank
Newbie
Jorpho wrote:

I don't know what guide you followed when you made this installation in the first place, but I can't recall anyone mentioning problems like this after following the "Win3.11 in DOSBox" guide on these forums. Maybe starting over from scratch would be the best idea.

(If that sounds like too much trouble, then someone out there probably has a pre-constructed DOSBox+Win3.11 setup – but of course you use such things at your own risk.)

The only other thing I might suggest at this point is changing the "cpu_type" in DOSBox.conf to 486_slow, but that shouldn't be necessary either.

Yeah, thanks. I didn't know y'all's guide existed, I think I just used some cockamamie YouTube tutorial and now I don't have access to a floppy drive anymore. Since then, I've gotten significantly better with DOSBox so I probably could have navigated it myself. Oh well. Best thing to do at this point may be using batch files for all files I want to call immediately from EmulationStation.