Quantcast viewing wow code - WoWInterface
Thread Tools Display Modes
09-25-17, 03:43 AM   #1
bluesh34
A Murloc Raider
Join Date: Sep 2017
Posts: 6
viewing wow code

I want to take a look at the code for WoW's FocusUnit() function. Is this possible and if so, how?
  Reply With Quote
09-25-17, 04:30 AM   #2
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,252
You can get WoW's Lua and XML files directly from the game. That should give you a start. Unfortunately, I can not explain to you how this is done. Hopefully someone will chime in here with the information.

EDIT: OK, after a little searching I managed to find it.

https://wow.gamepedia.com/Viewing_Bl...interface_code
__________________
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?


Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.

Last edited by jeffy162 : 09-25-17 at 04:41 AM. Reason: more blah blah blah.
  Reply With Quote
09-25-17, 09:13 AM   #3
myrroddin
A Molten Giant
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 912
Towlong-Yak has a current version extracted to a website. While I am told it is incomplete, I have no idea what is missing as it looks all there.

https://www.townlong-yak.com/framexml/live
  Reply With Quote
09-25-17, 09:24 AM   #4
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,665
The AddOn system is split up in two parts, one part is the FrameXML and our addons, the other part is exposed to the FrameXML by the game itself.
We have access to the former, the latter is closed-source.

Bad news for you, FocusUnit is in the latter.
  Reply With Quote
09-25-17, 01:01 PM   #5
bluesh34
A Murloc Raider
Join Date: Sep 2017
Posts: 6
Many thanks guys.

Originally Posted by p3lim View Post
The AddOn system is split up in two parts, one part is the FrameXML and our addons, the other part is exposed to the FrameXML by the game itself.
We have access to the former, the latter is closed-source.

Bad news for you, FocusUnit is in the latter.
Actually it's good news: saves me the work of trying to make an addon
  Reply With Quote
09-25-17, 10:07 PM   #6
Tosaido
A Fallenroot Satyr
 
Tosaido's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2015
Posts: 23
There is a handy GitHub repository that gets updates all the time with wow interface files. Even PTR versions https://github.com/tomrus88/Blizzard...ster/Interface
  Reply With Quote
09-26-17, 01:22 AM   #7
bluesh34
A Murloc Raider
Join Date: Sep 2017
Posts: 6
Originally Posted by Tosaido View Post
There is a handy GitHub repository that gets updates all the time with wow interface files. Even PTR versions https://github.com/tomrus88/Blizzard...ster/Interface
Ok thanks, but just to check that what was said above is correct, it won't be possible to view the code for FocusUnit(), right?
  Reply With Quote
09-26-17, 01:25 AM   #8
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 913
It will show how you can use FocusUnit(), not the code that makes up the FocusUnit function... or how you can write your own.. or how to circumvent etc..
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle and Move Pad Plus.
  Reply With Quote
09-26-17, 03:06 AM   #9
Tosaido
A Fallenroot Satyr
 
Tosaido's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2015
Posts: 23
On that site I linked, if you paste FocusUnit for example into the text box in the header it will show which files include that string. In this case with FocusUnit, you cannot find the actual function, only when it's called. So it must be a protected, hidden function which will most likely be intertwined with important core code that cannot be accessed.
  Reply With Quote
09-26-17, 07:50 AM   #10
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,252
Originally Posted by p3lim View Post
The AddOn system is split up in two parts, one part is the FrameXML and our addons, the other part is exposed to the FrameXML by the game itself.
We have access to the former, the latter is closed-source.

Bad news for you, FocusUnit is in the latter.
So.......... It's like p3lim said, I guess.

Sorry, I just couldn't help myself.
__________________
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?


Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.
  Reply With Quote
09-27-17, 01:26 AM   #11
bluesh34
A Murloc Raider
Join Date: Sep 2017
Posts: 6
Originally Posted by jeffy162 View Post
So.......... It's like p3lim said, I guess.

Sorry, I just couldn't help myself.
Well people don't always agree and since they gave new information after the reply from p3lim, I thought it would be worth clarifying the reason for the posting of this new information. It doesn't mean I doubted p3lim.

Last edited by bluesh34 : 09-27-17 at 02:37 AM.
  Reply With Quote
09-27-17, 09:00 AM   #12
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,252
Yaeh, I know. Like I said, though, I just couldn't help myself. I had to be an ....... @$$whole (yes, I know it's spelled without the "w", but when you are one all over.....).
__________________
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?


Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » viewing wow code

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