 |

11-19-2008, 06:37 PM
|
 |
A man among men
|
|
Join Date: Dec 2004
Server: Nagafen
Posts: 934
|
|
Quote:
Originally Posted by gm9
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='-350,0'" OnPress="SpeedCalc=350/Parent.Parent.PrimaryDelayValue.Text
Parent.Parent.MoveRight.Speed=SpeedCalc ## ',0'" 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
|

11-19-2008, 07:07 PM
|
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
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.
|

11-19-2008, 08:19 PM
|
 |
A man among men
|
|
Join Date: Dec 2004
Server: Nagafen
Posts: 934
|
|
Quote:
Originally Posted by gm9
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
|

11-19-2008, 11:48 PM
|
 |
A Griffon
|
|
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
|
|
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
|

11-20-2008, 12:23 AM
|
 |
A man among men
|
|
Join Date: Dec 2004
Server: Nagafen
Posts: 934
|
|
Quote:
Originally Posted by Drumstix42
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.
|

11-20-2008, 02:37 AM
|
|
A Brown Bear
|
|
Join Date: Aug 2005
Server: Antonia Bayle
Posts: 12
|
|
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)
|

11-20-2008, 05:46 AM
|
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
Quote:
Originally Posted by ananigma
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='-350,0'" OnPress="SpeedCalc=350/Parent.Parent.PrimaryDelayValue.Text
Parent.Parent.MoveRight.Speed=SpeedCalc ## ',0'" 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.
|

11-20-2008, 08:45 AM
|
 |
A man among men
|
|
Join Date: Dec 2004
Server: Nagafen
Posts: 934
|
|
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.
|

11-20-2008, 09:06 AM
|
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
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).
|

11-20-2008, 06:23 PM
|
 |
A man among men
|
|
Join Date: Dec 2004
Server: Nagafen
Posts: 934
|
|
I'll try something and get back to you
__________________
May Jesus Have Mercy On Us
|

11-21-2008, 01:52 AM
|
 |
A man among men
|
|
Join Date: Dec 2004
Server: Nagafen
Posts: 934
|
|
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
|

11-21-2008, 02:56 AM
|
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
What's the issue with resetting?
|

11-21-2008, 03:04 AM
|
 |
A man among men
|
|
Join Date: Dec 2004
Server: Nagafen
Posts: 934
|
|
Quote:
Originally Posted by gm9
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=''" 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='-350,0'" OnPress="SpeedCalc=350/Parent.Parent.DelayValue.Text
Parent.TimerTriggerPrimary.Speed=SpeedCalc ## ',0'" 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='-350,0'" OnPress="SpeedCalc=350/Parent.Parent.DelayValue.Text
Parent.TimerTriggerSecondary.Speed=SpeedCalc ## ',0'" 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='-350,0'" OnPress="SpeedCalc=350/Parent.Parent.DelayValue.Text
Parent.TimerTriggerRanged.Speed=SpeedCalc ## ',0'" 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
|

11-21-2008, 03:20 AM
|
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
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).
|

11-21-2008, 03:26 AM
|
 |
A man among men
|
|
Join Date: Dec 2004
Server: Nagafen
Posts: 934
|
|
Quote:
Originally Posted by gm9
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
|

11-21-2008, 03:30 AM
|
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
Quote:
Originally Posted by dragowulf
I'm not quite sure what you want me to do with the shadowstyle
|
The following:
Quote:
Originally Posted by Jida
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
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.
|
|

11-21-2008, 10:36 AM
|
|
A Berserk Golem
|
|
Join Date: Mar 2006
Server: Unrest
Posts: 58
|
|
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.
|

11-21-2008, 11:33 AM
|
|
A Dervish Cutthroat
|
|
Join Date: Jan 2005
Server: Antonia Bayle
Posts: 35
|
|
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.
|

11-21-2008, 11:46 AM
|
|
A Berserk Golem
|
|
Join Date: Mar 2006
Server: Unrest
Posts: 58
|
|
Quote:
Originally Posted by reins
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.
|

11-21-2008, 12:06 PM
|
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
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.
|

11-21-2008, 12:28 PM
|
|
A Dervish Cutthroat
|
|
Join Date: Jan 2005
Server: Antonia Bayle
Posts: 35
|
|
You'll only need to check the color if you have all combat bubbles showing, that can be turned off in options though.
|

11-21-2008, 04:13 PM
|
|
A Griffon
|
|
Join Date: Jan 2005
Server: Crushbone
Posts: 115
|
|
Sounds like almost all the setbacks have been hurdled, just need to code something up =)
__________________
|

11-21-2008, 04:22 PM
|
|
A Berserk Golem
|
|
Join Date: Mar 2006
Server: Unrest
Posts: 58
|
|
Quote:
Originally Posted by reins
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.
|

11-21-2008, 05:28 PM
|
 |
A man among men
|
|
Join Date: Dec 2004
Server: Nagafen
Posts: 934
|
|
That's what I've been doing
Quote:
Originally Posted by nluerdarea
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='-350,0'" OnPress="SpeedCalc=350/Parent.Parent.DelayValue.Text
Parent.TimerTriggerPrimary.Speed=SpeedCalc ## ',0'" 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='400,43'" OnShow="Parent.Parent.Parent.Size='400,82'
Parent.Parent.Parent.WindowFrame.Size='402,85'
Parent.Parent.Parent.WindowFrame.Frame.Size='402,85'
Parent.Parent.Parent.WindowFrame.Bkg.Size='402,85'" 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='-350,0'" OnPress="SpeedCalc=350/Parent.Parent.DelayValue.Text
Parent.TimerTriggerSecondary.Speed=SpeedCalc ## ',0'" 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='400,43'
Parent.Parent.WindowFrame.Size='402,46'
Parent.Parent.WindowFrame.Frame.Size='402,46'
Parent.Parent.WindowFrame.Bkg.Size='402,46'
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='-350,0'" OnPress="SpeedCalc=350/Parent.Parent.DelayValue.Text
SpeedCalc=SpeedCalc*2
Parent.TimerTriggerRanged.Speed=SpeedCalc ## ',0'" 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>
__________________
May Jesus Have Mercy On Us
Last edited by dragowulf : 11-21-2008 at 05:31 PM.
|

11-21-2008, 06:31 PM
|
|
A Berserk Golem
|
|
Join Date: Mar 2006
Server: Unrest
Posts: 58
|
|
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 
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:56 AM.
|
 |