tfdesign.tfd

tfdesign.tfd & combat.bin (broken/unused); support/discussion/questions

Moderator: thunderchero

Post Reply
User avatar
DCER
Code Master
Code Master
Posts: 683
Joined: Sat Apr 26, 2008 2:00 am

tfdesign.tfd

Post by DCER » Tue Dec 30, 2008 3:30 pm

I've been trying to figure out what this file from stbof.res does.

The result:

The file is not even being used. Fill it with random data, empty it or even remove from stbof.res and the game won't care.


What it was probably meant for (my guess):

tfdesign seems to stand for task force design

The file contains 8 blocks of data each begins with block index (2 bytes) and is then followed by 10x2 bytes.

The data following the block id are most likely numbers of ships for each class type to build. The order is as follows (taken from trek.exe subroutine at 0x17AF8): scout, raider (destroyer), war (cruiser), artillery (strike), command, colony, invalid (outpost), invalid (starbase), invalid (alien), transport.

The numbers don't make much sense - my guess is they were there for testing.

If this file were active, we'd have an easy way to control AI ship building habits, but sadly it's just junk.

User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 6058
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.
Contact:

Post by thunderchero » Tue Dec 30, 2008 10:09 pm

I think I did same thing with combat.bin last year (with much less testing). when I was playing with combat.mnu for recloak during combat and removing ram command.

thunderchero

User avatar
DCER
Code Master
Code Master
Posts: 683
Joined: Sat Apr 26, 2008 2:00 am

Post by DCER » Wed Dec 31, 2008 5:29 am

Hm, don't know if combat.bin is used but if you remove it from stbof.res the game won't start at all - no crash.log entry either.

User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 6058
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.
Contact:

Post by thunderchero » Wed Dec 31, 2008 8:48 am

I think I wrote it with zero's and also left it empty but not removed it.

User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 723
Joined: Sun Apr 27, 2008 2:00 am

Post by Spocks-cuddly-tribble » Sun Apr 04, 2010 8:36 am

DCER wrote:don't know if combat.bin is used but if you remove it from stbof.res the game won't start at all - no crash.log entry either.
Concerning combat.bin:

Sub_479D10 compares values depending on shipfunction for unknown purpose.

values (set in sub_4797C0) are:

3 - scout
4 - destroyer
5 - cruiser
10 - strike
15 - command
1 - colony
8 - outpost
20 - starbase
30 - alien
2 - transport


The values should depend on combat.bin, but it doesn't work. :?

47983C cmp edi, 7Dh -> number of ships

-> 500 bytes steps /entries

combat.bin -> 62500(bytes) / 500 = 125(ships)
On the verge of a nervous breakdown? Try the relaxing tribble sounds.

Post Reply

Return to “tfdesign.tfd & combat.bin (broken/unused)”

Who is online

Users browsing this forum: No registered users