Thread Tools Display Modes
04-20-19, 08:16 AM   #1
tapczan100
A Kobold Labourer
Join Date: Apr 2019
Posts: 1
Question Trying to revive ancient addon "Warcrafty".

Hey Hello! So I always wanted that Warcraft3 UI in a single addon that would just work but never could find anything. Usually outdated compilations and when I tried to make one myself it never felt right. So I found Warcrafty but it's 10 years old and has a lot of issues. I have literally 0 lua knowledge so if I fixed something it was by extensive googling or complete accident.

HOWEVER I still have some major issues that even google is not helping me to fix. Maybe someone will know better than me.
I'm not looking for someone to just fix the thing for me (although it would be great) but well... I got stuck and just don't know how to proceed.

Original addon page: https://www.wowinterface.com/downloa...Warcrafty.html
My git: https://github.com/Skay100/WarcraftyReforged
(I added myself to credits because it makes me feel like a hackerman)
Here's a screenshot of how it looks currently: https://i.imgur.com/r2gaKQa.jpg

What works:
-Interface graphic displays correctly
-Player/target portraits, resources, mana and hp bars, faction icon, name group leader icon are in correct places
-Options window to change number of action bars and/or theme aswell as type of resource display (flat/%/both/none)
-XP bar from Warcrafty (but it doesnt include rep/azerite)
-Option to change tooltip location

What doesn't work:
-Action bar does not get changed
-Micro bar does not get changed
-Minimap gets displaced slightly from original position, location name gets bigger but it's not turning square and is not put in it's "proper" position
-castbar gets put over player name but it's really wonky and texture is displaced
-options "Relocate Default MiniMap/ActionBars on Startup" do nothing
-Enable Warcrafty CastBars does nothing.

What kind of works(?)
-target 3d potrait always updates on NPCs but like 10% of the time on target players.

Now onto my most problematic errors that I just can't figure out:
Lua Code:
  1. 58x Warcrafty\Warcrafty-0.1a.lua:1177: attempt to index local 'barIcon' (a nil value)
  2. Warcrafty\Warcrafty-0.1a.lua:1177: in function <Warcrafty\Warcrafty.lua:1165>

Lua Code:
  1. 84x Warcrafty\Warcrafty-0.1a.lua:1122: attempt to index global 'MiniMapBattlefieldFrame' (a nil value)
  2. Warcrafty\Warcrafty-0.1a.lua:1122: in function 'WarcraftySetMinimap'
  3. Warcrafty\Warcrafty-0.1a.lua:1045: in function 'WarcraftySetScale'
  4. Warcrafty\Warcrafty-0.1a.lua:377: in function 'WarcraftyOnEvent'
  5. [string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>


Lua Code:
  1. 707x Warcrafty\Warcrafty-0.1a.lua:757: attempt to compare number with nil
  2. Warcrafty\Warcrafty-0.1a.lua:757: in function 'WarcraftyAuraUpdate'
  3. Warcrafty\Warcrafty-0.1a.lua:293: in function 'WarcraftyOnEvent'
  4. [string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>
  5. [C]:: in function 'CameraOrSelectOrMoveStop'
  6. [string "CAMERAORSELECTORMOVE"]:4: in function <[string "CAMERAORSELECTORMOVE"]:1>

Lua Code:
  1. 181618x Warcrafty\Warcrafty-0.1a.lua:1608: attempt to perform arithmetic on local 'showBar1' (a boolean value)
  2. Warcrafty\Warcrafty-0.1a.lua:1608: in function 'WarcraftyActionbarOnUpdate'
  3. Warcrafty\Warcrafty-0.1a.lua:201: in function 'WarcraftyOnUpdate'
  4. [string "*:OnUpdate"]:1: in function <[string "*:OnUpdate"]:1>

Last edited by tapczan100 : 04-20-19 at 08:20 AM.
  Reply With Quote
04-20-19, 09:17 AM   #2
jeruku
A Cobalt Mageweaver
 
jeruku's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 223
The frame names are not up to date. Use /fstack to see an object's name.

Count can return nil so check it first.
Lua Code:
  1. if count and count > 1 then
  2. end

Similar to the above the value showBar1/2 is only changed for one instance and not the other.
Lua Code:
  1. if showBar1 then -- Lua is great and recognizes anything that's not nil as true when used as a bool
  2.     bars = bars + 1
  3.     showBar1 = 1
  4. else
  5.     showBar1 = 0
  6. end
__________________
"I have not failed, I simply found 10,000 ways that did not work." - Thomas Edison

Last edited by jeruku : 04-20-19 at 09:17 AM. Reason: Forgot something
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Trying to revive ancient addon "Warcrafty".

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off