Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[TF2] TrueSkill Ranking System


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 494
  • Lokalizacja:AMXX.PL
Offline

Napisano 09.10.2014 20:58

<!-- BEGIN TEMPLATE: postbit_external -->
<div>My first sourcemod plugin.<br /><br /><font size="5"><b>TrueSkill Ranking System</b></font><br /><br />An adaptation of <a href="http://research.micr...ects/trueskill/" target="_blank">Microsoft's TrueSkill</a> ranking system for Team Fortress 2.<br /><br /><a href="https://github.com/yusuf-a/tf2Skill/blob/master/README.md" target="_blank">Note: A highly detailed version of this thread can be found here</a><br /><br /><font size="5"><b>Dependencies/Requirements</b></font><br /><ul><li><a href="https://forums.alliedmods.net/showthread.php?t=67640" target="_blank">SourceSockets Extension</a></li>
<li><a href="https://forums.allie...ad.php?t=169095" target="_blank">Update (Optional)</a></li>
<li>MySQL database</li>
<li>Python &gt;= 2.7<ol style="list-style-type: decimal"><li><a href="http://trueskill.org/" target="_blank">TrueSkill</a> module</li>
<li><a href="https://pypi.python.org/pypi/PyMySQL" target="_blank">PyMySQL</a> module</li>
</ol></li>
</ul><br /><font size="5"><b>Features</b></font><ul><li><b>Non-Point Based:</b> Functions as an Elo derived ranking system</li>
<li><b>Threaded:</b> Support for simultaneous servers all using the same daemon</li>
<li><b>AutoUpdates:</b> Using the updater plugin, you will always have the most up-to-date version of the plugin</li>
</ul><br /><font size="5"><b>CVar/Command List</b></font><br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">sm_trueskill_version // public CVar shows the plugin version<br />sm_trueskill_minClients 16&nbsp; &nbsp; //minimum number of clients required to track ranking<br />sm_trueskill_server &quot;dev.yusufali.ca&quot; //ip or hostname of server running python script<br />sm_trueskill_port 5000 //socket port to interact with the python daemon<br />sm_trueskill_global 50 //minimum rank to display globally to the server, 0 for off<br />sm_rank //displays user rank</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><font size="5"><b>Installation</b></font><br />Download addionalFiles.zip: contains the sql script, and python scripts required to run the daemon<br /><br />Download the trueskill.smx (<b>not the get plugin</b>) and save to the plugins directory into your sourcemod folder. Edit the <b>default </b>entry in <i><u>addons/sourcemod/configs/databases.cfg</u></i><br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &quot;default&quot;<br />&nbsp; {<br />&nbsp; &nbsp; &nbsp; &quot;driver&quot; &quot;mysql&quot;<br />&nbsp; &nbsp; &nbsp; &quot;host&quot;&nbsp; &quot;&lt;mysql host&gt;&quot;<br />&nbsp; &nbsp; &nbsp; &quot;database&quot;&nbsp; &quot;&lt;mysql database&gt;&quot;<br />&nbsp; &nbsp; &nbsp; &quot;user&quot;&nbsp; &quot;&lt;mysql username&gt;&quot;<br />&nbsp; &nbsp; &nbsp; &quot;pass&quot;&nbsp; &nbsp; &quot;&lt;mysql password&gt;&quot;<br />&nbsp; }</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><b>Daemon:</b> Similarly, on the server running the python daemon, edit <u><i>config.file.sample</i></u> and then rename it to <u><i>config.file</i></u><br /><br /><b>Database:</b> import <u><i>trueSkill.sql</i></u> into your MySQL database<br /><br /><font size="5"><b>Running the Daemon</b></font><br />Simply run the <u><i>trueSkill.py</i></u> script. It will launch a daemon that will listen for socket communications<br /><br />Rarely, the daemon may shutdown on its own. A non-daemonized script has also been provided to run to calculate rankings for events that were not accounted for.<br /><br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">python trueSkill_noDaemon.py</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->To see more information about running the daemon, see the more detailed version of this document linked above<br /><br /><font size="5"><b>Website Interface</b></font><br />Example Website Interface: <a href="http://playtf2.com/stats/" target="_blank">PlayTF2</a><br /><br />There are no official website interfaces that I have designed for this ranking system (because it is a trivial task). Later in the future I plan to design an official website interface for this plugin.<br /><br />However, because I understand that most people want their own website interface, the code from <a href="http://playtf2.com/stats/" target="_blank">PlayTF2 website</a> should be used as a reference. See this <a href="https://github.com/yusuf-a/hlstatsx" target="_blank">repository</a> for examples.<br /><br />Feel free to use it as a reference or just rip the website and use it as your own<br /><br /><font size="5"><b>Additional Information</b></font><ul><li><a href="https://github.com/yusuf-a/tf2Skill/commits/master" target="_blank">Changelog</a></li>
<li><a href="https://github.com/y...2Skill/releases" target="_blank">Previous Releases</a></li>
<li>SourceCode: <a href="https://github.com/yusuf-a/tf2Skill" target="_blank">Github </a>or <a href="http://yusufali.ca/repos/tf2Skill.git/" target="_blank">My Website</a></li>
<li><a href="https://github.com/y...f2Skill/network" target="_blank">Development Progress</a></li>
</ul><br /><font size="5"><b>Additional Information</b></font><br />All issues/bugs please <a href="https://github.com/y...tf2Skill/issues" target="_blank">report here</a><br /><br /><font size="5"><b>Sample Size</b></font><br />Due to the nature of the ranking system, it will be more accurate with a larger population size.<br />For people who are interested in joining my population, <a href="http://steamcommunity.com/id/yusufali/" target="_blank">PM me on steam</a><br /><br />Benefits:<br />- No need to run the daemon/mysql stuff (you will be using mine)<br />- Potentially a large population size (more accurate results)</div>


<br /> <div style="padding:6px">








<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie...s/attach/sp.gif" alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...?file_id=138648"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1412884654">Get Source</a> (trueskill.sp - 11.4 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/smx.gif" alt="File Type: smx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...38;d=1412884654">trueskill.smx</a> (15.6 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...38;d=1412884654">addionalFiles.zip</a> (7.4 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>


</div>

<!-- END TEMPLATE: postbit_external -->

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych