Go Back   Champions of Regnum > English > General discussion

General discussion Topics related to various aspects of Champions of Regnum

Reply
 
Thread Tools Display Modes
Old 04-22-2010, 12:56 AM   #21
veluchami
Initiate
 
Join Date: Mar 2009
Location: San Francisco
Posts: 117
veluchami is on a distinguished road
Default

Quote:
Originally Posted by ov3rcl0ck View Post
The pin feature doesn't work with some windows managers simply because the window manager doesn't provide the feature overrideredirect which is needed to pin it. Pinning basically removes the window boarder and pins it to your desktop, and you can unpin it to move it around.

Pinning works for the following Window Managers Windows XP Explorer, Windows Vista/7 Explorer, and Gnome, there are a few others, but I haven't tried them all I didn't test on KDE. I'm assuming that I'd need to make a Qt port of it for the pin feature to work, I'm currently using Tk/Tkinter.

I use Open Box and I know that overrideredirect doesn't work, but I knew that before I start this project.

Its not big issue, it just gives it a cooler look is all, not a big feature.
In Ubuntu, the Window manager itself gives the pin feature. Just right click and select 'Always on top' 'Always visible on workspace' if you use multiple workspaces.
veluchami no ha iniciado sesión   Reply With Quote
Old 04-22-2010, 09:41 PM   #22
Comp
Count
 
Join Date: Jun 2007
Location: Jippy's Mom's House
Posts: 1,286
Comp will become famous soon enough
Default

Thx a ton...I added this to my conky - cool. I did make some changes to the python file just for asthetics on my side.
__________________
Compost (60 Hunter) Alsius
Compoundious (Dead and gone...)
Comp no ha iniciado sesión   Reply With Quote
Old 04-26-2010, 05:00 AM   #23
ov3rcl0ck
Apprentice
 
Join Date: Oct 2008
Posts: 72
ov3rcl0ck is on a distinguished road
Default

Quote:
Originally Posted by Snoid View Post
Very cool news!!

symbian version maybe?
I'm coding on the Titanium framework, so right now it only supports Android, ipod touch, iphone, and ipad, with up coming blackberry support. So Symbian will have to come a little later.

If I'm thinking straight Symbian run python applications, so I'd just need to port the GUI toolkit.

Again since I'm using the Titanium framework I could easily port it to iPod/phone/pad upon request, but its still not done, most of the coding is but my development environment went to shit, and I can't seem to get it running in an emulator for the life of me.

Once I do I still need to add some features but it's coming in less than a month if I'm not to busy.
ov3rcl0ck no ha iniciado sesión   Reply With Quote
Old 04-26-2010, 05:03 AM   #24
ov3rcl0ck
Apprentice
 
Join Date: Oct 2008
Posts: 72
ov3rcl0ck is on a distinguished road
Default

Quote:
Originally Posted by veluchami View Post
In Ubuntu, the Window manager itself gives the pin feature. Just right click and select 'Always on top' 'Always visible on workspace' if you use multiple workspaces.
Pin actually removes the window boarder and title bar, or undecorating it if you will, making it feel as if it were a desktop widget. It doesn't work in alot of window managers, but it doesn't raise any errors if the window manager doesn't support it, so hell I threw it in there anyway.

If you want to remove it go ahead its opensource.
ov3rcl0ck no ha iniciado sesión   Reply With Quote
Old 11-11-2010, 06:00 PM   #25
ov3rcl0ck
Apprentice
 
Join Date: Oct 2008
Posts: 72
ov3rcl0ck is on a distinguished road
Default

UPDATE:
Do to recent changes, the Regnum Stats scripts broke due to changes in Regnum Warstatus section. So today I just changed a few things and got it working again.

So now the downloads can be found here:
ov3rcl0ck no ha iniciado sesión   Reply With Quote
Old 11-14-2010, 07:39 PM   #26
time-to-die
Baron
 
time-to-die's Avatar
 
Join Date: Nov 2009
Location: The netherlands
Posts: 722
time-to-die is on a distinguished road
Default

Wauw this is verry nice

regards,
time-to-die no ha iniciado sesión   Reply With Quote
Old 11-15-2010, 10:33 AM   #27
HidraA
Banned
 
