Forum for posting custom UIs, portions of UIs, and HUD stuff using MQ's enhancements.
Moderator: MacroQuest Developers
-
di28889
- a hill giant

- Posts: 296
- Joined: Sat Jul 12, 2003 11:36 pm
Post
by di28889 » Mon Jun 21, 2004 1:51 am
Ok, workaround, changed casts left code to this:
Code:
${Int[${Math.Calc[${Me.CurrentMana}/${If[!${Me.Gem[1].ID},1,${Me.Gem[1].Mana}]}]}]}
Basically, if there is no spell gem there, it will instead display current mana..
does not work with spell such as (sham) conversions (cann 4)
-
SirCodeAlot
- a lesser mummy

- Posts: 71
- Joined: Sat Feb 28, 2004 5:29 pm
- Location: Don't Really Know...
-
Contact:
Post
by SirCodeAlot » Mon Jun 21, 2004 12:39 pm
Okay - yeah - I see the problem. Basically math rule... repeat after me kids:
0 divded by anything equals.... ZERO

... very good class.
Now anything divided by 0 is.... UNDEFINED... excellent.
I will just have it look to see if the mana is 0 and if it is I will just have it either display nothing or put a zero there or something. I think it is a bit redundant to put the mana there, again, as it is already right on the compass window.
I'll have a new release up by the end of the night.
Last edited by
SirCodeAlot on Mon Jun 21, 2004 4:31 pm, edited 1 time in total.
SCA
[url]http://eq.sircodealot.net[/url]
-
bob_the_builder
- a hill giant

- Posts: 275
- Joined: Tue Jul 22, 2003 1:22 pm
Post
by bob_the_builder » Mon Jun 21, 2004 2:17 pm
0 divded by anything equals.... ONE...
Is this sarcasm? or some new type of 2+2=5 math?
0 divided by X = 0
Bob_doesn't_understand
-
loadingpleasewait
- a snow griffon

- Posts: 332
- Joined: Sat Sep 14, 2002 8:46 am
Post
by loadingpleasewait » Mon Jun 21, 2004 3:47 pm
Ok, how about this..
Code: Select all
${If[!${Me.Gem[1].ID},,${If[${Me.Gem[1].Mana}<=1,${Int[${Math.Calc[${Me.CurrentMana}/${Me.Gem[1].Mana}]}]},]}]}
Not at home to test, but technically, this should work. It shouldnt display anything if no gem is there, or the spells mana is less than or equal to 0.
-
SukMage
- a ghoul

- Posts: 88
- Joined: Fri Jun 04, 2004 5:08 pm
Post
by SukMage » Mon Jun 21, 2004 4:46 pm
Will have to try it when I get home... Before the latest math upgrade, it displayed 0 if the spell's mana was less than or equal to zero and I believe nothing if the gem was empty.
-
SirCodeAlot
- a lesser mummy

- Posts: 71
- Joined: Sat Feb 28, 2004 5:29 pm
- Location: Don't Really Know...
-
Contact:
Post
by SirCodeAlot » Mon Jun 21, 2004 4:55 pm
This has been updated as of 4:54PM EST on June 21, 2004 to fix the spam problem when no spell was loaded in the spell bar. Just a simple divide by zero problem due to Lax's smarter math module (or maybe the other one was smarter and handled the error?). Anyways, check the first post for details.
SCA
[url]http://eq.sircodealot.net[/url]
-
SukMage
- a ghoul

- Posts: 88
- Joined: Fri Jun 04, 2004 5:08 pm
Post
by SukMage » Mon Jun 21, 2004 6:49 pm
if spell cost = 0 there is no green text however it still spams on it
Divide by zero in calculation
Same with the no gem loaded spams but no pretty green text.
-
SirCodeAlot
- a lesser mummy

- Posts: 71
- Joined: Sat Feb 28, 2004 5:29 pm
- Location: Don't Really Know...
-
Contact:
Post
by SirCodeAlot » Mon Jun 21, 2004 7:55 pm
Yes, the damn thing is still broken - yet I have no clue how because it worked fine when I tested it and now it isn't working at all. Will have it done in a sec.
Grr.
SCA
[url]http://eq.sircodealot.net[/url]
-
loadingpleasewait
- a snow griffon

- Posts: 332
- Joined: Sat Sep 14, 2002 8:46 am
Post
by loadingpleasewait » Tue Jun 22, 2004 1:57 am
Ok, pain in the butt, but this works..
Code: Select all
${Math.Calc[${If[${Me.Gem[1].Mana}==0,0,${If[!${Me.Gem[1].ID},0,${Me.CurrentMana}]}]}/${If[${Me.Gem[1].Mana}==0,1,${If[!${Me.Gem[1].ID},1,${Me.Gem[1].Mana}]}]}].Int}
the code calculates the inside ${}'s first.. if you can get a shorter way to work, let me know.. :)
-
SirCodeAlot
- a lesser mummy

- Posts: 71
- Joined: Sat Feb 28, 2004 5:29 pm
- Location: Don't Really Know...
-
Contact:
Post
by SirCodeAlot » Tue Jun 22, 2004 7:42 am
Alrighty, it should be fixed now. I basically followed the link that loadingpleasewait gave me and evaluated the denominator in an if statement. It seems to me like it shouldn't work... But it does so I am just gonna leave it.
Check the first post for the download.
SCA
[url]http://eq.sircodealot.net[/url]
-
Drumstix42
- a grimling bloodguard

- Posts: 808
- Joined: Mon May 03, 2004 4:25 pm
Post
by Drumstix42 » Tue Jun 22, 2004 3:43 pm
loadingpleasewait wrote:Ok, pain in the butt, but this works..
Code: Select all
${Math.Calc[${If[${Me.Gem[1].Mana}==0,0,${If[!${Me.Gem[1].ID},0,${Me.CurrentMana}]}]}/${If[${Me.Gem[1].Mana}==0,1,${If[!${Me.Gem[1].ID},1,${Me.Gem[1].Mana}]}]}].Int}
the code calculates the inside ${}'s first.. if you can get a shorter way to work, let me know.. :)
Check in this forum, lax posted a fix, simpler than that.
-
SirCodeAlot
- a lesser mummy

- Posts: 71
- Joined: Sat Feb 28, 2004 5:29 pm
- Location: Don't Really Know...
-
Contact:
Post
by SirCodeAlot » Tue Jun 22, 2004 4:50 pm
Yeah - I basically used what Lax said to. The one in my version is a lot shorter, and it works. If it doesn't - post here and I will fix it.
SCA
[url]http://eq.sircodealot.net[/url]
-
Abrasive
- orc pawn

- Posts: 11
- Joined: Sat Sep 20, 2003 3:44 am
- Location: Baghdad
Post
by Abrasive » Tue Jun 22, 2004 6:49 pm
I have been using this UI for a long time now and have posted fixes when things have changed. I am now trying to use the MQ2DPS window but it is crashing the UI and reverting back to default.
In reading through posts, It seems that I am not the only one having this problem.
Anyone else using this UI and the MQ2DPS window without problems or has anyone found a reason or solution yet?
-
SirCodeAlot
- a lesser mummy

- Posts: 71
- Joined: Sat Feb 28, 2004 5:29 pm
- Location: Don't Really Know...
-
Contact:
Post
by SirCodeAlot » Tue Jun 22, 2004 9:46 pm
I'll take a look in to it - I have been having the same problems with the MQ2Timer plugin. It seems that it doesn't like foreign windows. I will see what I can dig-up.
SCA
[url]http://eq.sircodealot.net[/url]