The following statistics on flag usage, grouped by path type, might be useful for further research:Ĭ | 6019 (15.99%) | 7669 (25.08%) | 13688 ![]() K-M 16-19 - spawn probability (0x00 to 0x0F) H 13 - Is Highway (ignored for PED-Nodes and never 11 or 00 for Cars!) The TrafficLevel uses 4 steps:Į 10 - unknown, grove house entrance paths ? The LinkCount defines the number of enties incrementing from the LinkID. Node flag bits, from low to high: 0-3 - Link Count The other bits are used to characterize node behavior, for more information see the table below. Flags The first 4 bits define the number of links to adjacent nodes. For normal NPC vehicle traffic a value of 1 is used, 2 is for boats and higher values are allocated to disconnected path area segment, e.g for race tracks and other mission applications. Flood Fill Flood IDs for route calculation for NPCs. To convert the signed word to a floating point value divide it by 8. Path Width This is used to modify the width of a path. Area ID is always the same as the number in the filename, and Node ID is used to identify the node. Area ID and Node ID Informational data, used to connect nodes via Links. The range of linked nodes is link ID ≤ x < (link ID link count), where the link count is given by the first four bits of the flags. Link ID The ID of the first node this node links to. To convert the signed words to floating point values divide them by 8. Position This is the position of the node in world coordinates. Apparently they are ignored by the game and can be set to zero. Mem Address These might have been pointers to path segment structures inside R*'s path compiler. Each node entry has a size of 28 bytes.Ħb - INT16 - Position (XYZ), see belowĢb - INT16 - heuristic cost, always 0x7FFE, used internally to calculate routesĢb - UINT16 - Area ID (same as in filename)ġb - UINT8 - Flood Fill, used in route calculations They are grouped by type: the list of vehicle nodes (cars, boats, race tracks) is followed by the ped nodes. The first section contains the node data for the paths. These entries belong together and can be treated as one record by editors. Note: Sections related to links (3/5/6) have the same number of entries. It has a size of 20 bytes.Ĥb - UINT32 - number of nodes (section 1)Ĥb - UINT32 - number of vehicle nodes (section 1a)Ĥb - UINT32 - number of ped nodes (section 1b)Ĥb - UINT32 - number of navi nodes (section 2)Ĥb - UINT32 - number of links (section 3/5/6) The header contains information about the content of the various sections in the file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |