EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > General Discussion > Request

Closed Thread
Thread Tools Search this Thread Display Modes
  #176  
Unread 11-19-2008, 06:37 PM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Default

Quote:
Originally Posted by gm9 View Post
I looked at the latest code I see, which is post #167?
Code:
<?xml version="1.0" encoding="utf-8"?>
<Page eq2usescomwndcontrols="true" Location="317,572" Name="AutoAttack" PackLocation="center,bottom" ScrollExtent="429,43" Size="429,43" UserMovable="true">
<Text AbsorbsInput="false" Font="/TextStyles.Large.LargeStyle" Margin="1,0,2,2" Name="AutoAttackText" PackSize="absolute,fixed" ScrollExtent="429,22" ShadowStyle="/ShadowStylesNew.OutlineDrop.style" Size="429,22" TextAlignment="Center" TextColor="#F0D080">Primary Auto Attack</Text>
<Text AbsorbsInput="false" Color="#00FF40" DynamicData="/GameData.Stats.Primary_Delay" Enabled="false" Font="/TextStyles.Small.SmallStyle" Location="0,22" Name="PrimaryDelayValue" ScrollExtent="39,12" ShadowStyle="/ShadowStylesNew.Drop.style" Size="39,12" TextAlignment="Right" TextAlignmentVertical="Center" UserScrollable="false">2.0</Text>
<Page AbsorbsInput="false" Location="43,24" Name="ProgressPage" PackLocation="top,left" ScrollExtent="350,8" Size="350,8">
<Page BackgroundOpacity="0.475" Location="68,0" Name="Marker20" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="137,0" Name="Marker40" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="205,0" Name="Marker60" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="274,0" Name="Marker80" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Button AbsorbsInput="false" BackgroundColor="#FFFFFF" BackgroundOpacity="1.000" DynamicData="/GameData.Self.AutoAttack" Location="0,0" Name="CalcTimer" OnShow="Parent.ProgressTimer.Press=true" Opacity="1.000" Rotation="0.500" Size="0,0" Visible="false" />
<Button AbsorbsInput="false" BackgroundColor="#FFFFFF" BackgroundOpacity="1.000" Location="-350,0" Name="ProgressTimer" OnEffectFinished="Location=&apos;-350,0&apos;" OnPress="SpeedCalc=350/Parent.Parent.PrimaryDelayValue.Text
Parent.Parent.MoveRight.Speed=SpeedCalc ## &apos;,0&apos;" OnPressEffector="MoveRight" Opacity="1.000" Rotation="0.500" Size="350,8" Visible="false" />
</Page>
<LocationEffector Name="MoveRight" Speed="0,0" />
<RectangleStyle Center="progress_fill" CenterShrinkV="true" CenterStretchH="false" Name="ProgressBar" NorthStretch="false" SouthStretch="false" TitleStretch="false" WestStretch="false" />
<ImageStyle Name="progress_fill">
<ImageFrame Name="progress_fill" Source="images/window_elements_generic.dds" SourceRect="218,464,219,470" />
</ImageStyle>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="40,21" Name="Frame" RStyleDefault="/rectlist.chat_bubble_frame" ScrollExtent="356,14" Size="356,14" />
<Image AbsorbsInput="false" Location="43,24" Name="Bkg" PackSize="absolute,fixed" ScrollExtent="350,8" Size="350,8" SourceRect="220,472,380,478" SourceResource="/images/window_elements_generic.dds" />
</Page>
It still crashes when I turn on/off auto attack
__________________
May Jesus Have Mercy On Us
  #177  
Unread 11-19-2008, 07:07 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Not entirely sure from looking at it but maybe you are creating a race condition between the effector and the OnEffect Finished? IIRC the OnShow of the AutoAttack fires twice so you will trigger it twice.
__________________
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.
  #178  
Unread 11-19-2008, 08:19 PM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Default

Quote:
Originally Posted by gm9 View Post
Not entirely sure from looking at it but maybe you are creating a race condition between the effector and the OnEffect Finished? IIRC the OnShow of the AutoAttack fires twice so you will trigger it twice.
Any ways around???
__________________
May Jesus Have Mercy On Us
  #179  
Unread 11-19-2008, 11:48 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Create a variable name and button that will be pressed first, and then a value that will trigger the code only after that value has been set?

/shrug
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
  #180  
Unread 11-20-2008, 12:23 AM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Default

Quote:
Originally Posted by Drumstix42 View Post
Create a variable name and button that will be pressed first, and then a value that will trigger the code only after that value has been set?

/shrug
I tried that. I might be doing something wrong, but I'm not sure. I have done many commutative things, but I cannot seem to get any to work.

I might have missed something or did something wrong. I'm thinking that it could have something to do with the MovementEffectors, but they worked as a loop together, so I would believe that would be ruled out.

...Anyone else wanna have a go at it????
__________________
May Jesus Have Mercy On Us

Last edited by dragowulf : 11-20-2008 at 12:25 AM.
  #181  
Unread 11-20-2008, 02:37 AM
ananigma ananigma is offline
A Brown Bear
 
Join Date: Aug 2005
Server: Antonia Bayle
Posts: 12
Default

I think it's gonna be hard to keep it from working right until you get the code to only trigger when autoattack lands or misses. Any other substitute will bug it out.

Here's the problem I had. I got a code to work just from having autoattack on but when I spammed Ca's. It crashed.

I determined the reason was when we use a ca, the game automatically pauses (or shuts off autoattack) and then reapplies after you are done casting. So everytime I would cast a CA, the autoattack trigger would reapply over and over in between the delay. With a delay of 4 seconds or so, and spamming 3-4 cas in between. You can see how that would cause a problem.

So there may not be a whole lot wrong with your code Dragowulf but you'll never really be able to know that until the trigger is coded correctly.

On that subject, instead of having ProxyActor read combat bubbles. Is there a way to get it to read the chat window? Say everytime "YOU" is shown, it will trigger the timer?? ("YOU" is the text for autoattacks)
  #182  
Unread 11-20-2008, 05:46 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Quote:
Originally Posted by ananigma View Post
On that subject, instead of having ProxyActor read combat bubbles. Is there a way to get it to read the chat window? Say everytime "YOU" is shown, it will trigger the timer?? ("YOU" is the text for autoattacks)
No you can't. Just make it read combat bubbles, that's dead easy. E.g. by simple modification of drago's code above (I only modified the OnShow/OnHide code of the window and removed his trigger):

Code:
<?xml version="1.0" encoding="utf-8"?>
<Page eq2usescomwndcontrols="true" Location="317,572" Name="AutoAttack" OnShow="parent.parent.ProxyActor.CombatBubble.OnShow='Parent.Parent.AutoAttack.ProgressPage.ProgressTimer.Press=true'" OnHide="parent.parent.ProxyActor.CombatBubble.OnShow=''" PackLocation="center,bottom" ScrollExtent="429,43" Size="429,43" UserMovable="true">
<Text AbsorbsInput="false" Font="/TextStyles.Large.LargeStyle" Margin="1,0,2,2" Name="AutoAttackText" PackSize="absolute,fixed" ScrollExtent="429,22" ShadowStyle="/ShadowStylesNew.OutlineDrop.style" Size="429,22" TextAlignment="Center" TextColor="#F0D080">Primary Auto Attack</Text>
<Text AbsorbsInput="false" Color="#00FF40" DynamicData="/GameData.Stats.Primary_Delay" Enabled="false" Font="/TextStyles.Small.SmallStyle" Location="0,22" Name="PrimaryDelayValue" ScrollExtent="39,12" ShadowStyle="/ShadowStylesNew.Drop.style" Size="39,12" TextAlignment="Right" TextAlignmentVertical="Center" UserScrollable="false">2.0</Text>
<Page AbsorbsInput="false" Location="43,24" Name="ProgressPage" PackLocation="top,left" ScrollExtent="350,8" Size="350,8">
<Page BackgroundOpacity="0.475" Location="68,0" Name="Marker20" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="137,0" Name="Marker40" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="205,0" Name="Marker60" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="274,0" Name="Marker80" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Button AbsorbsInput="false" BackgroundColor="#FFFFFF" BackgroundOpacity="1.000" Location="-350,0" Name="ProgressTimer" OnEffectFinished="Location=&apos;-350,0&apos;" OnPress="SpeedCalc=350/Parent.Parent.PrimaryDelayValue.Text
Parent.Parent.MoveRight.Speed=SpeedCalc ## &apos;,0&apos;" OnPressEffector="MoveRight" Opacity="1.000" Rotation="0.500" Size="350,8" Visible="false" />
</Page>
<LocationEffector Name="MoveRight" Speed="0,0" />
<RectangleStyle Center="progress_fill" CenterShrinkV="true" CenterStretchH="false" Name="ProgressBar" NorthStretch="false" SouthStretch="false" TitleStretch="false" WestStretch="false" />
<ImageStyle Name="progress_fill">
<ImageFrame Name="progress_fill" Source="images/window_elements_generic.dds" SourceRect="218,464,219,470" />
</ImageStyle>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="40,21" Name="Frame" RStyleDefault="/rectlist.chat_bubble_frame" ScrollExtent="356,14" Size="356,14" />
<Image AbsorbsInput="false" Location="43,24" Name="Bkg" PackSize="absolute,fixed" ScrollExtent="350,8" Size="350,8" SourceRect="220,472,380,478" SourceResource="/images/window_elements_generic.dds" />
</Page>
You'll just need to make sure that the bubbles are for auto-attacks via the ShadowStyle (I'd assume that auto-attack misses have the same ShadowStyle) and add bars for the different weapons. Maybe there's even a way to differentiate dual wielding from the bubbles, I don't know.
__________________
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.
  #183  
Unread 11-20-2008, 08:45 AM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Default

That works, but confusing with two weapons and CAs, and possibly even DA, etc.

Go to find a way to differentiate weapons.
__________________
May Jesus Have Mercy On Us

Last edited by dragowulf : 11-20-2008 at 08:48 AM.
  #184  
Unread 11-20-2008, 09:06 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Well to toggle bars:

Melee Bar:
/GameData.Self.AutoAttack

Dual wield melee bar:
/GameData.Stats.SecondaryDelay

Ranged Bar:
/GameData.Self.RangedAutoAttack

To filter CAs you need to amend the OnShow code of the CombatBubble to check for the ShadowStyle (would have added that had I known the name of it, someone will need to check in game).
__________________
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.
  #185  
Unread 11-20-2008, 06:23 PM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Default

I'll try something and get back to you
__________________
May Jesus Have Mercy On Us
  #186  
Unread 11-21-2008, 01:52 AM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Default

I've made quite a bit of progress. I have got both Primary/Secondary working together nicely. I just am trying to figure out how to make the bars stop resetting.
__________________
May Jesus Have Mercy On Us
  #187  
Unread 11-21-2008, 02:56 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

What's the issue with resetting?
__________________
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.
  #188  
Unread 11-21-2008, 03:04 AM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Default

Quote:
Originally Posted by gm9 View Post
What's the issue with resetting?
It resynchs upon each time anything happens with the combat bubbles (ie. when u attack, get hurt, riposite, etc.). I think I can fix it by making the OnPress take off the bubble's OnShow and then when effect is finished it would be reapplied.

I also have a new problem. (NOTE: I want to keep secondary and primary in the same window). What happens is that when I have dual wield weapons equipped upon logging in, it works fine. But when I have only the primary equipped upon logging in, it doesn't work. I've tried a couple things and I think I could use some help.

I changed a lot and renamed it eq2ui_autoattacktimer. I haven't got to ranged yet, but I'm assuming it will be easy.
Code:
<?xml version="1.0" encoding="utf-8"?>
<Page eq2usescomwndcontrols="true" Location="317,572" MinimumSize="400,43" Name="AutoAttackTimer" OnHide="Parent.Parent.ProxyActor.CombatBubble.OnShow=&apos;&apos;" PackLocation="center,bottom" ScrollExtent="400,82" Size="400,82" UserMovable="true">
<Composite AbsorbsInput="false" MinimumSize="400,43" Name="TimerPages" PackSize="a,a" ScrollExtent="400,82" Size="400,82" SpacingType="Fill">
<Page AbsorbsInput="false" DynamicData="/GameData.Self.AutoAttack" MaximumSize="400,39" MinimumSize="400,39" Name="Primary" ScrollExtent="400,39" Size="400,39" Visible="false">
<Text AbsorbsInput="false" Font="/TextStyles.Large.LargeStyle" Location="40,4" Margin="1,0,2,2" Name="AutoAttackText" ScrollExtent="356,21" ShadowStyle="/ShadowStylesNew.OutlineDrop.style" Size="356,21" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#F0D080">Primary Auto Attack</Text>
<Text AbsorbsInput="false" DynamicData="/GameData.Stats.Primary_Delay" Enabled="false" Font="/TextStyles.Small.SmallStyle" Location="4,26" Name="DelayValue" ScrollExtent="35,12" ShadowStyle="/ShadowStylesNew.Drop.style" Size="35,12" TextAlignment="Right" TextAlignmentVertical="Center" UserScrollable="false" />
<Page AbsorbsInput="false" Location="43,28" Name="ProgressPage" ScrollExtent="350,8" Size="350,8">
<Page BackgroundOpacity="0.475" Location="68,0" Name="Marker20" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="137,0" Name="Marker40" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="205,0" Name="Marker60" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="274,0" Name="Marker80" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Button AbsorbsInput="false" Location="-350,0" MaximumSize="350,8" MinimumSize="350,8" Name="ProgressTimer" OnEffectFinished="Location=&apos;-350,0&apos;" OnPress="SpeedCalc=350/Parent.Parent.DelayValue.Text
Parent.TimerTriggerPrimary.Speed=SpeedCalc ## &apos;,0&apos;" OnPressEffector="TimerTriggerPrimary" ScrollExtent="350,8" Size="350,8" Style="ProgressTimerStyle" Visible="false" />
<LocationEffector Name="TimerTriggerPrimary" />
</Page>
<Image AbsorbsInput="false" Location="43,28" Name="Bkg" ScrollExtent="350,8" Size="350,8" SourceRect="220,472,380,478" SourceResource="/images/window_elements_generic.dds" />
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="40,25" Name="Frame" RStyleDefault="/rectlist.chat_bubble_frame" ScrollExtent="356,14" Size="356,14" />
</Page>
<Page AbsorbsInput="false" Location="0,39" MaximumSize="400,39" MinimumSize="400,39" Name="Secondary" OnHide="Parent.Parent.Parent.Parent.ProxyActor.CombatBubble.OnShow=TMP2" OnShow="Parent.Parent.Parent.Parent.ProxyActor.CombatBubble.OnShow=TMP" ScrollExtent="400,39" Size="400,39" TMP="Parent.Parent.AutoAttackTimer.TimerPages.Primary.ProgressPage.ProgressTimer.Press=true Parent.Parent.AutoAttackTimer.TimerPages.Secondary.ProgressPage.ProgressTimer.Press=true" Visible="false">
<Text AbsorbsInput="false" Font="/TextStyles.Large.LargeStyle" Location="40,4" Margin="1,0,2,2" Name="AutoAttackText" ScrollExtent="356,21" ShadowStyle="/ShadowStylesNew.OutlineDrop.style" Size="356,21" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#F0D080">Secondary Auto Attack</Text>
<Text AbsorbsInput="false" DynamicData="/GameData.Stats.Secondary_Delay" Enabled="false" Font="/TextStyles.Small.SmallStyle" Location="4,26" Name="DelayValue" OnHide="Parent.Visible=false" OnShow="Parent.Visible=true" ScrollExtent="35,12" ShadowStyle="/ShadowStylesNew.Drop.style" Size="35,12" TextAlignment="Right" TextAlignmentVertical="Center" UserScrollable="false" Visible="false" />
<Page AbsorbsInput="false" Location="43,28" Name="ProgressPage" ScrollExtent="350,8" Size="350,8">
<Page BackgroundOpacity="0.475" Location="68,0" Name="Marker20" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="137,0" Name="Marker40" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="205,0" Name="Marker60" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="274,0" Name="Marker80" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Button AbsorbsInput="false" Location="-350,0" MaximumSize="350,8" MinimumSize="350,8" Name="ProgressTimer" OnEffectFinished="Location=&apos;-350,0&apos;" OnPress="SpeedCalc=350/Parent.Parent.DelayValue.Text
Parent.TimerTriggerSecondary.Speed=SpeedCalc ## &apos;,0&apos;" OnPressEffector="TimerTriggerSecondary" ScrollExtent="350,8" Size="350,8" Style="ProgressTimerStyle" Visible="false" />
<LocationEffector Name="TimerTriggerSecondary" />
</Page>
<Image AbsorbsInput="false" Location="43,28" Name="Bkg" ScrollExtent="350,8" Size="350,8" SourceRect="220,472,380,478" SourceResource="/images/window_elements_generic.dds" />
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="40,25" Name="Frame" RStyleDefault="/rectlist.chat_bubble_frame" ScrollExtent="356,14" Size="356,14" />
</Page>
<Page AbsorbsInput="false" DynamicData="/GameData.Self.RangedAutoAttack" Location="0,39" MaximumSize="400,39" MinimumSize="400,39" Name="Ranged" ScrollExtent="400,39" Size="400,39" Visible="false">
<Text AbsorbsInput="false" Font="/TextStyles.Large.LargeStyle" Location="40,4" Margin="1,0,2,2" Name="AutoAttackText" ScrollExtent="356,21" ShadowStyle="/ShadowStylesNew.OutlineDrop.style" Size="356,21" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#F0D080">Ranged Auto Attack</Text>
<Text AbsorbsInput="false" DynamicData="/GameData.Stats.Ranged_Delay" Enabled="false" Font="/TextStyles.Small.SmallStyle" Location="4,26" Name="DelayValue" ScrollExtent="35,12" ShadowStyle="/ShadowStylesNew.Drop.style" Size="35,12" TextAlignment="Right" TextAlignmentVertical="Center" UserScrollable="false" />
<Page AbsorbsInput="false" Location="43,28" Name="ProgressPage" ScrollExtent="350,8" Size="350,8">
<Page BackgroundOpacity="0.475" Location="68,0" Name="Marker20" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="137,0" Name="Marker40" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="205,0" Name="Marker60" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="274,0" Name="Marker80" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Button AbsorbsInput="false" Location="-350,0" MaximumSize="350,8" MinimumSize="350,8" Name="ProgressTimer" OnEffectFinished="Location=&apos;-350,0&apos;" OnPress="SpeedCalc=350/Parent.Parent.DelayValue.Text
Parent.TimerTriggerRanged.Speed=SpeedCalc ## &apos;,0&apos;" OnPressEffector="TimerTriggerRanged" ScrollExtent="350,8" Size="350,8" Style="ProgressTimerStyle" Visible="false" />
<LocationEffector Name="TimerTriggerRanged" />
</Page>
<Image AbsorbsInput="false" Location="43,28" Name="Bkg" ScrollExtent="350,8" Size="350,8" SourceRect="220,472,380,478" SourceResource="/images/window_elements_generic.dds" />
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="40,25" Name="Frame" RStyleDefault="/rectlist.chat_bubble_frame" ScrollExtent="356,14" Size="356,14" />
</Page>
</Composite>
<ButtonStyle Name="ProgressTimerStyle" RStyleDefault="Progress_Timer.progress_timer_rect" />
<Namespace Name="Progress_Timer">
<ImageStyle Name="progress_timer_fill">
<ImageFrame Name="progress_fill" Source="images/window_elements_generic.dds" SourceRect="218,464,219,470" />
</ImageStyle>
<RectangleStyle Center="progress_timer_fill" CenterShrinkV="true" CenterStretchH="false" Name="progress_timer_rect" NorthStretch="false" SouthStretch="false" TitleStretch="false" WestStretch="false" />
</Namespace>
<Page Location="-1,-2" MinimumSize="402,46" Name="WindowFrame" PackSize="absolute,absolute" ScrollExtent="402,85" Size="402,85">
<Page AbsorbsInput="false" BackgroundOpacity="1.000" MinimumSize="402,46" Name="Frame" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/WindowElements.DesktopWindowFrame.data.frame.rect" ScrollExtent="402,85" Size="402,85" />
<Page AbsorbsInput="false" BackgroundOpacity="1.000" MinimumSize="402,46" Name="Bkg" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/WindowElements.DesktopWindowFrame.data.bkg.rect" ScrollExtent="402,85" Size="402,85" />
</Page>
</Page>
__________________
May Jesus Have Mercy On Us
  #189  
Unread 11-21-2008, 03:20 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Well you'd really need to check the ShadowStyle at least, and if necessary because other messages are sharing the style whether it's an integer or says "Missed". If you stop it from retriggerin before the Effect is finished you can't resync where necessary (see Aditu's post above, there is quite a lot of variance in the timing).
__________________
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.
  #190  
Unread 11-21-2008, 03:26 AM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Default

Quote:
Originally Posted by gm9 View Post
Well you'd really need to check the ShadowStyle at least, and if necessary because other messages are sharing the style whether it's an integer or says "Missed". If you stop it from retriggerin before the Effect is finished you can't resync where necessary (see Aditu's post above, there is quite a lot of variance in the timing).
I'm not quite sure what you want me to do with the shadowstyle
__________________
May Jesus Have Mercy On Us
  #191  
Unread 11-21-2008, 03:30 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Quote:
Originally Posted by dragowulf View Post
I'm not quite sure what you want me to do with the shadowstyle
The following:

Quote:
Originally Posted by Jida View Post
There is a difference with auto attack combat bubbles and non auto attack combat bubbles.

If you disable all bubbles but your own its easier to see.

The difference is the outline around the numbers that fly above the monsters head.

So, if you can somehow in the UI see the combat bubble spam, and only reset it when you see the appropriate type appear. Then all is well in the world.
Quote:
Originally Posted by gm9 View Post
eq2ui_proxyactor.xml, add an OnShow event script to the CombatBubble page to trigger the bar to count down if LowerText has a specific ShadowStyle set (or not set). You probably do not need to read the actual value of the bubble unless there is something else sharing the same ShadowStyle which is not auto-attack related.
__________________
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.
  #192  
Unread 11-21-2008, 10:36 AM
Jida Jida is offline
A Berserk Golem
 
Join Date: Mar 2006
Server: Unrest
Posts: 58
Default

So, how do i test the code he keeps putting in that block.

Pretend i have no clue how to do it ... because I don't.
  #193  
Unread 11-21-2008, 11:33 AM
reins reins is offline
A Dervish Cutthroat
 
Join Date: Jan 2005
Server: Antonia Bayle
Posts: 35
Default

In the UI file is it possible to test if the progress bar current value is within a certain amount of time to finishing?

I'm not good with explaining whats going on in my brain, so I'll just give the example.

On combatbubble show,
if auto attack is on and the player is dual wielding, then
check each attack bar's remaining time, if it is less than 1/8 of a second then reset that bar

That would take care of the variance, as well as determine which bar you need to reset, primary or secondary. Also, not only do you need to check the ShadowStyle, but you need to check the font color as well, which will need to be white if I'm not mistaken. You won't need to make this check if you have only your combat bubbles showing though.
  #194  
Unread 11-21-2008, 11:46 AM
Jida Jida is offline
A Berserk Golem
 
Join Date: Mar 2006
Server: Unrest
Posts: 58
Default

Quote:
Originally Posted by reins View Post
You won't need to make this check if you have only your combat bubbles showing though.
My test only had my attacks showing, I have NO idea if you can see others auto attacks and if they have an outline different than what is currently being looked at.
  #195  
Unread 11-21-2008, 12:06 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Note that if you need to check for colors (I don't think you do) then you need to read them from the system variable first because they are freely configurable.
__________________
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.
  #196  
Unread 11-21-2008, 12:28 PM
reins reins is offline
A Dervish Cutthroat
 
Join Date: Jan 2005
Server: Antonia Bayle
Posts: 35
Default

You'll only need to check the color if you have all combat bubbles showing, that can be turned off in options though.
  #197  
Unread 11-21-2008, 04:13 PM
nluerdarea nluerdarea is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Server: Crushbone
Posts: 115
Default

Sounds like almost all the setbacks have been hurdled, just need to code something up =)
__________________
  #198  
Unread 11-21-2008, 04:22 PM
Jida Jida is offline
A Berserk Golem
 
Join Date: Mar 2006
Server: Unrest
Posts: 58
Default

Quote:
Originally Posted by reins View Post
You'll only need to check the color if you have all combat bubbles showing, that can be turned off in options though.
I agree, it should be a requirement for the person using the Addon to show only self combat bubbles.
  #199  
Unread 11-21-2008, 05:28 PM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Default

That's what I've been doing
Quote:
Originally Posted by nluerdarea View Post
Sounds like almost all the setbacks have been hurdled, just need to code something up =)

Ok, it's almost fully functional. I think the only problem is the CombatBubbles (and lag), but this is working better than I thought. I still notice little problems with Primary/Secondary working together, but I'm sure we can fix that. I'm under the impression that the Primary/Secondary problem has to do with the CombatBubbles.

I noticed that Ranged Combat bubbles function differently than melee. What happens is that you don't see the combat bubble until the arrow hits the target (It takes half of the delay time). I had to multipy the ranged SpeedCalc by 2 so that the ranged speed of the bar would be on par with the attack.

Please report any bugs/issues in this thread


Remember to put <include>eq2ui_custom_autoattacktimer.xml</include> inside your eq2ui_custom file. You don't need to type anything to make it work, just auto-attack
Code:
<?xml version="1.0" encoding="utf-8"?>
<Page eq2usescomwndcontrols="true" Location="317,572" MinimumSize="400,43" Name="AutoAttackTimer" PackLocation="center,bottom" ScrollExtent="400,43" Size="400,43" UserMovable="true">
<Composite AbsorbsInput="false" MinimumSize="400,43" Name="TimerPages" PackSize="a,a" ScrollExtent="400,82" Size="400,82" SpacingType="Fill">
<Button AbsorbsInput="false" Location="0,0" Name="CombatBubbleOnShow" OnPress="Parent.Parent.Parent.Parent.ProxyActor.CombatBubble.OnShow=TMP" ScrollExtent="0,0" Size="0,0" TMP="Parent.Parent.AutoAttackTimer.TimerPages.MeleePage.Primary.ProgressPage.ProgressTimer.Press=true Parent.Parent.AutoAttackTimer.TimerPages.MeleePage.Secondary.ProgressPage.ProgressTimer.Press=true Parent.Parent.AutoAttackTimer.TimerPages.Ranged.ProgressPage.ProgressTimer.Press=true" Visible="false"/>
<Page AbsorbsInput="false" MinimumSize="400,43" Name="MeleePage" ScrollExtent="400,82" OnShow="Secondary.Visible=false
Secondary.Visible=Secondary.DelayValue.Visible
Parent.CombatBubbleOnShow.Press=true" PackSize="a,a" Size="400,82" Visible="false">
<Page AbsorbsInput="false" DynamicData="/GameData.Self.AutoAttack" MaximumSize="400,39" MinimumSize="400,39" Name="Primary" OnHide="hide_window Custom.AutoAttacktimer" OnShow="Parent.Visible=true
show_window Custom.AutoAttacktimer" ScrollExtent="400,39" Size="400,39" Visible="false">
<Text AbsorbsInput="false" Font="/TextStyles.Large.LargeStyle" Location="40,4" Margin="1,0,2,2" Name="AutoAttackText" ScrollExtent="356,21" ShadowStyle="/ShadowStylesNew.OutlineDrop.style" Size="356,21" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#F0D080">Primary Auto Attack</Text>
<Text AbsorbsInput="false" DynamicData="/GameData.Stats.Primary_Delay" Enabled="false" Font="/TextStyles.Small.SmallStyle" Location="4,26" Name="DelayValue" ScrollExtent="35,12" ShadowStyle="/ShadowStylesNew.Drop.style" Size="35,12" TextAlignment="Right" TextAlignmentVertical="Center" UserScrollable="false"/>
<Page AbsorbsInput="false" Location="43,28" Name="ProgressPage" ScrollExtent="350,8" Size="350,8">
<Page BackgroundOpacity="0.475" Location="68,0" Name="Marker20" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8"/>
<Page BackgroundOpacity="0.475" Location="137,0" Name="Marker40" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8"/>
<Page BackgroundOpacity="0.475" Location="205,0" Name="Marker60" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8"/>
<Page BackgroundOpacity="0.475" Location="274,0" Name="Marker80" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8"/>
<Button AbsorbsInput="false" Location="-350,0" MaximumSize="350,8" MinimumSize="350,8" Name="ProgressTimer" OnEffectFinished="Location=&apos;-350,0&apos;" OnPress="SpeedCalc=350/Parent.Parent.DelayValue.Text
Parent.TimerTriggerPrimary.Speed=SpeedCalc ## &apos;,0&apos;" OnPressEffector="TimerTriggerPrimary" ScrollExtent="350,8" Size="350,8" Style="ProgressTimerStyle" Visible="false"/>
<LocationEffector Name="TimerTriggerPrimary"/>
</Page>
<Image AbsorbsInput="false" Location="43,28" Name="Bkg" ScrollExtent="350,8" Size="350,8" SourceRect="220,472,380,478" SourceResource="/images/window_elements_generic.dds"/>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="40,25" Name="Frame" RStyleDefault="/rectlist.chat_bubble_frame" ScrollExtent="356,14" Size="356,14"/>
</Page>
<Page AbsorbsInput="false" Location="0,39" MaximumSize="400,39" MinimumSize="400,39" Name="Secondary" OnHide="Parent.Parent.Parent.Size=&apos;400,43&apos;" OnShow="Parent.Parent.Parent.Size=&apos;400,82&apos;
Parent.Parent.Parent.WindowFrame.Size=&apos;402,85&apos;
Parent.Parent.Parent.WindowFrame.Frame.Size=&apos;402,85&apos;
Parent.Parent.Parent.WindowFrame.Bkg.Size=&apos;402,85&apos;" ScrollExtent="400,39" Size="400,39" Visible="false">
<Text AbsorbsInput="false" Font="/TextStyles.Large.LargeStyle" Location="40,4" Margin="1,0,2,2" Name="AutoAttackText" ScrollExtent="356,21" ShadowStyle="/ShadowStylesNew.OutlineDrop.style" Size="356,21" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#F0D080">Secondary Auto Attack</Text>
<Text AbsorbsInput="false" DynamicData="/GameData.Stats.Secondary_Delay" Enabled="false" Font="/TextStyles.Small.SmallStyle" Location="4,26" Name="DelayValue" OnHide="Parent.Visible=false" OnShow="Parent.Visible=true" ScrollExtent="35,12" ShadowStyle="/ShadowStylesNew.Drop.style" Size="35,12" TextAlignment="Right" TextAlignmentVertical="Center" UserScrollable="false" Visible="false"/>
<Page AbsorbsInput="false" Location="43,28" Name="ProgressPage" ScrollExtent="350,8" Size="350,8">
<Page BackgroundOpacity="0.475" Location="68,0" Name="Marker20" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8"/>
<Page BackgroundOpacity="0.475" Location="137,0" Name="Marker40" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8"/>
<Page BackgroundOpacity="0.475" Location="205,0" Name="Marker60" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8"/>
<Page BackgroundOpacity="0.475" Location="274,0" Name="Marker80" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8"/>
<Button AbsorbsInput="false" Location="-350,0" MaximumSize="350,8" MinimumSize="350,8" Name="ProgressTimer" OnEffectFinished="Location=&apos;-350,0&apos;" OnPress="SpeedCalc=350/Parent.Parent.DelayValue.Text
Parent.TimerTriggerSecondary.Speed=SpeedCalc ## &apos;,0&apos;" OnPressEffector="TimerTriggerSecondary" ScrollExtent="350,8" Size="350,8" Style="ProgressTimerStyle" Visible="false"/>
<LocationEffector Name="TimerTriggerSecondary"/>
</Page>
<Image AbsorbsInput="false" Location="43,28" Name="Bkg" ScrollExtent="350,8" Size="350,8" SourceRect="220,472,380,478" SourceResource="/images/window_elements_generic.dds"/>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="40,25" Name="Frame" RStyleDefault="/rectlist.chat_bubble_frame" ScrollExtent="356,14" Size="356,14"/>
</Page>
</Page>
<Page AbsorbsInput="false" DynamicData="/GameData.Self.RangedAutoAttack" Location="0,39" MaximumSize="400,39" MinimumSize="400,39" Name="Ranged" OnHide="Parent.MeleePage.Visible=true" OnShow="Parent.Parent.Size=&apos;400,43&apos;
Parent.Parent.WindowFrame.Size=&apos;402,46&apos;
Parent.Parent.WindowFrame.Frame.Size=&apos;402,46&apos;
Parent.Parent.WindowFrame.Bkg.Size=&apos;402,46&apos;
Parent.MeleePage.Visible=false" ScrollExtent="400,39" Size="400,39" Visible="false">
<Text AbsorbsInput="false" Font="/TextStyles.Large.LargeStyle" Location="40,4" Margin="1,0,2,2" Name="AutoAttackText" ScrollExtent="356,21" ShadowStyle="/ShadowStylesNew.OutlineDrop.style" Size="356,21" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#F0D080">Ranged Auto Attack</Text>
<Text AbsorbsInput="false" DynamicData="/GameData.Stats.Ranged_Delay" Enabled="false" Font="/TextStyles.Small.SmallStyle" Location="4,26" Name="DelayValue" ScrollExtent="35,12" ShadowStyle="/ShadowStylesNew.Drop.style" Size="35,12" TextAlignment="Right" TextAlignmentVertical="Center" UserScrollable="false"/>
<Page AbsorbsInput="false" Location="43,28" Name="ProgressPage" ScrollExtent="350,8" Size="350,8">
<Page BackgroundOpacity="0.475" Location="68,0" Name="Marker20" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8"/>
<Page BackgroundOpacity="0.475" Location="137,0" Name="Marker40" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8"/>
<Page BackgroundOpacity="0.475" Location="205,0" Name="Marker60" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8"/>
<Page BackgroundOpacity="0.475" Location="274,0" Name="Marker80" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8"/>
<Button AbsorbsInput="false" Location="-350,0" MaximumSize="350,8" MinimumSize="350,8" Name="ProgressTimer" OnEffectFinished="Location=&apos;-350,0&apos;" OnPress="SpeedCalc=350/Parent.Parent.DelayValue.Text
SpeedCalc=SpeedCalc*2
Parent.TimerTriggerRanged.Speed=SpeedCalc ## &apos;,0&apos;" OnPressEffector="TimerTriggerRanged" ScrollExtent="350,8" Size="350,8" Style="ProgressTimerStyle" Visible="false"/>
<LocationEffector Name="TimerTriggerRanged"/>
</Page>
<Image AbsorbsInput="false" Location="43,28" Name="Bkg" ScrollExtent="350,8" Size="350,8" SourceRect="220,472,380,478" SourceResource="/images/window_elements_generic.dds"/>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="40,25" Name="Frame" RStyleDefault="/rectlist.chat_bubble_frame" ScrollExtent="356,14" Size="356,14"/>
</Page>
</Composite>
<ButtonStyle Name="ProgressTimerStyle" RStyleDefault="Progress_Timer.progress_timer_rect"/>
<Namespace Name="Progress_Timer">
<ImageStyle Name="progress_timer_fill">
<ImageFrame Name="progress_fill" Source="images/window_elements_generic.dds" SourceRect="218,464,219,470"/>
</ImageStyle>
<RectangleStyle Center="progress_timer_fill" CenterShrinkV="true" CenterStretchH="false" Name="progress_timer_rect" NorthStretch="false" SouthStretch="false" TitleStretch="false" WestStretch="false"/>
</Namespace>
<Page Location="-1,-2" MinimumSize="402,46" Name="WindowFrame" PackSize="absolute,absolute" ScrollExtent="402,46" Size="402,46">
<Page AbsorbsInput="false" BackgroundOpacity="1.000" MinimumSize="402,46" Name="Frame" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/WindowElements.DesktopWindowFrame.data.frame.rect" ScrollExtent="402,46" Size="402,46"/>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" MinimumSize="402,46" Name="Bkg" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/WindowElements.DesktopWindowFrame.data.bkg.rect" ScrollExtent="402,46" Size="402,46"/>
</Page>
</Page>
Attached Files
File Type: xml eq2ui_custom_autoattacktimer.xml (9.4 KB, 370 views)
__________________
May Jesus Have Mercy On Us

Last edited by dragowulf : 11-21-2008 at 05:31 PM.
  #200  
Unread 11-21-2008, 06:31 PM
Jida Jida is offline
A Berserk Golem
 
Join Date: Mar 2006
Server: Unrest
Posts: 58
Default

It updates on EVERY bubble, should only be the ones with no border.

I guess you already knew that.

I have more features to make it a little more complex once you get it functional
Closed Thread



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:14 AM.


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