NotesUNeed

NotesUNeed v6.63.33500 - Adrill of Eonar (US)
Originally created by Telic of Dragonblight (EU)
___________________________________________________

- fixed ChatFrameEditBox issue as reported by ameyaselene. Thanks for the great bug report.

Additionally, if anyone else would additionally be interested in working on maintaining this mod with me, I am looking in to setting NuN up on a repository to allow multiple contributors to work on it. PM me if you want to get involved.

Make Contact Notes on other Players, or General Notes on anything else.

This AddOn is for making your own custom notes on players, and quests, and items, etc. and does not come with any pre-made notes.
It does provide an Export and Import Feature for sharing of sets of notes, or publishing of note databases.

There is no longer an "Alternative" version of NuN, and the default Modifier keys for creating notes from Container Items and Hyperlinks is now simply "<Alt>-Left Mouse Click". For anyone unhappy with this key-Combo, then they can now specify their own via the NotesUNeed Options frame.

Below is a summary of NotesUNeed functionality, but you should read the Readme.txt file for much more detailed discussion on these subjects.

Main Features of NuN
--------------------

1.) Create Player Notes (aka Contact Notes) :
- Create Contact notes :
a) using new NuN buttons in the Friends Frame
b) using the NuN Micro Buttons described in point 3
c) using slash commands
d) via new NuN options in the player context menu
e) Or via any of the automated methods mentioned below
- NuN can auto-populate many details about race, class, guild, etc.
- Also add your own free Text notes
- auto maintain Friend / Ignore Lists across different Alts
- auto-note people you Party with
- auto-note Guild members
- auto maintain notes on your own Characters plus Levelling notes
- Rate Players via Right click menu and see that Rating in Tooltips
or tagged to Player Names in Chat

2.) Create General text notes on anything you like :
- Create General notes :
a) via the Micro Buttons in point 3 below;
b) via slash commands;
c) use the NuN Modifier when clicking on Container Items or Hyperlinks
(Default "<Alt>-Left Mouse Click" but can be changed in Options)
d) importing from a Plugin database
e) receiving notes in-game from other NuN users
f) Or via any of the automated methods below
- Options to auto maintain Quest Notes which will save a few kinds of notes
a) Quest notes that record quest details plus Quest Giver name and location
b) Quest progress notes which record location when completing quest objectives
c) Quest History detailing when a given Toon Accepted, and Completed quests
- General notes can be saved at Account or Realm level
- Scripting - LUA scripts can be executed from General notes by :
a) Using the Run Script button in the frame
b) Slash command "/nun -x <NOTE_NAME>"
c) Execute one NuN Note from another NuN Note with the following command :
NuN_ExecuteNote("<Note Name>")
- General notes can be assigned the following Types for easy searching :
a) ITM - Item notes
b) QST - Quest notes, and quest objective notes
c) NPC - Notes made on NPCs and Mobs
d) LOG - NotesUNeed records Transmission logs when you send/receive notes
e) LUA - Keep your own in-game scripts library and execute notes like Macros
f) - or just leave blank ;p

3.) NuN has a MicroButtons panel with 4 buttons for quick access to features.
This frame can be moved by dragging the small border surrounding the buttons, and can be hidden if not needed (see slash commands). From left to right the buttons are :
- Options : toggle the NuN Options frame
- Note Browser : toggle the NuN Note Browser frame
<Alt> Left Click to browse General notes only
Right Click to browse Quest History
- Contact Note : create a note for the current target
will create a General note if current target is an NPC
<Alt> Click to re-open the last opened Contact Note
- General Note : create a General note
will create an NPC note if current target is an NPC
<Alt> Click to re-open the last opened General Note

4.) Note Browser Window.
This is where you can view the list of notes you have :
- default sorting is your Faction, then Opposing, then General Notes
- search for notes containing text you specify in the edit box
a) Left click : Case insensitive search
b) Right click : Case sensitive search
- filter visible notes from the Options Frame
e.g. to only show Quest Notes, or NPC Notes
- a tick indicates a General note is saved at Account level
- hover over a note to see its contents in a Tooltip
- Right-Click to open the sticky NuN PinUp Tooltip
- <Shift>Left-Click to paste the note name in to open chat box
- After filtering and searching to narrow down the visible set of Notes, you can :
a) Mass delete those listed in the browser frame
b) Export listed notes for other players to install and Import

