[lnkForumImage]
TotalShareware - Download Free Software
Usa Forum
 Home | Login | Register | Search 


 

Forums >

alt.games.warcraft

Re: typing the some words

Urbin

4/27/2011 6:48:00 PM

To: alt.games.warcraft
On Wed, 19 Jan 2011 22:02:13 +0100, Evanmac wrote:
> Il 19/01/2011 13:30, EvanMac ha scritto:
> > I found that I type almost the same phrases in chat, for example "hi,
> > changing spec", "hi, first time here, feel free to kick me", "healer
> > under attack, NEED HELP" and son on...
> >
> > I have a useful addon called battleground defender that let you send
> > some messages in /bg chat to help the defense of bg points, now... I'm
> > thinking about an addon compltetely configurable that let me to send a
> > messagge in party (or say, or guild, or whatever I want) with a button
> > click; this addon should be user configurable, and should have the
> > feature to maximize and minimize a list of phrases (like the carbonite'
> > quest log do) I want to have under my mouse click
> >
> > that said, I absolutely can't write an addon like this, and I don't know
> > if an addon like this alredy exists; and here is my question(s): "do
> > someone knows if a similar addon already exists? If not, do someone here
> > can develop this idea?"
> >
> > obviously the credit to making the addon will belong to the person who
> > actually wrote it, I just ask to know if someone wants to wrte somthing
> > like this and send me a link where I can download the addon (even in
> > alpha, I'll be a beta tester) :D
>
> ok, because I (think that I) am a genius, I had a great idea: let's take
> and addon similar to that I want and try diving into code to rearrange
> its function as desired...

Be careful. I did that once and then suddenly ended up having half a dozen
addons to maintain ;-)

> so I typed some misterious thing into my favourite editor, saved all the
> files, closed the editor, and launched the game... the addons won't show
> up in the list on cahr screen
>
> surely I did something wrong (what else?), get back to editor found the
> error, saved the file(s) and launched the game
>
> ok, the addon correctly show up

Congratulations.

> so I go create a new toon (goblin dk) for test purpose, and enabeld only
> this addon (that I named "chatty"), gon on login, skipped the cinematic
> and tried for first thing the slash command (I set up /chatty or /cht)...
> nothing worked at all...

You might want to check out the UI section at wowpedia, they offer pretty
good starting advice.

Also, you don't need to restart the game every time you make changes, that
is only needed if you add or remove files. If you only change the content of
existing files, it is enough to reload the interface (/console reloadui).

Another thing that can help, is an extended error viewer, there are quite a
few out there, I like the one that comes with Auctioneer (Swatter), I think
you can even download it seperately (www.auctioneeraddon.com or somethign
similar), or just extract that addon only from the full ZIP file).

It shows you any LUA mistakes you make, though if you screw up in the XML
file it might not show anything because the addon won't even be properly
loaded.

/swatter show - shows the error list (severe errors make the window popup on
its own, smaller ones might not)
/swatter clear - delete all entries, so you do not see old errors on your
next try
/console reloadui - reload UI and all addon files

I have a keybound macro for the last two slash commands on the character
that I develop and test my addons with.

I'm sure others can recommend other error viewers.

> ok, for tonite I did enough: not only I hade the idea, but I tried to
> write some code... this is awesome for me, and enough for tonight
>
> see you for next update on my adventure :D

Good luck.

> if my messagges could be annoying for someone, just tell me and I'll
> stop imemdiately posting on this topic :D

No provlem from my point of view, tell us where you get stuck, we might be
able to help you, I know there are a couple of other people who write addons
that follow a.g.w.

Cheers
Urbin
--
Dun Morogh-EU (PvE) | Juran (65), Druid
Urbin (85), Hunter | Surana (70), Mage | Greeta (62), Rogue
Mymule (80), Warlock | Kordosch (75), Deathknight | Gera (26), Paladin
Sunh (80), Priest | Taalas (73), Shaman | Vargal (14), Warrior

---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
12 Answers

evanmac69

1/20/2011 9:50:00 AM

0

Urbin <urbin@invalid.invalid> wrote:

> On Wed, 19 Jan 2011 22:02:13 +0100, Evanmac wrote:
> > Il 19/01/2011 13:30, EvanMac ha scritto:
> > > I found that I type almost the same phrases in chat, for example "hi,
> > > changing spec", "hi, first time here, feel free to kick me", "healer
> > > under attack, NEED HELP" and son on...
> > >
> > > I have a useful addon called battleground defender that let you send
> > > some messages in /bg chat to help the defense of bg points, now... I'm
> > > thinking about an addon compltetely configurable that let me to send a
> > > messagge in party (or say, or guild, or whatever I want) with a button
> > > click; this addon should be user configurable, and should have the
> > > feature to maximize and minimize a list of phrases (like the carbonite'
> > > quest log do) I want to have under my mouse click
> > >
> > > that said, I absolutely can't write an addon like this, and I don't know
> > > if an addon like this alredy exists; and here is my question(s): "do
> > > someone knows if a similar addon already exists? If not, do someone here
> > > can develop this idea?"
> > >
> > > obviously the credit to making the addon will belong to the person who
> > > actually wrote it, I just ask to know if someone wants to wrte somthing
> > > like this and send me a link where I can download the addon (even in
> > > alpha, I'll be a beta tester) :D
> >
> > ok, because I (think that I) am a genius, I had a great idea: let's take
> > and addon similar to that I want and try diving into code to rearrange
> > its function as desired...
>
> Be careful. I did that once and then suddenly ended up having half a dozen
> addons to maintain ;-)

so, it's better to start from scratch?

to be honest I had the idea to "mix the code" from guild greet and bg
defender, adding a function to hide/show the little interface

whyt this choice?

guildgreet has the function that let the user choose, change, add and
delete phrases when needed, so I thought "hey! I just have to learn how
this addon works, stripout the code relative to guild, and add the code
from bg defender"... not so great idea :D

the reasons because I want to write this addon, and don't ask directly
into the ng if someone wants to write it, are several, most of all
because this can be a huge source of headache (for me at least :D ), and
I have to solve the problem I think about :D

> > so I typed some misterious thing into my favourite editor, saved all the
> > files, closed the editor, and launched the game... the addons won't show
> > up in the list on cahr screen
> >
> > surely I did something wrong (what else?), get back to editor found the
> > error, saved the file(s) and launched the game
> >
> > ok, the addon correctly show up
>
> Congratulations.

ehehe, this is the first thing I solved: I have to write a well
formatted *.toc file

>
> > so I go create a new toon (goblin dk) for test purpose, and enabeld only
> > this addon (that I named "chatty"), gon on login, skipped the cinematic
> > and tried for first thing the slash command (I set up /chatty or /cht)...
> > nothing worked at all...
>
> You might want to check out the UI section at wowpedia, they offer pretty
> good starting advice.

Yeah, yesterday I haven't the will to study the documentation, but I
know very well that it's better do it, and don't treat code like voodoo
:D

>
> Also, you don't need to restart the game every time you make changes, that
> is only needed if you add or remove files. If you only change the content of
> existing files, it is enough to reload the interface (/console reloadui).
>
> Another thing that can help, is an extended error viewer, there are quite a
> few out there, I like the one that comes with Auctioneer (Swatter), I think
> you can even download it seperately (www.auctioneeraddon.com or somethign
> similar), or just extract that addon only from the full ZIP file).
>
> It shows you any LUA mistakes you make, though if you screw up in the XML
> file it might not show anything because the addon won't even be properly
> loaded.
>
> /swatter show - shows the error list (severe errors make the window popup on
> its own, smaller ones might not)
> /swatter clear - delete all entries, so you do not see old errors on your
> next try
> /console reloadui - reload UI and all addon files
>
> I have a keybound macro for the last two slash commands on the character
> that I develop and test my addons with.
>
> I'm sure others can recommend other error viewers.

ok, I have auctioneer installed, and swatter too: I'll use it

>
> > ok, for tonite I did enough: not only I hade the idea, but I tried to
> > write some code... this is awesome for me, and enough for tonight
> >
> > see you for next update on my adventure :D
>
> Good luck.

thanks :D

>
> > if my messagges could be annoying for someone, just tell me and I'll
> > stop imemdiately posting on this topic :D
>
> No provlem from my point of view, tell us where you get stuck, we might be
> able to help you, I know there are a couple of other people who write addons
> that follow a.g.w.

