It is currently May 17th, 2024, 3:23 am

Splatterladder Serverinfo

Get help with creating, editing & fixing problems with skins
User avatar
bird
Posts: 1
Joined: October 16th, 2010, 1:27 pm

Splatterladder Serverinfo

Post by bird »

Hi guys ,

I would like your help to build i skin which displays server infomation from http://et.splatterladder.com

Of course, this would be simple enough with an rss feed, but unfortunately, i can't seem to find one that will support the infomation i am after.

I am aware of the game-monitor.com skin, but that site does not support some servers which splatterladder.com does.

My propersition is to have a simple display of players online, server name and general info like that.

Here is an image i made to give you an idea of what infomation would be needed (in my example i used THIS server) ;

Image

Any help and i will be extremely grateful.

Thanks,
bird ;)
Last edited by bird on October 17th, 2010, 5:20 am, edited 1 time in total.
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Splatterladder Serverinfo

Post by Chewtoy »

If you plan on getting that to work, you got some big RagExp statements to write.
The part I guess you would be interested in is this:

Code: Select all

<tr>
        <td class='cell-first'>IP:</td>
        <td class='cell'><a href="et://115.69.31.45:27960/82">115.69.31.45:27960</a></td>
    </tr>
    <tr>

        <td class='cell-first'>Name:</td>
        <td class='cell'><span style="color:#FFFFFF"><span style="color:#00FF00">-<span style="color:#FFFF00">O<span style="color:#00FF00">Z<span style="color:#FFFF00">-<span style="color:#7F7F7F">ETPUB&nbsp;<span style="color:#3399CC">*xpsave*&nbsp;<span style="color:#FF0000">#1</span></span></span></span></span></span></span></span></td>
    </tr>
    <tr>
        <td class='cell-first'>Game</td>

        <td class='cell'>RtCW: Enemy Territory</td>
    </tr>
    <tr>
        <td class='cell-first'>Protocol:</td>
        <td class='cell'>82 (ET 2.55)</td>
    </tr>
    <tr>

        <td class='cell-first'>Mod:</td>
        <td class='cell'>etpub 0.9.0</td>
    </tr>
    <tr>
        <td class='cell-first'>Gametype:</td>
        <td class='cell'><img style="vertical-align:middle" src="http://themes.splatterladder.com/sl.Default/gfx/ic-gtype-mv-16.png"> Map-Voting</td>

    </tr>
    <tr>
        <td class='cell-first'>Player</td>
        <td class='cell'>10 / 32<small>+1</small> <img src="/gfx/slot_used.gif" title="used slot"><img src="/gfx/slot_used.gif" title="used slot"><img src="/gfx/slot_used.gif" title="used slot"><img src="/gfx/slot_used.gif" title="used slot"><img src="/gfx/slot_used.gif" title="used slot"><img src="/gfx/slot_used.gif" title="used slot"><img src="/gfx/slot_used.gif" title="used slot"><img src="/gfx/slot_used.gif" title="used slot"><img src="/gfx/slot_free.gif" title="free slot"><img src="/gfx/slot_free.gif" title="free slot"><img src="/gfx/slot_free.gif" title="free slot"><img src="/gfx/slot_free.gif" title="free slot"><img src="/gfx/slot_free.gif" title="free slot"><img src="/gfx/slot_free.gif" title="free slot"><img src="/gfx/slot_free.gif" title="free slot"><img src="/gfx/slot_free.gif" title="free slot"><img src="/gfx/slot_free.gif" title="free slot"><img src="/gfx/slot_free.gif" title="free slot"><img src="/gfx/slot_free.gif" title="free slot"><img src="/gfx/slot_free.gif" title="free slot"><img src="/gfx/slot_free.gif" title="free slot"><img src="/gfx/slot_free.gif" title="free slot"><img src="/gfx/slot_free.gif" title="free slot"><img src="/gfx/slot_free.gif" title="free slot"></td>
    </tr>
    <tr>
        <td class='cell-first' style="vertical-align:top">Settings:</td>

        <td class='cell'>    <table class='table' cellpadding=0 cellspacing=3>
    <tr>
</td>
        <td><IMG CLASS="svproperty" SRC="/gfx/sv_al.gif">&nbsp;</td>
        <td style="color:#080">Dial Up Modem Players allowed (Antilag)</td>
    </tr>
    <tr>
        <td><IMG CLASS="svproperty" SRC="/gfx/sv_hw.gif">&nbsp;</td>

        <td style="color:#080">Limited Heavy Weapons</td>
    </tr>
    <tr>
        <td><IMG CLASS="svproperty" SRC="/gfx/sv_bt.gif">&nbsp;</td>
        <td style="color:#080">Balanced Teams enforced</td>
    </tr>
    <tr>
        <td><IMG CLASS="svproperty" SRC="/gfx/sv_ff.gif">&nbsp;</td>

        <td style="color:#080">Friendly Fire activated</td>
    </tr>
    <tr>
        <td><IMG CLASS="svproperty" SRC="/gfx/sv_pb_off.gif">&nbsp;</td>
        <td style="color:#800">PunkBuster unprotected</td>
    </tr>
    <tr>
        <td><IMG CLASS="svproperty" SRC="/gfx/sv_bot.gif">&nbsp;</td>

        <td>Bots are running</td>
    </tr>
    </table>
</td>
    </tr>
    <tr>
        <td class='cell-first'>System:</td>
        <td class='cell'><img src="http://themes.splatterladder.com/sl.Default/gfx/ic-os-windows-16.png" title="(os.windows)" style="float:left;padding:0 5px 2px 1px">ET 2.55+ win-x86 Sep 12 2009</td>

    </tr>
    <tr>
        <td class='cell-first'>Location:</td>
        <td class='cell'><span class="flag" style="background-image:url(/gfx/flags/AU.gif)">Australia, Oceania</span></td>
    </tr>
    <tr>
        <td class='cell-first'>Chat:</td>

        <td class='cell'><iframe src="http://www.badewannenstoepselkette.de/eva/services/embed-single.php?channel=server-641686&lifetime=36000&css=http://themes.splatterladder.com/eva.css&user=&time=1287269141&hash=d57d1d552ace6d0435fd9d61c270b37a" width="100%" border="0" frameborder="0" height="300px"></iframe></td>
    </tr>
    </table>
</td>
        <td style="width:50%;vertical-align:top;padding-left:10px">    <table class='list' style="width:100%" cellpadding=0 cellspacing=0>
    <tr>
        <td class='head-first'>#</td>
        <td class='head'>Player Name</td>

        <td class='head'>Score</td>
        <td class='head'>Ping</td>
        <td class='head'>Team</td>
    </tr>
    <tr>
        <td class='cell-first'>1</td>
        <td class='cell' style="text-align:left"><table class="table" cellspacing=0 cellpadding=0><tr><td style="width:18px;padding-right:5px;padding-top:2px"></td><td style="f_ont-variant:small-caps"><a title="[BOT]Missnrun" href='?mod=playerinfo&idx=19613501'><span style="color:#FFFFFF"><span style="color:#0000FF">[BOT]<span style="color:#FFFFFF">Missnrun</span></span></span></a></td></tr></table></td>

        <td class='cell'>2034</td>
        <td class='cell'>0</td>
        <td class='cell'><span class="red">AXIS</span></td>
    </tr>
    <tr>
        <td class='cell-first'>2</td>
        <td class='cell' style="text-align:left"><table class="table" cellspacing=0 cellpadding=0><tr><td style="width:18px;padding-right:5px;padding-top:2px"></td><td style="f_ont-variant:small-caps"><a title="[BOT]Malin" href='?mod=playerinfo&idx=25185774'><span style="color:#FFFFFF"><span style="color:#0000FF">[BOT]<span style="color:#FFFFFF">Malin</span></span></span></a></td></tr></table></td>

        <td class='cell'>1854</td>
        <td class='cell'>0</td>
        <td class='cell'><span class="red">AXIS</span></td>
    </tr>
    <tr>
        <td class='cell-first'>3</td>
        <td class='cell' style="text-align:left"><table class="table" cellspacing=0 cellpadding=0><tr><td style="width:18px;padding-right:5px;padding-top:2px"></td><td style="f_ont-variant:small-caps"><a title="[BOT]Monty" href='?mod=playerinfo&idx=19613539'><span style="color:#FFFFFF"><span style="color:#0000FF">[BOT]<span style="color:#FFFFFF">Monty</span></span></span></a></td></tr></table></td>

        <td class='cell'>1749</td>
        <td class='cell'>0</td>
        <td class='cell'><span class="red">AXIS</span></td>
    </tr>
    <tr>
        <td class='cell-first'>4</td>
        <td class='cell' style="text-align:left"><table class="table" cellspacing=0 cellpadding=0><tr><td style="width:18px;padding-right:5px;padding-top:2px"></td><td style="f_ont-variant:small-caps"><a title="[BOT]Vera" href='?mod=playerinfo&idx=25186446'><span style="color:#FFFFFF"><span style="color:#0000FF">[BOT]<span style="color:#FFFFFF">Vera</span></span></span></a></td></tr></table></td>

        <td class='cell'>1067</td>
        <td class='cell'>0</td>
        <td class='cell'><span class="red">AXIS</span></td>
    </tr>
    <tr>
        <td class='cell-first'>5</td>
        <td class='cell' style="text-align:left"><table class="table" cellspacing=0 cellpadding=0><tr><td style="width:18px;padding-right:5px;padding-top:2px"></td><td style="f_ont-variant:small-caps"><a title="[BOT]Ivor" href='?mod=playerinfo&idx=25183800'><span style="color:#FFFFFF"><span style="color:#0000FF">[BOT]<span style="color:#FFFFFF">Ivor</span></span></span></a></td></tr></table></td>

        <td class='cell'>867</td>
        <td class='cell'>0</td>
        <td class='cell'><span class="red">AXIS</span></td>
    </tr>
    <tr>
        <td class='cell-first' colspan=2>&nbsp;</td>
        <td class='cell'>7571</td>

        <td class='cell'>0</td>
        <td class='cell'>&nbsp;</td>
    </tr>
    </table>
<br>    <table class='list' style="width:100%" cellpadding=0 cellspacing=0>
    <tr>
        <td class='head-first'>#</td>
        <td class='head'>Player Name</td>

        <td class='head'>Score</td>
        <td class='head'>Ping</td>
        <td class='head'>Team</td>
    </tr>
    <tr>
        <td class='cell-first'>1</td>
        <td class='cell' style="text-align:left"><table class="table" cellspacing=0 cellpadding=0><tr><td style="width:18px;padding-right:5px;padding-top:2px"></td><td style="f_ont-variant:small-caps"><a title="[BOT]Sean" href='?mod=playerinfo&idx=19613494'><span style="color:#FFFFFF"><span style="color:#0000FF">[BOT]<span style="color:#FFFFFF">Sean</span></span></span></a></td></tr></table></td>

        <td class='cell'>1994</td>
        <td class='cell'>0</td>
        <td class='cell'><span class="blue">ALLIES</span></td>
    </tr>
    <tr>
        <td class='cell-first'>2</td>
        <td class='cell' style="text-align:left"><table class="table" cellspacing=0 cellpadding=0><tr><td style="width:18px;padding-right:5px;padding-top:2px"></td><td style="f_ont-variant:small-caps"><a title="[BOT]Vic" href='?mod=playerinfo&idx=25176741'><span style="color:#FFFFFF"><span style="color:#0000FF">[BOT]<span style="color:#FFFFFF">Vic</span></span></span></a></td></tr></table></td>

        <td class='cell'>1917</td>
        <td class='cell'>0</td>
        <td class='cell'><span class="blue">ALLIES</span></td>
    </tr>
    <tr>
        <td class='cell-first'>3</td>
        <td class='cell' style="text-align:left"><table class="table" cellspacing=0 cellpadding=0><tr><td style="width:18px;padding-right:5px;padding-top:2px"></td><td style="f_ont-variant:small-caps"><a title="[BOT]Bean" href='?mod=playerinfo&idx=19613386'><span style="color:#FFFFFF"><span style="color:#0000FF">[BOT]<span style="color:#FFFFFF">Bean</span></span></span></a></td></tr></table></td>

        <td class='cell'>1538</td>
        <td class='cell'>0</td>
        <td class='cell'><span class="blue">ALLIES</span></td>
    </tr>
    <tr>
        <td class='cell-first'>4</td>
        <td class='cell' style="text-align:left"><table class="table" cellspacing=0 cellpadding=0><tr><td style="width:18px;padding-right:5px;padding-top:2px"></td><td style="f_ont-variant:small-caps"><a title="[BOT]Nundak" href='?mod=playerinfo&idx=25184269'><span style="color:#FFFFFF"><span style="color:#0000FF">[BOT]<span style="color:#FFFFFF">Nundak</span></span></span></a></td></tr></table></td>

        <td class='cell'>765</td>
        <td class='cell'>0</td>
        <td class='cell'><span class="blue">ALLIES</span></td>
    </tr>
    <tr>
        <td class='cell-first'>5</td>
        <td class='cell' style="text-align:left"><table class="table" cellspacing=0 cellpadding=0><tr><td style="width:18px;padding-right:5px;padding-top:2px"></td><td style="f_ont-variant:small-caps"><a title="[BOT]Anton" href='?mod=playerinfo&idx=19613384'><span style="color:#FFFFFF"><span style="color:#0000FF">[BOT]<span style="color:#FFFFFF">Anton</span></span></span></a></td></tr></table></td>

        <td class='cell'>541</td>
        <td class='cell'>0</td>
        <td class='cell'><span class="blue">ALLIES</span></td>
    </tr>
    <tr>
        <td class='cell-first' colspan=2>&nbsp;</td>
        <td class='cell'>6755</td>

        <td class='cell'>0</td>
        <td class='cell'>&nbsp;</td>
    </tr>
    </table>
</td>
    </tr>
    </table>
</div></td></tr>
<tr><td class='body'>
<div class="content">    <table class='table' cellpadding=0 cellspacing=0>

    <tr>
        <td style="font-weight:bold;text-align:left;vertical-align:top;padding-left:0px;padding-right:20px">Useful links:</td>
        <td><b><a href="http://forum.splatterladder.com/index.php?showtopic=3131" target="_new">Server Monitor</a></b> &nbsp;~&nbsp; <b><a href="http://wiki.splatterladder.com/Sl.Gamelauncher/en" target="_new">sl.Gamelauncher</a></b></td>
    </tr>
    </table>
</div></td></tr>

<tr><td id='foot'>Last Response: <b>5 secs</b> &nbsp; » &nbsp; Next Scan: <b>25 secs</b> &nbsp; » &nbsp; Online Status: <b><span class="green">ONLINE</span></b></td></tr>
</table>
Seems you need a mix of lookahead and plain regular get regexps. So I suggest you grab a hold of RainRegExp (search the forum) by jsmorley so you have an easier time getting the right RegExp.
If you feel unsure on how to write the regExp, you can read this: http://www.regular-expressions.info/tutorial.html
It is very informative.

When you get the right RegExp, it's easy to make it look good. So start there and the rest will be easy.
I don't think, therefore I'm not.