Thread Tools Display Modes
10-06-07, 05:27 PM   #1
Garou
A Murloc Raider
Join Date: Feb 2007
Posts: 4
Help with Chapter 11 of Hacking World Of Warcraft

I am sorry, but I cant seem to figure out what I have done wrong at this point.
Upon loading the game with all addons disabled except my whereabouts addon I created, I do not see the box, nor do I see any interpreter errors I have attached a screen shot, although there is nothing to see.

Here is the xml file. sorry it lost the indentation on the post.

Thank you for any help.

I was wondering if maybe it is because I have extra files defined in the toc that have not been created yet as the book says to do?

edit : PS it does appear in the addon list screen

<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\ui.xsd">
<Frame name="Whereabouts_Frame" toplevel="true" frameStrata="HIGH" enableMouse="true" moveable="true" parent="UIParent" clampedToScreen="true">
<Size>
<AbsDimension x="100" y="32"/>
</Size>
<Anchors>
<Anchor point="Center"/>
</Anchors>
<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" bgFile="Interface\Tooltips\UI-Tooltip-Background">
<BackgroundInsets>
<AbsInset left="4" right="4" top="4" left="4"/>
</BackgroundInsets>
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
<Color r="0" g="0" b="0" a="0.4"/>
<BorderColor r="1" g="0.8" b="0" a="0.4"/>
</Backdrop>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parent_Text" inherits="GameFontNormal">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
--Whereabouts_OnLoad(self);
</OnLoad>
<OnUpdate>
--Whereabouts_OnUpdate(self, elapsed);
</OnUpdate>
<OnMouseDown>
If ( Button == "LeftButton" ) then
self:StartMoving();
self.isMoving = true;
end
</OnMouseDown>
<OnMouseUp>
if ( self.isMoving ) then
self:StopMovingOrSizing();
self.isMoving = false;
end
</OnMouseUp>
<OnHide>
if ( self.isMoving) then
self:StopMovingOrSizing();
self.isMoving = false;
end
</OnHide>
</Scripts>
</Frame>
</Ui>
Attached Thumbnails
Click image for larger version

Name:	addon_not_there.jpg
Views:	700
Size:	87.0 KB
ID:	1443  
  Reply With Quote
10-11-07, 09:58 PM   #2
Eidolarr
An Aku'mai Servant
 
Eidolarr's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 34
Strip the addon down to just a frame that prints something onload or somesuch, then slowly uncomment the other stuff until you can find out where it breaks. Post your .toc file. Also please use code blocks, they preserve whitespace and make it much easier on the eyes :]

OR, if you have devtools, try dumping the frame to see if it exists, then the top and the bottom to see if it's onscreen, then the alpha to see if it's visible, etc.

Actually, looking at your very first anchor, you write
Code:
<Anchor point="Center"/>
Try changing that to
Code:
<Anchor point="CENTER"/>
  Reply With Quote
10-12-07, 09:54 AM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Also make sure that you don't have errors hidden in Interface Options. (Or install BugGrabber/BugSack)
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Help with Chapter 11 of Hacking World Of Warcraft


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