5.) Options frame - open via the Microbuttons or slash command "/nun"
Configure NotesUNeed here, or filter the notes to appear in the Note
Browser frame. For example, to just look at NPC notes, or browse
Quest History for one of your Toons

6.) Backup and Restore functionality to save your database
This functionality is kept in separate LoadOnDemand AddOns to save memory.
Both the Backup and Restore processes will execute a ReloadUI()

7.) Import and Export of notes Databases
Share sets of notes with friends, or publish notes databases as a Plugin
for others to Import

8.) Broadcasting & Sending of NotesUNeed Notes
Broadcast Raid Instructions for Boss enchounters or PvP strategy, or
just your enchant selling menu; Or send formatted notes for other
NotesUNeed users to add to their database.

/nun <note title> : Will attempt the following :
1. Fetch a saved Contact note with that name
2. Fetch a saved General note with that title
3. Create a new Contact note if a player of that name is in your party/raid group or is within target range
4. Toggles the NotesUNeed Options window

/nun -t : Fetches the saved Contact note for the current target, or creates a new one, or shows your own characters note if no valid target. Since v2.00.1800, this command will create notes for NPCs and populate some basic information about them.

/nun -g : Creates a new General Note, untitled.

/nun -g <note title> : Fetches the existing General note with that title, or Creates a new General note with that title.

/nun -ch <name> : Create a Horde Player Character note for the given name without validating it
/nun -ca <name> : Create an Alliance Player Character note for the given name without validating it

/nun -tt : Toggle NotesUNeed Tooltips on/off

/nun -micro : Toggle the NotesUNeed Microbuttons panel hide/show

/nun -x <note title> : Tries to execute the specified note as a Lua Script. If no note exists, then will open the Note Search window

/nun -i <name> : to stop NotesUNeed trying to ignore a player

/nun -f <name> : to stop NotesUNeed trying to befriend a player

/nun -resetlists : to reset NotesUNeed's Friend/Ignore lists to those of the currently logged Alt

/nun -purgeexport : to clear Exported records and allow the creation of a newly named set of records

/nun -delay [number of seconds] : transmissions to channels have a default delay between each line being sent of 0.33 Use this slash command to change this value. Will report the current value if you do not pass any seconds value.

where -
"NOTE_NAME" = the name of the note or note title
"SEND_METHOD" = how to send the note e.g. "GUILD", "RAID", "WHISPER", "CHANNEL", etc.
"SEND_PARAMETER" = Optionally required (i.e. who to WHISPER to -OR- the Channel ID/Name)
NOTE: using any of these slash commands will close any currently open note.

Changes in v6.63.33500 from v6.62.30500
---------------------------------------

- fixed ChatFrameEditBox issue as reported by ameyaselene. Thanks for the great bug report.

Yeah, I was wondering if Bugsack caught the value of pKey. The information you gave shows a lot of internal variable values and ended with a ... I wasn't sure if there might be more information after that. You would put the line of code I mentioned immediately before line 3422, no brackets or anything should be needed. Basically what is happening is that the code tries to look up any stored friend information from the NotesUNeed DB and it tries to look it up based on the value of pKey, but the error you are getting suggests that something is wrong with the value of pKey and/or the data that is stored in the location it points to. pKey should be your realm name.

Originally posted by AJH16 Does the debug information dump by any chance include the value of pKey? The other possibility is that that value is somehow getting corrupted prior to the crash. Also, when resetting the data, had you adjusted any settings from the defaults before the crash? I don't get this crash so it may be setting specific and if I can reproduce it, then I'll have a far better chance of fixing it. Also, what is your level of technical knowledge so I can better communicate? If you are comfortable modifying code, you could try adding a line

Code:

DEFAULT_CHAT_FRAME:AddMessage("pKey value: " .. pKey)

to have it dump the value of pKey just before the error line happens.

I see no option anywhere to put NuN in debug mode so I cannot answer that question. The bug report I gave was from addon called Bugsack/Buggrabber.

Where do I stick that code, anywhere? At very bottom? I don't mind hacking the file.

Yeah, looking at the code I would prefer you to tell me exactly what line to put it on. Preferably before any note info from notes I make this way our line numbers would match up. Also because I am not sure if I need to use braces/brackets anywhere.

Does the debug information dump by any chance include the value of pKey? The other possibility is that that value is somehow getting corrupted prior to the crash. Also, when resetting the data, had you adjusted any settings from the defaults before the crash? I don't get this crash so it may be setting specific and if I can reproduce it, then I'll have a far better chance of fixing it. Also, what is your level of technical knowledge so I can better communicate? If you are comfortable modifying code, you could try adding a line

Originally posted by AJH16 Amzak, I'm looking at your issue now. That particular portion of the code seems pretty straight forward. It is trying to look through your friends list to update friend records in NotesUNeed and it isn't able to find data for your realm.

Okay, I'll go ahead and wipe the .lua file and start from scratch and just copy/paste my notes back. I was thinking of trying that anyhow. As far as friends list goes I haven't had NuN keep track of friends or guild for two yrs now. I no longer use that portion of the addon feature because I got tired of seeing that error message it prints when it tries to ignore someone who is offline when syncing between alts.

EDIT: Well, so much for that idea lol. I deleted the .lua files for NuN and started from scratch with new notes. I only copied/pasted a couple notes. As soon as I logged off and then logged on a different alt I got that error message again.

Amzak, I'm looking at your issue now. That particular portion of the code seems pretty straight forward. It is trying to look through your friends list to update friend records in NotesUNeed and it isn't able to find data for your realm. It is possible there may be something corrupt in your data file for NotesUNeed that may be causing it to unload the data file and causing the problem. I know it isn't ideal, but does the problem go away if you rename the NotesUNeed.lua file in your WTF\Account\Account Name\SavedVariables\ folder? Note, this will reset your NotesUNeed mod so be sure to keep a backup of the file. If the problem still occurs for you, then there may be something systematically wrong, but if it does go away, it is probably a corrupt data file and there isn't a whole lot I can do to help unfortunatly.

Originally posted by AJH16 If I get a chance I will look in to how this functions. At this point Telic is no longer doing any development with the project and I've mostly taken over it for maintenance. I am trying to find developers who can work with me on new features or feature enhancements since I don't have the time right now to do new development on the mod, but if I get a chance or if I find people who want to work with me, I will put this on a to-do list to be handled. Thanks for the feedback.

Is there any way to make the buttons stay put after disabling the addon and then re-enabling it? I really love your addon and advertise it any chance I get, but this little quirk is such a pain to deal with.

I use ACP to make a raiding set of addons that I use... I turn off all addons that do not pertain to raiding, and then turn them all back on when I'm done. Every time I turn your addon back on, it's moved back to the top of my screen.

Can you make it keep it's previous location after disabling and re-enabling?

If I get a chance I will look in to how this functions. At this point Telic is no longer doing any development with the project and I've mostly taken over it for maintenance. I am trying to find developers who can work with me on new features or feature enhancements since I don't have the time right now to do new development on the mod, but if I get a chance or if I find people who want to work with me, I will put this on a to-do list to be handled. Thanks for the feedback.

Is there any way to make the buttons stay put after disabling the addon and then re-enabling it? I really love your addon and advertise it any chance I get, but this little quirk is such a pain to deal with.

I use ACP to make a raiding set of addons that I use... I turn off all addons that do not pertain to raiding, and then turn them all back on when I'm done. Every time I turn your addon back on, it's moved back to the top of my screen.

Can you make it keep it's previous location after disabling and re-enabling?

Never mind. I was looking at the wrong copy of my source. I think I found what I need, though more info on what you were doing at the time would be helpful.

More Info: It appears that this is probably related to the quest log and the friends list being open at the same time. Does this make any sense in the context of the mods that you have?

well something is doing a who when i log in dont know what addon it is yet

but to answer no the friends list and quest log whas closed and its the current version 6.60 got the error right away when i logged in so might be something to do with that /who that pops up for some reason
i use carbonite map addon + its quest log as well

I'll just tell you "thanks" for updating this mod. I can't really make addons, and I really love this addon, so for you to pick up where Telic left off, is really great! I hope you get some help with it, because this is one addon, that shouldn't end up old and discontinued.