User     Pass    
Remember me    Forgot login details?
Forum index » General boards » Our web » Server feature
Goto page: 1, 2 next >
Users reading this thread:
Reply
General

Clan Member
Joined Feb 14 2009
Posts: 803

Send pmProfile
QuoteReport
Server feature
2009-07-28, 00:18
I've added a server status page where you can see the live server info on our website.

You can find it on the first page menu or by clicking here.

You can also check out any other server by filling the form with the correct ip and port.

The player scoreboard is refreshed every 10 seconds, while the map/gametype doesn't (for the moment).

However, I can't seem to be able to retrieve the live team score from the server, so that doesn't show. I will look into it.
Last edited by Eric, 2009-07-28, 00:50.

General

Clan Member
Joined Feb 14 2009
Posts: 803

Send pmProfile
QuoteReport
2009-07-28, 00:30
Update: The page now also automatically updates number of players, map and gametype.
Clan leader

Clan Member
Joined Apr 29 2009
Posts: 1937

Send pmProfile
QuoteReport
2009-07-28, 00:57
eric i will make u clan admin then when you log onto edom click "clan feed" on the right hand side. u can also enter live round results etc etc it may help

the link should now work if your logged into edom

http://www.eurodomination.net/codegen.php
Last edited by FRUElimLDR, 2009-07-28, 00:58.






Clan leader

Clan Member
Joined Apr 29 2009
Posts: 1937

Send pmProfile
QuoteReport
2009-07-28, 00:59
example to Display live match in progress stats

<?php
/* Configuration Information */
/* Clan Identification */
$clanID='52';
$clanKey='cfba5e73';

/* Number of results to request */
$noresults ='5';

/* Styles (CSS) */
?>
<!-- Insert CSS here if required --!>

<?php
/*******************************/
/*******************************/
/* DO NOT EDIT BELOW THIS LINE */
/*******************************/
/*******************************/
$edomurl='http://www.eurodomination.net/';
$source = $edomurl . 'external/clanfeed/liveserver.php?clanID=' . $clanID . '&key=' . $clanKey ;
$xmldata = simplexml_load_file($source);
?>                                          
               
<div class="edom_box-header-small" align="center">
   <h2>Matches in Progress</h2>
</div>
   
<table class="edom_result" border="0" cellpadding="2" cellspacing="1">   
   <tr class="edom_row1">
      <th></th>   
      <th>Fixture</th>         
      <th>Team 1</th>
      <th>Team 2</th>
   </tr>            
                  
   <?php
   $altColors = 0;
      
   $data = '';
      
   foreach ($xmldata->match as $result) {
      $rowColor = "row2";
            
      $alliesPlayers = split(' ', $result->allies_players);
      $axisPlayers = split(' ', $result->axis_players);
                  
      $data.="<tr class=edom_" . $rowColor . ">";
      $data.='<td><img src="' . $edomurl . 'images/maps/' . $result->gameAbbrev . '/' . $result->mpName . '.jpg" alt="' . utf8_decode($result->mapName) . '" /></td>';
      $data.='<td><img src="images/games/' . $result->gameID . '.gif" alt="' . $result->gameName . '" title="' . $result->gameName . '" /> <img src="' . $edomurl . 'images/competitions/' . $result->competitionicon .'" alt="' . $result->competition . '" title="' . $result->competition . '" /> <a href="' . $edomurl . 'fixture.php?fixtureID=' . $result->fixtureID . '" target="blank">' . $result->clan1 . ' v ' . $result->clan2 . '</a>
      <br />' . $result->time . '<br /><br />' . $result->city . ' ' . $result->country . '<br /><a href="' . $edomurl . 'battles_warsofar.php?division=' . $result->divisionID . '" target="blank">' . $result->division . '</a><br />' . $result->gametype . '</td>';
      $data.='<td><strong>' . $result->allies_score . '</strong><br /><br />';
      foreach ($alliesPlayers as $player) { if ($player != '') $data.= htmlentities($player) . '<br />'; }
      $data.='</td>';
      $data.='<td><strong>' . $result->axis_score . '</strong><br /><br />';
      foreach ($axisPlayers as $player) { if ($player != '') $data.= htmlentities($player) . '<br />'; }
      $data.='</td>';               
      $data.='</tr>';
   }
   
   foreach ($xmldata->message as $error) {
      $data .= '<tr><td colspan="4">' . $error . '</td></tr>';
   }
   
   $data.='</table>';
   
   echo $data;
?>
Last edited by Eric, 2009-07-28, 10:36.






General

Clan Member
Joined Feb 14 2009
Posts: 803

Send pmProfile
QuoteReport
2009-07-28, 09:53
That's fine. But it would be smoother and more effective if I could get my own code to work. Because if so, we could monitor any server we want, whenever we want, not only when we have matches.
Clan leader

Clan Member
Joined Apr 29 2009
Posts: 1937

Send pmProfile
QuoteReport
2009-07-28, 15:06
eric go to that link it gives our server scores for that match and also includes the oposing team etc i made u admin at edom so u can see it for yaself m8

http://www.eurodomination.net/codegen.php
Last edited by FRUElimLDR, 2009-07-28, 15:06.






General

Clan Member
Joined Feb 14 2009
Posts: 803

Send pmProfile
QuoteReport
2009-07-28, 19:09
Yeah, I know.
I won't try to explain to you what I'm trying to do, but basically, it will be a lot better than that.
Clan leader

Clan Member
Joined Apr 29 2009
Posts: 1937

Send pmProfile
QuoteReport
2009-07-28, 20:29
okay kewl





Private

Joined Jul 24 2010
Posts: 6

Send pmProfile
QuoteReport
2010-07-27, 12:10
Hello Eric,
sorry for the personal saying but i thimk you are the "brainman" here ^^.
Its about teh Server feature: I installed your webkit, and then was on your side. Until today i dont know why but suddenly i was able to download the serverfeature, never find that again on your page.
So like in other forum you said you arent abel top get live server info, i eman doesn´t shows all players. I try oiut a lot in the past time and have seen something full worked like that. But used was the class "B2CONN".
Basic its an PHP admintool but you can cut off the Serverview from the session and have then a seperatesite.
As i found out DICE have again changed some booleans inti strings and some some strings into boolean...perhaps they dont know what to do with their time. And could it be better use then "login.plaintext" then "login.hashed". Hope you will not get angry because of my post, i love your webkit and will get crazy when this feature works right :-)
General

Clan Member
Joined Feb 14 2009
Posts: 803

Send pmProfile
QuoteReport
2010-07-27, 12:24
This thread is over a year old.

I have looked at B2CONN, but I personally don't like it. It's inefficient and the code is sloppy.

The server packet works properly now and should have no problems what so ever.
I will update it soon with some new features (waiting for a new patch from DICE so I don't have to update it twice).
Goto page: 1, 2 next >
Clan [FRU] sponsored by:
gamehosting.co.uk
Reply
Message

Copyright © 2009-2010 Clan FRU - Fallen Rebels Unite - All rights reserved.