Demented wrote: ↑18 Nov 2018, 17:08I've noticed ManiaExchange shows a list of embedded map items. How hard would it be to add a feature like to GbxDump?
The tool only displays information located in the file header. However, the information about the embedded objects is located in the body of the file.
It was never planned to display content from the body of Gbx files. The main reason for this was the formerly proprietary license of GbxDump. It was not compatible with the LZO library, which is necessary to decompress the file body. In addition, complete information about the structure of the complex MediaTracker block, which is required for proper data parsing, is still missing. Furthermore, the file body may contain information that is not intended for the public.
Moreover,
MapEdit by TGYoshi was already a tool that specialized in reading and modifying data in the file body.
Therefore I've developed some independent mini tools for some data blocks. Below is a selection of these programs:
- GbxDecompress - a Windows tool that decompresses or compresses the file body of a given .Gbx file
- EmbeddedItems - a Windows tool that indicates all embedded items of a given .Map.Gbx file
- GbxLightMap - a Windows tool to extract the lightmaps from a given .Map.Gbx file
- GbxMetadata - a Windows tool that indicates the persistent attributes of a given .Map.Gbx file (Maps saved with Maniaplanet 4.1 are currently not supported)
The tools use a quick and dirty pattern search to find the data blocks in the file body. Some virus scanners therefore report these programs as dangerous.
Another problem is that Nadeo is permanently making changes to these blocks. Fortunately, the block with the objects has not changed for a long time. But there were constantly changes in the saving of the lightmaps. There were also changes in the meta data again and again (most recently with Maniaplanet 4.1).
The best thing for everyone would be if Nadeo additionally includes the information about the embedded objects in the file header (similar to the locators).
