Category: Outdated Mods
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Author:
Version:
q2.4-20003
Date:
04-17-2007 01:54 PM
Size:
14.79 Kb
Downloads:
8,191
Favorites:
76
MD5:
Pictures
Click to enlarge
DemonTrainer (Continued)   Popular! (More than 5000 hits)
Continuation of DemonTrainerFrame, updated for use with WoW 2.0.

Converts the merchant for warlock pets' books to a more friendly, trainer-style format.

Changes in 2.4
*might* solve the problem some users have reported with blank windows. This is almost certainly caused by some other mod you've installed conflicting with the vendor tooltip, DTF 2.4 includes more robust tooltip parsing to attempt to account for this.

Changes in 2.3
Fixed nil errors regarding the UnHookSecureFunction pseudo code left in by accident. This is largely cosmetic, though. There are no functional changes between 2.2 and 2.3.

Changes in 2.2
Due to the secure mapping and tainting functionality added in WoW2.0, there is no way for DemonTrainer to prevent you from accidentally reselling grimoires back to the trainer. If you attempt to learn the grimoire while DemonTrainer is open, it will sell the book back to the vendor. YOU MUST CLOSE DEMON TRAINER BEFORE ATTEMPTING TO LEARN NEW GRIMOIRES.

Since I'm unable to hook the functions to prevent accidental reselling, I've added two popups, one when you open DemonTrainer, another that triggers if/when you accidentally sell the book back. You'll still lose money, but at least you'll be aware of what happened.
  Optional Files - DemonTrainer (Continued)
Sorry, there are currently no optional files available.
  Comments - DemonTrainer (Continued)
Post A Reply Comment Options
Old 11-22-2007, 04:47 PM  
Ash-rak
A Kobold Labourer
 
Ash-rak's Avatar

Forum posts: 0
File comments: 6
Uploads: 0
Very fine Addon, but i have the Empty Frame too. I have deactivate some Addons but i can´t fix that Problem.

A Tip for the next Version. Change the Addon like Lywellyn it has made it. No one wants a Popup when he open the Window.


And here are my German Translation for the Warning:
- Pleaaaase don´t translate only some Words of a sentence I have to read it here in English bevor i understand what you want to say

Quote:
DTF_WARNING = "|cffff0000Du musst erst das Fenster des Demon Trainer schlie\195\159en bevor du deinem Pet einen neuen Zauberfolianten lernst. Wenn du das nicht tust, dann wird der Zauberfoliant mit Verlust zur\195\188ckverkauft.|r"

DTF_SOLDITEM = "Du hast soeben den Zauberfolianten mit verlusten zur\195\188ckverkauft. Es wurde Dir gesagt das Du das Demon Trainer Fenster schließen mu\195\159t bevor du deinem Pet den Zauberfolianten lernst."
If anyone knows what Addons made the Problems with the Empty Frame. Please let us know.

Ash-rak

Last edited by Ash-rak : 11-22-2007 at 04:48 PM.
Ash-rak is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-24-2007, 01:28 PM  
Dreadlorde
A Pyroguard Emberseer
 
Dreadlorde's Avatar
Interface Author - Click to view interfaces

Forum posts: 2277
File comments: 276
Uploads: 21
Is this being updated anymore? It still works, just wondering if it every breaks ifit's getting an update.
__________________
Moderator of World of Modcraft
zomgitzmainame // aim
Gentoo // Wintendo XP // Plan 9
Dreadlorde is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-04-2007, 12:23 PM  
BorgkingZero
A Kobold Labourer
 
BorgkingZero's Avatar

Forum posts: 1
File comments: 15
Uploads: 0
Sorry i did the Fix but i have the same Error again.

Every time i speak with the Demon Trainer the Window is empty and i have the message: "You must close DemonTrainer before you attempt to learn a new grimoire. If you don't, you will sell the grimoire back at a loss." in the Chat Window.

Sorry i dont now what's wrong.
BorgkingZero is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-02-2007, 06:23 AM  
Lown Ignitus
A Defias Bandit

Forum posts: 2
File comments: 5
Uploads: 0
thing is this is same message that i got when i originally posted that in had issues, and i even installed the update since my post, with same error message....
Lown Ignitus is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-01-2007, 10:22 AM  
Lywellyn
A Wyrmkin Dreamwalker
 
Lywellyn's Avatar

Forum posts: 53
File comments: 30
Uploads: 0
Until there's some sort of official reply, you can patch this mod with my edits a couple comments down to fix that error.
__________________
Lywellyn is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-01-2007, 05:51 AM  
Lown Ignitus
A Defias Bandit

Forum posts: 2
File comments: 5
Uploads: 0
Error message:

Quote:
C:\Program Files\World of Warcraft\Interface\AddOns/DemonTrainerFrame/DemonTrainerFram.lua:372: attempt to call global 'message' (a string value)
and nothing shows up.
Lown Ignitus is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-29-2007, 09:49 PM  
Xanithon
A Cobalt Mageweaver
 
Xanithon's Avatar

Forum posts: 203
File comments: 19
Uploads: 2
Yay! Updated Warlock Pet goodness!
__________________


Xanithon is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-24-2007, 06:42 AM  
Lywellyn
A Wyrmkin Dreamwalker
 
Lywellyn's Avatar

Forum posts: 53
File comments: 30
Uploads: 0
A fix, if you will.

First off, let me say that this is an excellent mod, I really do appreciate its existence because the vendor frame for training was rather dumb.

This was sort of posted prior, but that post completely eliminated the message, which takes away from the purpose of the message. I simply did the following instead, and it works for me:

Around line 372 in the DemonTrainerFrame.lua file, find:

Quote:
Message(DTF_WARNING);
and change it to:

Quote:
DEFAULT_CHAT_FRAME:AddMessage(DTF_WARNING);
When I did this, instead of a pop up box (which I am a firm believer that a constant pop up box is REALLY annoying), it shoots the message to your Default chat frame. But when I tested it, the text was all white. That's not very eye-catching, so I decided I'd change that text to red, as so:

In the localization.lua file for DTF, find:

Quote:
DTF_WARNING = "You must close DemonTrainer before you attempt to learn a new grimoire. If you don't, you will sell the grimoire back at a loss."
and change it to:

Quote:
DTF_WARNING = "|cffff0000You must close DemonTrainer before you attempt to learn a new grimoire. If you don't, you will sell the grimoire back at a loss.|r"
That'll make it nice and red, stands out. I think this would serve the same purpose as the popup box: Lets new users of the mod know that trying to use a grimoire while the DTF is open will sell it, but doesn't annoy users that have been using the mod for a while and are used to that fact.

Just my two cents. :3
__________________

Last edited by Lywellyn : 04-24-2007 at 06:57 AM.
Lywellyn is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-18-2007, 10:51 AM  
quel
A Kobold Labourer
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 12
Uploads: 10
Re: error report

Since the errors being reported on various sites do not occur on my system, I must assume they are the result of conflicts with other mods. We need someone to spend a mere 10 minutes disabling other addons until the DTF errors go away. Without some useful debugging info, I don't even have a guess about what needs fixing.

Q

P.S. I also need context details about what you were doing: which trainer were you at? which pet did you have out? What level are you?

Last edited by quel : 04-18-2007 at 10:53 AM.
quel is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-18-2007, 06:34 AM  
Tweeker
A Chromatic Dragonspawn
 
Tweeker's Avatar

Forum posts: 163
File comments: 110
Uploads: 5
error report

[2007/04/18 06:33:15-548-x1]: DemonTrainerFrame\DemonTrainerFrame.lua:372: attempt to call global 'message' (a table value)
<string>:"DemonTrainerFrame:OnShow":2: in function <[string "DemonTrainerFrame:OnShow"]:1>
<in C code>: in function `Show'
Interface\FrameXML\UIParent.lua:915: in function `SetLeftFrame':
Interface\FrameXML\UIParent.lua:815: in function `ShowUIPanel':
DemonTrainerFrame\DemonTrainerFrame.lua:94: in function `MerchantFrame_OnEvent'
<string>:"MerchantFrame:OnEvent":2: in function <[string "MerchantFrame:OnEvent"]:1>
__________________

Tweeker is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-17-2007, 04:54 PM  
Malkom
A Kobold Labourer

Forum posts: 0
File comments: 22
Uploads: 0
I've got the same error with this new version


[2007/04/17 22:58:10-488-x1]: DemonTrainerFrame\DemonTrainerFrame.lua:372: attempt to call global 'message' (a table value)
<string>:"DemonTrainerFrame:OnShow":2: in function <[string "DemonTrainerFrame:OnShow"]:1>
<in C code>: in function `Show'
Interface\FrameXML\UIParent.lua:915: in function <Interface\FrameXML\UIParent.lua:903>:
<in C code>: in function `SetLeftFrame'
Interface\FrameXML\UIParent.lua:815: in function `ShowUIPanel':
DemonTrainerFrame\DemonTrainerFrame.lua:94: in function `MerchantFrame_OnEvent'
<string>:"MerchantFrame:OnEvent":2: in function <[string "MerchantFrame:OnEvent"]:1>

---

Last edited by Malkom : 04-17-2007 at 04:59 PM.
Malkom is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-16-2007, 09:01 PM  
Toran
A Wyrmkin Dreamwalker

Forum posts: 59
File comments: 217
Uploads: 0
Quote:
Originally posted by Darkspell
Hrmm... pretty standby message when things do not work I agree.

I just commented out line 359:

message(DTF_WARNING);


No more errors and it seems to work.
That fixed me too.
Toran is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-14-2007, 09:03 AM  
Eries
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Fehler: attempt to call global 'message' (a table value)
AddOn: DemonTrainerFrame
Datei: DemonTrainerFrame.lua
Zeile:359
Fehler Nummer:1
--------------------------------------------------
Fehler: attempt to index field '?' (a nil value)
AddOn: DemonTrainerFrame
Datei: DemonTrainerFrame.lua
Zeile:837
Fehler Nummer:2
Eries is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-08-2007, 04:49 PM  
Darkspell
A Deviate Faerie Dragon

Forum posts: 16
File comments: 49
Uploads: 0
Hrmm... pretty standby message when things do not work I agree.

I just commented out line 359:

message(DTF_WARNING);


No more errors and it seems to work.
Darkspell is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-07-2007, 10:08 PM  
quel
A Kobold Labourer
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 12
Uploads: 10
Re: Does not work

Quote:
Originally posted by Darkspell
Either fix it or remove it.. really. Would love if this mod DID work, but all I get are:

Attempt to call global 'message' error in line 359

and

'for' limit must be a number in line 518
Shrug. It works fine on my system. I can't reproduce either of those errors or the blank frame mentioned below. The usual "disable the rest of the addons and see what happens" rule applies. WIthout something more useful to go, there's not likely to be any kind of fix.
quel is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.