-
Posted by rgennaro on Mon, 26 May 2008 09:50:00
Page 170. Creating the .toc file - The example on page 119 shows "## Notes: This is my sample addon." However, on page 170, the example used was "## Description: ..." When testing the CombatTracker XML, the description was not showing up on the Addon screen as in figure 12-1. Switching 'Description' to 'Notes' corrected the issue.
Page 176. In the function CombatTracker_ReportDPS(), the local variable msgformat had a carriage return in the middle of the string. This causes a wowlua error to appear when launching a character. To correct the issue a '' character was used before the carriage control or having one continuous string on the same line.
Page 177. While testing CombatTracker, one test is to reload the UI. In the 5th paragraph (under figure 12-3), 2nd paragraph, it reads "... by running /console relodui..." The word "relodui" is missing the letter 'a.'
-
Posted by jnwhiteh on Mon, 26 May 2008 09:37:37
Page 170. Creating the .toc file - The example on page 119 shows "## Notes: This is my sample addon." However, on page 170, the example used was "## Description: ..." When testing the CombatTracker XML, the description was not showing up on the Addon screen as in figure 12-1. Switching 'Description' to 'Notes' corrected the issue. Page 176. In the function CombatTracker_ReportDPS(), the local variable msgformat had a carriage return in the middle of the string. This causes a wowlua error to appear when launching a character. To correct the issue a '\' character was used before the carriage control or having one continuous string on the same line. Page 177. While testing CombatTracker, one test is to reload the UI. In the 5th paragraph (under figure 12-3), 2nd paragraph, it reads "... by running /console relodui..." The word "relodui" is missing the letter 'a.'
Thank you for the reports, much appreciated.
-
Posted by jnwhiteh on Mon, 26 May 2008 09:50:00
Page 176. In the function CombatTracker_ReportDPS(), the local variable msgformat had a carriage return in the middle of the string. This causes a wowlua error to appear when launching a character. To correct the issue a '\' character was used before the carriage control or having one continuous string on the same line.
That is not a carriage return it is an indicator that tells you the following line should continue the previous line (a line continuation character). As indicated in the introduction to the book, when you see this character you should ensure the code on those lines is all put together without a line split.