Join Date: Dec 2009
Posts: 843
HidraA is an unknown quantity at this point
Default

In linux you can use crontab if not update in time and he will.
This applet will launch as native app on MAC OS X.
Dowload
Good job and keep working
HidraA no ha iniciado sesión   Reply With Quote
Old 11-16-2010, 03:57 AM   #28
ov3rcl0ck
Apprentice
 
Join Date: Oct 2008
Posts: 72
ov3rcl0ck is on a distinguished road
Default

Well they keep changing the War Stats page. Fixing it just means its going to break again in another week...

I'm going to have to request an actual API from NGD, doubt they'll do it however. Maybe I'll just have to find a new way to parse the page.

If you have a fix, please post it and I'll have a look at it.
ov3rcl0ck no ha iniciado sesión   Reply With Quote
Old 11-16-2010, 06:06 AM   #29
trelane
Pledge
 
Join Date: May 2009
Location: Hollywood, CA. USA
Posts: 30
trelane is on a distinguished road
Default A desktop gadget for Windows 7 and Vista

After seeing ov3rcl0ck's app I decided to try to put together a desktop gadget for Windows 7 and Vista. Works pretty good so far. I just finished it today. Here's a screen shot of it so far (the digits at the bottom are debug info).



Tre
trelane no ha iniciado sesión   Reply With Quote
Old 11-16-2010, 06:23 AM   #30
Znurre
Marquis
 
Join Date: Jan 2007
Location: RA
Posts: 1,897
Znurre will become famous soon enoughZnurre will become famous soon enough
Default

Quote:
Originally Posted by ov3rcl0ck View Post
Well they keep changing the War Stats page. Fixing it just means its going to break again in another week...

I'm going to have to request an actual API from NGD, doubt they'll do it however. Maybe I'll just have to find a new way to parse the page.

If you have a fix, please post it and I'll have a look at it.
I don't know how you parse it, but this is the code I use in a ruby script I created more than 2 years ago which works great (still):
Code:
#!/usr/bin/ruby

require 'net/http'
require 'uri'

%x( kdialog --passivepopup 'Script Initialized' )

castles = []
forts = []

fortNames = %w[ Aggersborg Trelleborg Menirah Samal Algaros Herbred ]
castleNames = %w[ Imperia Shaanarid Eferias ]

while 1 == 1 do

    url = URI.parse( 'http://91.123.197.144' )
    data = Net::HTTP.start( url.host, url.port ) { |http| http.get( '/ranking/index.php?l=1&opt=1&realm=2012&world=ra' ) }.body.split( "\n" )

    castlesData = data.find_all { |i| i[ 'images/keep' ] }
    fortsData = data.find_all { |i| i[ 'images/fort' ] }

    count = 0
    castlesData.each do |current|

        @changed = true if not current[ castles[ count ].to_s.downcase ]

        castles[ count ] = "Alsius" if current[ 'alsius' ]
        castles[ count ] = "Syrtis" if current[ 'syrtis' ]
        castles[ count ] = "Ignis" if current[ 'ignis' ]

        %x( kdialog --passivepopup '#{castles[ count ]} has captured the building #{castleNames[ count ]} castle' 5 --title 'Warstatus' ) if @changed == true
        @changed = false

        count += 1

    end

    count = 0
    fortsData.each do |current|

        @changed = true if not current[ forts[ count ].to_s.downcase ]

        forts[ count ] = "Alsius" if current[ 'alsius' ]
        forts[ count ] = "Syrtis" if current[ 'syrtis' ]
        forts[ count ] = "Ignis" if current[ 'ignis' ]

        %x( kdialog --passivepopup '#{forts[ count ]} has captured the building #{fortNames[ count ]} fort' 5 --title 'Warstatus' ) if @changed == true
        @changed = false

        count += 1

    end

    sleep 60

end
Hope it helps.
Basically, I look at the filename of the gif images and check their index
__________________
Winning a fight is not what makes you a good player, it's how you do it.
http://home.znur.re/screenshot%20201...2011_39_37.jpg
Znurre no ha iniciado sesión   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:28 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
NGD Studios 2002-2024 © All rights reserved