XIV Dev Wiki
Search…
RSV
RSV is a placeholder value used for masking the actual value until the player is actually zoned in.
The packet sent from the server upon entering the instance is as follows:
1
// sent for each rsv string
2
struct RsvPkt {
3
UInt32 value_size; // len(without_nul_char(value))
4
char key_str[32]; // null terminated
5
char value_str[1024]; // null terminated
6
}
Copied!

Pseudocode

1
void OnRsvPktreceived(RsvPkt pkt) {
2
// e.g.) "_rsv_29752_-1_1_C0_0Action"
3
var key = ReadCString(pkt.key_str);
4
// e.g.) "Alternative End"
5
var val = ReadCString(pkt.value_str);
6
7
rsvMap[key] = val;
8
}
9
10
string GetActionName(int row) {
11
var val = table[row, col];
12
13
if (rsvMap.Contains(val)) {
14
var key = val;
15
return rsvMap[key];
16
} else {
17
return val;
18
}
19
}
Copied!
  • https://github.com/NotAdam/Lumina/blob/0530a97d21/src/Lumina/Excel/RSV/RsvProvider.cs
Export as PDF
Copy link
Edit on GitHub