m (clean up, replaced: {{SA-navi}} → {{gtasa}}, removed: {{File-stub}}) |
No edit summary |
||
Line 1: | Line 1: | ||
− | '''Binary [[ |
+ | '''Binary [[Item Placement|item placement]]''' files are only present in [[San Andreas]] and can be only opened or edited using a special editor. Binary item placement files are also present in [[GTA IV]], where they are called [[WPL]] files and have another format. |
== File Format == |
== File Format == |
||
Line 67: | Line 67: | ||
{{gtasa}} |
{{gtasa}} |
||
− | + | {{fdl}} |
|
+ | [[Category:Map Formats]] |
Revision as of 21:47, 17 March 2010
Binary item placement files are only present in San Andreas and can be only opened or edited using a special editor. Binary item placement files are also present in GTA IV, where they are called WPL files and have another format.
File Format
Each binary item placement file starts with a 4 byte identifier, followed by a short header which contains the number of instances in a block. All in all a binary ipl file has the same format as an uncompiled one, just with the difference that the information is stored binary instead as plain text.
4b - CHAR[4] - always 'bnry' 4b - INT32 - number of item instances 4b - INT32 - number of unknown 1 4b - INT32 - number of unknown 2 4b - INT32 - number of unknown 3 4b - INT32 - number of parked cars 4b - INT32 - number of unknown 4 4b - INT32 - offset of item instances (should be 76) 4b - INT32 - unused size (always 0) 4b - INT32 - offset of unknown 1 4b - INT32 - unused size (always 0) 4b - INT32 - offset of unknown 2 4b - INT32 - unused size (always 0) 4b - INT32 - offset of unknown 3 4b - INT32 - unused size (always 0) 4b - INT32 - offset of parked cars 4b - INT32 - unused size (always 0) 4b - INT32 - offset of unknown 4 4b - INT32 - unused size (always 0)
However, only the INST and CARS sections are used in binary IPL's, so the rest of the format is unknown.
The header is followed by the arrays of the objects. INST arrays have a size of 40 bytes per structure, and cars have 48 bytes.
INST Structure
4b - FLOAT - PosX 4b - FLOAT - PosY 4b - FLOAT - PosZ 4b - FLOAT - RotX 4b - FLOAT - RotY 4b - FLOAT - RotZ 4b - FLOAT - RotW 4b - INT32 - Object ID 4b - INT32 - (always 0) could be interior flag ? 4b - UINT32 - Flags
Rotation information as Quarternion
CARS Structure
4b - FLOAT - PosX 4b - FLOAT - PosY 4b - FLOAT - PosZ 4b - FLOAT - Angle (Around Z-Axis) 4b - INT32 - Object ID (See Vehicle ID List) 28b - INT32[7] - Unknown flags (See IPL file specification)
Tools
- – by User:Gforce
- Binary (De-)Compiler – by User:ocram88
- MEd – supports binary IPL mapping, but no explicit creation
See also
External links
Grand Theft Auto: San Andreas | |
---|---|
Locations | State of San Andreas (Los Santos | San Fierro | Las Venturas | Red County | Flint County | Whetstone | Tierra Robada | Bone County) |
Characters | Carl "CJ" Johnson | Sean "Sweet" Johnson | Kendl Johnson | Melvin "Big Smoke" Harris | Lance "Ryder" Wilson | Cesar Vialpando | Frank Tenpenny | Wu Zi Mu | Mike Toreno | Ken Rosenberg |
Content | Missions | Vehicles | Weapons | Assets | Characters | Clothing | Tattoo Parlors | Radio Stations | Gang Warfare |
Information | 100% Completion | Achievements/Trophies | Weapon Stats | Player's Stats | Cheats | Trailers | Artworks |
This page is licensed under the GNU Free Documentation Licence. This page has a separate license to the CC-BY-SA that applies to most of GTA Wiki.
The full text of the GNU FDL v1.2 is here. Click the "History" button to see the full list of authors. See GTA Wiki:Copyright for more detail on our copyright policy.