-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discussion: Message ID to Sign table #38
Comments
The function responsible of converting An implementation of the function would like this: int ObjectMessageIDToActualMessageID(unsigned short param_1)
{
int iVar1 = 97;
do {
unsigned short indexValue = (MSG_ID_CHAR_MAP)[iVar1 * 2];
if (param_1 < indexValue) {
unsigned short nextIndexValue = MSG_ID_CHAR_MAP[(iVar1 - 1) * 2];
if (nextIndexValue <= param_1) {
unsigned short difference = param_1 - nextIndexValue;
unsigned short correspondingValue = MSG_ID_CHAR_MAP[(iVar1 + -1) * 2 + 1] & 0xffff;
return difference + correspondingValue;
}
}
iVar1 = iVar1 + -1;
} while (0 < iVar1);
return param_1;
} The function is not looking for a match, but will rather compute it. Here is a step by step example:(1) You have the ObjectIDIn our example we will take (2) Iterate over the ObjectIDThe ObjectID column is sorted, you need to found the range where We found the lower bound to be (3) Take the differenceBetween the lower bound (4) sum the lower bound corresponding value with the differenceThe corresponding MessageID of |
Mapping table with NUMBERS formatted properly
|
Description
The Sign, does not use the Message ID to select which message to display.
There is a Mapping table for
object message ids
(parameter of the objects) toobject message ids
(the ones in the text editor).A lot of element does not have a match corresponding in the text editor. Which makes it very weird.
I was hopping to have a clear match between the Sign first parameter value and the text. But sometime I can't found the matching correspondance in the table
Some weird sign I do not understand the mapping:
Extracted and formatted table
This table is located at
0x0208eeec
, it seems to be a table ofshort
with a size of 196.The text was updated successfully, but these errors were encountered: