VOGONS


First post, by scottw666

User metadata
Rank Newbie
Rank
Newbie

http://www.infomediji.si/programi/1/body_nagr … are_ind__99.htm
to download c&cdemo

"latest cvs build".

The setup.exe works fine, autodetects gus fine.

When you run c&c.exe you get the following error:
DOS/4GW Professional Protected Mode Run-time Version 1.97
Copyright (c) Rational Systems, Inc. 1990--1994
DOS/4GW Professional error (2504): can't create swap file "."
DOS/4GW Professional fatal error (1101): VMM initialization error [1]

The console shows this error:
Warning: file creation failed: .\

so its trying to create a swap file "." and failing?

Descent also has the same error now, yet it worked in the past so i guess it must be a recent change...

Apologies if this is known. Dosbox is the coolest piece of software ever.

Reply 1 of 7, by scottw666

User metadata
Rank Newbie
Rank
Newbie

I spent some time debugging this.

Dos4g is literally trying to create a "." file. The DOS_MakeName method stops this from happening with this case statement so the FileCreate method tries to create the directory "c:\download\ccdemo" rather than the file "c:\download\ccdemo\."

The open questions is:
1. Is "." a valid file name under windows? I think not but I could be wrong. If not what should dosbox do? Create a "dot" file?

I modified the filecreate to do exactly that and command and conquer ran.

Finster - thoughts?

case '\\': case '$': case '#': case '@': case '(': case ')':
case '!': case '%': case '{': case '}': case '`': case '~':
case '_': case '-': case '*': case '?': case '&':
case '\'': case '+': case '^':

Reply 6 of 7, by tkcmd

User metadata
Rank Newbie
Rank
Newbie

Hmm did some research
Seems that the DOS4GW Extender is trying to make a swap location to a non existant location
this can be fixed by setting a few varibales by using the SET command
i made a batch file so you just need to run it before starting your c&c.exe (or descent.exe ... whatever)
http://users.pandora.be/tkcmd/parm.bat
if u need more virtual memory just edit the size in the batch file