Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(34 Kb)
Download
Updated: 12-30-14 09:57 AM
Pictures
File Info
Compatibility:
Warlords of Draenor (6.0.3)
Updated:12-30-14 09:57 AM
Created:08-21-13 05:56 PM
Downloads:6,315
Favorites:46
MD5:

rNamePlates (Diablo)  Popular! (More than 5000 hits)

Version: 60000.09
by: zork [More]


INTRO

rNamePlates replaces the default name plates with a Diablo themed high FPS counterpart.
Based up on this: Nameplate FPS drop research
AURAS
rNamePlates supports auras. Auras are tracked for "player" and "pet" and saved in a spell-database per character. To administrate the spell-database check the slash commands.
SLASH COMMANDS
lua Code:
  1. /rnp -- shows all commands
  2. /rnp list -- shows all entries of spelldb for this character
  3. /rnp blacklist SPELLID -- blacklists a certain SPELLID in spelldb for this character
  4. /rnp whitelist SPELLID -- whitelists a certain SPELLID in spelldb for this character
  5. /rnp remove SPELLID -- removes a certain SPELLID from spelldb for this character
  6. /rnp disable -- disable the spelldb for this character
  7. /rnp enable -- enable the spelldb for this character
  8. /rnp resetspelldb -- reset the spelldb for this character

CONFIG
Small config on top of the rNamePlates.lua. Not much. Most of the stuff is hardcoded.
SVN
http://code.google.com/p/rothui/sour...0/rNamePlates/

60000.09
- healthbar colors now match faction colors
- color onupdate function throttled

60000.08
- hide default healthbar
- hide default castbar
- hide threat glow
- create new healthbar
- create new castbar
- added TANKMODE healthbar coloring

60000.07
- Added new command "disable" to disable the spellDB per character
- Added new command "enable" to enable the spellDB per character
- Remove obsolete checks for ScanAura
- Code cleanup

60000.06
- fixed the poor GUID handling

60000.05
- changed loading event to ADDON_LOADED
- fixed rNP_SPELL_DB = nil error

60000.04
- Loading SavedVariables with VARIABLES_LOADED event instead of ADDON_LOADED
- Added more spellDB checks
- Removed spellDB wipe on new WoW build
- Added new command "remove" to remove a spell from spellDB
- Renamed command "spelldb" to "list"

60000.03
- added auras to rNamePlates
- added slash commands to manage tracked auras

60000.02
- code cleanup

60000.01
- new nameplates for wod 6.0.2

50400.01
- added healthbar faction coloring
- updated toc to 50400

50300.04
- Added the threat bloat fix

50300.03
- changed the threat glow to a threat border around the healthbar

50300.02
- code cleanup/overhaul
- added 2 new statusbar textures to pick from

50300.01
- initial release
Optional Files (0)


Archived Files (10)
File Name
Version
Size
Author
Date
60000.08
33kB
zork
12-27-14 10:31 AM
60000.07
33kB
zork
11-10-14 12:16 PM
60000.06
33kB
zork
11-08-14 11:57 AM
60000.02
30kB
zork
10-24-14 07:51 PM
60000.01
30kB
zork
10-18-14 09:27 AM
50400.01
16kB
zork
09-16-13 04:39 AM
50300.04
16kB
zork
09-07-13 04:33 AM
50300.03
16kB
zork
08-24-13 08:10 PM
50300.02
50kB
zork
08-23-13 12:33 PM
50300.01
11kB
zork
08-21-13 05:56 PM


Post A Reply Comment Options
Unread 04-06-15, 07:40 AM  
Dasco
A Kobold Labourer

Forum posts: 0
File comments: 19
Uploads: 0
Hello Zork,

I love all your works, it's amazing!

Can you tell me how to:

- put % on health bar (i find the code on this thread but i dont really know where to put it)
- remove the threat white/greenish color (i managed to turn it to red but when i loose aggro, it turn back to green, i just want default color)
- change the castbar size?

I'm a noob on lua coding, if you can tell me how/where exactly i have to put/remove strings, would be great
Thanks
Dasco is offline Report comment to moderator  
Reply With Quote
Unread 04-06-15, 06:18 AM  
illum1n4ti
A Defias Bandit
 
illum1n4ti's Avatar

Forum posts: 3
File comments: 92
Uploads: 1
Hello Zork

I have been using ur new nameplate for while but i am wondering if its possible to auto expand the bar to max ur name text

screenshot 1 is your old nameplate add-on
screenshot 2 is your new nameplate add-on

your old nameplate add-on shows hole name but new nameplate u see that text is been shorted .. how can i show hole text?

screenshot 1


screenshot 2
illum1n4ti is offline Report comment to moderator  
Reply With Quote
Unread 03-09-15, 07:42 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1411
File comments: 3460
Uploads: 90
@Kabuto-eu
Thanks.
http://wowprogramming.com/docs/widge...GetStringWidth
http://wowprogramming.com/docs/widge...etStringHeight

Wonder what these spit out when print()'ed.

Maybe this is activated for some reason?
http://wowprogramming.com/docs/widge...ng/SetWordWrap

Normally no font string can wrap into a new line by default.
Maybe my debugstring is the problem ("Ich bin ein Berliner!"). That would be the simplest solution.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 03-09-15 at 07:55 AM.
zork is offline Report comment to moderator  
Reply With Quote
Unread 03-07-15, 05:28 PM  
Kabuto-eu
A Kobold Labourer

Forum posts: 0
File comments: 33
Uploads: 0
Try /rnp resetspelldb
Kabuto-eu is offline Report comment to moderator  
Reply With Quote
Unread 03-07-15, 10:35 AM  
pingumania
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 33
Uploads: 1
I get this error sometimes.

Code:
50x rNamePlates\rNamePlates.lua:483: table index is nil
rNamePlates\rNamePlates.lua:483: in function <rNamePlates\rNamePlates.lua:474>
rNamePlates\rNamePlates.lua:537: in function <rNamePlates\rNamePlates.lua:532>
rNamePlates\rNamePlates.lua:571: in function <rNamePlates\rNamePlates.lua:547>
rNamePlates\rNamePlates.lua:584: in function <rNamePlates\rNamePlates.lua:581>
[C]:: ?

Locals:
self = NamePlate9 {
 0 = <userdata>
 newPlate = <unnamed> {
 }
 nameFrame = <unnamed> {
 }
 auras = <table> {
 }
 castBar = <unnamed> {
 }
 barFrame = <unnamed> {
 }
 borderTexture = <unnamed> {
 }
 raidIconTexture = <unnamed> {
 }
 nameString = <unnamed> {
 }
 auraButtons = <table> {
 }
 threatTexture = <unnamed> {
 }
 healthBar = <unnamed> {
 }
 eliteDragonTexture = <unnamed> {
 }
 bossIconTexture = <unnamed> {
 }
 auraHeader = <unnamed> {
 }
 levelString = <unnamed> {
 }
 highlightTexture = <unnamed> {
 }
}
delayCounter = 1
NamePlateSetGUID = <function> defined @rNamePlates\rNamePlates.lua:474
NamePlateScanAuras = <function> defined @rNamePlates\rNamePlates.lua:383
updateTarget = true
pingumania is offline Report comment to moderator  
Reply With Quote
Unread 03-07-15, 10:34 AM  
pingumania
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 33
Uploads: 1
Originally Posted by Kabuto-eu
Code:
    local name = bar.hlf:CreateFontString(nil, "BORDER")
    name:SetFont(cfg.font, cfg.healthbar_fontsize, "OUTLINE")
	name:SetHeight(12)
	name:SetWidth(12)
    name:SetPoint("BOTTOM",bar,"TOP",0,-24)
    name:SetPoint("LEFT",8,0)
    name:SetPoint("RIGHT",-8,0)
    name:SetText("Ich bin ein Berliner!")
    bar.name = name
This works, not sure the numbers even matter as long as you set height and width on the string. If you have name strings randomly flip flop between truncated or not then another addon is probably doing it. I know BlizzBugsSuck tries to fix this issue but I'm not convinced it does it safely and might even make things worse.
Thx that worked .
pingumania is offline Report comment to moderator  
Reply With Quote
Unread 03-07-15, 02:40 AM  
Kabuto-eu
A Kobold Labourer

Forum posts: 0
File comments: 33
Uploads: 0
Code:
    local name = bar.hlf:CreateFontString(nil, "BORDER")
    name:SetFont(cfg.font, cfg.healthbar_fontsize, "OUTLINE")
	name:SetHeight(12)
	name:SetWidth(12)
    name:SetPoint("BOTTOM",bar,"TOP",0,-24)
    name:SetPoint("LEFT",8,0)
    name:SetPoint("RIGHT",-8,0)
    name:SetText("Ich bin ein Berliner!")
    bar.name = name
This works, not sure the numbers even matter as long as you set height and width on the string. If you have name strings randomly flip flop between truncated or not then another addon is probably doing it. I know BlizzBugsSuck tries to fix this issue but I'm not convinced it does it safely and might even make things worse.
Last edited by Kabuto-eu : 03-07-15 at 02:47 AM.
Kabuto-eu is offline Report comment to moderator  
Reply With Quote
Unread 03-06-15, 02:19 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1411
File comments: 3460
Uploads: 90
Oh yeah that issue. What you are seeing is sth that should never happen at all. The name string has fixed setpoints (left,right). Thus once a string is wider than the max-width defined by the setpoints it gets truncated automatically.

For whatever reason that behavious bugs out since 6.1 on some occasions. Super wierd. I have that on my todo list.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 03-06-15 at 02:20 AM.
zork is offline Report comment to moderator  
Reply With Quote
Unread 03-05-15, 09:46 AM  
pingumania
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 33
Uploads: 1
I have a question about the name string.

What it should look like


What it looks to me


After a reload its fine again, but after some time its back. Thats very annoying because it overlaps with the auras. Is this addon related or is this blizz's fault?
pingumania is offline Report comment to moderator  
Reply With Quote
Unread 01-24-15, 04:44 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1411
File comments: 3460
Uploads: 90
Nice. Well. I have a Github account. I just don't need it.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Unread 01-24-15, 10:04 AM  
illum1n4ti
A Defias Bandit
 
illum1n4ti's Avatar

Forum posts: 3
File comments: 92
Uploads: 1
Originally Posted by Cashtro
Originally Posted by zork
Nameplates are threat or faction colored. Additionally the color is multiplied with your texture color. Maybe your textures differ. Or you have threat on the nameplate but not on the target frame.

Or what may make the color look wierd is the highlight frame. That is a highlight texture on top of the nameplate. You can try to disable it and check for the outcome.
Hello Friend,

I just edit some textures on rNamePlate .. i hope u dont mind and i disabled highlight texture

1. screenshot is rNamePlate
2. screenshot is rNamePlate2 (https://code.google.com/p/rothui/sou...ates2/core.lua)

As u see there is diffrent colors. I hope u understand .. cuz i cant figure out what color scheme is causing this. I need help Zork
Hello Zork

I got finally working i did some changes here and there but 1 more question why dont u use https://github.com/? just wondering

Code:
  local function NamePlateHealthBarColor(blizzPlate)
    for class, _ in pairs(RAID_CLASS_COLORS) do
      if RAID_CLASS_COLORS[class].r == r and RAID_CLASS_COLORS[class].g == g and RAID_CLASS_COLORS[class].b == b then
        return --no color change needed, class color found
      end
    end
   if blizzPlate.healthBar.statusbarTexture:IsShown() then
      local r,g,b = blizzPlate.healthBar.statusbarTexture:GetVertexColor()
      if g+b == 0 then
        blizzPlate.newPlate.healthBar:SetStatusBarColor(r,g,b)
      elseif g+b == 0 then -- hostile
        r,g,b = FACTION_BAR_COLORS[2].r, FACTION_BAR_COLORS[2].g, FACTION_BAR_COLORS[2].b
      elseif r+b == 0 then -- friendly npc
        r,g,b = FACTION_BAR_COLORS[6].r, FACTION_BAR_COLORS[6].g, FACTION_BAR_COLORS[6].b
      elseif r+g == 2 then -- neutral
        r,g,b = FACTION_BAR_COLORS[4].r, FACTION_BAR_COLORS[4].g, FACTION_BAR_COLORS[4].b
      elseif r+g == 0 then -- friendly player, we don't like 0,0,1 so we change it to a more likable color
        r,g,b = 0/255, 100/255, 255/255
      end
      blizzPlate.newPlate.healthBar:SetStatusBarColor(r,g,b)
    end
  end
Here is the screenshot

Last edited by illum1n4ti : 01-24-15 at 11:40 AM.
illum1n4ti is offline Report comment to moderator  
Reply With Quote
Unread 01-23-15, 03:11 PM  
illum1n4ti
A Defias Bandit
 
illum1n4ti's Avatar

Forum posts: 3
File comments: 92
Uploads: 1
Originally Posted by zork
Nameplates are threat or faction colored. Additionally the color is multiplied with your texture color. Maybe your textures differ. Or you have threat on the nameplate but not on the target frame.

Or what may make the color look wierd is the highlight frame. That is a highlight texture on top of the nameplate. You can try to disable it and check for the outcome.
Hello Friend,

I just edit some textures on rNamePlate .. i hope u dont mind and i disable highlight texture

1. screenshot is rNamePlate
2. screenshot is rNamePlate2 (https://code.google.com/p/rothui/sou...ates2/core.lua)

As u see there is diffrent colors. I hope u understand .. cuz i cant figure out what color scheme is causing this. I need help Zork


Last edited by illum1n4ti : 01-23-15 at 03:18 PM.
illum1n4ti is offline Report comment to moderator  
Reply With Quote
Unread 01-21-15, 01:27 AM  
Emy
A Defias Bandit
 
Emy's Avatar

Forum posts: 2
File comments: 23
Uploads: 0
Originally Posted by zork
Right there where it says "tank mode".
https://code.google.com/p/rothui/sou...Plates.lua#431

Either change the color that is defined in RGB (0,1,0) = GREEN or disable the condition.
Thank you
__________________
Emy is offline Report comment to moderator  
Reply With Quote
Unread 01-21-15, 12:39 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1411
File comments: 3460
Uploads: 90
Right there where it says "tank mode".
https://code.google.com/p/rothui/sou...Plates.lua#431

Either change the color that is defined in RGB (0,1,0) = GREEN or disable the condition.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Unread 01-20-15, 05:23 PM  
Emy
A Defias Bandit
 
Emy's Avatar

Forum posts: 2
File comments: 23
Uploads: 0
Originally Posted by zork
@emy
Nameplates are colored by faction. If you fight an npc and have threat it will turn on tank mode. The colors match the faction table.
https://code.google.com/p/rothui/sou...Plates.lua#437
Hmm, that isn't good with a horde hunter then :/ Having aggro is bad for me but the aggro colours show green whenever my pet loses aggro, which looks like it should be a good thing... Where in the lua can I switch that off, or is it just in the latest version (it was fine and showing class colours/red-for-aggro up to recently.
__________________
Last edited by Emy : 01-20-15 at 06:41 PM.
Emy is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: