News: 1up Discord VOIP
Invite Code: https://discord.gg/VPv9JhP

Author Topic: 1up Gadget (Sidebar Server Monitor) [official release]  (Read 14179 times)

0 Members and 1 Guest are viewing this topic.

Offline Cuomo

  • Posts: 188
  • Karma: 4
  • =]
  • Since: 04/12/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up Gadget (Sidebar Server Monitor) [official release]
« Reply #15 on: April 03, 2010, 10:07:15 PM »
so only works with xp if you have ultimate? i have xp performance, i dulled out xp with nothing cept what you needz

Offline Bliz

  • Posts: 86
  • Karma: -15
  • I <3 you
  • Since: 25/07/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up Gadget (Sidebar Server Monitor) [official release]
« Reply #16 on: August 26, 2010, 05:16:18 AM »
Well since It was not Windows XP compatible  unless you installed a new ultimate OS... I went to Google :P
it is basically vista sidebar but for Windows XP and works fine
pretty self explanatory
oh and great job I love it :)


http://joshoon.deviantart.com/art/Windows-Sidebar-Real-one-Pack-75626472


Screenie (yes it is win xp I have modified theme)
« Last Edit: August 26, 2010, 05:20:51 AM by blizakster »
01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101

Offline RonaldLee[1up]

  • *[1up] Clan Founder
  • [1up] UrT Admin
  • [1up] KF Admin
  • [1upZ] NMRiH Admin
  • [1upZ] Zombie
  • Posts: 5,570
  • Karma: 2634
  • 1up Founder
  • Since: 02/03/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
    • 1up Clan
    • Youtube's channel
Re: 1up Gadget (Sidebar Server Monitor) [official release]
« Reply #17 on: August 26, 2010, 08:20:22 AM »
The gadget needs to be updated now because many servers have changed names, we have added some servers, and our "Join 1up" button points to a direct application instead of a forum post per se.

Offline Bliz

  • Posts: 86
  • Karma: -15
  • I <3 you
  • Since: 25/07/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up Gadget (Sidebar Server Monitor) [official release]
« Reply #18 on: August 26, 2010, 04:14:47 PM »
http://tinyurl.com/1up-edit
except join 1up doesn't work unless you are signed in.. if not it takes you to the 1upclan.info/forums page
fixed :)
« Last Edit: August 26, 2010, 04:34:20 PM by blizakster »
01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101

Offline KD197

  • Posts: 671
  • Karma: 28
  • Since: 20/06/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up Gadget (Sidebar Server Monitor) [official release]
« Reply #19 on: August 26, 2010, 04:36:03 PM »
I'd be interested in the information that is used to generate the site's stat pages - I've kinda got a hacky CLI server monitor going but it relies on fetching the webpages, taking the relevant sections and stripping the HTML, and it's kinda difficult to get nice formatting. So if there is an alternative way of fetching this info I'd be interested.

Not-so-1337-hax0rz: awsdgiaygveiujgfahiy, killer, [K1L]ShAd0W[GER], [51]Usage (impersonator), 1Lexa8, Redeye, sid, ASTROKILLA, bar, mody, [R:K]BatistaBomB, revenger, [58f]gojan, imaidiot, [DOA]Arik, sn4k3, Broajer, HACKER, DDMX, dopey

"yeah, I googled "mod reveal 67" to find out what it does and the top links were from 1up" - SlimPickins[1up]

Offline Bliz

  • Posts: 86
  • Karma: -15
  • I <3 you
  • Since: 25/07/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up Gadget (Sidebar Server Monitor) [official release]
« Reply #20 on: August 26, 2010, 04:55:46 PM »
I think this is just doing it with iframes displaying the page on the forums xD
01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101

Offline Bliz

  • Posts: 86
  • Karma: -15
  • I <3 you
  • Since: 25/07/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up Gadget (Sidebar Server Monitor) [official release]
« Reply #21 on: August 28, 2010, 02:21:47 PM »
A lot of changes
The urt images run urbanterror and connect to the server there next to and the 1up RCON thing runs 1up ModRcon program


Download :
http://tinyurl.com/1up-edit-2
01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101

Offline Pyrite[1up]

  • *[1up] Dev Admin
  • [1up] Dev Team
  • [1upZ] NMRiH Admin
  • Posts: 1,560
  • Karma: 147
  • Since: 08/11/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up Gadget (Sidebar Server Monitor) [official release]
« Reply #22 on: August 28, 2010, 03:46:14 PM »
I'll probably deploy the new Java ModRcon via Java Web Start, so the link in the sidebar gadget will have to change eventually, but that's way down the road. Nice work!
•·.· ́ ̄`·.·•"Most Likely to Pillage the Global Village"•·.· ́ ̄`·.·•


Offline KD197

  • Posts: 671
  • Karma: 28
  • Since: 20/06/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up Gadget (Sidebar Server Monitor) [official release]
« Reply #23 on: August 28, 2010, 09:37:25 PM »
I was wondering if there was any other way to access the server stats other than pulling in the webpages?
I've got a terminal script that gets all the info from the server pages but it's pretty hacky to look at the script itself... ie what I'm after is the source from which the server stats pages are generated, because if the HTML is changed, the script fails.
Haven't worked on the "launch game into server" thing but according to Bliz it's a simple command, everything else is working just fine. It's not shiny like the official gadget, but it's a terminal app, the best it can offer is colour :P I <3 terminals though hence why I made this. I might see if I can do a player name search as well, but I don't know if I've got the skills to do that, I'm a coding noob.

EDIT: SEARCH FUNCTION! WOOOO! \o/ It's case-insensitive but doesn't seem to like special characters but it works on partial match.
EDIT 2: Now it can also launch straight in to the servers, with cpufrequtils and secondary X server.
I'll test it a bit for a few days to make sure I haven't stuffed something up... I'd still prefer another method of getting the info, like XML or something, so if any of the devs wanna comment on if there is such a resource, I'd re-write the script to work with that instead; parsing HTML is hacky and I don't like it.  >:(
« Last Edit: August 29, 2010, 02:34:31 PM by KD197 »

Not-so-1337-hax0rz: awsdgiaygveiujgfahiy, killer, [K1L]ShAd0W[GER], [51]Usage (impersonator), 1Lexa8, Redeye, sid, ASTROKILLA, bar, mody, [R:K]BatistaBomB, revenger, [58f]gojan, imaidiot, [DOA]Arik, sn4k3, Broajer, HACKER, DDMX, dopey

"yeah, I googled "mod reveal 67" to find out what it does and the top links were from 1up" - SlimPickins[1up]

Offline KD197

  • Posts: 671
  • Karma: 28
  • Since: 20/06/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up Gadget (Sidebar Server Monitor) [official release]
« Reply #24 on: August 29, 2010, 06:53:44 PM »
Trying to get this working on Mac for Dougy, tried using curl instead of wget and it's near-instantaneous. Player search takes less than a second now... it was 4s for each server, then I set them up to run simultaneously and it took ~6s.
For some reason it won't work in Dougy's terminal, it's throwing weird errors that seem to regard to fonts  :P

Quote
/Users/jjjj/1ups_mac: line 1: {rtf1macansicpg10000cocoartf824cocoasubrtf480: command not found
/Users/jjjj/1ups_mac: line 2: syntax error near unexpected token `}'
/Users/jjjj/1ups_mac: line 2: `{\fonttbl\f0\fmodern\fcharset77 Courier;}'
There isn't even a "}" on line 2 XD

Any Mac people wanna try it? Dougy's is a PPC... I dunno if that makes a difference. Are there even any Linux people here?!

Not-so-1337-hax0rz: awsdgiaygveiujgfahiy, killer, [K1L]ShAd0W[GER], [51]Usage (impersonator), 1Lexa8, Redeye, sid, ASTROKILLA, bar, mody, [R:K]BatistaBomB, revenger, [58f]gojan, imaidiot, [DOA]Arik, sn4k3, Broajer, HACKER, DDMX, dopey

"yeah, I googled "mod reveal 67" to find out what it does and the top links were from 1up" - SlimPickins[1up]

Offline Pyrite[1up]

  • *[1up] Dev Admin
  • [1up] Dev Team
  • [1upZ] NMRiH Admin
  • Posts: 1,560
  • Karma: 147
  • Since: 08/11/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up Gadget (Sidebar Server Monitor) [official release]
« Reply #25 on: August 29, 2010, 06:55:38 PM »
I have Linux and PowerPC based Macs, I can help.
•·.· ́ ̄`·.·•"Most Likely to Pillage the Global Village"•·.· ́ ̄`·.·•


Offline Pyrite[1up]

  • *[1up] Dev Admin
  • [1up] Dev Team
  • [1upZ] NMRiH Admin
  • Posts: 1,560
  • Karma: 147
  • Since: 08/11/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up Gadget (Sidebar Server Monitor) [official release]
« Reply #26 on: August 29, 2010, 07:58:19 PM »
This is on my PPC based Mac, running OS 10.2 and bash 2.05a.

The output of uname -a is:

Darwin dumbledore 6.8 Darwin Kernel Version 6.8: Wed Sep 10 15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC  Power Macintosh powerpc

The output of sw_vers is:

ProductName:   Mac OS X
ProductVersion:   10.2.8
BuildVersion:   6R73

Seems to work fine, except when querying the server portions (second screenshot).

[attachment no longer available]
« Last Edit: August 29, 2010, 08:06:05 PM by Pyrite[1up] »
•·.· ́ ̄`·.·•"Most Likely to Pillage the Global Village"•·.· ́ ̄`·.·•


Offline Bliz

  • Posts: 86
  • Karma: -15
  • I <3 you
  • Since: 25/07/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up Gadget (Sidebar Server Monitor) [official release]
« Reply #27 on: August 30, 2010, 12:32:57 AM »
I really have no idea how to code in any language :) I just looked at the files that came with the first server monitor and then added duplicated trouble shot and finally got it that took me 15 hours a person who knew simple java script/xml could have probably done it in about 2 minutes. xD
01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101

