<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Display Rounds]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Not reallly support and more of a question.</p>
<p dir="auto">I was wondering how you are getting the rounds displayed on your WebAdmin SD server? Something in MoD? If I have round based SD or SR i don't see but its nice to see. <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6qhtqvv7rmh" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto"><img src="/assets/uploads/files/1666432799871-rounds.png" alt="rounds.png" class=" img-fluid img-markdown" /></p>
]]></description><link>http://localhost:4567/topic/271/display-rounds</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 14:24:39 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/271.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Oct 2022 10:01:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Display Rounds on Sun, 06 Nov 2022 15:17:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://localhost:4567/uid/120">@SMiLeY</a> Perkele I'm back.</p>
<p dir="auto">I still do not understand why a player..me in this case is not tracked score wise when I add another server. I cleared all and tested again. If I look in the database under the collection for playerstats I see me on the first server. I created another server went in and killed myself and waited for the rotation. But no score tracked!</p>
<p dir="auto">Should another entry not be made in the db under playerstats for another server? This is the same on my friends webadmin.</p>
<p dir="auto"><img src="/assets/uploads/files/1667747564989-screenshot-from-2022-11-06-17-10-14-resized.png" alt="Screenshot from 2022-11-06 17-10-14.png" class=" img-fluid img-markdown" /></p>
]]></description><link>http://localhost:4567/post/1238</link><guid isPermaLink="true">http://localhost:4567/post/1238</guid><dc:creator><![CDATA[SMiLeY]]></dc:creator><pubDate>Sun, 06 Nov 2022 15:17:32 GMT</pubDate></item><item><title><![CDATA[Reply to Display Rounds on Sun, 06 Nov 2022 10:47:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://localhost:4567/uid/1">@NeHo</a> said in <a href="/post/1236">Display Rounds</a>:</p>
<blockquote>
<p dir="auto">I hope "perkele" you will understand it now</p>
</blockquote>
<p dir="auto">:beaming_face_with_smiling_eyes: :beaming_face_with_smiling_eyes: :beaming_face_with_smiling_eyes:</p>
<p dir="auto">That made my morning haha....Yes mate..that explains it PERFECTLY <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6qhtqvv7rmh" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
<p dir="auto">Thanks as always. I really love the app and don't want to use anything else. But i think you know that <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6qhtqvv7rmh" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
<p dir="auto">I am a pain at times I know mate. Sorry. <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6qhtqvv7rmh" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /> :love-you_gesture:</p>
]]></description><link>http://localhost:4567/post/1237</link><guid isPermaLink="true">http://localhost:4567/post/1237</guid><dc:creator><![CDATA[SMiLeY]]></dc:creator><pubDate>Sun, 06 Nov 2022 10:47:05 GMT</pubDate></item><item><title><![CDATA[Reply to Display Rounds on Sun, 06 Nov 2022 01:13:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://localhost:4567/uid/120">@SMiLeY</a> it happens because your URL changes, every time when the round changes your URL also changes</p>
<p dir="auto">There is a line to solve this issue, the rounds part must start with " - Round"<br />
<a href="https://github.com/byNeHo/CoD4x-WebAdmin/blob/master/app/controllers/cod4x_plugins/index.js#L615" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/byNeHo/CoD4x-WebAdmin/blob/master/app/controllers/cod4x_plugins/index.js#L615</a></p>
<p dir="auto">Right now only " - Round" part will work, since I already uploaded, changed and I still didn't finish everything for the next version you will have to use for now separator "-", later on in the new update I can also add a new rule with " | Round" if you want it that way</p>
<p dir="auto">Look at my application, the name is "Cirkus S&amp;D HC High XP - Round: 5/19"</p>
<ul>
<li>so I have my normal server name, plus  the rounds part ( - Round )<br />
<a href="https://www.cirkus-serveri.com/cirkus-s-and-d-hc-high-xp" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.cirkus-serveri.com/cirkus-s-and-d-hc-high-xp</a></li>
</ul>
<ul>
<li>if you use anything else then "- Round" the link on the web will always change because your server name also changes, from my link example</li>
</ul>
<p dir="auto">with (- Round)</p>
<pre><code>https://www.cirkus-serveri.com/cirkus-s-and-d-hc-high-xp
</code></pre>
<p dir="auto">with anything else, lets say (Round, without - in front)</p>
<pre><code>https://www.cirkus-serveri.com/cirkus-s-and-d-hc-high-xp-round-5-9
</code></pre>
<p dir="auto">On game server side in the above hostname.gsx</p>
<p dir="auto">separator</p>
<pre><code>level.hostnameSeperator = "-"; //Change this to whatever character you like. This can not be more then 1 character.
</code></pre>
<p dir="auto">after separator "Round"</p>
<pre><code>setHostName( getOriginalHostname() + " " + level.hostnameSeperator + " Round: " + currentRound + "/" + maxRounds );
</code></pre>
<p dir="auto">Also remember that every server needs unique name</p>
<p dir="auto">If your server is named</p>
<pre><code>My Awesome Server
</code></pre>
<p dir="auto">your alias for that specific server would be</p>
<pre><code>my-awesome-server
</code></pre>
<p dir="auto">Every score and every screenshot is related to "my-awesome-server"</p>
<p dir="auto">So if your server name changes to</p>
<pre><code>My Awesome Server Round 5/19
</code></pre>
<p dir="auto">your alias is</p>
<pre><code>my-awesome-server-round-5-19
</code></pre>
<p dir="auto">so from now on you will only see screenshots and player scores for my-awesome-server-round-5-19</p>
<p dir="auto">For your specific situation, your separator is " | " instead of " - ", so if you go to your server details page your alias (link) is "fmjcod4-or-modernops-or-round-5-11", when it changes to next round it will be "fmjcod4-or-modernops-or-round-6-11", so its a different web address (alias) and a different game server with different name (different server has no screenshots and players are new players on new server)</p>
<p dir="auto">You get the 404 error because the server "fmjcod4-or-modernops-or-round-5-11" doesn't exist more once there is a new round</p>
<p dir="auto">I hope "perkele" you will understand it now <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6qhtqvv7rmh" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>http://localhost:4567/post/1236</link><guid isPermaLink="true">http://localhost:4567/post/1236</guid><dc:creator><![CDATA[NeHo]]></dc:creator><pubDate>Sun, 06 Nov 2022 01:13:35 GMT</pubDate></item><item><title><![CDATA[Reply to Display Rounds on Sat, 05 Nov 2022 23:01:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://localhost:4567/uid/1">@NeHo</a></p>
<p dir="auto">As I said previously in another topic. When the server name updates its name say from Round 6/11 to Round 7/11 All the player stats are lost and screenshots are gone.</p>
<p dir="auto">I have no idea why it does that.</p>
<p dir="auto">It is as if you have changed the MoD for example. If you are waiting and then go back to webadmin <img src="/assets/uploads/files/1667688694304-2022-11-06-00_51_03-404-error.png" alt="2022-11-06 00_51_03-404 Error.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">So it is like the server is not there anymore because the name has changed. I really would like to know why and sort this problem out. I cannot have more than one server if i want to have scores for the same player. Really need some help because I just have no idea <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=6qhtqvv7rmh" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
]]></description><link>http://localhost:4567/post/1235</link><guid isPermaLink="true">http://localhost:4567/post/1235</guid><dc:creator><![CDATA[SMiLeY]]></dc:creator><pubDate>Sat, 05 Nov 2022 23:01:06 GMT</pubDate></item><item><title><![CDATA[Reply to Display Rounds on Sat, 05 Nov 2022 21:15:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://localhost:4567/uid/1">@NeHo</a> Thank you.</p>
<p dir="auto">I just came on to say that I have it running ok.</p>
<p dir="auto">JEENNN also posted the same answer on CoD4X forum.</p>
<p dir="auto">In globallogic.gsx under callback_startgametype() I added  thread maps\mp\gametypes_hostname::init(); and put hostname.gsc in that path.</p>
<p dir="auto">Thanks for the reply. <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6qhtqvv7rmh" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>http://localhost:4567/post/1234</link><guid isPermaLink="true">http://localhost:4567/post/1234</guid><dc:creator><![CDATA[SMiLeY]]></dc:creator><pubDate>Sat, 05 Nov 2022 21:15:36 GMT</pubDate></item><item><title><![CDATA[Reply to Display Rounds on Sat, 05 Nov 2022 19:46:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://localhost:4567/uid/120">@SMiLeY</a> I have a hostname.gsx file</p>
<pre><code>init(){
        level.hostnameSeperator = "-"; //Change this to whatever character you like. This can not be more then 1 character.
 
        if( level.hostnameSeperator.size &gt; 1 )
                return;

        if( level.gametype  == "sd" )
                addRoundsToHostname( game["roundsplayed"], 19 );
        else
                setHostName( getOriginalHostname() );
}
 
addRoundsToHostname( currentRound, maxRounds ){
        setHostName( getOriginalHostname() + " " + level.hostnameSeperator + " Round: " + currentRound + "/" + maxRounds );
}
 
setHostName( newHostName ){
        SetDvar("sv_hostname", newHostName);
}
 
getOriginalHostname(){
        hostname = GetDvar("sv_hostname");
        if(IsSubStr(hostname, level.hostnameSeperator + " Round:" ))
                return trimRight( trimAllRightThroughSeperator( hostname, level.hostnameSeperator ));
        return hostname;
}
 
trimAllRightThroughSeperator( string, seperator ){
        i = string.size;
        for(; i &amp;&amp; string[i-1] != seperator; i--){}
        return getSubStr( string, 0, i-1 );
}
 
trimRight( string )
{
        i = string.size;
        for(; i &amp;&amp; string[i-1] == " "; i-- ){}
        return getSubStr( string, 0, i );
}
</code></pre>
<p dir="auto">And in my init gsx I call it here</p>
<pre><code>startGameType()
{
       thread neho\hostname::init();
}
</code></pre>
]]></description><link>http://localhost:4567/post/1233</link><guid isPermaLink="true">http://localhost:4567/post/1233</guid><dc:creator><![CDATA[NeHo]]></dc:creator><pubDate>Sat, 05 Nov 2022 19:46:26 GMT</pubDate></item></channel></rss>