Future Wars problem

Ask for help with ScummVM problems

Moderator: ScummVM Team

User avatar
noize
Posts: 113
Joined: Mon Oct 31, 2005 3:08 pm

Future Wars problem

Post by noize »

The cd version of FW doens't work under ScummVM.
It is recognized, but all I get is a black screen, and ScummVM hangs.

User avatar
clone2727
Retired
Posts: 1592
Joined: Fri Jun 09, 2006 8:23 pm
Location: NJ, USA

Post by clone2727 »

According to the wiki page the CD version was only released in the US, and as far as I know, no team member has it. Does ScummVM report any unknown md5? Does it report anything on the debug console? What version of ScummVM are you using?

User avatar
noize
Posts: 113
Joined: Mon Oct 31, 2005 3:08 pm

Post by noize »

Mac OS X (Intel)
0.13.0svn (Aug 4 2008)

Console says this:

User picked target 'fw-1' (gameid 'cine')...
Looking for a plugin supporting this gameid... Cinematique evo 1 engine
Starting 'Cinematique evo.1 engine game'
WARNING: Undefined opcode 0x35 in FWScriptInfo::opcodeInfo!
WARNING: Undefined opcode 0x28 in FWScriptInfo::opcodeInfo!
WARNING: Undefined opcode 0x29 in FWScriptInfo::opcodeInfo!
WARNING: Undefined opcode 0x27 in FWScriptInfo::opcodeInfo!
WARNING: Undefined opcode 0x27 in FWScriptInfo::opcodeInfo!
WARNING: Undefined opcode 0x28 in FWScriptInfo::opcodeInfo!
WARNING: Undefined opcode 0x27 in FWScriptInfo::opcodeInfo!
WARNING: Undefined opcode 0x36 in FWScriptInfo::opcodeInfo!
WARNING: Undefined opcode 0x28 in FWScriptInfo::opcodeInfo!
WARNING: Undefined opcode 0x29 in FWScriptInfo::opcodeInfo!
WARNING: Undefined opcode 0x35 in FWScriptInfo::opcodeHandler!
WARNING: Undefined opcode 0x28 in FWScriptInfo::opcodeHandler!
WARNING: Undefined opcode 0x29 in FWScriptInfo::opcodeHandler!
Assertion failed: (foundFileIdx >= 0 && foundFileIdx < numElementInPart), function readBundleFile, file engines/cine/part.cpp, line 223.
Abort trap
logout

Buddha
ScummVM Developer
Posts: 53
Joined: Mon Apr 16, 2007 4:18 pm
Location: Turku, Finland
Contact:

Post by Buddha »

Looks like that version is using some new opcodes that aren't used in any of the Future Wars or Operation Stealth versions I've seen. My guess is that they handle the CD audio related stuff but that's only a guess.

Please, if you could run the game using the following command line (You may have to go to the directory where scummvm is installed first to be able to run this successfully and I don't know where that is with Mac OS X so hopefully you'll manage :-)):

scummvm --debuglevel=5 --debugflags=Script,Part fw-1 > fw-cd-output.txt

What that should do is run the game with more debug info being printed and redirect the output to fw-cd-output.txt file. The file may get a bit big so if you have any compression program that supports zip or bzip2 or gzip or whatever you could compress the text file with that and send it to me at buddha AT scummvm DOT org and I could take a look at what the file contains. Thanks.

---
Kari Salminen / Buddha^
http://buddhahacks.wordpress.com/
http://wiki.scummvm.org/index.php/User:Buddha%5E

User avatar
noize
Posts: 113
Joined: Mon Oct 31, 2005 3:08 pm

Post by noize »

Didn't get that big, here is the output, after that ScummVM hangs:

Debuglevel (from command line): 5
Output sample rate: 22050 Hz
User picked target 'fw-1' (gameid 'cine')...
Looking for a plugin supporting this gameid... Cinematique evo 1 engine
Starting 'Cinematique evo.1 engine game'
Starting detection
+ part01
> part01: 61d003202d301c29dd399acfb1354310
Matched file: part01
Found game: fw ( DOS/English) (0)
... new best match, removing all previous candidates
MD5 Mismatch. Skipping (91d7271155520eae6915a9dd2dac120c) (61d003202d301c29dd399acfb1354310)
Skipping game: fw ( DOS/English) (1)
Running Future Wars (DOS/English)
Opening hashed: /Volumes/Gedeeld/ScummVM/delphine/fwcd/TEXTE.DAT
Opening hashed: /Volumes/Gedeeld/ScummVM/delphine/fwcd/AUTO00.PRC

Buddha
ScummVM Developer
Posts: 53
Joined: Mon Apr 16, 2007 4:18 pm
Location: Turku, Finland
Contact:

Post by Buddha »

Hmm, could you give a listing of all the files in your Future Wars CD?

Also md5sums would be nice (Of the first 5000 bytes of each file and of the whole files). You can get a program that calculates md5sums from http://md5deep.sourceforge.net/ (It should work under Mac OS X too) and get the output by running it like this:

To get the md5sums of each file's first 5000 bytes:
md5deep -p 5000 -r * | grep "offset 0-5000"

To get the md5sums of the whole files:
md5deep -r *

You can dump the outputs straight here as they shouldn't be extremely long. Thanks.

User avatar
noize
Posts: 113
Joined: Mon Oct 31, 2005 3:08 pm

Post by noize »

-rwxrwxrwx 1 kippie staff 253B 5 aug 11:12 AUTO00.PRC
-rwxrwxrwx 1 kippie staff 16K 5 aug 11:12 BASESON.SND
-rwxrwxrwx 1 kippie staff 24K 5 aug 11:12 DISP.EXE
-rwxrwxrwx@ 1 kippie staff 13B 5 aug 11:12 FW.BAT
-rwxrwxrwx 1 kippie staff 111K 5 aug 11:11 FWARS.EXE
-rwxrwxrwx 1 kippie staff 12K 5 aug 11:11 INSTALL.EXE
-rwxrwxrwx 1 kippie staff 229K 5 aug 11:12 MANUAL.EXE
-rwxrwxrwx 1 kippie staff 2,8K 5 aug 11:12 MANUAL.GRS
-rwxrwxrwx 1 kippie staff 169K 5 aug 11:11 PART01
-rwxrwxrwx 1 kippie staff 4,6K 5 aug 11:11 PART01.PAL
-rwxrwxrwx 1 kippie staff 270K 5 aug 11:12 PART02
-rwxrwxrwx 1 kippie staff 4,1K 5 aug 11:12 PART02.PAL
-rwxrwxrwx 1 kippie staff 151K 5 aug 11:11 PART03
-rwxrwxrwx 1 kippie staff 5,7K 5 aug 11:11 PART03.PAL
-rwxrwxrwx 1 kippie staff 150K 5 aug 11:12 PART04
-rwxrwxrwx 1 kippie staff 2,8K 5 aug 11:12 PART04.PAL
-rwxrwxrwx 1 kippie staff 90K 5 aug 11:11 PART04B
-rwxrwxrwx 1 kippie staff 1,4K 5 aug 11:11 PART04B.PAL
-rwxrwxrwx 1 kippie staff 8,3K 5 aug 11:12 README.TXT
-rwxrwxrwx 1 kippie staff 15K 5 aug 11:12 SONY.LBM
-rwxrwxrwx 1 kippie staff 4,9K 5 aug 11:11 TEXTE.DAT
-rwxrwxrwx 1 kippie staff 1B 5 aug 11:11 VOL.1
-rwxrwxrwx 1 kippie staff 1B 5 aug 11:12 VOL.2
-rwxrwxrwx 1 kippie staff 1B 5 aug 11:12 VOL.3
-rwxrwxrwx 1 kippie staff 1B 5 aug 11:11 VOL.END

d80f9d1987aca2b1d7f9403a0420cdee /Users/kippie/Desktop/fwcd/BASESON.SND offset 0-5000
18c313c915002b5d1ada2649df149b53 /Users/kippie/Desktop/fwcd/DISP.EXE offset 0-5000
b82714409f02bd0ec54ea27206501011 /Users/kippie/Desktop/fwcd/FWARS.EXE offset 0-5000
48a56c206b42d87d33b7698f546cfe4a /Users/kippie/Desktop/fwcd/INSTALL.EXE offset 0-5000
1292742626e058ab2f3ef5a45c94fea7 /Users/kippie/Desktop/fwcd/MANUAL.EXE offset 0-5000
61d003202d301c29dd399acfb1354310 /Users/kippie/Desktop/fwcd/PART01 offset 0-5000
a4cfe39560083af6717099fde5a38e5e /Users/kippie/Desktop/fwcd/PART02 offset 0-5000
953c3b99fcd2c8f256cf57502ec4172f /Users/kippie/Desktop/fwcd/PART03 offset 0-5000
d8dcbdabcd53a40772361780eaf5714c /Users/kippie/Desktop/fwcd/PART03.PAL offset 0-5000
fb59953be984778b3fc4de5f229fb0e9 /Users/kippie/Desktop/fwcd/PART04 offset 0-5000
3221633db9da3e109f177741f9647244 /Users/kippie/Desktop/fwcd/PART04B offset 0-5000
8da55e26e198bb2172aae14037d217ce /Users/kippie/Desktop/fwcd/README.TXT offset 0-5000
447436f6ec9f75e3d5a0e870ee86119c /Users/kippie/Desktop/fwcd/SONY.LBM offset 0-5000


4fe1e7930b38e3c63f0f2474d471bf8f /Users/kippie/Desktop/fwcd/AUTO00.PRC
5f83f2422a82c3ec24ccb3f4688f3dcd /Users/kippie/Desktop/fwcd/BASESON.SND
ce8df80e1bacfcb5b912f55acd787742 /Users/kippie/Desktop/fwcd/DISP.EXE
5321be1419304605ea64dfb82e022995 /Users/kippie/Desktop/fwcd/FW.BAT
77b25c6b9253fd009e77598294cd86ec /Users/kippie/Desktop/fwcd/FWARS.EXE
f82c549d9d956aaddfe3e92b1dc6b4f9 /Users/kippie/Desktop/fwcd/INSTALL.EXE
5c56657c2a5e5cf51a1d93092a6a225e /Users/kippie/Desktop/fwcd/MANUAL.EXE
a7dd6b0c4e2cecb490eae0357d0d5b5a /Users/kippie/Desktop/fwcd/MANUAL.GRS
2b4ef42dd3a8f0d3a60075ced46cdd0c /Users/kippie/Desktop/fwcd/PART01
24b06ecf803c525176de2858a00fee9c /Users/kippie/Desktop/fwcd/PART01.PAL
bea08338d16c715fb6ce9843814544d6 /Users/kippie/Desktop/fwcd/PART02
1467f207c900be65e92e33bc9c60c55e /Users/kippie/Desktop/fwcd/PART02.PAL
0658a125a00e31fbbb5b1ae280d3c8ba /Users/kippie/Desktop/fwcd/PART03
21e06ff4ea8ce566c25025669cf81bea /Users/kippie/Desktop/fwcd/PART03.PAL
9818d5878317efedb7a012fde0b58185 /Users/kippie/Desktop/fwcd/PART04
8a1ebe402e5eda99b7384debbc23450a /Users/kippie/Desktop/fwcd/PART04.PAL
fb2162b4378a8f12c9f871433de63d67 /Users/kippie/Desktop/fwcd/PART04B
fc91d481fad90d042a6650402ed2c5e6 /Users/kippie/Desktop/fwcd/PART04B.PAL
c087e0d90220477d6bca71f73da64f58 /Users/kippie/Desktop/fwcd/README.TXT
3174069483566a85981cb24693123048 /Users/kippie/Desktop/fwcd/SONY.LBM
b7243a1d6f1c9740fcdd5bf18fec7caf /Users/kippie/Desktop/fwcd/TEXTE.DAT
6bc1af258475ec126d1be66e6bee873a /Users/kippie/Desktop/fwcd/VOL.1
6bc1af258475ec126d1be66e6bee873a /Users/kippie/Desktop/fwcd/VOL.2
6bc1af258475ec126d1be66e6bee873a /Users/kippie/Desktop/fwcd/VOL.3
6bc1af258475ec126d1be66e6bee873a /Users/kippie/Desktop/fwcd/VOL.END

Buddha
ScummVM Developer
Posts: 53
Joined: Mon Apr 16, 2007 4:18 pm
Location: Turku, Finland
Contact:

Post by Buddha »

Comparing to my floppy disk version of Future Wars that I bought back in the day there are a few notable differences:

AUTO00.PRC, PART01 and FWARS.EXE files are different from my version.

Your PART01 file is about ~5kB bigger than the one I've got.
So there are some new resources included with your version.

Your AUTO00.PRC file is 253 bytes, mine is 128 bytes. So there's some different code in there.

Your FWARS.EXE is 111kB, mine is 44kB (And named DELPHINE.EXE actually, but that's not important). So there seems to be very much a difference there.

The MANUAL.EXE and MANUAL.GRS are new files but they aren't probably needed to execute the game (They're probably just for reading the manual).

SONY.LBM is also a new file but it's probably just SONY's logo.

DISP.EXE is also new and perhaps it's for showing the SONY's logo (SONY.LBM), dunno.

Buddha
ScummVM Developer
Posts: 53
Joined: Mon Apr 16, 2007 4:18 pm
Location: Turku, Finland
Contact:

Post by Buddha »

The AUTO00.PRC seems to be the culprit here or the way it's being parsed currently (There were no new opcodes used in the executable, I checked. PART01 unpacks alright too so it's not corrupted). Somehow parsing the AUTO00.PRC results in the engine thinking that there are some nice new opcodes to be ran and a little later it just crashes.

User avatar
noize
Posts: 113
Joined: Mon Oct 31, 2005 3:08 pm

Post by noize »

Great.

Disp.exe indeed displays logo.
Fwars calls disp.exe on start.

This version does not use copy protection. (Which I assume means that protection screen can be removed from ScummVM)
Last edited by noize on Fri Aug 08, 2008 5:10 pm, edited 1 time in total.

Buddha
ScummVM Developer
Posts: 53
Joined: Mon Apr 16, 2007 4:18 pm
Location: Turku, Finland
Contact:

Post by Buddha »

Can you play the game without ScummVM i.e. using some emulator like DOSBox or Bochs + FreeDOS or just some plain old DOS machine if you have one lying around somewhere? I'd like to know because if the game *does* work then there has to be a routine in FWARS.EXE that handles the AUTO00.PRC differently than ScummVM currently does.

My current guess is that your AUTO00.PRC is corrupted but not 100% sure yet. It'd help if you could run it otherwise than using ScummVM.

User avatar
noize
Posts: 113
Joined: Mon Oct 31, 2005 3:08 pm

Post by noize »

I just downloaded Dosbox.

Game works. Same graphics as floppy version. No copy protection. With cda support.

Buddha
ScummVM Developer
Posts: 53
Joined: Mon Apr 16, 2007 4:18 pm
Location: Turku, Finland
Contact:

Post by Buddha »

Interesting. Then the FWARS.EXE you have must somehow handle the AUTO00.PRC differently than ScummVM does... as your AUTO00.PRC looks like corrupted data to ScummVM currently.

Buddha
ScummVM Developer
Posts: 53
Joined: Mon Apr 16, 2007 4:18 pm
Location: Turku, Finland
Contact:

Post by Buddha »

Getting somewhere here... FWARS.EXE definitely does some bitfiddling with at least the AUTO00.PRC :-). So the file's *not* corrupted.

User avatar
noize
Posts: 113
Joined: Mon Oct 31, 2005 3:08 pm

Post by noize »

Good stuff.

Post Reply