Ted5 doesn't like me!

Utilities for editing Keen:Galaxy and Keen:Dreams levels.
Enchantermon
Posts: 18
Joined: Mon Jan 12, 2004 10:26 pm

Ted5 doesn't like me!

Post by Enchantermon »

I have Ted5 installed according to the instructions found in the CK Newsletter, but I get a couple error messages. I run Ted5 through Windows 98, and I see a white box with text in it pop up, but it disappears too fast for me to read it. It is then replaced by regular text that reads:
Ted5 error: Invalid source handle
When I try to run it through Windows XP, I get this message:
Ted5 error: Not enough Extended Memory available!
Can someone tell me what these messages mean and how to fix them? Thanks! Enchantermon
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

Build a .BAT file to run ted5. After the part that says Ted5, write 'pause'
When run you should be able to see what the little box says.

In XP ted5 can't run because it needs more memory then Bill Gates wants to give you Adurdin has a solution in this forum using dosbox.
Enchantermon
Posts: 18
Joined: Mon Jan 12, 2004 10:26 pm

Post by Enchantermon »

Erm.....okay.....how exactly do you go about building a .bat file?

Did you ever get the .conf file that you asked for in that thread you told me about? If so, could you please email it to me? I'm getting the same problem you had, Dosbox can't find it's own .conf file. Thanks! Enchantermon
User avatar
JosephBurke
Posts: 94
Joined: Sun Aug 31, 2003 9:51 pm

read, it's simple

Post by JosephBurke »

Dosbox has default settings and 'never' checks any config file unless you tell it to. You need to read the readme about how to do this.

A bat file is a text file that has the bat extension, you can place any number of dos commands in a bat file. Put a bat file in your keen4 folder that has the contents keen4e.exe and it'll start Keen4 for you. In windows you can edit a bat file by right clicking it and choosing edit, to understand better try opening a few existing bat files.
Enchantermon
Posts: 18
Joined: Mon Jan 12, 2004 10:26 pm

Post by Enchantermon »

Okay, I found out how to tell it to use the .conf file. Now it complains that DDL in an illegal command. What do I do now? Enchantermon
User avatar
JosephBurke
Posts: 94
Joined: Sun Aug 31, 2003 9:51 pm

okay, good

Post by JosephBurke »

Print out your bat file and config file and explain where dosbox and these files are located on your hard drive. Once I have this information finding the problem should be easy.
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

You can run ddl through command prompt beforehand. (I can't however as windows is very particular about what programs it will allow to run. :( )
Enchantermon
Posts: 18
Joined: Mon Jan 12, 2004 10:26 pm

Re: okay, good

Post by Enchantermon »

JosephBurke wrote:Print out your bat file and config file and explain where dosbox and these files are located on your hard drive. Once I have this information finding the problem should be easy.
Okay. The contents of "ted5dosbox.bat" are as follows:

dosbox -conf dosbox.conf

The contents of dosbox.conf are as follows:

[sdl]
# fullscreen -- Start dosbox directly in fullscreen.
# autolock -- Mouse will automatically lock, if you click on the screen.
# sensitiviy -- Mouse sensitivity.
# waitonerror -- Wait before closing the console if dosbox has an error.

fullscreen=false
autolock=true
sensitivity=100
waitonerror=true

[dosbox]
# language -- Select another language file.
# memsize -- Amount of memory dosbox has in megabytes.

language=
memsize=16

[render]
# frameskip -- How many frames dosbox skips before drawing one.
# snapdir -- Directory where screenshots get saved.
# scaler -- Scaler used to enlarge/enhance low resolution modes.
# Supported are none,normal2x,advmame2x

frameskip=0
snapdir=snaps
scaler=normal2x

[cpu]
# cycles -- Amount of instructions dosbox tries to emulate each millsecond.
# Setting this higher than your machine can handle is bad!

cycles=1800

[mixer]
# nosound -- Enable silent mode, sound is still emulated though.
# rate -- Mixer sample rate, setting any devices higher than this will
# probably lower their sound quality.
# blocksize -- Mixer block size, larger blocks might help sound stuttering
# but sound will also be more lagged.
# wavedir -- Directory where saved sound output goes when you use the
# sound record key-combination, check README file.

nosound=false
rate=22050
blocksize=2048
wavedir=waves

[midi]
# mpu401 -- Enable MPU-401 Emulation.
# device -- Device that will receive the MIDI data from MPU-401.
# This can be default,alsa,oss,win32,coreaudio,none.
# config -- Special configuration options for the device.

mpu401=true
device=default
config=

[sblaster]
# sblaster -- Enable the soundblaster emulation.
# base,irq,dma -- The IO/IRQ/DMA address of the soundblaster.
# sbrate -- Sample rate of soundblaster emulation.
# adlib -- Enable the adlib emulation.
# adlibrate -- Sample rate of adlib emulation.
# cms -- Enable the Creative Music System/Gameblaster emulation.
# Enabling both the adlib and cms might give conflicts!
# cmsrate -- Sample rate of cms emulation.

sblaster=true
base=220
irq=7
dma=1
sbrate=22050
adlib=true
adlibrate=22050
cms=false
cmsrate=22050

[speaker]
# pcspeaker -- Enable PC-Speaker emulation.
# pcrate -- Sample rate of the PC-Speaker sound generation.
# tandy -- Enable Tandy 3-Voice emulation.
# tandyrate -- Sample rate of the Tandy 3-Voice generation.
# disney -- Enable Disney Sound Source emulation.

pcspeaker=true
pcrate=22050
tandy=true
tandyrate=22050
disney=true

[bios]
# Nothing to setup yet!


[dos]
# xms -- Enable XMS support.
# ems -- Enable EMS support.
# dpmi -- Enable builtin DPMI host support.
# This might help in getting some games to work, but might crash others.
# So be sure to try both settings.

xms=false
ems=false
dpmi=true

[modem]
# modem -- Enable virtual modem emulation.
# comport -- COM Port modem is connected to.
# listenport -- TCP Port the momdem listens on for incoming connections.

modem=true
comport=2
listenport=23

[autoexec]
# Lines in this section will be run at startup.
mount c: c:\
set path=c:\progra~1\dosbox\command;
ddl c:\progra~1\dosbox\command\himem.sys

Dosbox is located at:

C:\documents and settings\jonathan\my documents\games\dosbox\DOSbox-0.60\

However, because WinXP involves so many folders in setting up seperate accounts, I thought it would be easier to just drag-and-drop executables onto dosbox.exe, instead of typing out all the folder names through the command prompt. Therefore, the copy of dosbox I am using is with my Ted5 and CK4 files, located at:

C:\documents and settings\jonathan\my documents\games\commander keen\ck4\

Therefore, the location of "ted5dosbox.bat" and "dosbox.conf" is also:

C:\documents and settings\jonathan\my documents\games\commander keen\ck4\

And the location of "ddl.exe" and "himem.sys" is:

C:\documents and settings\jonathan\my documents\games\commander keen\ck4\command\

Enchantermon
User avatar
JosephBurke
Posts: 94
Joined: Sun Aug 31, 2003 9:51 pm

good, good, moving along

Post by JosephBurke »

That's exactly the information I needed however before I can answer your question I need to know what version of dosbox you're using.
User avatar
adurdin
Site Founder
Posts: 549
Joined: Fri Aug 29, 2003 11:27 pm
Location: Edinburgh, Scotland
Contact:

Post by adurdin »

You'll need to change these two lines in the dosbox.conf file to point to where you've got dosbox:

Code: Select all

set path=c:\progra~1\dosbox\command;
ddl c:\progra~1\dosbox\command\himem.sys
Changing them to the following will probably work:

Code: Select all

set path=c:\docume~1\jonath~1\mydocu~1\games\comman~1\ck4\command;
ddl c:\docume~1\jonath~1\mydocu~1\games\comman~1\ck4\command\himem.sys
You may be able to use long filenames there as well instead of the short ones, but I haven't tried it.
Enchantermon
Posts: 18
Joined: Mon Jan 12, 2004 10:26 pm

Post by Enchantermon »

JosephBurke: I am using Dosbox 0.60

adurdin: I replaced the lines but it still didn't change anything.
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

Use 0.61; 0.60 is inferior.
Enchantermon
Posts: 18
Joined: Mon Jan 12, 2004 10:26 pm

Post by Enchantermon »

Okay, I have 0.61, but, even though the conf is being loaded, DDL is still being labeled as an illegal command. Enchantermon
User avatar
JosephBurke
Posts: 94
Joined: Sun Aug 31, 2003 9:51 pm

sorry

Post by JosephBurke »

I've been too busy to touch this Enchantermon, however I'll figure it out later tonight.
User avatar
JosephBurke
Posts: 94
Joined: Sun Aug 31, 2003 9:51 pm

we'll try this

Post by JosephBurke »

Andrew pointed out the problem, however to make things easier I've created two zips each one for a different version of dosbox. The zips contain files you can add to or use to replace files in your current directory structure.

http://www.lastplain.com/keen_stuff/temp_zips/0.60.zip
http://www.lastplain.com/keen_stuff/temp_zips/0.61.zip
Post Reply