.CAM/.TRN/.TAC format

Terrain / Theater editing

Moderators: Lone Wolf, Snake Man

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Re: .CAM/.TRN/.TAC format

Post by Sherlock » 2009-02-18 05:28:28

lightning wrote:Look at the specs I've documented for all previous versions. You'll see that the changes are generally not all that radical. Add a field here, expand the width of a field there, nothing earth-shattering.
Ok. So what do you envision for a utility to "backversion" AF CAM files so we can edit them in TacEdit? I'm digging this topic! :)
Sherlock
Victurous te Saluto

lightning
Recruit
Posts: 38
Joined: 2008-11-17 23:23:45
Gaming Interests: ArmA 2 (Armed Assault 2)
Editing Interests: Terrains
Location: Chandler, AZ

Re: .CAM/.TRN/.TAC format

Post by lightning » 2009-02-18 05:57:40

Right now I can successfully backport everything but the units file. To backport the units successfully I just have to spend some more time on figuring out the format changes that happened with Package units. As for a utility, basically I'd envision a little .EXE that can read in later-version .CAM/.TRN/.TAC files, and that would then save them in version 71 format so you can use TacEdit to modify them.

This would alleviate the need to write a completely new TacEdit from the ground up (in the short term) and would essentially make newer formats editable (albeit, by discarding information that's only present in newer versions). Ultimately the right thing to do would be to write a new TacEdit around all this (tedious, but 100% doable) if we want to be able to modify the newer file formats directly.

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Re: .CAM/.TRN/.TAC format

Post by Sherlock » 2009-02-18 14:30:46

lightning wrote:Right now I can successfully backport everything but the units file. To backport the units successfully I just have to spend some more time on figuring out the format changes that happened with Package units. As for a utility, basically I'd envision a little .EXE that can read in later-version .CAM/.TRN/.TAC files, and that would then save them in version 71 format so you can use TacEdit to modify them.

This would alleviate the need to write a completely new TacEdit from the ground up (in the short term) and would essentially make newer formats editable (albeit, by discarding information that's only present in newer versions). Ultimately the right thing to do would be to write a new TacEdit around all this (tedious, but 100% doable) if we want to be able to modify the newer file formats directly.
Just a note that SP4.2 versions of the CAM come up as Version 73 in TacEdit (not version 71).

I'm all for writing a newer version of TacEdit but, then, I don't have to do it (nor could I). :)

I know I will be happy to get any "crumbs" you are willing to throw our way in the way of a utility that backports the newer AF versions (or anything else).
Sherlock
Victurous te Saluto

lightning
Recruit
Posts: 38
Joined: 2008-11-17 23:23:45
Gaming Interests: ArmA 2 (Armed Assault 2)
Editing Interests: Terrains
Location: Chandler, AZ

Re: .CAM/.TRN/.TAC format

Post by lightning » 2009-02-18 22:36:43

I'll post some reader/writer code for all the files (v71 and earlier) in a couple weeks. Hopefully during that time I can also get the rest of the details at least up to v73 included. Then we can at least round-trip stuff into and out of TacEdit without any restrictions.

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Re: .CAM/.TRN/.TAC format

Post by Sherlock » 2009-02-18 23:10:46

lightning wrote:I'll post some reader/writer code for all the files (v71 and earlier) in a couple weeks. Hopefully during that time I can also get the rest of the details at least up to v73 included. Then we can at least round-trip stuff into and out of TacEdit without any restrictions.
Sweet! Can't wait to check it out!
Sherlock
Victurous te Saluto

Snake Man
Commander-In-Chief
Posts: 9354
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC

Re: .CAM/.TRN/.TAC format

Post by Snake Man » 2009-02-18 23:20:37

Now wait a minute, have we tracked down the real information stored in the F4AF version .cam files, ie the parts that aren't readable with TacEdit?
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

lightning
Recruit
Posts: 38
Joined: 2008-11-17 23:23:45
Gaming Interests: ArmA 2 (Armed Assault 2)
Editing Interests: Terrains
Location: Chandler, AZ

Re: .CAM/.TRN/.TAC format

Post by lightning » 2009-02-19 00:14:43

Snake Man wrote: Now wait a minute, have we tracked down the real information stored in the F4AF version .cam files, ie the parts that aren't readable with TacEdit?
Some, but not not all, yet. It's a bit of a process. I'd still be interested for someone to tell me why we actually should give a damned about the AF format, per-se, when AF will consume files in the older format??

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Re: .CAM/.TRN/.TAC format

Post by Sherlock » 2009-02-19 02:34:42

lightning wrote:Look at the specs I've documented for all previous versions. You'll see that the changes are generally not all that radical. Add a field here, expand the width of a field there, nothing earth-shattering.
lightning wrote:
Snake Man wrote: Now wait a minute, have we tracked down the real information stored in the F4AF version .cam files, ie the parts that aren't readable with TacEdit?
Some, but not not all, yet. It's a bit of a process. I'd still be interested for someone to tell me why we actually should give a damned about the AF format, per-se, when AF will consume files in the older format??
I guess I'll ask this question again as it gets to what Snake Man is asking also... what were the expansions to fields or added fields that make the difference between a SP4.2 .CAM (version 73) file and a 2008 Allied Force .CAM (version 83) file? It sounds like you've looked at them a little lightning, right? But you need to check into them in more detail to answer the question, right?

I guess I would sum up things this way... If what is in there is not known and/or understood, then how can a decision be made to just discard it?

To answer your question "I'd still be interested for someone to tell me why we actually should give a damned about the AF format, per-se, when AF will consume files in the older format??".... I would point out that Lead Pursuit modified the Falcon.exe and changed the .CAM format for a reason. Perhaps it was to accommodate the enhanced engineering repair capability? Or perhaps it was to better support the "Add Package" capability? I don't really know but evaluating what the difference is in the CAM file may answer the question. If we know what is there and, more importantly what is does (why it is there) then a better decision can be made as to whether we want to go to the trouble to bring it along for editing or just discard it and use the older format.
Sherlock
Victurous te Saluto

Snake Man
Commander-In-Chief
Posts: 9354
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC

Re: .CAM/.TRN/.TAC format

Post by Snake Man » 2009-02-19 04:04:19

I agree that we should find out what the data contains in the F4AF unknown .cam parts and then make decision if anything should be done about it.
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

Cougar FFW04
Newbie
Posts: 4
Joined: 2007-01-28 12:39:34

Re: .CAM/.TRN/.TAC format

Post by Cougar FFW04 » 2009-02-19 08:23:01

Hi Lightning,

Very nice job.

Go on please, it opens so much perspectives for all Falcon flavors with respect to campaign management and Tactical engagement creation.

Thanks a lot :wink:

lightning
Recruit
Posts: 38
Joined: 2008-11-17 23:23:45
Gaming Interests: ArmA 2 (Armed Assault 2)
Editing Interests: Terrains
Location: Chandler, AZ

Re: .CAM/.TRN/.TAC format

Post by lightning » 2010-01-13 22:02:46

I've posted the preliminary parser code for the CAM/TRN/TAC files on my SVN repository at:

http://svn2.assembla.com/svn/lightnings ... k/F4Utils/

The relevant code is under the Campaign subfolder:
http://svn2.assembla.com/svn/lightnings ... /Campaign/

This code has been sitting around for almost a year now in various states waiting for me to merge it all together, which I finally did on a request from Falcas. Anyone else with a need to use this to read from the CAM/TRN/TAC files, please let me know and I can work with you to guide you on the usage. I have a couple of minor Wiki updates to make as well -- but they're low priority for now, so again, contact me if you're working with this data and need assistance. Also -- The code in the code repository currently supports reading from, but not writing to, CAM/TRN/TAC files. It will be a very small effort to add support for writing changes as well, I just have not had a chance to get that far with it yet due to other priorities.

AFAIK this code works with file versions up to around v73...but I have not tested exhaustively.

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Re: .CAM/.TRN/.TAC format

Post by Sherlock » 2010-01-14 00:25:29

Great to see you back lightning. Do you plan to address .cam versions beyond v73 including up to v83?
Sherlock
Victurous te Saluto

User avatar
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: .CAM/.TRN/.TAC format

Post by Luk » 2010-01-14 21:55:22

contact me if you're working with this data and need assistance. Also -- The code in the code repository currently supports reading from, but not writing to, CAM/TRN/TAC files.
hi lightning.
I am very interested in CAM/TAC files decoding. But I am currently AF only - so as Sherlock wrote in previous post - any info about ver 83 would be fine.
BTW - I have no idea what to do with your "decoded?" files. But it looks important :) . Do you have some decoded AF *.cam file, which is readable by tacedit please? I would check used objectives...
Luk

lightning
Recruit
Posts: 38
Joined: 2008-11-17 23:23:45
Gaming Interests: ArmA 2 (Armed Assault 2)
Editing Interests: Terrains
Location: Chandler, AZ

Re: .CAM/.TRN/.TAC format

Post by lightning » 2010-01-15 06:02:04

There's still work to be done in terms of converting AF .cam files back to a format usable by non-AF TacEdit, but I'll keep you posted, whatever happens.

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Re: .CAM/.TRN/.TAC format

Post by Sherlock » 2010-01-16 00:54:01

lightning wrote:There's still work to be done in terms of converting AF .cam files back to a format usable by non-AF TacEdit, but I'll keep you posted, whatever happens.
Thanks Mucho! You get that done and I'll buy you a case of your favorite beer (or other favorite beverage)! I live "down the road" from you southeast of Tucson.

Another item you might want to turn your considerable talents to is deciphering the bcockpit.dat and bpadlock.dat files (from Allied Force) which appear to be binary conversions of the older SuperPAK versions (which were ASCII Text). Just a suggestion! :mrgreen:
Sherlock
Victurous te Saluto

lightning
Recruit
Posts: 38
Joined: 2008-11-17 23:23:45
Gaming Interests: ArmA 2 (Armed Assault 2)
Editing Interests: Terrains
Location: Chandler, AZ

Re: .CAM/.TRN/.TAC format

Post by lightning » 2010-01-18 09:24:56

Sherlock wrote:Another item you might want to turn your considerable talents to is deciphering the bcockpit.dat and bpadlock.dat files (from Allied Force) which appear to be binary conversions of the older SuperPAK versions (which were ASCII Text).
Martin "Pegasus" Schmitt already did that back in September -- see here:

http://www.viperpits.org/smf/index.php? ... 9#msg72089

User avatar
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: .CAM/.TRN/.TAC format

Post by Luk » 2010-01-18 10:58:16

Martin "Pegasus" Schmitt already did that back in September -- see here:

http://www.viperpits.org/smf/index.php? ... 9#msg72089
:shock: :shock: :shock: :shock: :shock: :shock:

Does it mean, we are just step away to create at least one generic light-blue russian pit for eastern ACs???!!!
It is perhaps the only thing I miss heavily in AF...
Luk

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Re: .CAM/.TRN/.TAC format

Post by Sherlock » 2010-01-18 22:42:59

lightning wrote:
Sherlock wrote:Another item you might want to turn your considerable talents to is deciphering the bcockpit.dat and bpadlock.dat files (from Allied Force) which appear to be binary conversions of the older SuperPAK versions (which were ASCII Text).
Martin "Pegasus" Schmitt already did that back in September -- see here:

http://www.viperpits.org/smf/index.php? ... 9#msg72089
Wow! I had no idea....looks like I need to stop by Viperpits more often. Thanks for that lightning! That's a huge step forward for us AF flyers.
Sherlock
Victurous te Saluto

Return to “Terrain / Theater”

Who is online

Users browsing this forum: ClaudeBot [Bot] and 1 guest