Thread Tools Display Modes
08-07-09, 10:53 AM   #1
Minibutcher
A Kobold Labourer
Join Date: Jun 2009
Posts: 1
Exclamation Reload WoW

Hey guys,

I'm getting started with addon development and I have a very simple and noob question:

When developing I usually like to do some changes and check the result just right after saving the file. I guess that a lot of you guys do the same. The question is: Do I have to reload the game every single time I want to see the changes? That is very annoying because I need to alt+f4, open, log-in again and etc... that takes a little time.

Also, is there a way to debug on the fly?

Thanks
  Reply With Quote
08-07-09, 11:07 AM   #2
shkm
A Chromatic Dragonspawn
 
shkm's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 186
No, you can type /console reloadui. You might find an addon or twelve that build this functionality into a clickable button or shorter command.
__________________
Quit WoW again on 17/04/2014.
  Reply With Quote
08-07-09, 04:11 PM   #3
Verissi
Premium Member
 
Verissi's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2006
Posts: 99
/console reloadui works fine for most changes. The only time that you should need to quit and restart WoW will be if you add new files to the TOC.
__________________
"I can calculate the motions of the heavenly bodies, but not the madness of people." - Sir Isaac Newton
"Half of twice as intimidating as Saurfang is still one whole Saurfang worth of intimidation." - Anticlaus, Gorefiend server
  Reply With Quote
08-07-09, 04:16 PM   #4
Slakah
A Molten Giant
 
Slakah's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 863
they added /reload as well.
  Reply With Quote
08-07-09, 04:46 PM   #5
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
Originally Posted by Verissi View Post
/console reloadui works fine for most changes. The only time that you should need to quit and restart WoW will be if you add new files to the TOC.
You can add/remove files from the .toc and see the results with just a /reload. If you change the ## options, or add/remove entire addons, then you have to restart the client.
  Reply With Quote
08-07-09, 04:54 PM   #6
Verissi
Premium Member
 
Verissi's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2006
Posts: 99
Really? Good to know! *gets back to editing*
__________________
"I can calculate the motions of the heavenly bodies, but not the madness of people." - Sir Isaac Newton
"Half of twice as intimidating as Saurfang is still one whole Saurfang worth of intimidation." - Anticlaus, Gorefiend server
  Reply With Quote
08-07-09, 06:25 PM   #7
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Originally Posted by Akryn View Post
You can add/remove files from the .toc and see the results with just a /reload. If you change the ## options, or add/remove entire addons, then you have to restart the client.
Really? Since when did I miss that?
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
08-07-09, 06:37 PM   #8
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
Originally Posted by Seerah View Post
Really? Since when did I miss that?
Yep I do it all the time. I want to say it's been that way since they removed the ability to add addons w/o restarting the client, but I could be wrong.
  Reply With Quote
08-07-09, 06:43 PM   #9
Soeters
A Warpwood Thunder Caller
 
Soeters's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 97
Note that if you add textures that weren't here when you logged in, you'll get a beautiful green box instead (like if the path was wrong).

I didn't know for the ability to add addons and files after having launched WoW, I thought that the *.toc file was read only once, at the launching, and then wasn't read at all.
__________________
  Reply With Quote
08-07-09, 06:54 PM   #10
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
Yeah it used to be that it reread everything. I don't remember when they changed that but I remember downloading addons while alt-tabbed and reloading to turn them on.
  Reply With Quote
08-07-09, 08:53 PM   #11
yssaril
A Warpwood Thunder Caller
 
yssaril's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 96
you can add/remove the files form the toc and it will update with /reloadui but the files have to be inplace before you start wow so you cannot add new files during runtime only files that are already present but not referenced in the toc or an xml file
  Reply With Quote
08-08-09, 01:06 AM   #12
Verissi
Premium Member
 
Verissi's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2006
Posts: 99
Originally Posted by yssaril View Post
you can add/remove the files form the toc and it will update with /reloadui but the files have to be inplace before you start wow so you cannot add new files during runtime only files that are already present but not referenced in the toc or an xml file
That's what I thought. *confusled* I guess I'll try it out and find out for myself. I'm in the habit of restarting WoW entirely if I add a new file, but if Akryn's correct, then that will save some time. If not, then I'll keep plugging away with my current way of doing things. I'll report back soon with the results, as I'm about to start a new addon anyway (if someone doesn't beat me to it).
__________________
"I can calculate the motions of the heavenly bodies, but not the madness of people." - Sir Isaac Newton
"Half of twice as intimidating as Saurfang is still one whole Saurfang worth of intimidation." - Anticlaus, Gorefiend server
  Reply With Quote
08-08-09, 03:33 AM   #13
sakurakira
A Chromatic Dragonspawn
 
sakurakira's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 151
What I have done in the past is to make a macro for "/console reloadui" and put the macro on my bar. Then I just click that whenever I need to.
__________________
Arise, my champion!
  Reply With Quote
08-08-09, 11:39 PM   #14
Bluspacecow
Giver of walls of text :)
 
Bluspacecow's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 770
If you use any Ace addons you should have the command

/rl

which does a /console reloadui

Don't remember if it's Ace2 , Ace3 or something other library most ace addons use that provides it

Torhal will probably correct me on this >_>
__________________
tuba_man on Apple test labs : "I imagine a brushed-aluminum room with a floor made of keyboards, each one plugged into a different test box somewhere. Someone is tasked with tossing a box full of cats (all wearing turtlenecks) into this room. If none of the systems catch fire within 30 minutes, testing is complete. Someone else must remove the cats. All have iPods." (http://community.livejournal.com/tec...t/2018070.html)
  Reply With Quote
08-09-09, 12:02 PM   #15
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
It's Ace2 or Ace3 installed standalone.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote
08-09-09, 01:50 PM   #16
Zyonin
Coffee powered Kaldorei
 
Zyonin's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 1,443
LibRock also enables a /rl shortcut, some other non AceX/Rock based mods as well. Myself I have this bit of code inserted in my custom settings mod to create the /rl shortcut:
Code:
SlashCmdList['RELOAD'] = function() ReloadUI() end

SLASH_RELOAD1 = '/rl'
I forget which AddOn I swiped that bit from however it was something pretty simple if I recall correctly. You could create your own settings mod and then drop that bit of code into it if you want that shortcut and don't have a mod that enables it for you.
__________________
Twitter
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Reload WoW


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