feliwir / feliwir/AptConverter

Data endiannes in the conversion

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Your tool is able to convert from and apt file (its .const file) to xml and the other way around. Data in this kind of apt files in NHL07 PSP are in little endian. Data in the generated xml is in the opposite order.

For example, text color for a specific string in this game appears as R=255, G=0, B=51 and alpha=102 in the xml file. The actual values are alpha=255, R=0, G=51 and B=102. I suspect this happens with all blocks of data bigger than 8 bits in the whole file.
Here is a sample apt file from NHL07 PSP if you want to have a look.
[sample.zip](https://github.com/feliwir/AptConverter/files/14891360/sample.zip)

Could you please add an option to take into account the data endianness? Maybe the user could indicate the data endianness before conversion.

Generated apt files are not the same as the original ones. I mean, if I convert and apt file (for example, the sample file) to xml and back to apt without editing the xml, I get a bit different apt file than the original.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.