EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > General Discussion > Request

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 04-06-2010, 08:34 AM
TarosVorn's Avatar
TarosVorn TarosVorn is offline
A Young Mystail Rat
 
Join Date: May 2006
Server: Splitpaw
Posts: 4
Default G19 and Minimap

Hi All,
I have recently purchased a Logitech G19 Keyboard, (after my long serving and faithful G15v1 finally died)
As the title says, I was wondering if it would be possible for one of you clever guys to create an LCD applet that would allow the minimap in EQ2 to be displayed on said LCD? I think this is just the sort of thing that it was made for!
I realise that it's probably a lot more difficult than it sounds, but, as I said, would it be possible (even in theory)?
Thanks in advance,
Taros.
Reply With Quote
  #2  
Unread 04-06-2010, 03:30 PM
EQAditu's Avatar
EQAditu EQAditu is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Permafrost
Posts: 256
Default

It's possible, yes.

Getting the /loc data to the applet wouldn't be very elegant though. The safe way would be through the log file which would require a small UI script to periodically call /loc or send that data to a channel you can filter out of your visible UI. Your position would only be updated as often as that went off. You're free to spam yourself with /loc all you want, but if you use a chat channel you can't and shouldn't. (Apparently /loc is a "Command" type log line)

The rest would be decoding EQ2MAP's XML files for the right image/position, decoding the DDS and displaying that viewport. I guess adding the icons as well. You could technically add POI searching too but that's pretty extra.

I have the knowledge to do all of the above, but I really don't have the time. For me, the decoding of the EQ2MAPs files would take the most time as it would take trial and error to figure out plotting a /loc on the DDS according to the XML's data. I made my own map program before for EQ2, but it's been a long time since then and I happily use the in-game version.
Reply With Quote
  #3  
Unread 04-06-2010, 05:17 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Aditu, the "plotting" is simple math, we could even give you our code to get you started. Regarding the /loc data: I do not know how that keyboard can be programmed but since the game client already allows streaming of DynamicData (like /loc) directly to that keyboard you might not need to do any of your logfile magic. Also with Rothgar already using that keyboard and having written the current pages for it he'd likely be inclined to help out further if necessary.
Reply With Quote
  #4  
Unread 04-06-2010, 06:06 PM
EQAditu's Avatar
EQAditu EQAditu is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Permafrost
Posts: 256
Default

I'm guessing that EQ2 doesn't stream any DynamicData to the keyboard in its G15 implementation. Most likely EQ2 takes those XML pages that configure the LCD display, renders them internally like it does for the rest of the UI and then sends each frame bitmap to the G15 API. (The API assumes you do all text rendering through GDI or similar...)

If I were to try to read that data from the keyboard itself, which I don't know of a way to do so, all I would get is a 160x43 image that I would have to OCR.

Looking at the EQ2MAPs XMLs for more than 30 seconds each file, zonerect probably defines the /loc of the upper-left and lower-right pixel of the map, huh? availablerect is a bit more of a mystery. heightmin/heightmax would select which map to view when at a certain Z level.
Reply With Quote
  #5  
Unread 04-06-2010, 07:12 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Ok, so if the keyboard's API is a GDI interace and EQ2 sends bitmaps did anybody ever try to send images via the g15 xml file? Might just be able to stick the map in there without any need to program anything at all.

AvailableRect is a rectangular area within a zonerect. That way you can have more than one dds on the same z-level. It goes along with AvailablePriority which is basically z-order.

Everything including the formulas is actually explained in detail in our map creation tutorial. SaintPeter even included some really good example pictures that should make it all clear.
Reply With Quote
  #6  
Unread 04-06-2010, 07:18 PM
EQAditu's Avatar
EQAditu EQAditu is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Permafrost
Posts: 256
Default

The G15 isn't as nearly up to the task as the G19. As far as I know, EQ2's only G19 support is because the G19 can upscale the G15 LCD data.

G15 = 160x43 1-bit color
G19 = 320x240 32-bit color
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:39 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI