VOGONS


First post, by gladders

User metadata
Rank Member
Rank
Member

Hi all,

I'm having trouble getting music running properly for Duke Nukem 3D on DOS 6.22.

I use the setup program and set sound as Sound Blaster, test it, all good.

I set music as AWE32, and it says no AWE32 detected. I've tried all the different ports selectable.

Setting to Wave Blaster or a General MIDI just leaves it silent when tested.

My settings are A220 I5 D1 H5 E620 T6

Oh, also, trying it in W98 has working music, but testing sound makes the setup program crash. Any help there too?

Thanks

Reply 1 of 16, by derSammler

User metadata
Rank l33t
Rank
l33t

AWEUTIL must be loaded in autoexec.bat to get wavetable music under DOS.

Reply 2 of 16, by gladders

User metadata
Rank Member
Rank
Member

It is.

Reply 4 of 16, by gladders

User metadata
Rank Member
Rank
Member

Ok, I figured out I need to set the switches in Autoexec.bat to get General Midi working. Now, I get music in the test if I use AWE32, but launching the game says AWE32 not detected.

Using General Midi however just spits out granular error messages all over the screen.

Reply 5 of 16, by gladders

User metadata
Rank Member
Rank
Member

Nobody got any input?

Reply 6 of 16, by Stretch

User metadata
Rank Oldbie
Rank
Oldbie

Post the contents of your autoexec.bat, config.sys, ctmix.cfg, ctpnp.cfg, and duke3d.cfg.

Win 11 - Intel i7-1360p - 32 GB - Intel Iris Xe - Sound BlasterX G5

Reply 7 of 16, by dr_st

User metadata
Rank l33t
Rank
l33t

1. Run AWEUTIL /S in Autoexec.bat to initialize the music portion of the card.
2. Choose AWE32 in the games; do not choose General MIDI - this requires emulation and the emulation driver in DOS is buggy and limited.
3. Are you sure yours is a real AWE64 and not a "neutered" kind like shown here?

https://cloakedthargoid.wordpress.com/ - Random content on hardware, software, games and toys

Reply 8 of 16, by gladders

User metadata
Rank Member
Rank
Member
dr_st wrote:

1. Run AWEUTIL /S in Autoexec.bat to initialize the music portion of the card.

Already done. I'm about to post the contents of the files requested above.

2. Choose AWE32 in the games; do not choose General MIDI - this requires emulation and the emulation driver in DOS is buggy and limited.

As I said above, AWE32 is now recognised in setup, but on launching the game it says it's not detected and doesn't launch. Music is fine in Windows though.

3. Are you sure yours is a real AWE64 and not a "neutered" kind like shown here?

It's a 4520 but has 'AWE64' on the PCB. The fact that music works in Windows (although sound doesn't) suggests to me it's the real deal.

Reply 9 of 16, by gladders

User metadata
Rank Member
Rank
Member
Stretch wrote:

Post the contents of your autoexec.bat, config.sys, ctmix.cfg, ctpnp.cfg, and duke3d.cfg.

AUTOEXEC.BAT:

SET SOUND=C:\SB16
LH C:\DOS\SHARE.EXE /L:100
SET BLASTER=A220 I5 D1 H5 P330 E620 T6
SET MIDI=SYNTH:1 MAP:E MODE:0
SET CTCM=C:\SB16
LH C:\DOS\MSCDEX.EXE /V /D:OEMC001 /L:D
LH C:\SB16\DIAGNOSE /S /W=C:\WIN3
LH C:\SB16\AWEUTIL /EM:GM /R:030 /C:030
LH C:\SB16\MIXERSET /P /Q
LH C:\SB16\CTCU.EXE /S /W=C:\WIN3
Rem LH C:\DOS\SMARTDRV.EXE /X
@ECHO OFF
PROMPT $p$g
PATH C:\WIN3;C:\DOS
SET MSINPUT=C:\MSINPUT
C:\MSINPUT\MOUSE\MOUSE.EXE /Q
SET TEMP=C:\DOS
MODE CON CODEPAGE PREPARE=((437) C:\DOS\EGA.CPI)
MODE CON CODEPAGE SELECT=437

CONFIG.SYS:

DOS=HIGH,UMB
DEVICEHIGH=C:\SB16\CTCM.EXE
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\DOS\HIMEM.SYS /TESTMEM:OFF /Q
LASTDRIVE=E
DEVICEHIGH=C:\CDPRO\VIDE-CDD.SYS /D:OEMC001
COUNTRY=044,,C:\DOS\COUNTRY.SYS
DEVICEHIGH=C:\DOS\DISPLAY.SYS CON=(EGA,,1)
FILES=30
STACKS=9,256
FILES=40

CTMIX.CFG:

[PRESET]
/MA:255;255;50
/VO:255;255;50
/MI:204;204;50
/CD:204;204;50
/LI:204;204;50
/MIC:0
/SP:204
/TR:0;0;50
/BA:242;242;50
/IPL:MIC+ CDR- CDL+ LIR- LIL+ MIR- MIL+
/IPR:MIC+ CDR+ CDL- LIR+ LIL- MIR+ MIL-
/OPS:MIC- CDR+ CDL+ LIR- LIL-
/AGC:+
/IPG:2,2
/OPG:2,2
[LOAD]
/MA:248;248;50
/VO:248;248;50
/MI:200;200;50
/CD:200;200;50
/LI:200;200;50
/MIC:0
/SP:200
/TR:0;0;50
/BA:240;240;50

CTPNP.CFG:

[PNP]
ReadPort=20b
MaxCSN=255
BypassPnPOS=0

[EXCLUDE]
Exclude_Port=
Exclude_Irq=
Exclude_Dma=
Exclude_32Mem=

[SB16]
Disable=0
Csn=1
CardId=CTL00c5
Serial=15bbfa65
LogDev=0
Port0=220
Port1=330
Port2=388
Irq0=5
Dma0=1
Dma1=5

[GAMEPORT]
Disable=0
Csn=1
CardId=CTL00c5
Serial=15bbfa65
LogDev=1
Port0=200

[AWE]
Disable=0
Csn=1
CardId=CTL00c5
Serial=15bbfa65
LogDev=2
Port0=620
Port1=a20
Port2=e20

DUKE3D.CFG:

[Setup]
;Setup File for Duke Nukem 3D
SetupVersion = "1.4"
;
;
[Screen Setup]
;
;
;ScreenMode
; - Chained - 0
; - Vesa 2.0 - 1
; - Screen Buffered - 2
; - Tseng optimized - 3
; - Paradise optimized - 4
; - S3 optimized - 5
; - RedBlue Stereo - 7
; - Crystal Eyes - 6
;
;ScreenWidth passed to engine
;
;ScreenHeight passed to engine
;
;
ScreenMode = 2
ScreenWidth = 320
ScreenHeight = 200
;
;
Shadows = 1
Password = "SZWED"
Detail = 1
Tilt = 1
Messages = 1
Out = 1
ScreenSize = 8
ScreenGamma = 16
[Sound Setup]
;
;
FXDevice = 0
MusicDevice = 6
FXVolume = 228
MusicVolume = 255
NumVoices = 8
NumChannels = 2
NumBits = 16
MixRate = 16000
MidiPort = 0x330
BlasterAddress = 0x220
BlasterType = 6
BlasterInterrupt = 5
BlasterDma8 = 1
BlasterDma16 = 5
BlasterEmu = 0x680
ReverseStereo = 1
;
;
SoundToggle = 1
VoiceToggle = 1
AmbienceToggle = 1
Show last 211 lines
MusicToggle = 1
[KeyDefinitions]
;
;
Move_Forward = "Up" "Kpad8"
Move_Backward = "Down" "Kpad2"
Turn_Left = "Left" "Kpad4"
Turn_Right = "Right" "KPad6"
Strafe = "LAlt" "RAlt"
Fire = "RCtrl" "LCtrl"
Open = "Space" ""
Run = "/" "LShift"
AutoRun = "CapLck" ""
Jump = "Z" "/"
Crouch = "X" ""
Look_Up = "PgUp" "Kpad9"
Look_Down = "PgDn" "Kpad3"
Look_Left = "Insert" "Kpad0"
Look_Right = "Delete" "Kpad."
Strafe_Left = "," ""
Strafe_Right = "." ""
Aim_Up = "Home" "KPad7"
Aim_Down = "End" "Kpad1"
Weapon_1 = "1" ""
Weapon_2 = "2" ""
Weapon_3 = "3" ""
Weapon_4 = "4" ""
Weapon_5 = "5" ""
Weapon_6 = "6" ""
Weapon_7 = "7" ""
Weapon_8 = "8" ""
Weapon_9 = "9" ""
Weapon_10 = "0" ""
Inventory = "Enter" "KpdEnt"
Inventory_Left = "[" ""
Inventory_Right = "]" ""
Holo_Duke = "H" ""
Jetpack = "J" ""
NightVision = "N" ""
MedKit = "M" ""
TurnAround = "BakSpc" ""
SendMessage = "T" ""
Map = "Tab" ""
Shrink_Screen = "-" "Kpad-"
Enlarge_Screen = "=" "Kpad+"
Center_View = "KPad5" ""
Holster_Weapon = "ScrLck" ""
Show_Opponents_Weapon = "W" ""
Map_Follow_Mode = "F" ""
See_Coop_View = "K" ""
Mouse_Aiming = "U" ""
Toggle_Crosshair = "I" ""
Steroids = "R" ""
Quick_Kick = "`" ""
Next_Weapon = "'" ""
Previous_Weapon = ";" ""
;
;
[Controls]
;
;
;Controls
;
;ControllerType
; - Keyboard - 0
; - Keyboard and Mouse - 1
; - Keyboard and Joystick - 2
; - Keyboard and Gamepad - 4
; - Keyboard and External - 3
; - Keyboard and FlightStick - 5
; - Keyboard and ThrustMaster - 6
;
;
ControllerType = 0
JoystickPort = 0
MouseSensitivity = 68608
ExternalFilename = "EXTERNAL.EXE"
EnableRudder = 0
MouseAiming = 1
MouseAimingFlipped = 1
MouseButton0 = "Fire"
MouseButtonClicked0 = ""
MouseButton1 = "Holster_Weapon"
MouseButtonClicked1 = "Open"
MouseButton2 = "Move_Forward"
MouseButtonClicked2 = ""
JoystickButton0 = "Fire"
JoystickButtonClicked0 = ""
JoystickButton1 = "Strafe"
JoystickButtonClicked1 = "Inventory"
JoystickButton2 = "Run"
JoystickButtonClicked2 = "Jump"
JoystickButton3 = "Open"
JoystickButtonClicked3 = "Crouch"
JoystickButton4 = "Aim_Down"
JoystickButtonClicked4 = ""
JoystickButton5 = "Look_Right"
JoystickButtonClicked5 = ""
JoystickButton6 = "Aim_Up"
JoystickButtonClicked6 = ""
JoystickButton7 = "Look_Left"
JoystickButtonClicked7 = ""
MouseAnalogAxes0 = "analog_turning"
MouseDigitalAxes0_0 = ""
MouseDigitalAxes0_1 = ""
MouseAnalogScale0 = 65536
MouseAnalogAxes1 = "analog_moving"
MouseDigitalAxes1_0 = ""
MouseDigitalAxes1_1 = ""
MouseAnalogScale1 = 65536
JoystickAnalogAxes0 = "analog_turning"
JoystickDigitalAxes0_0 = ""
JoystickDigitalAxes0_1 = ""
JoystickAnalogScale0 = 65536
JoystickAnalogAxes1 = "analog_moving"
JoystickDigitalAxes1_0 = ""
JoystickDigitalAxes1_1 = ""
JoystickAnalogScale1 = 65536
JoystickAnalogAxes2 = "analog_strafing"
JoystickDigitalAxes2_0 = ""
JoystickDigitalAxes2_1 = ""
JoystickAnalogScale2 = 65536
JoystickAnalogAxes3 = ""
JoystickDigitalAxes3_0 = "Run"
JoystickDigitalAxes3_1 = ""
JoystickAnalogScale3 = 65536
GamePadDigitalAxes0_0 = "Turn_Left"
GamePadDigitalAxes0_1 = "Turn_Right"
GamePadDigitalAxes1_0 = "Move_Forward"
GamePadDigitalAxes1_1 = "Move_Backward"
;
;
GameMouseAiming = 0
AimingFlag = 0
[Comm Setup]
;
;
ComPort = 2
IrqNumber = ~
UartAddress = ~
PortSpeed = 9600
ToneDial = 1
SocketNumber = ~
NumberPlayers = 2
ModemName = ""
InitString = "ATZ"
HangupString = "ATH0=0"
DialoutString = ""
PlayerName = "Cobra"
RTSName = "DUKE.RTS"
RTSPath = ".\"
UserPath = ".\"
PhoneNumber = ""
ConnectType = 0
CommbatMacro#0 = "An inspiration for birth control."
CommbatMacro#1 = "You're gonna die for that!"
CommbatMacro#2 = "It hurts to be you."
CommbatMacro#3 = "Lucky Son of a Bitch."
CommbatMacro#4 = "Hmmm....Payback time."
CommbatMacro#5 = "You bottom dwelling scum sucker."
CommbatMacro#6 = "Damn, you're ugly."
CommbatMacro#7 = "Ha ha ha...Wasted!"
CommbatMacro#8 = "You suck!"
CommbatMacro#9 = "AARRRGHHHHH!!!"
PhoneName#0 = ""
PhoneNumber#0 = ""
PhoneName#1 = ""
PhoneNumber#1 = ""
PhoneName#2 = ""
PhoneNumber#2 = ""
PhoneName#3 = ""
PhoneNumber#3 = ""
PhoneName#4 = ""
PhoneNumber#4 = ""
PhoneName#5 = ""
PhoneNumber#5 = ""
PhoneName#6 = ""
PhoneNumber#6 = ""
PhoneName#7 = ""
PhoneNumber#7 = ""
PhoneName#8 = ""
PhoneNumber#8 = ""
PhoneName#9 = ""
PhoneNumber#9 = ""
PhoneName#10 = ""
PhoneNumber#10 = ""
PhoneName#11 = ""
PhoneNumber#11 = ""
PhoneName#12 = ""
PhoneNumber#12 = ""
PhoneName#13 = ""
PhoneNumber#13 = ""
PhoneName#14 = ""
PhoneNumber#14 = ""
PhoneName#15 = ""
PhoneNumber#15 = ""
[Misc]
Executions = 40
RunMode = 0
Crosshairs = 1
WeaponChoice0 = 3
WeaponChoice1 = 4
WeaponChoice2 = 5
WeaponChoice3 = 7
WeaponChoice4 = 8
WeaponChoice5 = 6
WeaponChoice6 = 0
WeaponChoice7 = 2
WeaponChoice8 = 9
WeaponChoice9 = 1

Reply 10 of 16, by gladders

User metadata
Rank Member
Rank
Member

I just found this in an online article:

PROBLEM -- System hangs when you play games under MIDI Emulation. […]
Show full quote

PROBLEM -- System hangs when you play games under MIDI Emulation.

CAUSE -- 1. AWEUTIL cannot co-exist with games that use DOS extender.
2. Some games require a MPU-401 'Smart' mode that is
different from the UART mode used by your audio card.
So, you have to use AWE's music synthesis capabilities
instead.

Does this sound like the culprit?

Reply 11 of 16, by dr_st

User metadata
Rank l33t
Rank
l33t

No! Pay attention. I said - run AWEUTIL /S which initializes the AWE32 portion. Your AUTOEXEC.BAT has AWEUTIL /EM:GM which activates the (buggy) General MIDI emulation mode. These are not the same thing.

https://cloakedthargoid.wordpress.com/ - Random content on hardware, software, games and toys

Reply 12 of 16, by gladders

User metadata
Rank Member
Rank
Member
dr_st wrote:

No! Pay attention. I said - run AWEUTIL /S which initializes the AWE32 portion. Your AUTOEXEC.BAT has AWEUTIL /EM:GM which activates the (buggy) General MIDI emulation mode. These are not the same thing.

Ah, I apologise. Well, it was initially on /S, but it was still saying AWE32 not detected.

