Ranking

  • Автор темы Автор темы Shannon
  • Дата начала Дата начала

Shannon

Moderator
[Зам.Боженьки]
Командный игрок
Многие видели в некоторых версиях клиента 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"

Пример: 
Please, Вход or Регистрация to view URLs content!


Удачи с реализацией 😄 Впереди еще много интересного 😉

 
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 😉

 
Back when I dumped the files, I did not know that the client needs a special plugin to display these titles. I also have never seen the Ranking plugin in western clients, so that explains why it didn't work.

 
Hello,

I trying to implement it into the 4.9 EU/NA version. I can display it into the Speech bubble title overlay but it does not appear above player names. Does it require extra code in the emulator to actually display it?

Посмотреть вложение 258

This is my XML code:
 

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Aion Ranking</title>
<link>https://25.45.183.234/titles/en/</link>
<description>Aion ranking RSS Feed</description>
<pubDate>Wed, 27 Sep 2017 10:00:03 +0900</pubDate>
<lastBuildDate>Wed, 27 Sep 2017 10:00:03 +0900</lastBuildDate>
<item>
<title>Deathbringer</title>
<title_desc>Best PVP player</title_desc>
<actorid>307972</actorid>
<category>PvP</category>
<description>Red</description>
<pubDate>Wed, 27 Sep 2017 04:17:03 +0900</pubDate>
</item>
<item>
<title>Deathbringer</title>
<title_desc>Best PVP player</title_desc>
<actorid>3039779</actorid>
<category>PvP</category>
<description>Green</description>
<pubDate>Wed, 27 Sep 2017 04:17:03 +0900</pubDate>
</item>
</channel>
</rss>


Thanks in advance.

 
Thank you for your fast answer.

Here is the plugin folder of my 4.9 client. I already looked in to the lua file from the ranking plugin but couldnt really figure out of it requires extra handling in backend.

Please, Вход or Регистрация to view URLs content!


 
Hello sorry for late response yes ID in xml is matching with character id from database. But i get the feeling this only updates the ranking list from the widget. Feel like there is some extra code required server/client sided. Have looked around in packets in client side but have not found anything yet.

Got some info and xml format from this forum: 
Please, Вход or Регистрация to view URLs content!
 Someone found a solution but didnt share it sadly.

 
Последнее редактирование модератором:
IaxkO02.png


 
Возможно ли отображение такого титула на версии ниже? допустим для версии 2.7

 
Последнее редактирование модератором:
Назад
Верх