oh, someone can find extremely boring my words and I want to respect
their wills :D


--
this is a random signature

evanmac69

1/20/2011 9:50:00 AM

0

Steve Kaye <nospam@giddy-kippers.co.uk> wrote:

> I like BugSack and BugGrabber. One grabs the errors and puts them in
> a sack. :) You use BugSack to view the errors and it allows you to
> see all the errors it has captured or just the ones from this session
> meaning you don't need to clear the errors to hide old ones.

ad I said in previous message, I have auctioneer (and swatter)
installed, so I'd rather prefer to use it; anyway, thanks for advice


--
this is a random signature

Urbin

1/20/2011 9:57:00 AM

0

On Thu, 20 Jan 2011 10:49:30 +0100, EvanMac wrote:
> Urbin <urbin@invalid.invalid> wrote:
> > On Wed, 19 Jan 2011 22:02:13 +0100, Evanmac wrote:
> > > Il 19/01/2011 13:30, EvanMac ha scritto:
> > > > I found that I type almost the same phrases in chat, for example "hi,
> > > > changing spec", "hi, first time here, feel free to kick me", "healer
> > > > under attack, NEED HELP" and son on...
> > > >
> > > > I have a useful addon called battleground defender that let you send
> > > > some messages in /bg chat to help the defense of bg points, now... I'm
> > > > thinking about an addon compltetely configurable that let me to send a
> > > > messagge in party (or say, or guild, or whatever I want) with a button
> > > > click; this addon should be user configurable, and should have the
> > > > feature to maximize and minimize a list of phrases (like the carbonite'
> > > > quest log do) I want to have under my mouse click
> > > >
> > > > that said, I absolutely can't write an addon like this, and I don't know
> > > > if an addon like this alredy exists; and here is my question(s): "do
> > > > someone knows if a similar addon already exists? If not, do someone here
> > > > can develop this idea?"
> > > >
> > > > obviously the credit to making the addon will belong to the person who
> > > > actually wrote it, I just ask to know if someone wants to wrte somthing
> > > > like this and send me a link where I can download the addon (even in
> > > > alpha, I'll be a beta tester) :D
> > >
> > > ok, because I (think that I) am a genius, I had a great idea: let's take
> > > and addon similar to that I want and try diving into code to rearrange
> > > its function as desired...
> >
> > Be careful. I did that once and then suddenly ended up having half a dozen
> > addons to maintain ;-)
>
> so, it's better to start from scratch?

No, what I was trying to say with a twinkle in my eye was that if you start
playing around with addons you might get to like it and after having written
this one, you might write another one and another one and suddenly you are
responsible for half a dozen addons :-)

I think taking a working addon and modifying it is a great way to learn how
they work. It's how I learnt LUA/addon programming.

> to be honest I had the idea to "mix the code" from guild greet and bg
> defender, adding a function to hide/show the little interface
>
> whyt this choice?
>
> guildgreet has the function that let the user choose, change, add and
> delete phrases when needed, so I thought "hey! I just have to learn how
> this addon works, stripout the code relative to guild, and add the code
> from bg defender"... not so great idea :D

I don't know bg defender, but I *do* know GuildGreet :-) While it does have
code to define phrases, that is one of the more complex parts of the addon
and the code handling collections (which I inherited and that is the last
part of the addon I haven't fully understood yet) probably makes this much
more complicated than what you need. Just a word of caution here :-)

> the reasons because I want to write this addon, and don't ask directly
> into the ng if someone wants to write it, are several, most of all
> because this can be a huge source of headache (for me at least :D ), and
> I have to solve the problem I think about :D

I can see why you do it that way. This is always how I get sucked into new
programming projects. Something bugs me, I want to fix it, I want to learn
how to fix it, it's a challenge, here we go... as I said, good luck and have
fun!

> > You might want to check out the UI section at wowpedia, they offer pretty
> > good starting advice.
>
> Yeah, yesterday I haven't the will to study the documentation, but I
> know very well that it's better do it, and don't treat code like voodoo
> :D

Nothing wrong with getting your hands dirty first. But when you get stuck,
that documentation will probably help you along nicely.