Reply 13 of 16, by gladders

User metadata
Rank Member
Rank
Member

Nobody got any suggestions at all? It's definitely an AWE64, AWEUTIL is set to S, and it still can't see AWE32.

Reply 14 of 16, by dr_st

User metadata
Rank l33t
Rank
l33t
gladders wrote:

Ok, I figured out I need to set the switches in Autoexec.bat to get General Midi working. Now, I get music in the test if I use AWE32, but launching the game says AWE32 not detected.

Is this your current state of affairs? AWE32 music works in Duke3D setup but not in the game?

Do you have other games with AWE32 support? Is Duke3D the only one that has problems?

gladders wrote:
[Sound Setup] ; ; FXDevice = 0 MusicDevice = 6 FXVolume = 228 MusicVolume = 255 NumVoices = 8 NumChannels = 2 NumBits = 16 MixRa […]
Show full quote

[Sound Setup]
;
;
FXDevice = 0
MusicDevice = 6
FXVolume = 228
MusicVolume = 255
NumVoices = 8
NumChannels = 2
NumBits = 16
MixRate = 16000
MidiPort = 0x330
BlasterAddress = 0x220
BlasterType = 6
BlasterInterrupt = 5
BlasterDma8 = 1
BlasterDma16 = 5
BlasterEmu = 0x680
ReverseStereo = 1

Why is BlasterEmu = 0x680 when it should be 0x620?

https://cloakedthargoid.wordpress.com/ - Random content on hardware, software, games and toys

Reply 15 of 16, by gladders

User metadata
Rank Member
Rank
Member
dr_st wrote:
Is this your current state of affairs? AWE32 music works in Duke3D setup but not in the game? […]
Show full quote
gladders wrote:

Ok, I figured out I need to set the switches in Autoexec.bat to get General Midi working. Now, I get music in the test if I use AWE32, but launching the game says AWE32 not detected.

Is this your current state of affairs? AWE32 music works in Duke3D setup but not in the game?

Do you have other games with AWE32 support? Is Duke3D the only one that has problems?

Why is BlasterEmu = 0x680 when it should be 0x620?

This solved it - I don't know why it insisted on keeping it on E680 when I was setting it to E620. Weird. Had to manually change it in Duke3D.cfg

Thanks.

Reply 16 of 16, by feipoa

User metadata
Rank l33t++
Rank
l33t++

I'm curious, what percentage of games actually work with AWE64's general midi emulation in DOS (that is, when not using a DOS extender)?

The AWE64's limited spectrum of games which work with general midi emulation in DOS led me to mount a Dreamblaser S2 to the game port. Rotating the Chill and Phil midi adapter for a smoother finish But once you do this, the value of loading soundfonts in Windows is diminished. My favourite sound font is the 8 MB, 8MBGMSFX.SF2, anything larger than 8 MB really tests my patience when booting Windows. Are you using any soundfonts in Windows?

Plan your life wisely, you'll be dead before you know it.