EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Featured Projects > ProfitUI

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 05-22-2007, 01:44 AM
Mayve's Avatar
Mayve Mayve is offline
Snoogans!
Premium Member
Interface Author - Click to view interfaces
 
Join Date: Oct 2005
Server: Befallen
Posts: 53
Default Targets that turn attackable still not showing

Sadly the target windows are still not working in v3.4 when it comes to targets that turn attackable.
Attached Thumbnails
Click image for larger version

Name:	profitui_target.jpg
Views:	717
Size:	33.6 KB
ID:	5785  

Last edited by Mayve : 05-22-2007 at 01:56 AM.
Reply With Quote
  #2  
Unread 05-22-2007, 05:26 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Yes I already noticed that as well. I'll have to sit down and finally figure this one out, that must be the longest standing issue with the interface... Will do so after my vacation (2 weeks starting this weekend, yay!). For some reason the DynamicData I'm using does not trigger correctly when targets turn attackable. I'll just have to find another one that works and use that instead...
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.

Last edited by gm9 : 05-22-2007 at 05:32 AM. Reason: added info
Reply With Quote
  #3  
Unread 05-22-2007, 03:55 PM
nikken nikken is offline
A Brown Bear
 
Join Date: Mar 2005
Server: Antonia Bayle
Posts: 9
Default

Keep up the great work Gm9!
Reply With Quote
  #4  
Unread 05-23-2007, 02:39 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

Ah shoot. I must not have looked at this very closely before.

Your target window has a special page for NPCs and shinies so that it displays them entirely differently. Hmm, for shinies it only checks for "?" though and not the "!" book pages... Anyway, there's a lot of scripting attached to the "Info" text which is where the target shows a mob's level. It looks like:

<Text AbsorbsInput="false" actiontype="Target" DynamicDataFilter="FBFB" Font="/Profit.Fonts.FontArial14T" LocalText="Level 75 Epic(x4)" Location="0,18" Name="Info" OnHide="Parent.Name.size=&quot;500,0&quot;
Parent.Power.Visible=False
Parent.Health.Visible=False
Parent.Info.Size=&quot;0,0&quot;
Parent.Parent.Common.Shiney.Visible=((Parent.Name.Text)==(&apos;?&apos;))
COND=(Parent.Name.Text == &apos;?&apos;)
CONDTRUE=&quot;0,0&quot;
CONDFALSE=&quot;154,75&quot;
Parent.Parent.Common.Name2.Size=COND ? CONDTRUE : CONDFALSE
Visible=True" PackLocation="top,left" PackLocationProp="0000/0001,0018/0001" ScrollExtent="172,21" ShadowStyle="/ShadowStyles.BlackOutlineNoShadow.Outline1" Size="172,21" TextAlignment="Center" TextAlignmentVertical="Center">Level 75 Epic(x4)</Text>

When this "Info" text is hidden it switches modes entirely and shows the Name2 style text from the Common page. I messed around with it a bit and put in some OnShow scripting like:
<Text AbsorbsInput="false" actiontype="Target" DynamicDataFilter="FBFB" Font="/Profit.Fonts.FontArial14T" LocalText="Level 75 Epic(x4)" Location="0,18" Name="Info" OnHide="Parent.Name.size=&quot;500,0&quot;
Parent.Power.Visible=False
Parent.Health.Visible=False
Size=&quot;0,0&quot;
Parent.Parent.Common.Shiney.Visible=((Parent.Name.Text)==(&apos;?&apos;))
COND=(Parent.Name.Text == &apos;?&apos;)
CONDTRUE=&quot;0,0&quot;
CONDFALSE=&quot;154,75&quot;
Parent.Parent.Common.Name2.Size=COND ? CONDTRUE : CONDFALSE" OnShow="Parent.Name.Size='164,14'
Parent.Power.Visible=True
Parent.Health.Visible=True
Size='172,21'
Parent.Parent.Common.Shiney.Visible=False
Parent.Parent.Common.Name2.Size='0,0'"
PackLocation="top,left" PackLocationProp="0000/0001,0018/0001" ScrollExtent="172,21" ShadowStyle="/ShadowStyles.BlackOutlineNoShadow.Outline1" Size="172,21" TextAlignment="Center" TextAlignmentVertical="Center">Level 75 Epic(x4)</Text>

which basically reverses everything that the OnHide scripting does. It seems to work ok. It doesn't switch modes to show you the health and power instantly. The window has to be updated by some kind of event, like a change in health or power etc. but the default interface window works the same way. It doesn't change instantly either.

Oh, I was doing all this testing on the sparring partners in Hate's Envy. Those change back and forth from NPC to attackable really easily.

Last edited by Othesus : 05-23-2007 at 02:43 PM.
Reply With Quote
  #5  
Unread 05-23-2007, 03:19 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Quote:
Originally Posted by Othesus View Post
Your target window has a special page for NPCs and shinies so that it displays them entirely differently. Hmm, for shinies it only checks for "?" though and not the "!" book pages...
I'm fairly certain that you cannot tab-target "!" pages. The code for "?" is a workaround where you tab-target the "?" and then double-click it again or something like that (memory is hazy and that code is a mess anyway - was actually my first use of conditionals ever IIRC).

Quote:
Originally Posted by Othesus View Post
It seems to work ok. It doesn't switch modes to show you the health and power instantly. The window has to be updated by some kind of event, like a change in health or power etc. but the default interface window works the same way. It doesn't change instantly either.
Right, currently I use the power bar. NPC's don't have one. Once you target something with a power bar the DynamicData gets triggered and switches the mode of the window. However, on NPC's turning attackable and thus obtaining a power bar while you have them targetted, this does not work.

Interesting that your code seems to work, I'm fairly certain that I already tested an OnShow event on the info text - actually it was the first thing I tried since I already use the OnHide event of that object. Maybe the behaviour of that object changed over time, it was long ago when I last looked at the code, and I can't remember what the issue with it was. Would be cool if that's it, in any case thanks for taking the time to find a workaround.

To you want to go ahead an upload your window here so people can test it just in case the sparring partner's behave differently than other mobs or other issues appear like the window not switching to NPC mode when it should?
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #6  
Unread 05-24-2007, 05:28 AM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

Well, I spent a few more hours testing the scripts and it's a little more complicated still. Putting all the scripts into the "Info" text object almost works but not quite. This is what is visible in the target window depending on the type of thing you're targeting:

MOB: health, power, level
NPC: health, power, no level
Shiny/Harvestable: health, power is inactive (gray), no level

So you would think that putting the script into the level "Info" text object would work. It works for every case except for tabbing from NPC to NPC or between NPCs and Shiny/Harvestables. In that case the health and power bars pop up. Grrr.

So there has to be a couple more checks.

Last edited by Othesus : 05-24-2007 at 05:45 AM.
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 12:44 AM.


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