Skip to contentSkip to conversation

Tradewars 2002

DISCUSSION Ryan Underwood 4 participants 6 messages Jan 21, 2003

lore
Share & tools
lore
#0 lore raw

hi,

Can someone with a bit more knowledge of dosemu internals try to figure out the problem with this program?

DPMI version:
ftp://doorgames.org/bbsfiles/space_doors/2002d309.zip non-DPMI version:
ftp://doorgames.org/bbsfiles/space_doors/2002v309.zip

I tried both versions, under dosemu 1.0.2 with latest freedos, and after starting a bigbang (to initialize the game), they exit with a:

File Error (1) - TWCfig.DAT : Invalid Function

Actually, it works fine under DR-DOS, so is this a FreeDOS problem and not a dosemu problem? If so, how would I go about getting relevant debug information to send to the FreeDOS developers?

Thanks!

Signature · 1 line
Ryan Underwood, <nemesis at icequake.net>, icq=10317253
#1 lore raw
Quoted 5 lines · Ryan Underwood

File Error (1) - TWCfig.DAT : Invalid Function

Actually, it works fine under DR-DOS, so is this a FreeDOS problem and not a dosemu problem? If so, how would I go about getting relevant debug information to send to the FreeDOS developers?

I'm not sure which FreeDOS version you are using. The program you mentioned seems to run just fine for me (with FreeDOS kernel 2028).

Bart

#3 lore raw

DOS Partitions are read only

In reply to Ryan Underwood

I have DOSemu up and running. I put the ms-dos components (from win98) in the "boot drive. I boots fine, but when I lredir the other dos partitions, I cannot write to them. I have installed and am running as a user, not root.

tia, john

#2 lore raw
In reply to Bart Oldeman
Quoted 10 lines · Bart Oldeman
Quoted 5 lines · Ryan Underwood

File Error (1) - TWCfig.DAT : Invalid Function

Actually, it works fine under DR-DOS, so is this a FreeDOS problem and not a dosemu problem? If so, how would I go about getting relevant debug information to send to the FreeDOS developers?

I'm not sure which FreeDOS version you are using. The program you mentioned seems to run just fine for me (with FreeDOS kernel 2028).

An interesting related insight: Trade Wars will refuse to run multi-player with anything BUT FreeDos (on a redirected file system). It has to do with the file locking issues in mfs.c, or at least it seems so.

There is a patch floating around that deals with this problem for just about every other game of this nature, but TW is doing something slightly different and I haven't quite figured out the details.

Bob

#4 lore raw

Re: DOS Partitions are read only

In reply to John Sowden
Quoted 3 lines · John Sowden

I have DOSemu up and running. I put the ms-dos components (from win98) in the "boot drive. I boots fine, but when I lredir the other dos partitions, I cannot write to them. I have installed and am running as a user, not root.

check your /etc/fstab; see "man mount". If you're on a true multiuser system it's best to create a dosemu group. But if you're the only one on that computer who uses Linux then you can just as well make the DOS partition owned by you, ie. something like

         /dev/hda1 /dosc msdos defaults,uid=500,umask=022 0 0

in your /etc/fstab. Replace 500 with your real UID.
Use vfat instead of msdos if you want to see long file names in Linux.

Below is the relevant excerpt from README.txt.

Bart

4. The msdos partitions, that you want to be accessable through Section 5 should be mounted with proper permissions. I recommend doing this via 'group's, not via user ownership. Given you have a group 'dosemu' for this and want to give the user 'lermen' access, then the following should be
+ in /etc/passwd:

lermen:x:500:100:Hans Lermen:/home/lermen:/bin/bash
^^^-- note: this is NOT the group id of 'dosemu'

+ in /etc/group:

users:x:100:
dosemu:x:200:dosemu,lermen
^^^

+ in /etc/fstab:

/dev/hda1 /dosc msdos defaults,gid=200,umask=002 0 0
^^^

Note: the changes to /etc/passwd and /etc/group only take place the next time you login, so don't forget to re-login. The fstab entry will mount /dosc such that is has the proper permissions

( drwxrwxr-x 22 root dosemu 16384 Jan 1 1970 /dosc )

You can do the same with an explicit mount command:

mount -t msdos -o gid=200,umask=002 /dev/hda1 /dosc

Of course normal lredir'ed unix directories should have the same permissions.

#5 lore raw
In reply to Ryan Underwood
Quoted 9 lines

I tried both versions, under dosemu 1.0.2 with latest freedos, and after starting a bigbang (to initialize the game), they exit with a:

File Error (1) - TWCfig.DAT : Invalid Function

Actually, it works fine under DR-DOS, so is this a FreeDOS problem and not a dosemu problem? If so, how would I go about getting relevant debug information to send to the FreeDOS developers?

Interesting. Well, I was able to get it to work using the latest dosemu-freedos-07f "Ripcord" distribution, and copying in the latest kernel.sys and command.com from the freedos sourceforge project. So it appears that this was a problem in the old dosemu-freedos.tgz, which is now no longer an issue.

I will post here if I discover anything more.

Signature · 1 line
Ryan Underwood, <nemesis at icequake.net>, icq=10317253