EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   Help!?!?! (https://www.eq2interface.com/forums/forumdisplay.php?f=24)
-   -   Custom File (https://www.eq2interface.com/forums/showthread.php?t=9660)

depechenode 11-13-2007 10:08 PM

Custom File
 
Ok, I tried to get my two custom windows to work with RoK. If I can get one to work I can do the other so I will focus on the Statbar2 window.

I edited the equi_custom.xml as such:
<?xml version="1.0" encoding="utf-8"?>
<Page IgnoreTab="false" ismodule="true" Name="Custom" PackSize="1,1" PackSizeProp="0002/0003,0002/0003" ScrollExtent="1024,768" Size="1024,768" Visible="false" />
<include>_depechenode_statbar2.xml</include>
<include>_depechenode_Inventory.xml</include>
</Page>

Here is the reference in my experience window:
<?xml version="1.0" encoding="utf-8"?>
<Page actiontype="Experience" AlwaysOnTop="False" BackgroundColor="#00FF00" eq2usescomwndcontrols="true" Location="-671,452" Name="Experience" OnHide="Visible=True" OnShow="show_window=(Custom._depechenode_StatBar2)
show_window=(Custom._depechenode_StatBar2)" ScrollExtent="1598,22" Size="1598,22" UserMovable="true">

File is named in the custom ui directory where all the other files are for my ui are as:
_depechenode_Statbar2.xml

Why will the window STILL not show up??? Please help.
And I did add the eq2ui_custom.xml include to my eq2ui.xml

Any suggestions please!

depechenode 11-13-2007 10:14 PM

Lol Nm
 
OK OK,
I figured it out....I am an idiot


The error was in my custom.xml

Fixed:

<?xml version="1.0" encoding="utf-8"?>
<Page IgnoreTab="false" ismodule="true" Name="Custom" PackSize="1,1" PackSizeProp="0002/0003,0002/0003" ScrollExtent="1024,768" Size="1024,768" Visible="false" />
<include>_depechenode_statbar2.xml</include>
<include>_depechenode_Inventory.xml</include>
</Page>

Sorry for wasted bandwidth, but look for my new and improved modded windows SOON!!!

Drumstix42 11-13-2007 11:57 PM

What was the problem exactly? Incase I or someone else runs into it?

depechenode 11-14-2007 12:33 AM

The naming of the file within the modded.xml

I posted the wrong xml in my answer above. But the naming was the problem in my reference to Custom._depechenode_statbar2. The file was named incorrectly as custom_depechenode_statbar2 in my custom ui directory. The fix came by changing the file name to _depechenode_statbar2, no need to add the "custom" to the filename. It is already referenced in the custom.xml via include. (duh!! that is why I felt like an idiot.)

Landiin 11-14-2007 01:38 AM

Quote:

Originally Posted by depechenode (Post 65704)
<?xml version="1.0" encoding="utf-8"?>
<Page IgnoreTab="false" ismodule="true" Name="Custom" PackSize="1,1" PackSizeProp="0002/0003,0002/0003" ScrollExtent="1024,768" Size="1024,768" Visible="false" />
<include>_depechenode_statbar2.xml</include>
<include>_depechenode_Inventory.xml</include>
</Page>

I still do not see how it works with what I have highlighted in red closes the page tag thus giving </Page> no open tag. Maybe SOE's parser is really flexible, I know it lets you have two root nodes witch is a big parser error and poor XML format but no opening tag; hmm must investigate.

gm9 11-14-2007 03:03 AM

I agree Landiin, I'm about 99.999% sure that it won't work as posted.

Quote:

Originally Posted by Landiin (Post 65731)
I know it lets you have two root nodes witch is a big parser error and poor XML format

Sorry for "abusing" that in my UI, I knew you'd think poorly of me. :D

I think their format is consistent though. They have eq2ui.xml as the only root node and everything else is just <include>s. The xml tree they build is valid.

Landiin 11-14-2007 09:10 AM

Quote:

Originally Posted by gm9 (Post 65742)
I agree Landiin, I'm about 99.999% sure that it won't work as posted.

Sorry for "abusing" that in my UI, I knew you'd think poorly of me. :D

I think their format is consistent though. They have eq2ui.xml as the only root node and everything else is just <include>s. The xml tree they build is valid.

LOL gm9. I am not passing judgment I've used it before myself. If the loop hole is there might as well jump thought it :o But it could bite one in the end is all I am saying.

And yes the default XML document is correctly formatted.

gm9 11-14-2007 09:24 AM

Quote:

Originally Posted by Landiin (Post 65765)
And yes the default XML document is correctly formatted.

Haha, nice. :p


All times are GMT -5. The time now is 12:45 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI