Download
(11Kb)
Download
Updated: 04-11-08 12:30 PM
Pictures
File Info
Updated:04-11-08 12:30 PM
Created:unknown
Downloads:23,588
Favorites:75
MD5:

Beast Training  Popular! (More than 5000 hits)

Version: 13
by: Awbee [More]

Makes the Beast Training window look like a talent window.

Helpful tooltips make pet training information easy to see.

Works with:
Ackis Recipe List
English - enUS
Français - frFR
Deutsch - deDE
汉语 - zhCN

New in v13
- Fix for German localization.

New in v12
- Fixed issue with not being able to right click to train the max rank of growl to a pet with negative training points.
- Fixed LUA error when enchanting window was opened.
- Enchanting window no longer closes when your pet changes.
- Blizzard's Beast Training window is hidden if you do not have AckisRecipeList loaded.

New in v11
- Fixed localizations hopefully.
- Fixed error with warp.
- Added version number indicator to the in-game panel.

New in v10
- TOC update to 2.4
- Fixed bug in v9 that made it not save the fact it knows it is out of date.
- Made the "Ranks You Have:" part of the tooltip take up less room.
- Added the ability to right click a skill to train the max rank your pet can learn.

New in v9
- Version data is only sent to guild once per login or interface reload.
- Version data is only sent to party/raid when a new member joins.
- Placed a 5 second cooldown on telling others they are out of date to stop chain reactions.

New in v8
- Fix for Chinese localization.

New in v7
- Removed BT_USED from localization.
- German localization tweaks.
- Beast Training window no longer closes when someone else's pet changed.
- Some code optimization - got rid of function BT_GetButtonNumber(name).

New in v6
- Chinese Localization.

New in v5
- German Localization.

New in v4
- French Localization.

New in v3
- French Localization Beta.

New in v2
- Clarified "Trainable Ranks:" as "Ranks You Have:"
- Added detection of bad version data to prevent an LUA error.
- Added more information to the out of date notification on where to download a new version.
- Added information to the tooltip about which pet types can learn the skill.
- Misc other little improvements.
Post A Reply Comment Options
Unread 03-13-08, 11:15 PM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 121
Uploads: 10
ok, I changed my mind and went ahead and uploaded version 3.

if theres any problems 99% chance its a problem with a letter not being capital when it needs to be or something small like that. i also hope the unicode characters don't cause problems.

please let me know if it works or if theres any LUA errors and what they are.

if there are LUA errors i'd like for someone to work them all out, so I don't have to upload 50 versions trying to get it to work.
Report comment to moderator  
Reply With Quote
Unread 03-14-08, 05:03 AM  
Laumac
A Kobold Labourer

Forum posts: 0
File comments: 16
Uploads: 0
same error

on french client :

error in beastraining.lua line 168 ---> attempt to index field ? (nil value)

same error

pb in function GetCraftInfo() ? ---> variable ?

PS : awbee you didn't replace all the variables in db.lua (just the first variable was replaced). I replace them but there is always the same error.
Last edited by Laumac : 03-14-08 at 05:42 AM.
Report comment to moderator  
Reply With Quote
Unread 03-14-08, 08:05 AM  
KayossZero
A Kobold Labourer

Forum posts: 0
File comments: 33
Uploads: 0
Two errors: (Addon seems to work however)

[2008/03/14 10:02:48-560-x1]: BeastTraining\BeastTraining.lua:168: attempt to index field '?' (a nil value)
<string>:"*:OnEvent":1: in function <[string "*:OnEvent"]:1>
<in C code>: ?
<in C code>: in function `UseAction'
Interface\FrameXML\SecureTemplates.lua:266: in function `SecureActionButton_OnClick':
<string>:"*:OnClick":1: in function <[string "*:OnClick"]:1>

---

