Shannon Posted Saturday at 11:02 AM Share Posted Saturday at 11:02 AM Многие видели в некоторых версиях клиента addon (plugin) "Ranking" - он же "Облачко над головой", но мало кому удалось его включить. Дело в том, что он стучится на определенный адрес и ждет ответ в виде XML файла. Кодировка в игре многое решает, поэтому уточню -- UTF-8. Код сборки можно найти в самом addon'е, поэтому вот сама структура нужного XML: <?xml version="1.0" encoding="UTF-8"?> <channel> <item> <item> <skintype>1</skintype> <title>Admin</title> <titleDescription>SyntaxGame Code team</titleDescription> <charId>1</charId> <category>Admin</category> <charName>WeRn</charName> </item> <item> <skintype>1</skintype> <title>Admin</title> <titleDescription>SyntaxGame Code team</titleDescription> <charId>2</charId> <category>Admin</category> <charName>Shannon</charName> </item> <item> <skintype>1</skintype> <title>Helper</title> <titleDescription>SyntaxGame Code team</titleDescription> <charId>3</charId> <category>Moderators</category> <charName>Bob</charName> </item> </item> </channel> Во вложенный тег <item> передаем нужное число игроков с их атрибутами. Сслыка для Http запроса лежит в константе "STR_BTITLE_SERVER_AND_TITLE_RSS" Пример: https://(game_site)/titles/en/1_0.xml Удачи с реализацией 😄 Впереди еще много интересного 😉 Quote Link to comment Share on other sites More sharing options...
Shannon Posted Saturday at 11:09 AM Author Share Posted Saturday at 11:09 AM Many have seen in some versions of the client addon (plugin) "Ranking" - it is also "Cloud above the head", but few people managed to enable it. The fact is that it sends a request to a specific address and waits for an answer in the form of an XML file. Encoding in the game decides a lot, so I'll clarify - UTF-8. The assembly code can be found in the addon itself, so here is the structure of the required XML: <?xml version="1.0" encoding="UTF-8"?> <channel> <item> <item> <skintype>1</skintype> <title>Admin</title> <titleDescription>SyntaxGame Code team</titleDescription> <charId>1</charId> <category>Admin</category> <charName>WeRn</charName> </item> <item> <skintype>1</skintype> <title>Admin</title> <titleDescription>SyntaxGame Code team</titleDescription> <charId>2</charId> <category>Admin</category> <charName>Shannon</charName> </item> <item> <skintype>1</skintype> <title>Helper</title> <titleDescription>SyntaxGame Code team</titleDescription> <charId>3</charId> <category>Moderators</category> <charName>Bob</charName> </item> </item> </channel> We pass the required number of players with their attributes to the nested <item> tag. The link for the Http request is in the constant "STR_BTITLE_SERVER_AND_TITLE_RSS" Example: https://(game_site)/titles/en/1_0.xml Good luck with the implementation 😄 There is still a lot of interesting things ahead 😉 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.