Logitech G15 MxO Applet (Beta)

64 posts · 2008-08-28 23:09:11 to 2008-11-02 19:57:27

#36300508869 10/10/2008 22:37:32 Re:Logitech G15 MxO Applet (Beta)
Beta 2 is the most recent release. Again, as there have been no complaints to my knowledge, the difference between it and the final release will be:

*that it will add itself to the LCD Manager
*able to be autostarted by LCD Manager
*debug hidden
*the jack in system (one press starting the game with customized shortcuts)



#36300509431 10/12/2008 19:41:48 Re:Logitech G15 MxO Applet (Beta)

Cool - thanks for the info. 

I will try your Beta 2 in the next day or two, then.  Looking forward to it, and thanks for the hard work. SMILEY

#36300509472 10/12/2008 20:57:31 Re:Logitech G15 MxO Applet (Beta)
This looks quite cool.
#36300509953 10/13/2008 19:53:12 Re:Logitech G15 MxO Applet (Beta)

Just had my first session with it - nicely done!

I like how you have a tic at the far right to show the top of the IS/Health bars, and I'm impressed with how smoothly it updates in realtime.  MegaCity time is a nice bonus, because I'm sometimes trying to keep track of when various events start.

You'll be pleased to know I was running it on an XP x64 Edition machine and had no compatibility problems.  I even placed it in the 64-bit Program Files folder for the Logitech Keyboard, made myself a Start Menu shortcut, and ran it from there (testing the bounce, as it were).  It properly executed in a 32-bit context.

I'll try it on Vista next...if I can get the thrice-accursed OS to run MXO without randomly crashing to desktop, may its disease-infested carcass forever rot with radioactive parasites in Steve Ballmer's basement behind the home theater system where he can't reach it and can't watch anything but Zombie films without gagging and--

--oh.  Sorry.  What was I saying?

I'll try it on Vista.

Nice work. ^_^

P.S.:  if it means anything, I ran it on:

ASUS A8N32-Deluxe SLi motherboard,

AMD Athlon X2 4400+ @ 2.2GHz,

4GB Corsair XMS2 PRO PC 3200 DDR @ 4 x 1GB (dual channel enabled)

dual XFX nVidia GeForce 7950GT 512MB x 2 video cards (dual channel enabled)

Fujitsu 3.0Gb/s SATA2 HD (primary - OS), 350GB @ 7200RPM

2 x Samsung 3.0Gb/s SATA2 HD (RAID 0), 1.4TB total (game)

Aegia PhysX 100 Series

Audigy 2 ZS

#36300510353 10/14/2008 19:55:17 Re:Logitech G15 MxO Applet (Beta)

Well, that was pretty cool!  Look how it adds itself to the taskbar in Vista Ultimate:

(the l'il green box)

Oh, by the way, I'm using the blue-lit keyboard--like Asna posted.

The good news is, it behaved normally, display and all.

The bad news is, I don't get IS/Health bars updated.  They just sit at zero.  I tried running it normally, running as Admin, and next time I'll try running it in Compatibility Mode for XP SP 2.  And I'll keep you posted!

 Nice job. SMILEY

Specs for Vista Machine:

ASUS A8N SLi Deluxe Motherboard

AMD Athlon X2 4400+ @ 2.2GHz

4GB OCZ Platinum RAM at recommended voltage and timings (4 x 1GB, Dual-channel enabled, etc.)

2 separate (but identical) WD SATA 2.0 (3.0Gb/s) HDs, with ReadyBoost on dedicated hi-speed Patriot XT 4GB USB Drive

2 x BFG Tech nVidia 8800GTS OC, 512MB ea.in SLi

Sound Blaster Audigy X-FI Audio card

SATA 2.0 DVD +/- RW drive

Vista Ultimate 64-bit edition

WEI 5.0

#36300510472 10/15/2008 05:55:19 Re:Logitech G15 MxO Applet (Beta)
*anxiously awaiting next build.

It works great on my blue lit g15 overall.  tho i do get lag spikes which i don't know where there coming from as i normally run a lag free game.

my specs if it will help: Intel Q9300 quad core
                                     Asus P5nt-deluxe
                                     4 gb ddr2 mem(xp only sees 3)
                                     Windows XP with sp2
                                     1 tb of storage (2x 500gb raid 0)
                                     Nvidia Geforce 9800 GTX


it seems the lag is on the refreshing of the Health/IS bar.  Lag in both full screen and Windowed.  when i shut down your proggy the lag stops.

Doc
Photo Sharing and Video Hosting at Photobucket
#36300510488 10/15/2008 06:25:56 Re:Re:Logitech G15 MxO Applet (Beta)
MXOWinterMute wrote:

Well, that was pretty cool!  Look how it adds itself to the taskbar in Vista Ultimate:

(the l'il green box)

Oh, by the way, I'm using the blue-lit keyboard--like Asna posted.

The good news is, it behaved normally, display and all.

The bad news is, I don't get IS/Health bars updated.  They just sit at zero.  I tried running it normally, running as Admin, and next time I'll try running it in Compatibility Mode for XP SP 2.  And I'll keep you posted!

 Nice job. SMILEY

Specs for Vista Machine:

ASUS A8N SLi Deluxe Motherboard

AMD Athlon X2 4400+ @ 2.2GHz

4GB OCZ Platinum RAM at recommended voltage and timings (4 x 1GB, Dual-channel enabled, etc.)

2 separate (but identical) WD SATA 2.0 (3.0Gb/s) HDs, with ReadyBoost on dedicated hi-speed Patriot XT 4GB USB Drive

2 x BFG Tech nVidia 8800GTS OC, 512MB ea.in SLi

Sound Blaster Audigy X-FI Audio card

SATA 2.0 DVD +/- RW drive

Vista Ultimate 64-bit edition

WEI 5.0

I have not tested it on Vista yet.  So it isn't displaying the bars proper? Hmm... that command should be OS independant.

Dr5mith wrote:
*anxiously awaiting next build.

It works great on my blue lit g15 overall.  tho i do get lag spikes which i don't know where there coming from as i normally run a lag free game.

my specs if it will help: Intel Q9300 quad core
                                     Asus P5nt-deluxe
                                     4 gb ddr2 mem(xp only sees 3)
                                     Windows XP with sp2
                                     1 tb of storage (2x 500gb raid 0)
                                     Nvidia Geforce 9800 GTX


it seems the lag is on the refreshing of the Health/IS bar.  Lag in both full screen and Windowed.  when i shut down your proggy the lag stops.

Doc

Unfortunately, it works like fraps, it continuously takes a screenshot of a group of pixels at I believe 800ms intervals.  I could possibly add something to the debug window, about setting this refresh clock if you'd like. (Ponders turning this into a DLL and sending the source in to Rare/9mmfu).
#36300510498 10/15/2008 06:59:11 Re:Re:Re:Logitech G15 MxO Applet (Beta)
LtCmdr_Tsusai wrote:

Unfortunately, it works like fraps, it continuously takes a screenshot of a group of pixels at I believe 800ms intervals.  I could possibly add something to the debug window, about setting this refresh clock if you'd like. (Ponders turning this into a DLL and sending the source in to Rare/9mmfu).
Yes....and YESSS!!
Photo Sharing and Video Hosting at Photobucket
#36300510623 10/15/2008 13:34:42 Re:Re:Re:Re:Logitech G15 MxO Applet (Beta)
Dr5mith wrote:
LtCmdr_Tsusai wrote:

Unfortunately, it works like fraps, it continuously takes a screenshot of a group of pixels at I believe 800ms intervals.  I could possibly add something to the debug window, about setting this refresh clock if you'd like. (Ponders turning this into a DLL and sending the source in to Rare/9mmfu).
Yes....and YESSS!!

I second that!  umm... err.... 3rd that?  SMILEY
#36300510690 10/15/2008 15:57:41 Re:Logitech G15 MxO Applet (Beta)

With what you've said here about how it works, I'm going to take two tacks then--try running in compatibility mode for XP SP2, and also make sure my Firewall has an exception set up for the program.  I didn't get any "Allow/Deny" prompts, so I just assumed.  But you never know--it might have been trying to read Health and IS and getting stompled by my firewall.

Here's something that'll answer it--how do you display MegaCity time?  Run a calculation off the user's clock/time zone, or actually call some SOE web service somewhere?

I'll post again when I've had a chance to run the Applet in Compatibility Mode...

#36300510727 10/15/2008 17:22:38 Re:Logitech G15 MxO Applet (Beta)
There is no internet or network functions in this code. The MCT time is a basic math calculation that I came up with, which uses the computer's time zone.

Without looking at the code I believe its something like this

(-8 - (currenttimezone))
-8 is Pacific / Mega City Time

So if I ran through it, and I live in central (-6), I get -8 - -6 = -8+6 = -2. This gives me the time difference. I then apply this to current time, and bingo.

Another example is Italy is GMT + 1, so -8 - +1 = -8 - 1 = -9 hr diff.

Also, the time and HP/SP routines are separate. Basically what I do, is that I prepare the information (Time, and bars if applicable), draw the information onto a mini canvas (you can see it in the debug menu) and then I send that canvas to the LCD. If it can't read the bars, it will at least display the time. I'll give the program a shot on my laptop (I put vista on it) in a little bit. My current code has some errors and kinks I have to iron out first before it compiles.

Source will be available with Beta 3.  Don't be suprised if you don't see C or C++ SMILEY
#36300510747 10/15/2008 19:03:44 Re:Logitech G15 MxO Applet (Beta)
So no DST then?
phiAU - The Kings of Never - noblesse oblige
#36300510752 10/15/2008 19:28:36 Re:Re:Logitech G15 MxO Applet (Beta)
Seems to work with my Vista just fine.  However, I run my MxO with XP SP2 compatibility, and Disable Desktop Composition.

phi wrote:
So no DST then?
I haven't tested DST with other timezones outside of US and Italy (was testing it with SEPET). I just get the current time from the PC, and whatever I get back from GetTimeZoneInformation() filling in the Bias. That's what I'm using.

//Correct for the MxO timezone
function GetTimeZoneDiff: integer;
var
    TimeZone: TTimeZoneInformation;
begin
    GetTimeZoneInformation(TimeZone);
    // Pacific is -8,  Bias is in minutes, so div by 60 and negative it.
    // If you're -6 like me, then its 360 div 60.  -8 - -6 = -8 +6 = -2 hr diff.
    // Or if you're +2 GMT, then its -8 - 2, which is -10 hr diff
    Result := (-8 - (TimeZone.Bias div -60);
end;
EDIT Oct 15th
Beta 3
Changes: Jack-in system with examples.  Source included.

Todo:
*Currently MCT time drawing, and HP/IS bar drawing are based on the same timer.  I might be splitting them up to run on 2 individual timers.  1 for the clock, and the other for an adjustable refresh time on the HP/IS bars.
*Configureable options and tie-in into Logitech GamePanel Manager.

#36300516593 11/02/2008 19:57:27 Re:Logitech G15 MxO Applet (Beta)

Nov 2nd Update

*Have separated the MCT and the Game Data refresh timers. Currently in making the Game Data timer configurable. Probably ini since I hate registry coding

*Added supposed DST code. Converts players time to UTC (taking into account DST), then takes off 8hrs.