LATEST NEWS

Wow-Pro Addon: Common Problems

img
Jan
09

have been fleshing out problems I have noticed that I hit a lot of things that everyone else seems to hit and as the original page is getting very full of comments it is getting harder and harder to find the answers there so I thought I would set up this page to basically have a board to find those questions and clean them up.


Frequent problems: –ToC

Bracketing Errors
One of the first things I ran into was my lines of code that I thought should compile to give me a good starting stub ran like this

    • Guide_Name={

 

    • guide={

 

    • {}

 

    • },

 

    • type=”alliance”

 

    • header=”Guide Name Long Form”

 

    • }

 

    WP_AddGuide(Guide_Name)

The thing wouldn’t compile because I was missing one little comma. You have to be sure that after every closing bracket } there is a comma or it will kick it back to you and wont show up on the list because wow cannot read it.


Quotation Problems

In typing out the guides sometimes Jame has things in quote such as

6. Ride east and stay north of the area called “Expedition Armory”. On your path you should see Zeppelin Debris, gather them.

Should you put it into your guide as:

{“[M]Ride east and stay north of the area called “Expedition Armory”.|n[L]On your path you should see Zeppelin Debris, gather them.”,0.0,.0.0},

It will toss back an error and not run but changing it to:

{“[M]Ride east and stay north of the area called ‘Expedition Armory’.|n[L]On your path you should see Zeppelin Debris, gather them.”,0.0,.0.0},

Will run just fine.


Problems with quest names

In my guide I am having a problem including the level requirements on my quest names. Current code looks like this and works fine

    • A_6065={guide={

 

    • {“[K]Go there and kill orcs until you find a Cursed Talisman, it can drop from any Bleeding Hollow orc.”,0.66,0.67},

 

    • {“[M]Once you have the talisman, ride east to [location]Expedition Point[/location].|n[T]Turn in [quest]Ill Omens[/quest].|n[G]Get the follow up [quest]Cursed Talismans[/quest].”,0.71,0.63},

 

    • {“

Sell Junk and repair at the NPC next to you.”,0.71,0.63},
{“[T]Turn in [quest]Expedition Point[/quest].|n[G]Get the follow up [quest]Disrupt Their Reinforcements[/quest]. Also get [quest]Zeth’Gor Must Burn[/quest]”,0.,0.},
{“WIP”,0.0,0.0},
},

type = “alliance”,
header = “Jame’s Alliance leveling guide (60-65)”
}
WP_AddGuide(A_6065)

but when I try it with the levels thus:

    • A_6065={guide={

 

    • {“[K]Go there and kill orcs until you find a Cursed Talisman, it can drop from any Bleeding Hollow orc.”,0.66,0.67},

 

    • {“[M]Once you have the talisman, ride east to [location]Expedition Point[/location].|n[T]Turn in [quest][58] Ill Omens[/quest].|n[G]Get the follow up [quest][58] Cursed Talismans[/quest].”,0.71,0.63},

 

    • {“

Sell Junk and repair at the NPC next to you.”,0.71,0.63},
{“[T]Turn in [quest][61] Expedition Point[/quest].|n[G]Get the follow up [quest][62] Disrupt Their Reinforcements[/quest]. Also get [quest][61] Zeth’Gor Must Burn[/quest]”,0.,0.},
{“WIP”,0.0,0.0},
},

type = “alliance”,
header = “Jame’s Alliance leveling guide (60-65)”
}
WP_AddGuide(A_6065)

it wont compile…. any ideas on what is wrong?

  • img
    Jan 10, 2009 @ 2:43

    Im not sure what it can be,Im not sure what it can be, but instead of writing [quest][/quest] im using the “old” color codes |cFFCC9933TEXT|r that works. 🙂

    • img
      Jan 10, 2009 @ 4:47

      If we can find a solutionIf we can find a solution will update the wiki

      • img
        kyo1219 Répondre
        Jan 10, 2009 @ 19:57

        [ ] bracketsI haven’t looked into the code at all but could it be that the addon parses strings with [ ] for tags (i.e. [quest]), in which case it would try to parse [61] and fail.

        • img
          Jan 11, 2009 @ 0:07

          I tested it thoroughly andI tested it thoroughly and writing the questlevel in brackets does not give any errors for me. Maybe try downloading the addon again and look through your guide for missing commas or other possible small mistakes. If it still desn’t work, upload your whole addon and I’ll look through it

          • img
            Jan 11, 2009 @ 1:23

            will doAs soon as I can get back to my home pc will redownload and test life has been hectic and I havent gotten much written : I am a bit upset with myself over that

          • img
            Jan 11, 2009 @ 1:35

            keep cool and don’t rushkeep cool and don’t rush yourself. 🙂

  • img
    Jan 10, 2009 @ 4:22

    Quote:{“[S]Sell Junk and[quote][code]{“[S]Sell Junk and repair at the NPC next to you.”0.71,0.63},[/code][/quote]

    Should read:
    [code]{“[S]Sell Junk and repair at the NPC next to you.”[u],[/u]0.71,0.63},[/code]

    Missing a comma…so I’m surprised the first one ran at all…assuming this was copied and pasted.

    • img
      Jan 10, 2009 @ 17:19

      huh that is odd as it ishuh that is odd as it is copy and pasted and that part ran no problem lol. Guess for now I am going to keep away from leaving the levels of quests in until I can get it figured out. Anyone else have problems they are running into to include?

  • img
    Jan 10, 2009 @ 7:39

    Disable Other ModsI have found that disabling all mods but the WoWPro mod helps debug editing. There’s a mod bundled with Auctioneer (if you have that installed) that was hiding my errors when trying to code in guides. Disabling also helped with load times when I reloaded the UI.

    James

  • img
    Jan 10, 2009 @ 18:51

    Found a coords probelm!I don’t know if this is the right place, but I think that “common problems” section should be good. At step 92 of the Grizzly Hills guide I found a coordinates mistake, I have taken a screenshot:

    http://img147.imageshack.us/img147/323/screenshot011009184418kn8.jpg

    As you can see, I’m in front of the q-giver while the coords are terribly off 😛

    • img
      Jan 10, 2009 @ 19:56

      The common problems threadThe common problems thread is a wiki upload your code there and will help ya debug it.

    • img
      Jan 11, 2009 @ 0:09

      Yes this is a typo in theYes this is a typo in the guide. I thought I already fixed it, but seems like I didn’t. Going to do it rihgt now, and the fixed version will, at the moment, be available as a single guide on the addon-page.

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Archives