I'm actually playing with manialink and maniascript to build a VioK's servers infos page and I found something really strange :
with this code :
Code: Select all
foreach (Event in PendingEvents) {
if (Event.Type == CMlEvent::Type::MouseClick) {
foreach (ServerId in G_ServersNames) {
if (Event.Control.DataAttributeGet("servername") == ServerId) {
log(ServerId);
declare ServerLink = "maniaplanet://#join="^ServerId^"@"^C_InfosServers[ServerId][1];
log (ServerLink);
OpenLink(ServerLink, CMlScript::LinkType::Goto);
}
}
}
}
the 2 logs with my code are :
ServerId : ValleyVioK
ServerLink : maniaplanet://#join=ValleyVioK@TMValley
But then the game brings me to the server "Refuel VioK" which login is MicromachineValleyVioK and played on the title pack Trackmania_2@nadeolabs
If I write maniaplanet://#join=ValleyVioK@TMValley in the game browser, i'm redirected to the wrong server too !
thanks for help =)