DO/CTL

From Dark Omen Wiki

(Difference between revisions)
Jump to: navigation, search
(Styles)
Line 1: Line 1:
-
[[CTL]]
+
== Structure ==
-
Mikademsu:-
+
Every file starts with 32 00 00 00, which we can assume to be a file version or ID number. The files seem to consist of a number of sections, each delimited by a FF FF FF FF value. Some CTL files have the last section identified by FF FF FF nn, though, so the last byte could be a section type indicator. The FF FF FF FF marks the start of a new section. So every block, including the block start DWORD (0xFFFFFFFF) consists of coordinate values because the size of the block divided by 12 is always an even number, the size of a dword (4) * the dwords in a coordinate triple (3). Perhaps it could also be 2D coordinates. The size of a block excluding the FFFFFFFF intro divided by 8 is always an even number".
-
"There are sections to the CTL files.
+
== Further Actions ==
-
All start with 32 00 00 00, which we can assume to be a file version or ID number
+
Simple Tests using the CTL file other Maps, has shown that CTL files dictate where the starting points of enemy AI units are. Although in early testing, it appears that it may dictate where off map units are placed. For example, swapping B204.CTL with B101.CTL produced:
-
The file seems to consist of a number of sections, each delimited by a FF FF FF FF value.
+
http://img156.imageshack.us/img156/3206/b204ctlex2.jpg
-
Some CTL files have the last section identified by FF FF FF nn, though, so the last byte could be a section type indicator
+
As can be seen, the Goblins have now started in the Village and the Peasants are now up on the Cliff. More tests to follow, as all information will contribute to the Map Editor and beyond. Therefore allowing new Single Player Campaigns to be created, where the enenmy, who can already be switched between Races will now be able to appear in different locations, that will catch even the most experienced Player out.
-
 
+
-
 
+
-
 
+
-
The FF FF FF FF marks the start of a new section
+
-
 
+
-
So every block, including the block start DWORD (0xFFFFFFFF) consists of coordinate values
+
-
 
+
-
because the size of the block divided by 12 is always an even number.
+
-
 
+
-
 
+
-
And why 12 you ask?
+
-
 
+
-
Well, 12 is the size of a dword (4) * the dwords in a coordinate triple (3)
+
-
 
+
-
 
+
-
Perhaps it could also be 2D coordinates. The size of a block excluding the FFFFFFFF intro divided by 8 is always an even number".
+
-
 
+
-
 
+
-
 
+
-
 
+
-
[[TESTS]]
+
-
 
+
-
Simple Tests using the CTL file other Maps,
+
-
 
+
-
has shown that CTL files dictate where the starting points of enemy AI units are.
+
-
 
+
-
Although in early testing, it appears that it may dictate where off map units are placed.
+
-
 
+
-
 
+
-
For example, swapping B204.CTL with B101.CTL produced:-
+
-
 
+
-
 
+
-
http://img156.imageshack.us/my.php?image=b204ctlex2.jpg
+
-
 
+
-
 
+
-
 
+
-
 
+
-
As can be seen, the Goblins have now started in the Village and the Peasants are now up on the Cliff.
+
-
 
+
-
 
+
-
 
+
-
 
+
-
 
+
-
More tests to follow, as all information will contribute to the Map Editor and beyond.  
+
-
 
+
-
Therefore allowing new Single Player Campaigns to be created,  
+
-
 
+
-
where the enenmy, who can already be switched between Races
+
-
 
+
-
will now be able to appear in different locations, that will catch even the most experienced  
+
-
 
+
-
Player out.  
+
-
 
+
-
:)
+

Revision as of 01:56, 21 August 2008

Structure

Every file starts with 32 00 00 00, which we can assume to be a file version or ID number. The files seem to consist of a number of sections, each delimited by a FF FF FF FF value. Some CTL files have the last section identified by FF FF FF nn, though, so the last byte could be a section type indicator. The FF FF FF FF marks the start of a new section. So every block, including the block start DWORD (0xFFFFFFFF) consists of coordinate values because the size of the block divided by 12 is always an even number, the size of a dword (4) * the dwords in a coordinate triple (3). Perhaps it could also be 2D coordinates. The size of a block excluding the FFFFFFFF intro divided by 8 is always an even number".

Further Actions

Simple Tests using the CTL file other Maps, has shown that CTL files dictate where the starting points of enemy AI units are. Although in early testing, it appears that it may dictate where off map units are placed. For example, swapping B204.CTL with B101.CTL produced:

b204ctlex2.jpg

As can be seen, the Goblins have now started in the Village and the Peasants are now up on the Cliff. More tests to follow, as all information will contribute to the Map Editor and beyond. Therefore allowing new Single Player Campaigns to be created, where the enenmy, who can already be switched between Races will now be able to appear in different locations, that will catch even the most experienced Player out.

Personal tools
communication