eq2ui_settings.ini
Goaldan's post got me poking around in this file. My Internet has been off for a week and won't be back on for another 3 so I'm stuck with dial up and can't seem to log in to make more test because of a long update.
Here is a quick note on Goaldan's find.
Offsets 0000-0005: Unknown
Offsets 0006-0009: Total number of custom channels
If there are any chat channels
Offset 000A: The custom channel information starts.
Bytes 0-3: Channel Number. Bytes must be read in reverse order to get the correct decimal value.
Bytes 4-5: Length of the channel name. As before, bytes must be read in reverse order to get the correct decimal value.
Bytes 6+: Name of the channel.
I've managed to extract more information.
After the last byte of chat channel data or at Offset A in the case of no chat channel is a unknown byte. After that byte is where the window data starts.
The way the file stores the window is by module. (inventory, mainhud ect.) Then the windows that has been accessed that are in that module. If a window has never been accessed then its settings will not show up in the settings.ini file.
Ref:
B# = Byte (8 bits) followed by a note number
W# = Word (16 bits) followed by a note number
The byte structure layout of the ui setting data is as follows:
W1,W2,<model name bytes>,W3,W4,<window name bits>,B5,W6,B7...
Data Notes:
1. Number of modules stored in the settings file.
2. Length of the model name
3. Number of window stored in the model
4. Length of the window name
5. Unknown (buffer byte I guess /shrug) This Byte is always 01
6. Window data Byte count
7. This is the start of the window data. From this point on when I refer to the start of the window data this is the point I mean and I will give it the name Window Data Offset: 0;
After that it, starts over with W4 until you reach the total number of windows that is in W3. After the last Window data Byte it starts over with W2.
There are also 15 Bytes at the end of the file that I am unsure of their use ATM.
Window data offset, these are counting from Window Data Offset 0:
PackLocation: Offset 4, Size Byte
Horizontal Position: Offset 5-9, Size DWord
Vertical Position: Offset 9-12, Size Dword
Width: Offset 13-14, Size Word
Height: Offset 17-18, Size Word
Visible: Offset 21, Size Byte
Last edited by Landiin : 07-05-2007 at 08:31 PM.
|