Offline KD197

  • Posts: 671
  • Karma: 28
  • Since: 20/06/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up Gadget (Sidebar Server Monitor) [official release]
« Reply #28 on: August 30, 2010, 06:23:41 AM »
Thanks Pyrite, the screen shots make it easier to understand what I'm dealing with.
I found out why Pidgin was showing you as offline - the damn thing had frozen >:( Had to kill -9 it.

Anyways, from what I can ascertain from Google, the issue with tab spacing is that the version of BSD sed shipped with Macs has a bug whereby \t is not interpreted properly. I found in a forum post that someone "upgraded" sed via a program called Fink http://www.finkproject.org/, and running "fink install sed" or something like that. A quick glance at the site and a check in the repository, all it's doing is installing GNU sed. What I might try first is replacing \t with an actual tab, as suggested elsewhere on various Mac forums, as the only other way to get it to interpret \t is to wrap it in single quotes. (I wonder how GNU sed will play with that :P)

As for the colour issue, the difference between the server stats output and the Vent title output for example, is that the colour escape codes are inserted into the stream via sed, whereas in the areas it works it's being added after a "echo -e" which enables interpretation of backslash escapes. I'm not entirely sure what is to blame for this difference if the shells are the same - although I did notice your terminal window says "tcsh" not bash. :|

Either way, I think rather than trying to manipulate the whole file in one go and spitting out the output, what I'll do is read the info into vars, then "echo -e" them back with colour escape codes. All with nice tab indentation of course! ;) Oh yeah and thanks for the links to the mods and vent data, I'll replace that too.

Looked at some Java stuff... I have no idea how proper programming languages work  ???
« Last Edit: August 30, 2010, 12:15:40 PM by KD197 »

Not-so-1337-hax0rz: awsdgiaygveiujgfahiy, killer, [K1L]ShAd0W[GER], [51]Usage (impersonator), 1Lexa8, Redeye, sid, ASTROKILLA, bar, mody, [R:K]BatistaBomB, revenger, [58f]gojan, imaidiot, [DOA]Arik, sn4k3, Broajer, HACKER, DDMX, dopey

"yeah, I googled "mod reveal 67" to find out what it does and the top links were from 1up" - SlimPickins[1up]

Offline Tesla[1up]

  • *Administrative Leave
  • [1up] Dev Admin
  • [1up] UrT Admin
  • Posts: 480
  • Karma: 106
  • Since: 07/07/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up Gadget (Sidebar Server Monitor) [official release]
« Reply #29 on: September 04, 2010, 03:23:56 AM »
I do not understand why either of you are not using the getstatus command to get the info you want and format it however you want instead of trying to parse remote php files which puts a strain on our site that is not needed. All the info you need can be obtained using the getstatus command this is how sites like game tracker and others like it work so use the tools that are already available to you instead of making life more difficult for yourselves.

As far as connecting to a server from within an application goes that is extremely simple to do as well, simply call the urt executable with the connect and ip parameters like this (path/to/urt_executable.exe connect  127.0.0.1) you don't even need to supply a port if the server you are connecting to is using the default port (ie 27960) but if it's not then you just add the port after the ip like this (127.0.1.0:55555)

Like I said all of the things your trying to accomplish can be done in much simpler ways so do yourselves a favor and search google for "quake 3 rcon protocol" and you should be good to go once you understand the basics which is extremely easy to do (1 line of code to be exact)

Good Luck,
Tesla[1up]
« Last Edit: September 04, 2010, 03:26:56 AM by Tesla[1up] »
"May I suggest the footing of your ass" Red Forman