EQInterface Forums

EQInterface Forums (http://www.eqinterface.com/forums/index.php)
-   XML modification help. (http://www.eqinterface.com/forums/forumdisplay.php?f=30)
-   -   An error, caused by my coding perhaps? (http://www.eqinterface.com/forums/showthread.php?t=4711)

Vixyn 12-09-2002 08:27 PM

An error, caused by my coding perhaps?
 
1 Attachment(s)
I am attempting to direct code a custom image into the EQUI_Animations.xml and EQUI_Templates.xml files. I have successfully done this before, yet now, as I am trying to point it to a file, I get an error every time I try to open it up in SIDLWIDL. Heres the Animations code I editted:

Quote:
<TextureInfo item = "box.tga">
<Size>
<CX>64</CX>
<CY>512</CY>
</Size>
</TextureInfo>
<Ui2DAnimation item = "WDT_Box">
<Cycle>true</Cycle>
<Frames>
<Texture>hotbutton.tga</Texture>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>64</CX>
<CY>512</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
</Ui2DAnimation>
<TextureInfo item = "block.tga">
<Size>
<CX>256</CX>
<CY>1024</CY>
</Size>
</TextureInfo>
<Ui2DAnimation item = "WDT_Block">
<Cycle>true</Cycle>
<Frames>
<Texture>block.tga</Texture>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>256</CX>
<CY>1024</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
</Ui2DAnimation>


The "box.tga" part isn't working, "block.tga" gives me no problems at all.

Editd Templates text (just part of the box.tga area, what I changed):
Quote:
<WindowDrawTemplate item = "WDT_Box">
<Background>box.tga</Background>
<VSBTemplate>
<UpButton>
<Normal>A_VSBUpNormal</Normal>
<Pressed>A_VSBUpPressed</Pressed>


Included ina zip is the TGA files:

Vixyn 12-09-2002 11:17 PM

I've been fiddling with it to no avail so far. There seems to be absolutely nothing wrong with the code, and I made sure file sizes etc matched exactly. Time to mess with file names (Had aproblem with file names on my old computer also).

Edit:

Well, that didn't work. Remaking the file also didn't work. Thought struck me that perhaps I didn't need the code in Templates? Nope, that didn't work. Too much code in Animations then? Failed at that also. Is it because both files begin with a "B"? Lets go try that now...

Vixyn 12-09-2002 11:39 PM

Ok, I give up :( It's not going to let me code in that window, perhaps my HTML editor corrupted the file or whatnot? Who know. Time to start something else.

Vixyn 12-10-2002 12:27 AM

/smacks self. /smack. /smack /smack /smack /smack! ::you get the point::


Know what I forgot in every TGA except the one named block? a @#&$!@ alpha channel.

/bonk /bonk /bonk

Dolby 12-10-2002 12:53 AM

doh... dont hurt your self!!!

Vixyn 12-10-2002 01:07 AM

1 Attachment(s)
GAH. Ok, added an alpha layer to the images I made. It fixed the problem, so I went ahead and made the other window textures I needed, made sure to put an alpha layer in them also. Guess what? Same error again!

I don't get it, the code isn't wrong, and the info on the textures is correct in size, location, etc. They all have their alpha layers. yet every time I open the damned things up in SidlWidl I get
Quote:
An unhandled exception error has occurred in your application. If you click continue, the application will ignore this error and attempt to continue. If you click quit, the application will shut down immediately.

Item has already been added. Key in dictionary: "wdt_bar" Key being added: "wdt_bar".


Now I KNOW I didn't type in the code (well, copy and paste in this case) more than once, so WTF is up with this???

I'll go ahead and attach the image/xml files ina zip if anyone wants to look at it and tell me whats wrong :confused:

birdboy 12-10-2002 06:01 AM

could it be that you named both a "WindowDrawTemplate" and a "Ui2DAnimation" wdt_bar...


that might be it, not sure though

Vixyn 12-10-2002 02:22 PM

Hum, might be, though as far as I could tell, you were supposed to ~shrug~. I will mess with it some more, though I had given up, LOL


All times are GMT -5. The time now is 09:47 PM.

vBulletin Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.