[2008/03/14 10:02:48-560-x1]: BeastTraining\BeastTraining.lua:168: attempt to index field '?' (a nil value)
<string>:"*:OnEvent":1: in function <[string "*:OnEvent"]:1>
<in C code>: in function `CraftOnlyShowMakeable'
Blizzard_CraftUI\Blizzard_CraftUI.lua:493: in function `CraftFrameFilterDropDown_OnShow'
<string>:"*:OnShow":1: in function <[string "*:OnShow"]:1>
<in C code>: in function `Show'
Blizzard_CraftUI\Blizzard_CraftUI.lua:114: in function `CraftFrame_Update'
Blizzard_CraftUI\Blizzard_CraftUI.lua:48: in function `CraftFrame_Show'
Interface\FrameXML\UIParent.lua:790: in function `UIParent_OnEvent':
<string>:"*:OnEvent":1: in function <[string "*:OnEvent"]:1>
<in C code>: ?
<in C code>: in function `UseAction'
Interface\FrameXML\SecureTemplates.lua:266: in function `SecureActionButton_OnClick':
<string>:"*:OnClick":1: in function <[string "*:OnClick"]:1>

---
Report comment to moderator  
Reply With Quote
Unread 03-14-08, 12:11 PM  
X-buZZ
A Kobold Labourer

Forum posts: 1
File comments: 56
Uploads: 0
not working

Hi there,

this seems to be a very nice addon but i am unable to use it.
It come with the following error message when opening the beast training window:

Code:
Date: 2008-03-14 19:08:39
ID: 56
Error occured in: Global
Count: 1

Message: ..\AddOns\BeastTraining\BeastTraining.lua line 168:
   attempt to index field '?' (a nil value)
Debug:
   [C]: ?
   BeastTraining\BeastTraining.lua:168: BT_OnEvent()
   [string "*:OnEvent"]:1:
      [string "*:OnEvent"]:1
   [C]: CastSpell()
   ..\FrameXML\SpellBookFrame.lua:275: SpellButton_OnClick()
   [string "*:OnClick"]:4:
      [string "*:OnClick"]:1
I am on a german client. Pherhaps it is not working with other languages than english? if so i would be glad to help you with the localization.

Kind regards
X-buZZ
Report comment to moderator  
Reply With Quote
Unread 03-14-08, 01:19 PM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 121
Uploads: 10
Re: same error

Originally posted by Laumac
on french client :

error in beastraining.lua line 168 ---> attempt to index field ? (nil value)

same error

pb in function GetCraftInfo() ? ---> variable ?

PS : awbee you didn't replace all the variables in db.lua (just the first variable was replaced). I replace them but there is always the same error.
I dont know how i let something like that slip.

anyway, the info the server sends when GetCraftInfo() is called has to match the localization variable values 100% - even capitalized letters.

i'm going to fix what you mentioned in db.lua then post more info about this.

edit: I noticed also i didn't change things like ["Rank 1"] to [BT_RANK.."1"]

maybe 4am isn't the best time to code...
Last edited by Awbee : 03-14-08 at 01:27 PM.
Report comment to moderator  
Reply With Quote
Unread 03-14-08, 01:36 PM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 121
Uploads: 10
Re: not working

Originally posted by X-buZZ
Hi there,

this seems to be a very nice addon but i am unable to use it.
It come with the following error message when opening the beast training window:

Code:
Date: 2008-03-14 19:08:39
ID: 56
Error occured in: Global
Count: 1

Message: ..\AddOns\BeastTraining\BeastTraining.lua line 168:
   attempt to index field '?' (a nil value)
Debug:
   [C]: ?
   BeastTraining\BeastTraining.lua:168: BT_OnEvent()
   [string "*:OnEvent"]:1:
      [string "*:OnEvent"]:1
   [C]: CastSpell()
   ..\FrameXML\SpellBookFrame.lua:275: SpellButton_OnClick()
   [string "*:OnClick"]:4:
      [string "*:OnClick"]:1
I am on a german client. Pherhaps it is not working with other languages than english? if so i would be glad to help you with the localization.

Kind regards
X-buZZ
Yes, it will need german localization. the variables that need to be localized are:

BT_YES = "|cFF40BF40Yes";
BT_NO = "|cFFFF0000No";

