Home Forum Downloads My Favorites Register FAQ Mark Forums Read

Go Back   EQInterface Forums > Developer Discussion > Graphics modification help.
User Name
Password

Reply
 
Thread Tools Display Modes
Old 10-17-2002, 12:57 AM   #1
Dayradon
A Gray Wolf
 
Join Date: Oct 2002
Server: Cazic-Thule
Posts: 7
Red face Help with adding a custom Animations

it's my first time so be gentle


Ok so i've gone through most of these post and figured out how to make a graphic, and animation, and get them to show up in my xml editor ( SIDLWIDL).


I'm trying to add a animation to the target window. I'll worry about a custom template and all later (if i can).

read a post about how to insert a custom animation into a window, and followed it to a "T".

sorry about posting the whole darn thing but it's not that big hehehe, any way I tried making these two lines

StaticAnimation item= "A_targetanim01">
<ScreenID>wings</ScreenID>

have same and different values and my <pieces> is at bottom. I just keep gettting the same error when i click the screen portion under target window in SIDLWIDL. If i click the animation refence there, it shows it no probs, so the animation code i think is right, but i'm just not calling it to be an item on the screen correctly ???. Any help would be apreciated thanx.

Dayradon

PS here's a sneak at the graphic i'm using for the animations

please don't steall it yet (anyone) least till i'm done




here's my code for the target window:

<?xml version = "1.0"?>
<XML ID = "EQInterfaceDefinitionLanguage">
<Schema xmlns = "EverQuestData" xmlns:dt = "EverQuestDataTypes"/>
<Gauge item = "Target_HP">
<ScreenID>TargetHP</ScreenID>
<Font>3</Font>
<TextColor>
<R>240</R>
<G>240</G>
<B>240</B>
</TextColor>
<RelativePosition>true</RelativePosition>
<Location>
<X>3</X>
<Y>0</Y>
</Location>
<Size>
<CX>108</CX>
<CY>24</CY>
</Size>
<GaugeOffsetY>16</GaugeOffsetY>
<TextOffsetX>8</TextOffsetX>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<TooltipReference/>
<FillTint>
<R>240</R>
<G>0</G>
<B>0</B>
</FillTint>
<LinesFillTint>
<R>220</R>
<G>220</G>
<B>0</B>
</LinesFillTint>
<DrawLinesFill>false</DrawLinesFill>
<EQType>6</EQType>
<GaugeDrawTemplate>
<Background>A_GaugeBackground</Background>
<Fill>A_GaugeFill</Fill>
<Lines>A_GaugeLines</Lines>
<LinesFill>A_GaugeLinesFill</LinesFill>
<EndCapLeft>A_GaugeEndCapLeft</EndCapLeft>
<EndCapRight>A_GaugeEndCapRight</EndCapRight>
</GaugeDrawTemplate>
</Gauge>

<!----MY ANIMATION CODE ------>

<StaticAnimation item= "A_targetanim01">
<ScreenID>wings</ScreenID>
<Location>
<X>30</X>
<Y>0</Y>
</Location>
<Size>
<CX>64</CX>
<CY>32</CY>
</Size>
<Animation>A_targetanim01</Animation>
</StaticAnimation>

<!-------END MY CODE----->

<Screen item = "TargetWindow">
<ScreenID/>
<RelativePosition>false</RelativePosition>
<Location>
<X>516</X>
<Y>242</Y>
</Location>
<Size>
<CX>124</CX>
<CY>50</CY>
</Size>
<Text>Target</Text>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<TooltipReference>Your Current Target</TooltipReference>
<DrawTemplate>WDT_Rounded</DrawTemplate>
<Style_Titlebar>true</Style_Titlebar>
<Style_Closebox>false</Style_Closebox>
<Style_Minimizebox>false</Style_Minimizebox>
<Style_Border>true</Style_Border>
<Style_Sizable>false</Style_Sizable>
<Pieces>Target_HP</Pieces>
<Pieces>wings</Pieces>
</Screen>

</XML>
Attached Images
File Type: jpg wingeyeani.jpg (36.0 KB, 60 views)
__________________
If you have to kill a man to save another, will you comit murder to become a hero?
Dayradon is offline   Reply With Quote
Old 10-17-2002, 11:29 PM   #2
Dayradon
A Gray Wolf
 
Join Date: Oct 2002
Server: Cazic-Thule
Posts: 7
Default Found solution myself :)

Ok anytime you make an animation, when inserting it

the <animation> ******</animation>

can not have the same value as your screen ID or your UI2danimation fields


Go figure though, now i have to find out why my template is not working. won't accept a new template with a custom graphic.

error 4 failed to load .tga


Sigh had to redisgn everything cause the animation is always gonna be in the fore-ground.
Dayradon is offline   Reply With Quote
Old 10-18-2002, 12:14 AM   #3
Cormanth
A Shissar Defiler
 
Cormanth's Avatar
 
Join Date: Aug 2002
Server: Zebuxoruk
Posts: 172
Interface Author - Click to view interfaces
Default

Actually, I'm seeing a different problem with that code, unless you just forgot to post part of it... I see that you are placing the animation on the screen, but where in there are you defining it? Before you can place an animation on the screen using <StaticAnimation> you need to create the animation using <UiD2Animation>. Here's a very rough example

<TextureInfo item = "filename.png">
<Size> </Size>
</TextureInfo>

<UiD2animation item = "A_AnimName">
<Frames>
<Texture>filename.png</Texture>
<Location> </Location>
<Size> </Size>
</Frames>
</UiD2Animation>

Then, after you have declared the texture file to use, and specified where to load the animation from, you can place it on the screen.

<StaticAnimation item = "Anim">
<ScreenID>IDName</ScreenID>
<Location> </Location>
<Size> </Size>
<Animation>A_AnimName</Animation>
</StaticAnimation>

I left out the details, ofcrouse, as well as some optional things. But those are basically the required steps to placing a pic or an animation on the screen.... 1) declare the graphic file as a texture, 2) define where the texture is to be loaded from, 3) then place the texture/animation on the screen.
Cormanth is offline   Reply With Quote
Old 10-18-2002, 08:17 AM   #4
Odaku
A Treant
 
Odaku's Avatar
 
Join Date: Jul 2002
Posts: 22
Interface Author - Click to view interfaces
Default

/bonk me if you must but I've never caught the hang of the custom graphics deal here or anywhere for that matter..couple of idiot questions....When you declare where it shows up...that is within the range of the declared size of whatever window your mod'ing, correct? Whenever I tried to replace anything I crash to that frelling ugly default skin. And from what I've read above you can declare textures and all the new stuff IN the .xml file your modding....So can you RE-declare something that has already been declared in the animations.xml file? I modded that to make my double sized spell gems and would rather just add the mod to the gembar instead for compatibility issues. Sorry for this long pleading post but I just have all these questions answered only vaguely in my kreepy mind.
Odaku is offline   Reply With Quote
Old 10-18-2002, 03:34 PM   #5
Cormanth
A Shissar Defiler
 
Cormanth's Avatar
 
Join Date: Aug 2002
Server: Zebuxoruk
Posts: 172
Interface Author - Click to view interfaces
Default

Yes, the size must be within the size of the window you are working on. If your window is 256x256 then your animation can't be any larger than 256x256. Well, it can, but parts of it will run off the edge of the window and won't show.

Just keep these in mind when it comes to size:

'<Size>' in the Texture Info refers to the actual size of the graphics file you are loading from.

'<Size>' in the UiD2Animation refers to the size of the image you are loading from that file. The file may be 256x256 but the image may only be 200x170 pixels.

'<Size>' in thr StaticAnimation again refers to the size of the image itself... this should be the same as the size in the UiD2animation.

You cannot declare or define something twice. It get's confused and tells you that you have a duplicate item. This causes it to revert to the default UI. If the animation is already defined in another file, you will either have to edit that file, or create a totally new animation (in your own file or the file you're working on), give it a new name, and then use that new animation in the item you're working with.

Now, there are some things this does not work with. Some animations are coded one way and only work that way (this is called hard coding). For instance, the buff icons in your buff window, and the spell icons in your spell book both use the same animation which is already defined in the Animations file. You can change those animations, but you cannot make the buff icons or spell icons use a different animation. (kind of a pain in the arse if you ask me)

-Cormanth
Cormanth is offline   Reply With Quote
Old 10-18-2002, 11:48 PM   #6
Dayradon
A Gray Wolf
 
Join Date: Oct 2002
Server: Cazic-Thule
Posts: 7
Default declaring my graphic

CORMANTH

Oh i'm just declareing my graphic in the animations XML like all the default ones, and then i list the <Ui2DAnimation> in the same spot as where the default ones are for the character class anim's. then i just mod the changes in to the actuall windows,

New prob lem though, got my animation up. I had the
<animation> tag the same as the <screenID> & <staticanimation> tags

that don't work! but when i got it to work it was always in the foreground and covered the gauges.

So in my enthusiasm, i made a new template, a new graphic, and a new animation from just the eyes of the graphic. that solve the fore-ground issue, but made a new one. Now any part of my background image of my template, is shifted down about 8-16 pixels, only under the animation area.

tried to show it before: will try again

_____ = bottom of picture

******= animation

....... = just ignore em





......****......
___........___
......____......


Saw a reply to an earlier post, where someone had made the actual back ground pic of the window, a static animation.

How do i tell the <drawscreen> thingy that it's NOT just another .TGA file for a background, but an animation? this may solve all my issues. But at least i've learned how to make a template

wish i could put the pic right in here but don't know how hehehe.
Dayradon is offline   Reply With Quote
Old 10-19-2002, 12:03 AM   #7
Cormanth
A Shissar Defiler
 
Cormanth's Avatar
 
Join Date: Aug 2002
Server: Zebuxoruk
Posts: 172
Interface Author - Click to view interfaces
Default

One way to add an animation as the background would be to set the window as transparent:

<Style_Transparent>true</Style_Transparent>

then use a <StaticAnimation> element to add the animation to the screen. However, doing it this way you would need to make the static animation the first thing the window draws so that everything else is drawn ontop of this.

It might help others to understand your problem if you attach a pic or the xml file to your post using the 'Attach File' feature. Altho you might need to first save the xml file as a .txt file first. I don't know if this forum allows you to attach .xml files.
Cormanth is offline   Reply With Quote
Old 10-19-2002, 09:54 AM   #8
Dayradon
A Gray Wolf
 
Join Date: Oct 2002
Server: Cazic-Thule
Posts: 7
Default animation back ground

Ok so if i add the animation under the screen element, does that mean it's not a <pieces> thingy any more? I insert it after the first <screen> part? and make the style of the screen transparent.

At work now so i can't attach anything but will look at getting it attached.


You mentioned the order is important, is this true with pieces?

how do i know what order the pieces are being drawn?
Is it the order they apear as defined by the order of the <pieces>

eg.

<pieces>draw 1st</pieces>
<pieces>draw2nd</pieces>

etc or is the order defined by the parts at the top of an XML, above the <screen>?

thnx again
Dayradon is offline   Reply With Quote
Old 10-20-2002, 06:20 AM   #9
Cormanth
A Shissar Defiler
 
Cormanth's Avatar
 
Join Date: Aug 2002
Server: Zebuxoruk
Posts: 172
Interface Author - Click to view interfaces
Default

Quote:
You mentioned the order is important, is this true with pieces?

how do i know what order the pieces are being drawn?
Is it the order they apear as defined by the order of the <pieces>


Yes, the order inwhich you place the <Piece>'s in the <Screen> section determines the order inwhich items are drawn on the screen... usually.

The first piece is drawn first (on the bottom) and everything else follows, stacking ontop of each other. There are some exceptions to this rule in the case of hard coding. For instance, the Spell gems in your spellbook are always drawn ontop of everything else, regardless of what order you place things in.

Quote:
Ok so if i add the animation under the screen element, does that mean it's not a <pieces> thingy any more? I insert it after the first <screen> part? and make the style of the screen transparent.


Everything drawn on the screen is a screen 'piece'. Even if you make a <StaticAnimation>, you still need to tell the window to place it on the screen, by using a <Piece> element.


-Cormanth
Cormanth is offline   Reply With Quote
Old 10-28-2011, 09:06 PM   #10
IceSy
A Gray Wolf
 
IceSy's Avatar
 
Join Date: Sep 2011
Server: Luclin
Posts: 6
Interface Author - Click to view interfaces
Default

ok, way lost here. So far, from what I have read,. I have done everything, and yet my graphic is not showing up at all. I am totally lost on what I have missed. Any help would be awesome!

here is what it looks like:

In the UI File

</Ui2DAnimation>
<StaticAnimation item="GuildLogo">
<ScreenID>GuildLogo</ScreenID>
<RelativePosition>true</RelativePosition>
<Location>
<X>5</X>
<Y>5</Y>
</Location>
<Size>
<CX>256</CX>
<CY>105</CY>
</Size>
<Animation>GuildLogo</Animation>
</StaticAnimation>


Under the “page” that I want the graphic in:

<Pieces>GuildLogo</Pieces>

In My Animation UI File

<TextureInfo item="guildlogo.tga">
<Size>
<CX>256</CX>
<CY>105</CY>
</Size>
</TextureInfo>

<Ui2DAnimation item="GuildLogo">
<Frames>
<Texture>GuildLogo.tga</Texture>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>256</CX>
<CY>105</CY>
</Size>
</Frames>
</Ui2DAnimation>
__________________
IceSy is offline   Reply With Quote
Old 10-29-2011, 09:01 AM   #11
Halelen
Manaetic Prototype IX
 
Join Date: Jan 2003
Server: Povar
Posts: 937
Interface Author - Click to view interfaces
Default

unless you left some out you didnt tell it where on the page to place it...need size ands location in the xml you are using it in
Halelen is offline   Reply With Quote
Reply



Thread Tools
Display Modes

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


All times are GMT -5. The time now is 08:45 PM.


vBulletin Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© MMOUI