Is the perl script the only way to add stuff to texture.bin?
Does anyone have any resource documents on what the format of the bin is, in terms of decoding it?
I understand that we can just re-use the korea texture.bin and ignore the filenames, but I don't think that'll be sufficient as we move further towards photo-real scenery.
I think we need a better tool for adding/editing texture.bin.
(I'm kinda hoping its already out there and I'm just missing it.)
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC
Postby Snake Man »
Perl is the only way yes.
I dont have the F4 source codes here anymore (I have them but will most likely find them from the net before I get my hands on my old backups, the old story). But I think any qualified C/C++ coder should deciper the perl code itself to program a following tool, at least I think so.
Hmm I think I've done ODS from scratch, or more or less scratch. It is not necessary to use korea .bin file.
Hey yes I think a such tool would be nice, altough once you install perl and use the perlapplyer util by Schumi, its no big deal. Not easy to use yes, but can do the job. However seen how succesfull the topic of getting the sptinstall recoded was, I have little or no hope of finding someone to program such util. Sad but true.
There is no such tool that I know off.
Important PMC Tactical Forum New User Registration please read new info here.
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC
Postby Snake Man »
Okay I'm saying this without refreshing my memory even at looking PathMaker not to mention its documents... but I'm pretty sure its not that easy, I recall you had to do all kinds of tricks to get the texture.bin created with it. But again, I cant remember it in detail now.
Anyways good point Malc, will have to check that out, I mean T Rex has to heh
Important PMC Tactical Forum New User Registration please read new info here.
To be fair; as I remember, creating a NEW texture.bin with Pathmaker wasn't possible (for me at least, it kept crashing) but certainly adding tiles to the existing Korea was very easy. My only prerequisite was move all the tiles, texture.bin, etc. to the same directory as pathmaker.exe but I didn't need to do this with later versions.
I must confess I never used the perl script cos I never had the need to create a whole new texture.bin, but I would think if you were to create a new texture.bin with the script just to get it started, say add one set, then add all the other new tiles with Pathmaker, this would be a good compromise.
The bin file format from the Perl script (Tested with visual Basic).
Header (1 Time only)
4 byte (Long) for Set Count
4 byte (Long) for total no of tiles
For Every Set (Use set count found above)
____4 byte (Long) for Tile Count (in the set)
____1 byte (byte) for Cover Type
For Every Tile (in set, use Tile Count found for the set)
________20 byte (20 character) for tile name
________4 byte (Long) for no of Areas (in the tile)
________4 byte (Long) for no of Paths (in the tile)
________4x4=16 bytes (4xlong) for every area (if any)
________6x4=24 bytes (6xlong) for every path (if any)
For every tile, name, area count and path count is read before area and path detail information (if any)
IMPORTANT: Tile ID for programs like Terrainview, or pathmaker, is calculated like each set has 16 tiles. For example, even the first set has 15 tiles (starting to give IDs from 0), the ID for the first tile in the second set is 16, not 15.
Or, set 157 has a starting tile ID of 2496 ((157-1) * 16), even the texture.bin has info for total of 1666 tiles.
Phoenix711 wrote: The bin file format from the Perl script (Tested with visual Basic).
Header (1 Time only)
4 byte (Long) for Set Count
4 byte (Long) for total no of tiles
For Every Set (Use set count found above)
____4 byte (Long) for Tile Count (in the set)
____1 byte (byte) for Cover Type
For Every Tile (in set, use Tile Count found for the set)
________20 byte (20 character) for tile name
________4 byte (Long) for no of Areas (in the tile)
________4 byte (Long) for no of Paths (in the tile)
________4x4=16 bytes (4xlong) for every area (if any)
________6x4=24 bytes (6xlong) for every path (if any)
For every tile, name, area count and path count is read before area and path detail information (if any)
Good stuff to have here in the forums! Thanks Phoenix 711...nice job!
Phoenix711 wrote: IMPORTANT: Tile ID for programs like Terrainview, or pathmaker, is calculated like each set has 16 tiles. For example, even the first set has 15 tiles (starting to give IDs from 0), the ID for the first tile in the second set is 16, not 15.
Or, set 157 has a starting tile ID of 2496 ((157-1) * 16), even the texture.bin has info for total of 1666 tiles.
Is the 1,666 tiles a hard limit (in other words, I am confused as to where the 1,666 tiles number came from)? Please explain more what you mean here.