Mq2hud.ini

Forum for posting custom UIs, portions of UIs, and HUD stuff using MQ's enhancements.

Moderator: MacroQuest Developers

bobbb
decaying skeleton
decaying skeleton
Posts: 6
Joined: Thu Sep 22, 2005 8:27 pm

Mq2hud.ini

Post by bobbb » Mon Sep 26, 2005 4:08 am

Ok, im new to programming MQ. But thus far Ive figured out how to compile it and compile plugins.

I want to integrate the hud plugin into the UI's, but when I compiled MQ, I dont have an mq2hud.ini file.

I typed /plugin list and /plugin mq2hud to make sure it was loaded... but I didn't have an ini file.

Have any idea what Im doing wrong?

User avatar
gimp
a grimling bloodguard
a grimling bloodguard
Posts: 584
Joined: Fri Oct 29, 2004 9:28 am
Location: internet

Re: Mq2hud.ini

Post by gimp » Mon Sep 26, 2005 5:43 am

bobbb wrote:Ok, im new to programming MQ. But thus far Ive figured out how to compile it and compile plugins.

I want to integrate the hud plugin into the UI's, but when I compiled MQ, I dont have an mq2hud.ini file.

I typed /plugin list and /plugin mq2hud to make sure it was loaded... but I didn't have an ini file.

Have any idea what Im doing wrong?
i dont think MQ2 comes with an hud ready to use, you need to make one.
make a mq2hud.ini and put in it:

Code: Select all

[test]
Label1=1,125,730,255,255,255,My name: ${Me.Name}
then type in game:

Code: Select all

/plugin mq2hud
/loadhud test
and go from there
if you wish to insert MQ2 data into the UI however, you need to take a different approach

brianman
a ghoul
a ghoul
Posts: 114
Joined: Mon Jun 07, 2004 7:46 am

Post by brianman » Mon Sep 26, 2005 10:17 am

There are several example HUDs on these forums, just do a search for "HUD" and you will get a huge bunch :)

Oh, and I can really recommend Cr4zyb4rd's MQ2HUD over the default, gives more flexibility IMO :)

bobbb
decaying skeleton
decaying skeleton
Posts: 6
Joined: Thu Sep 22, 2005 8:27 pm

Post by bobbb » Mon Sep 26, 2005 10:22 am

thx a bunch, I will try that :wink:

edit: btw, that link to that hud example does not exist.

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Mon Sep 26, 2005 6:39 pm

People are assuming that you have VIP status (by donating) which is why that link does not work for you.


There is a VIP version of MQ2Hud, which makes it better in a nutshell. I'm pretty sure MQ2Hud.ini isn't autocreated. Just creat it your self and use the following format:

Code: Select all

[Elements]
code here
Usefil tips (ALL from the Manual on the homepage):
/hud normal| underui| always
Adds additional functionality to the MQ2 HUD. See MQ2HUD for more details
MQ2HUD plugin

Provides additional functionality to the HUD included with MQ2. It allows you to add additional elements. Every element gets parsed for MQ2Data each time it is displayed.

The additional fuctionality is added via the use of an ini file.

MQ2HUD allows for different HUDs. Each different HUD is stored in MQ2HUD.ini but in different sections.

The default HUD is [Elements]. To load a different HUD, the command is /loadhud name (not case sensitive)

Example

/loadhud bard

In this case, the [bard] section in MQ2HUD.ini could also be [BARD]

The command to load the default HUD specifically is /defaulthud

Example MQ2HUD.INI

[Elements]
;The order is TYPE,X,Y,RED,GREEN,BLUE,TEXT
TargetInfo=3,5,35,255,255,255,${Target}
GMIndicator=3,5,45,0,0,255,${Spawn[gm]}
CursorItemName=7,-15,-15,255,255,255,${If[${Cursor.ID},${Cursor},]}
ClickMeForFun=6,-25,-25,255,255,255,${If[!${Cursor.ID},click me,]}

TYPE is currently any combination of the following:

1 - Display in non-full screen mode
2 - Display in full screen mode ("f10 mode")
4 - X,Y is based on cursor location

e.g. 1+2+4=7. 7 means all 3 of the above. 6 means 2 and 4. 3 means 1 and 2. Just add them together. There is no way to end up with a number that could mean two different combinations.

Seeing as how the mouse functions perfectly fine in full screen mode, the cursor has been forced to display the same as it would in UI-visible mode. The only difference is the item is not displayed on your cursor. With MQ2HUD and the "CursorItemName" example, you could have it show the name of the item attached to your cursor in full screen mode (use type 6 if you want it to follow your cursor in full screen mode only).

X,Y is the screen location. 0,0 is the upper left corner fo your screen.

Red, Green and Blue are each from 0 to 255. 255,255,255 is white, 0,0,0 is black.

Slash Commands

/defaulthud
Load the default HUD specifically

/hud normal|underui|always

normal will make the HUD display as it would normally on top of UI, not at char select or in "f10 mode"
underui will make the HUD display as normal except UNDER the UI, and not at char select or in "f10 mode"
always will make the HUD display under the UI, at char select, and in "f10 mode"

/loadhud hudname (not case sensitive)
Loads a HUD by the name hudname. This HUD must have a [hudname] section in MQ2HUD.ini

Note: There is currently no command to add or remove these from inside the game. One will probably be added soon. The plugin will automatically re-load the list from the .ini when you modify and save the .ini.
Donate for VIP and get the new and improved MQ2Hud and you can have multilple huds to load for one character, or one for each character. Whatever your heart desires. Anyhow, have fun.

bobbb
decaying skeleton
decaying skeleton
Posts: 6
Joined: Thu Sep 22, 2005 8:27 pm

Post by bobbb » Mon Sep 26, 2005 7:07 pm

Yeah I will definitly donate, I like MQ so much for its functionality. I was able to write the ini files and use the hud. I have them displayed, I just need to change the coordinates so it works good with my UI.

brianman
a ghoul
a ghoul
Posts: 114
Joined: Mon Jun 07, 2004 7:46 am

Post by brianman » Tue Sep 27, 2005 5:44 am

Night Hawk wrote:People are assuming that you have VIP status (by donating) which is why that link does not work for you.
My bad, sorry about that.

xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: Mq2hud.ini

Post by xyilla » Sun Jun 15, 2025 9:32 pm


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: Mq2hud.ini

Post by xyilla » Sun Jun 15, 2025 9:34 pm


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: Mq2hud.ini

Post by xyilla » Sun Jun 15, 2025 9:35 pm


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: Mq2hud.ini

Post by xyilla » Sun Jun 15, 2025 9:36 pm


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: Mq2hud.ini

Post by xyilla » Sun Jun 15, 2025 9:37 pm


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: Mq2hud.ini

Post by xyilla » Sun Jun 15, 2025 9:38 pm


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: Mq2hud.ini

Post by xyilla » Sun Jun 15, 2025 9:39 pm


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: Mq2hud.ini

Post by xyilla » Sun Jun 15, 2025 9:40 pm