View Single Post
  #1  
Unread 10-17-2004, 10:03 PM
insomniac's Avatar
insomniac insomniac is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Blackburrow
Posts: 555
Cool Every DynamicData revealed!

Let me bring you up to speed: DynamicData of EQ2 = EQType of EQ1.
The in-game variables for your current health and stuff.

In the default directory there's a file called "eq2ui_gamedata.xml" which, if you know how to read it, has (probably) every dynamicdata listed. How handy.

First, a lesson, here's your typical EQ2 label:
Quote:
<Text DynamicData="/GameData.Self.ExperienceCurrent "Font="/Fonts.FontZapf15" LocalText="10000/10000" Location="20,16" Margin="0,0,5,0" Name="HitPointsValue" ScrollExtent="80,20" Size="80,20" TextAlignmentVertical="Center">10000/10000</Text>
Translation: This will display your current experience, in some goofy font, ignore the localtext part, at 20 pixels right and 16 pixels down from the top left corner of the window, sized 80 pixels wide and 20 pixels tall. Where Gamedata.xml helps out is the <Text DynamicData="/GameData.Self.ExperienceCurrent" part. Notice the dynamicdata value is in 3 parts, GameData, Self, and ExperienceCurrent. Now take a look at an excerpt from the eq2ui_gamedata.xml file, pay attention to the red parts, and don’t get scared:

Quote:
<DataSource description="Data about the current player" Name="Self">
<DynamicData description="Name of the current player: Text, Color" Name="Name"/>
<DynamicData description="Amount of breath remaining: Progress, Text" Name="Breath"/>
<DynamicData description="Maximum underwater breath in seconds: Text" Name="BreathMax"/>
<DynamicData description="True if combat experience is disabled" Name="CombatExperienceDisabled"/>
<DynamicData ActionType="Experience" Name="ExperienceBubble"/>
<DynamicData ActionType="Experience" Name="ExperienceCurrent"/>
<DynamicData ActionType="Experience" Name="ExperienceDebtCurrent"/>
<DynamicData Name="Race"/>
<DynamicData Name="Gender"/>
<DynamicData Name="RaceGender"/>
<DynamicData Name="Level"/>
<DynamicData Name="LevelClass"/>
<DynamicData Name="Archetype"/>
<DynamicData Name="Class"/>
<DynamicData Name="SubClass"/>
<DynamicData description="True if user is autoattacking" Name="AutoAttack"/>
<DynamicData description="True if user is ranged autoattacking" Name="RangedAutoAttack"/>
<DynamicData ActionType="Concentration" Description="Concentration being maintained" Name="Concentration_1"/>
<DynamicData ActionType="Concentration" Description="Concentration being maintained" Name="Concentration_2"/>
<DynamicData ActionType="Concentration" Description="Concentration being maintained" Name="Concentration_3"/>
<DynamicData ActionType="Concentration" Description="Concentration being maintained" Name="Concentration_4"/>
<DynamicData ActionType="Concentration" Description="Concentration being maintained" Name="Concentration_5"/>
<DynamicData description="Health of the current player" Name="Health"/>
<DynamicData description="Location of the current player: Text" Name="Location"/>
<DynamicData description="Power of the current player" Name="Power"/>
<DynamicData description="Spirit Rank Achieved" Name="SpiritProgress"/>
<DynamicData description="Spirit Rank Achieved" Name="SpiritRank_1"/>
<DynamicData description="Spirit Rank Achieved" Name="SpiritRank_2"/>
<DynamicData description="Spirit Rank Achieved" Name="SpiritRank_3"/>
<DynamicData description="Spirit Rank Achieved" Name="SpiritRank_4"/>
<DynamicData description="Spirit Rank Achieved" Name="SpiritRank_5"/>
<DynamicData description="Spirit Available" Name="Spirit_1"/>
<DynamicData description="Spirit Available" Name="Spirit_2"/>
<DynamicData description="Spirit Available" Name="Spirit_3"/>
<DynamicData description="Spirit Available" Name="Spirit_4"/>
<DynamicData description="Spirit Available" Name="Spirit_5"/>
<DynamicData Name="TradeskillLevel"/>
<DynamicData Name="TradeskillLevelClass"/>
<DynamicData Name="TradeskillArchetype"/>
<DynamicData Name="TradeskillClass"/>
<DynamicData Name="TradeskillSubClass"/>
<DynamicData Name="TradeskillExperienceCurrent"/>
<DynamicData ActionType="Experience" Name="TSExperienceDebtCurrent"/>
<DynamicData Name="TradeskillExperienceBubble"/>
<DynamicData description="Name of the current zone" Name="ZoneName"/>
<DynamicData Name="Weight"/>
</DataSource>
now lets make the experience dynamicdata value, using this list.
the file is Gamedata so you have to start with that:
Code:
DynamicData="/Gamedata"
next you have to list what DataSource ExperienceCurrent is under so look for the DataSource tag. Its name = "self" sooo:
Code:
DynamicData="/Gamedata.self"
All that’s left is the ExperienceCurrent part
Code:
DynamicData="/Gamedata.Self.ExperienceCurrent"
so basically Gamedata.[Datasource].[DynamicData] will let you display every value in the game, and its all in this handy file. Any Questions?
__________________
Shizlak Xml - Templar/Provisioner
Blackburrow
Join Chat! irc: #EQ2Interface (dalnet) Ingame: /join eq.serverwide.eq2ui



Last edited by insomniac : 10-17-2004 at 10:36 PM.
Reply With Quote