SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Sub/Naval + Other Games > Classic Subsims
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 12-31-21, 05:23 AM   #1
Andreas86
Navy Dude
 
Join Date: Jan 2019
Posts: 178
Downloads: 58
Uploads: 2


Default

@John, I know but that is a very primitive solution, which also reduces the game speed overall, making other actions take forever. My DOSbox is configured at fixed 9000, as type 486. This setting I find optimal for AOTD, and many other games of the era. In Topbench this setting equals about an Intel DX2/50. I see no point in running AOTD on anything slower than that. Below 8000/7000 cycles the wave animation becomes very choppy, even though the waves roll with a more natural speed.

There must be a way to gain control of the mesh cycle intervals without reducing CPU speed. So we can have an alternative to this "I am attacking with my rubber duck boat" feeling.



Last edited by Andreas86; 12-31-21 at 05:48 AM.
Andreas86 is offline   Reply With Quote
Old 12-31-21, 09:15 AM   #2
John Pancoast
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Andreas86 View Post
@John, I know but that is a very primitive solution, which also reduces the game speed overall, making other actions take forever. My DOSbox is configured at fixed 9000, as type 486. This setting I find optimal for AOTD, and many other games of the era. In Topbench this setting equals about an Intel DX2/50. I see no point in running AOTD on anything slower than that. Below 8000/7000 cycles the wave animation becomes very choppy, even though the waves roll with a more natural speed.

There must be a way to gain control of the mesh cycle intervals without reducing CPU speed. So we can have an alternative to this "I am attacking with my rubber duck boat" feeling.


Well, that is the huge storm/waves/no fog graphics of AOD but mine isn't that bouncy anyway. Strange.
I remember at the time, the wave action was a huge WOW factor for people in the game.

Might have been the first game with them, close if not.
  Reply With Quote
Old 12-31-21, 01:48 PM   #3
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

Reading through the source code is providing good information
that may help to decompress other files.
Also found some old Code from around 1990 that may help.
It's Turbo C which is Borland. I'll have to see if my versions of Borland will compile it.
Jeff-Groves is offline   Reply With Quote
Old 01-01-22, 09:18 AM   #4
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

Update to the BMP/VGA file structure.
-----------------------------------------

4 bytes = BMP:
4 bytes read as an int = file size to read.
4 bytes = INF:
4 bytes = the amount of data to read. This contains frames and sizes of each frame in pixels.
This section is variable but you read each as a byte with a 00 seperator.
4 bytes = BIN:
4 bytes read as an int = data to read until we hit the next chunk.
1 byte = Compression type used (01 = RLE -- 02 = LZW)
4 bytes read as an int = data in this chunk after it's decompressed.

4 bytes = VGA:
4 bytes read as an int = data to read until we hit the next chunk.
1 byte = Compression type used (01 = RLE -- 02 = LZW)
4 bytes read as an int = data in this chunk after it's decompressed.


It's IMPORTANT to have your Editor of choice set to Little Endian!

Last edited by Jeff-Groves; 01-01-22 at 11:40 AM.
Jeff-Groves is offline   Reply With Quote
Old 01-01-22, 10:33 AM   #5
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

Now I may have a clue as to how to encode the SCN/OFF format.
I'm working on Tower1.bmp
What I am going to do is CUT out a section from the SCN chunk.
OFF is Off Sets to data I'm pretty sure.
So if I cut from the last off set position and remove the last off set information,
then change file size references? It should open and be missing 1 frame.
As far as I can tell at this point? The SCN: information does not contain the size of the file decompressed.
Jeff-Groves is offline   Reply With Quote
Old 01-01-22, 11:22 AM   #6
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

Also noticed Engie misreports number of frames by 1.
Frame 0 to Frame 22 = 23 frames. NOT 22.
That's bad coding. Makes me wonder what else is sloppy coding.
Going to see if I can Compile the Source Code and if I can? Will track down the error and correct it.
The License says "DO WTF you want".

Last edited by Jeff-Groves; 01-01-22 at 11:56 AM.
Jeff-Groves is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:29 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.