> > > if my messagges could be annoying for someone, just tell me and I'll
> > > stop imemdiately posting on this topic :D
> >
> > No provlem from my point of view, tell us where you get stuck, we might be
> > able to help you, I know there are a couple of other people who write addons
> > that follow a.g.w.
>
> oh, someone can find extremely boring my words and I want to respect
> their wills :D

They are free to not read this thread :-)

Cheers
Urbin

--
Dun Morogh-EU (PvE) | Juran (65), Druid
Urbin (85), Hunter | Surana (70), Mage | Greeta (62), Rogue
Mymule (80), Warlock | Kordosch (75), Deathknight | Gera (26), Paladin
Sunh (80), Priest | Taalas (73), Shaman | Vargal (14), Warrior

Urbin

1/20/2011 9:58:00 AM

0

On Thu, 20 Jan 2011 09:22:45 +0000, Steve Kaye wrote:
> On 20 Jan 2011 08:39:07 GMT, Urbin <urbin@invalid.invalid> wrote:
>
> >Another thing that can help, is an extended error viewer, there are quite a
> >few out there, I like the one that comes with Auctioneer (Swatter), I think
> >you can even download it seperately (www.auctioneeraddon.com or somethign
> >similar), or just extract that addon only from the full ZIP file).
> >
> >It shows you any LUA mistakes you make, though if you screw up in the XML
> >file it might not show anything because the addon won't even be properly
> >loaded.
> >
> >/swatter show - shows the error list (severe errors make the window popup on
> > its own, smaller ones might not)
> >/swatter clear - delete all entries, so you do not see old errors on your
> > next try
> >/console reloadui - reload UI and all addon files
> >
> >I have a keybound macro for the last two slash commands on the character
> >that I develop and test my addons with.
> >
> >I'm sure others can recommend other error viewers.
>
> I like BugSack and BugGrabber. One grabs the errors and puts them in
> a sack. :) You use BugSack to view the errors and it allows you to
> see all the errors it has captured or just the ones from this session
> meaning you don't need to clear the errors to hide old ones.

Ah, that sounds useful. I might look into those two, then. I no longer use
Acutioneer (I prefer Auctionator these days) so there is no real need to
keep Swatter anymore.

Cheers
Urbin
--
Dun Morogh-EU (PvE) | Juran (65), Druid
Urbin (85), Hunter | Surana (70), Mage | Greeta (62), Rogue
Mymule (80), Warlock | Kordosch (75), Deathknight | Gera (26), Paladin
Sunh (80), Priest | Taalas (73), Shaman | Vargal (14), Warrior

steve.kaye

1/20/2011 10:02:00 AM

0

On Thu, 20 Jan 2011 10:49:31 +0100, evanmac69@gmail.com (EvanMac)
wrote:

>Steve Kaye <nospam@giddy-kippers.co.uk> wrote:
>
>> I like BugSack and BugGrabber. One grabs the errors and puts them in
>> a sack. :) You use BugSack to view the errors and it allows you to
>> see all the errors it has captured or just the ones from this session
>> meaning you don't need to clear the errors to hide old ones.
>
>ad I said in previous message, I have auctioneer (and swatter)
>installed, so I'd rather prefer to use it; anyway, thanks for advice

The main reason why I use BugSack and BugGrabber is that I don't have
auctioneer installed :)

steve.kaye
--
Ravenholdt-EU (Horde)
Jelan, 85 Priest Jengu, 81 Death Knight Belugar, 76 Warrior
Kibbs, 83 Paladin Clokk, 81 Druid Mingan, 74 Shaman
Miho, 82 Rogue Jaille, 80 Warlock Yopp, 64 Hunter

evanmac69

1/23/2011 10:21:00 AM

0

Urbin <urbin@invalid.invalid> wrote:

> On Thu, 20 Jan 2011 10:49:30 +0100, EvanMac wrote:
> > Urbin <urbin@invalid.invalid> wrote:
> > > On Wed, 19 Jan 2011 22:02:13 +0100, Evanmac wrote:
> > > > Il 19/01/2011 13:30, EvanMac ha scritto:
> > > > > I found that I type almost the same phrases in chat, for example
> > > > > "hi, changing spec", "hi, first time here, feel free to kick me",
> > > > > "healer under attack, NEED HELP" and son on...
> > > > >
> > > > > I have a useful addon called battleground defender that let you
> > > > > send some messages in /bg chat to help the defense of bg points,
> > > > > now... I'm thinking about an addon compltetely configurable that
> > > > > let me to send a messagge in party (or say, or guild, or whatever
> > > > > I want) with a button click; this addon should be user
> > > > > configurable, and should have the feature to maximize and minimize
> > > > > a list of phrases (like the carbonite' quest log do) I want to
> > > > > have under my mouse click
> > > > >
> > > > > that said, I absolutely can't write an addon like this, and I
> > > > > don't know if an addon like this alredy exists; and here is my
> > > > > question(s): "do someone knows if a similar addon already exists?
> > > > > If not, do someone here can develop this idea?"
> > > > >
> > > > > obviously the credit to making the addon will belong to the person
> > > > > who actually wrote it, I just ask to know if someone wants to wrte
> > > > > somthing like this and send me a link where I can download the
> > > > > addon (even in alpha, I'll be a beta tester) :D
> > > >
> > > > ok, because I (think that I) am a genius, I had a great idea: let's
> > > > take and addon similar to that I want and try diving into code to
> > > > rearrange its function as desired...
> > >
> > > Be careful. I did that once and then suddenly ended up having half a dozen
> > > addons to maintain ;-)
> >
> > so, it's better to start from scratch?
>
> No, what I was trying to say with a twinkle in my eye was that if you start
> playing around with addons you might get to like it and after having written
> this one, you might write another one and another one and suddenly you are
> responsible for half a dozen addons :-)

gotcha! I have a couple of ideas in mind... :)

> I think taking a working addon and modifying it is a great way to learn how
> they work. It's how I learnt LUA/addon programming.

that's my purpose :D

> > to be honest I had the idea to "mix the code" from guild greet and bg
> > defender, adding a function to hide/show the little interface
> >
> > whyt this choice?
> >
> > guildgreet has the function that let the user choose, change, add and
> > delete phrases when needed, so I thought "hey! I just have to learn how
> > this addon works, stripout the code relative to guild, and add the code
> > from bg defender"... not so great idea :D
>
> I don't know bg defender, but I *do* know GuildGreet :-) While it does have
> code to define phrases, that is one of the more complex parts of the addon
> and the code handling collections (which I inherited and that is the last
> part of the addon I haven't fully understood yet) probably makes this much
> more complicated than what you need. Just a word of caution here :-)

bgdefender has the "control panel" that lets you to senf in /bg some
useful messages with a button click on the screen

> > the reasons because I want to write this addon, and don't ask directly
> > into the ng if someone wants to write it, are several, most of all
> > because this can be a huge source of headache (for me at least :D ), and
> > I have to solve the problem I think about :D
>
> I can see why you do it that way. This is always how I get sucked into new
> programming projects. Something bugs me, I want to fix it, I want to learn
> how to fix it, it's a challenge, here we go... as I said, good luck and have
> fun!

thanks :D

> > > You might want to check out the UI section at wowpedia, they offer pretty
> > > good starting advice.
> >
> > Yeah, yesterday I haven't the will to study the documentation, but I
> > know very well that it's better do it, and don't treat code like voodoo
> > :D
>
> Nothing wrong with getting your hands dirty first. But when you get stuck,
> that documentation will probably help you along nicely.

ui modding and lua language itself opened me a universe :D

>
> > > > if my messagges could be annoying for someone, just tell me and I'll
> > > > stop imemdiately posting on this topic :D
> > >
> > > No problem from my point of view, tell us where you get stuck, we
> > > might be able to help you, I know there are a couple of other people
> > > who write addons that follow a.g.w.
> >
> > oh, someone can find extremely boring my words and I want to respect
> > their wills :D
>
> They are free to not read this thread :-)

ok :D


--
this is a random signature

evanmac69

1/23/2011 1:04:00 PM

0

EvanMac <evanmac69@gmail.com> wrote:

> Urbin <urbin@invalid.invalid> wrote:
> > > > You might want to check out the UI section at wowpedia, they offer
> > > > pretty good starting advice.
> > >
> > > Yeah, yesterday I haven't the will to study the documentation, but I
> > > know very well that it's better do it, and don't treat code like
> > > voodoo :D
> >
> > Nothing wrong with getting your hands dirty first. But when you get
> > stuck, that documentation will probably help you along nicely.
>
> ui modding and lua language itself opened me a universe :D

I think I found the api I need:
<http://www.wowpedia.org/Using_UIDropDo...

is that right? :D


--
this is a random signature

steve.kaye

1/23/2011 3:49:00 PM

0

On 23/01/2011 13:03, EvanMac wrote:
> EvanMac<evanmac69@gmail.com> wrote:
>
>> Urbin<urbin@invalid.invalid> wrote:
>>>>> You might want to check out the UI section at wowpedia, they offer
>>>>> pretty good starting advice.
>>>>
>>>> Yeah, yesterday I haven't the will to study the documentation, but I
>>>> know very well that it's better do it, and don't treat code like
>>>> voodoo :D
>>>
>>> Nothing wrong with getting your hands dirty first. But when you get
>>> stuck, that documentation will probably help you along nicely.
>>
>> ui modding and lua language itself opened me a universe :D
>
> I think I found the api I need:
> <http://www.wowpedia.org/Using_UIDropDo...
>
> is that right? :D

That depends upon what you want to do but I don't think so.

The impression that I get from your previous description is that you
want it to be showable/hidable with a mouse click like the objectives
window.

That API will require that you do two key presses every time you want to
send a chat - one to show the menu and one to click the message. That
would work for the changing spec messages but it wouldn't be ideal for
anything that needs to be sent urgently in combat like the healer under
attack message.

You could look at the Blizzard code for the quest tracking window - it's
called the WatchFrame and you can see the source here:

http://wowprogramming.com/utils/xmlbrowser/live/FrameXML/Watc...
http://wowprogramming.com/utils/xmlbrowser/live/FrameXML/Watc...

In the XML file, look for <Button name="$parentCollapseExpandButton">
which is the button that you click on to show and hide the tracker
window*.

In the LUA file, look for the function called
WatchFrame_CollapseExpandButton_OnClick which is the one that is called
when you click on the button.

* BTW, when an element in the XML file has a name with $parent in it, it
takes the name of the parent (in this case WatchFrame) and replaces
$parent with it. So the expand/collapse button ends up being called
WatchFrameCollapseExpandButton.


steve.kaye
--
Jelan, 85 Priest Clokk, 81 Druid Belugar, 76 Warrior
Kibbs, 83 Paladin Jengu, 81 Death Knight Mingan, 74 Shaman
Miho, 82 Rogue Jaille, 80 Warlock Yopp, 64 Hunter
[ Ravenholdt-EU (Horde) ] Aloola, 62 Mage

evanmac69

1/23/2011 4:58:00 PM

0

Steve Kaye <nospam@giddy-kippers.co.uk> wrote:

> The impression that I get from your previous description is that you
> want it to be showable/hidable with a mouse click like the objectives
> window.

for the first version I wondered a little movable frame, with some
button to say the phrases; the hideability is something 2.0 related :)


--
this is a random signature

Lewis

1/23/2011 9:30:00 PM

0

>> > > > Il 19/01/2011 13:30, EvanMac ha scritto:
>> > > > > I found that I type almost the same phrases in chat, for example
>> > > > > "hi, changing spec", "hi, first time here, feel free to kick me",
>> > > > > "healer under attack, NEED HELP" and son on...

Well, one way to do this is with a couple of macros, especially since
you can change the behavior of the macros based on keypresses, so send
one thing when you click, something else when you alt-click, something
else for control-click, something else for shift-click, something else
for shift-ctrl-click...

Of course, you run into the 255 character limitation, but still, it is
an option.

Way back in Wow 1.x I had an addon something like this, but despite
scouring my brain I can't remember the name of it. I think it was by the
same person who wrote Startup Commands (which let you script a few
things to do everytime you logged in).

I used mine to do a few things and then the last thing was

/me summons Greater Lag

which was both funny and not since I tended to log out in Lagforge.

--
Nobody puts one over on Fred C. Dobbs.