BT_CAN_BE_LEARNED_BY = "Can be learned by ";
BT_ALL_PETS = "all pets.";
BT_LEARN_DASH = "boars, cats, hyenas, raptors, ravagers, tallstriders, and wolves.";
BT_LEARN_DIVE = "bats, carrion birds, dragonhawks, nether rays, owls, and wind serpents.";
BT_LEARN_BITE = "bats, bears, boars, carrion birds, cats, crocolisks, dragonhawks, gorillas, hyenas, nether rays, raptors, ravagers, serpents, spiders, tallstriders, turtles, warp stalkers, wind serpents, and wolves.";
BT_LEARN_CHARGE = "boars.";
BT_LEARN_CLAW = "bears, carrion birds, cats, crabs, owls, raptors, scorpids, and warp stalkers.";
BT_LEARN_FIRE_BREATH = "dragonhawks.";
BT_LEARN_FURIOUS_HOWL = "wolves.";
BT_LEARN_GORE = "boars and ravagers.";
BT_LEARN_LIGHTNING_BREATH = "wind serpents.";
BT_LEARN_POISON_SPIT = "serpents.";
BT_LEARN_PROWL = "cats.";
BT_LEARN_SCORPID_POISON = "scorpids.";
BT_LEARN_SCREECH = "bats, carrion birds, and owls.";
BT_LEARN_SHELL_SHIELD = "turtles.";
BT_LEARN_THUNDERSTOMP = "gorillas.";
BT_LEARN_WARP = "warp stalkers.";

BT_OUTOFDATE_1 = "Beast Training is Out of Date.\n";
BT_OUTOFDATE_2 = " has v";
BT_OUTOFDATE_3 = " but you have v";
BT_OUTOFDATE_4 = ".\nYou can get a new version at\nwww.wowinterface.com\nClick OK to not be notified again.";

BT_OK = "OK";
BT_CANCEL = "Cancel";
BT_USED = "used";
BT_NO_PET = "No Pet";
BT_CURRENT_RANK = "Current Rank: ";
BT_TP_SPENT = "Training Points Spent: ";
BT_RANKS_YOU_HAVE = "Ranks You Have:";
BT_RANK = "Rank ";
BT_NEXT_RANK = "Next Rank: ";
BT_REQUIRES = "Requires:";
BT_MORE_TP = " More Training Points.";
BT_LEVEL = "Level ";
BT_CLICK_TO_LEARN = "Click to learn";
BT_CANT_TEACH = "You can't teach a new rank.";

BT_ARCANE_RESISTANCE = "Arcane Resistance";
BT_FIRE_RESISTANCE = "Fire Resistance";
BT_FROST_RESISTANCE = "Frost Resistance";
BT_NATURE_RESISTANCE = "Nature Resistance";
BT_SHADOW_RESISTANCE = "Shadow Resistance";
BT_GREAT_STAMINA = "Great Stamina";
BT_NATURAL_ARMOR = "Natural Armor";
BT_AVOIDANCE = "Avoidance";
BT_COBRA_REFLEXES = "Cobra Reflexes";
BT_DASH = "Dash";
BT_DIVE = "Dive";
BT_COWER = "Cower";
BT_GROWL = "Growl";
BT_BITE = "Bite";
BT_CHARGE = "Charge";
BT_CLAW = "Claw";
BT_FIRE_BREATH = "Fire Breath";
BT_FURIOUS_HOWL = "Furious Howl";
BT_GORE = "Gore";
BT_LIGHTNING_BREATH = "Lightning Breath";
BT_POISON_SPIT = "Poison Spit";
BT_PROWL = "Prowl";
BT_SCORPID_POISON = "Scorpid Poison";
BT_SCREECH = "Screech";
BT_SHELL_SHIELD = "Shell Shield";
BT_THUNDERSTOMP = "Thunderstomp";
BT_WARP = "Warp";
Report comment to moderator  
Reply With Quote
Unread 03-14-08, 01:53 PM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 121
Uploads: 10
ok I uploaded v3.1 which fixes my dumb mistakes in db.lua

when i can confirm its all working i will upload it as v4.

in order for it to work, this has to work:

for i=1, GetNumCrafts(), 1 do
craftName, craftSubSpellName, craftType, numAvailable, isExpanded, trainingPointCost, requiredLevel = GetCraftInfo(index);
...
end

craftName returns a value that has to match BT_ARCANE_RESISTANCE down to BT_WARP exactly

craftSubSpellName - this has to return a value that will match things like BT_RANK.."1" or BT_RANK.."2" and so on

craftType - this returns 2 values. one of them is "used". it has to match BT_USED. the other value is taken care of with an else statement.

numAvailable and isExpanded are ignored. they are just for the enchanting window.

trainingPointCost and requiredLevel are numbers and shouldn't cause problems.
Last edited by Awbee : 03-14-08 at 02:03 PM.
Report comment to moderator  
Reply With Quote
Unread 03-14-08, 02:18 PM  
Laumac
A Kobold Labourer

Forum posts: 0
File comments: 16
Uploads: 0
good progression :)

ok good progression

in db.lua file

i remplace variable like you saw :

...

BT = { };

-- Resistances

BT[BT_ARCANE_RESISTANCE] = {
currentRank = 0;
nextRank = 0;
maxRank = 5;
[BT_RANK.."1"] = { rank = 1, lvl = 0, tp = 0, pet = "|cFFFF0000No", player = "|cFFFF0000No", index = 0, desc = "" };
[BT_RANK.."2"] = { rank = 2, lvl = 0, tp = 0, pet = "|cFFFF0000No", player = "|cFFFF0000No", index = 0, desc = "" };
[BT_RANK.."3"] = { rank = 3, lvl = 0, tp = 0, pet = "|cFFFF0000No", player = "|cFFFF0000No", index = 0, desc = "" };
[BT_RANK.."4"] = { rank = 4, lvl = 0, tp = 0, pet = "|cFFFF0000No", player = "|cFFFF0000No", index = 0, desc = "" };
[BT_RANK.."5"] = { rank = 5, lvl = 0, tp = 0, pet = "|cFFFF0000No", player = "|cFFFF0000No", index = 0, desc = "" };
};

....

The interface is ok and i have icons when i open training window

but ..
another error in line 275 (beasttraining.lua file) but just the first opening ..after i did never seen the error ... disconnect and reconnect and ... the add is ok without error
---> pb of recording info in WTF file the first time ? (maybe trace of old version or old config)

for me is ok awbee now thx
Report comment to moderator  
Reply With Quote
Unread 03-14-08, 02:24 PM  
Laumac
A Kobold Labourer

Forum posts: 0
File comments: 16
Uploads: 0
false error

i make a mistake in db.lua when i replace variable so forget the 275 line error

don't panic !!
Report comment to moderator  
Reply With Quote
Unread 03-14-08, 02:34 PM  
devfool
A Murloc Raider

Forum posts: 4
File comments: 18
Uploads: 0
frFr:
works well with this fix:

if (GetLocale() == "frFR") then
BT_YES = "|cFF40BF40Oui";
BT_NO = "|cFFFF0000Non";

BT_CAN_BE_LEARNED_BY = "Peut \195\170tre appris par ";
BT_ALL_PETS = "tous les familiers.";
BT_LEARN_DASH = "les sangliers, f\195\169lins, hy\195\168nes, raptors, ravageurs, haut-trotteurs, et les loups.";
BT_LEARN_DIVE = "les chauve-souris, charognards, faucon-dragons, raie de n\195\169ants, chouettes, et les serpent des vents.";
BT_LEARN_BITE = "les chauve-souris, ours, sangliers, charognards, f\195\169lins, crocilisques, faucon-dragons, gorilles, hy\195\168nes, raie de n\195\169ants, raptors, ravageurs, serpents, araign\195\169es, haut-trotteurs, tortues, traqueur dimensionnels, serpent des vents, et les loups.";
BT_LEARN_CHARGE = "les sangliers.";
BT_LEARN_CLAW = "les ours, charognards, f\195\169lins, crabes, chouettes, raptors, scorpides, et les traqueur dimensionnels.";
BT_LEARN_FIRE_BREATH = "les faucon-dragons.";
BT_LEARN_FURIOUS_HOWL = "les loups.";
BT_LEARN_GORE = "les sangliers et les ravageurs.";
BT_LEARN_LIGHTNING_BREATH = "les serpent des vents.";
BT_LEARN_POISON_SPIT = "les serpents.";
BT_LEARN_PROWL = "les f\195\169lins.";
BT_LEARN_SCORPID_POISON = "les scorpides.";
BT_LEARN_SCREECH = "les chauve-souris, charognards, et les chouettes.";
BT_LEARN_SHELL_SHIELD = "les tortues.";
BT_LEARN_THUNDERSTOMP = "les gorilles.";
BT_LEARN_WARP = "les traqueur dimensionnels.";

BT_OUTOFDATE_1 = "Votre version de Beast Training est d\195\169pass\195\169e.\n";
BT_OUTOFDATE_2 = " a v";
BT_OUTOFDATE_3 = " tandis que vous avez v";
BT_OUTOFDATE_4 = ".\nVous pouvez obtenir une version r\195\169cente ici\nwww.wowinterface.com\nCliquez sur OK pour ne plus en \195\170tre inform\195\169.";

BT_OK = "OK";
BT_CANCEL = "Annuler";
BT_USED = "used";
BT_NO_PET = "Aucun familier";
BT_CURRENT_RANK = "Rang actuel: ";
BT_TP_SPENT = "Points d'entrainements d\195\169pens\195\169s: ";
BT_RANKS_YOU_HAVE = "Les rangs que vous poss\195\169dez:";
BT_RANK = "Rang ";
BT_NEXT_RANK = "Prochain rang: ";
BT_REQUIRES = "N\195\169cessite:";
BT_MORE_TP = " Points d'entrainements en plus.";
BT_LEVEL = "Niveau ";
BT_CLICK_TO_LEARN = "Cliquez pour apprendre";
BT_CANT_TEACH = "Vous ne pouvez pas apprendre un nouveau rang.";

BT_ARCANE_RESISTANCE = "R\195\169sistance aux Arcanes";
BT_FIRE_RESISTANCE = "R\195\169sistance au Feu";
BT_FROST_RESISTANCE = "R\195\169sistance au Givre";
BT_NATURE_RESISTANCE = "R\195\169sistance \195\160 la Nature";
BT_SHADOW_RESISTANCE = "R\195\169sistance \195\160 l'Ombre";
BT_GREAT_STAMINA = "Endurance sup\195\169rieure";
BT_NATURAL_ARMOR = "Armure naturelle";
BT_AVOIDANCE = "Evitement";
BT_COBRA_REFLEXES = "R\195\169flexes du cobra";
BT_DASH = "C\195\169l\195\169rit\195\169";
BT_DIVE = "Plongeon";
BT_COWER = "D\195\169robade";
BT_GROWL = "Grondement";
BT_BITE = "Morsure";
BT_CHARGE = "Charge";
BT_CLAW = "Griffe";
BT_FIRE_BREATH = "Souffle de feu";
BT_FURIOUS_HOWL = "Hurlement furieux";
BT_GORE = "Encorner";
BT_LIGHTNING_BREATH = "Souffle de foudre";
BT_POISON_SPIT = "Crachat de poison";
BT_PROWL = "R\195\180der";
BT_SCORPID_POISON = "Poison de scorpide";
BT_SCREECH = "Hurlement";
BT_SHELL_SHIELD = "Carapace bouclier";
BT_THUNDERSTOMP = "Grondeterre";
BT_WARP = "Distorsion";
end
-fix typo
-BT_USED should not be translate
-pet = "|cFFFF0000No etc... should be translate for complete job
for info No = Non (frFR)
Last edited by devfool : 03-14-08 at 02:37 PM.
Report comment to moderator  
Reply With Quote
Unread 03-14-08, 02:35 PM  
Laumac
A Kobold Labourer

Forum posts: 0
File comments: 16
Uploads: 0
ok pb of ...

the add say in tooltip in french :

rang actuel : 0/11

Les rangs que vous possédez :

RANG 1 : OUI
RANG 2 : OUI
RANG 3 : OUI
RANG 4 : NON
...

in english i suppose it will be :

Actual rank : 0/11

The ranks that you possess :

RANK 1 : YES
....

so that does not correspond to the reality

and when you click for training the ability that say " you already know the ability"
Report comment to moderator  
Reply With Quote
Unread 03-14-08, 03:06 PM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 121
Uploads: 10
Originally posted by devfool
frFr:
works well with this fix:



-fix typo
-BT_USED should not be translate
-pet = "|cFFFF0000No etc... should be translate for complete job
for info No = Non (frFR)
the "used" thing had me worried the most. i was wondering if it would be different at all. maybe it is with other languages

i'll change the "|cFFFF0000No" I missed also and upload as v4
Report comment to moderator  
Reply With Quote
Unread 03-14-08, 03:18 PM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 121
Uploads: 10
ok v4 is up, let me know if it needs any edits or if it works fine.
Report comment to moderator  
Reply With Quote
Unread 03-14-08, 06:42 PM  
Laumac
A Kobold Labourer

Forum posts: 0
File comments: 16
Uploads: 0
works fine on french client thx
Report comment to moderator  
Reply With Quote
Unread 03-14-08, 07:44 PM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 121
Uploads: 10
Originally posted by Laumac
works fine on french client thx
good to hear
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: