The New Objective documentation.


The LoadBaseObjectives function is important!
CampaignClass::NewCampaign
CampaignClass::LoadCampaign
CampaignClass::SaveCampaign
 
The General Part
The obj files follows a pattern also seen in the uni file. 

 

The header format
Word.Rec@0000 [ct-pointer]
DWord.Rec@0002 <unit-id-spaces>
Word.Rec@0006 0
Word.Rec@0008 0
Word.Rec@000A [ct-pointer]
Word.Rec@000C <x-loc>
Word.Rec@000E <y-loc>
if version<70 z-locfloat
Float.Rec@0010 z-loc
DWord.Rec@0014 SpotTime
Word.Rec@0018 Spotted
Word.Rec@001A Baseflags
Byte.Rec@001C <SIDE-CODE>
Word.Rec@001D <UNIT-IN-GAME-ID>
------------------------------------------------------------------------
objective-records campversion>1 
objflags
supply
fluel
losses
size-fstatus
fstatus[size-fstatus]obj
priority
nameid
parent
firstowner
linknumber
rep-nlinks!
uchar cost[8]
VU-ID link-id
campversion>20
RRC-flag
RadarRange-record
float detect-ratio[8]


X-loc/Y-loc
Range 0..1023
Object-id-spaces  These are delimited to the space from 4 to 3999
Differences between TAC &CAM files No known differences
side-codes
ID
Country
0
1 USA
2 ROK
3 JAPAN
4 RUSSIA
5 CHINA
6 DPRK
7 GORN (Germany)
Differences between templates and save day X-XX-XX-XX files (save0 save1 save2):The codes used are not in this range - Needs further analysis!

When a game is saved for later continuation the country codes apply as stated above. This holds also for missions saved for use in Tactical Engagements provided that you repainted the team distribution to match with the above table.

In stdr te_new the land is distributed between sideID 1 and 2
USA AND DPRK