RealTime API (RTAPI) is a library addon that gives other Nexus addons live information about Guild Wars 2. It also fixes the delayed player positions of the game's Mumble API, so addons that draw in the world stay in sync with your character.
For players
- Install it when another addon needs it, such as Commander's Toolkit.
- Addons that draw markers or indicators in the world feel smoother, because positions are no longer delayed.
- No window or settings: it runs in the background.
Data provided
- Client info
- Instance info
- Group info, including members joining, leaving and changing
- Character info
- Camera info
For developers
Get struct RealTimeData through the Nexus DataLink API with the name DL_RTAPI from the API header.
RTAPI can be unloaded at runtime, for example to update it. Treat the data as stale when GameBuild == 0, and listen to EV_ADDON_LOADED and EV_ADDON_UNLOADED with the signature RTAPI_SIG to pick it up again:
void OnAddonLoaded(int* aSignature)
{
if (!aSignature) { return; }
if (*aSignature == RTAPI_SIG)
{
G::RTAPI = (RTAPI::RealTimeData*)G::APIDefs->DataLink.Get(DL_RTAPI);
}
}
void OnAddonUnloaded(int* aSignature)
{
if (!aSignature) { return; }
if (*aSignature == RTAPI_SIG)
{
G::RTAPI = nullptr;
}
}
Group changes are sent as events to every addon loaded after RTAPI, with a GroupMember* payload:
EV_RTAPI_GROUP_MEMBER_JOINEDEV_RTAPI_GROUP_MEMBER_LEFTEV_RTAPI_GROUP_MEMBER_UPDATED
Missing something? Open an issue on the GitHub repository.
Installation
Install it with one click from the Nexus addon library in-game, or download the .dll and place it in your Guild Wars 2/addons folder.