Posts Tagged ‘HowTo’

From FuBar to LDB: Writing Your Own AddOn Loader

In terms of menubar utilities, it appears I’m just a sheep following the lead of the enlighted Mr. Kestrel. It was after one of his posts that I moved from Titan Pannel to FuBar, and it was again after reading his November post on LDB that I migrated from FuBar to LDB (currently using StatBlockCore myself).

One of the small things which have been irking me since the transition, though, is that a certain amount of FuBar plugins (like DurabilityFu) are Load on Demand, and since I no longer use FuBar, there’s no longer anything to demand that these are loaded.

This has been annoying me for a while now, and I finally decided to write my own AddOn loader.

Fortunately, it’s so easy even someone as ungifted for coding as myself can do it. I suspect I might run into issues at some point but for the time being, it works.

And this is how you do it.

First, go to your Interface\AddOns\ folder.

Create a new folder, name it eg. MyLoader

In this folder, we will create just one new text file, called MyLoader.toc

And we will add the following code:

## Interface: 30400
## Title: MyLoader
## Notes: A little self-made utility to load some load-on-demand addons.
## Version: 0.1
## DefaultState: enabled
## OptionalDeps: loadondemandaddonX, loadondemandaddonY, loadondemandaddonZ, (...)

Make sure that every AddOn you want to load with OptionalDeps are named exactly as their respective Folder names, save it, and voilà, your own AddOn loader is done.

Clunky, and you’ll have to update the ## OptionalDeps (and ## Interface) information manually if things change, but it does the trick and only requires a minute to make.
Why pick OptionalDeps (Optional Dependencies)? If you use required dependencies instead, the little loader we just wrote will not work if for whatever reason one of the addons you want to load is not enabled or not present.

On Similar Matters

Beacon of Light Macro

The risk when you’re running as a healing / tanking / DPS hybrid (paladin) with a DPS / tanking hybrid (DK) is that you’ll end up having to heal your buddy who’s tanking to ensure the core of an instance PUG is covered.

We wanted to do the amphitheatre of Anguish last night, and you guess where it ended, I finally bit the bullet and respecced Holy.

And while I will readily admit that the wrath healadin is better than the TBC healadin, despite the new toy (Beacon of Light) or the improved old toys (6 seconds Holy Shock, and no, I’m not really using it unless things get hairy, and long distance judgement of Light), it’s a lot less fun than Ret or the Death Knight.

That being said, I somehow managed to get us through Amphitheatre of Anguish, Gun’Drak and Violet Hold, clobbering together about 1070 spell power and 11k mana out of spare kit I had been assembling in prevision of this very situation, two AH purchases and a couple of well-timed drops in the above instances.

Fun situation: in VH, the run was 4DK + me. A tanking cloak drops off the Aroakka boss (if memory serves). A level 73 DK needs because he wants it for his tanking set. I need for the same reasons. And after I win the roll, he starts whining that I stole it since I’m holy spec.

Memo to the clueless whining noob with a misplaced sense of entitlement: the healer has the same right to need on off-spec gear as a DPS, and if you have an issue with that, you make sure you get really good with combat bandaging. Especially when said healer blew over 200g in respec and AH gear cost to drag your underleveled arse through the instance.

Beacon of Light is an interesting spell. Using it properly at the right time is probably a bit of a learning curve, but I’ve been tossing it on anyone taking a HP dive at the same time as Steptoe (the tank, duh) and it seemed to work OK.

That being said, it took me a moment to figure out how to macro it properly to speed things up, and here’s what I came up with:

#showtooltip Beacon of Light
/cast [target=mouseover, help][help][target=player] Beacon of Light

Binding the macro to a key then allows me to hower over an unit frame to cast, or select a target, or if nothing else is selected, cast it on myself at one single keypress.

That did the trick.

Later, I went outside and tried to kill something with my holy spec. And wept bitterly. Never gonna make 80 with holy spec. I hope the bloody dual spec feature doesn’t get delayed too much, it’s really becoming a must-have feature (and we haven’t even tried it out yet…).

On Similar Matters

Frost Death Knight Macro: Hungering Cold / Bandage macro

Here’s the Frost Death Knight’s equivalent to the pallie’s Bubble + Bandage macro:

#showtooltip
/cast Hungering Cold
/use [target=player] Heavy Frostweave Bandage

Useful when things start getting out of hand with an AoE pull.

On Similar Matters

HowTo: Debug your UI

Stranded in WoW 3.0.2 withtout working addons? Getting mad because you can’t exactly figure out what’s broken where?

Many things actually work, but in order to get it fixed, a methodical approach works best.

Here’s my method:

Tools

  • AddOn Control Panel (ACP), found here
  • If you’re using Gatherer or Auctioneer, Swatter which is part of the distribution, otherwise I recommend Rabbit’s excellent Buggrabber.

Method

  1. Disable all AddOns
  2. Make sure ACP and either Swatter or Buggrabber is active (if you have both, Swatter will politely yield to Buggrabber)
  3. If you’re using Swatter, after loading a toon, type /swat enable. Remember, if you have both, only Buggrabber will actually work
  4. Type /reloadui (it should now work) or /acp and click the reloadui button, you’re now in a clean slate state
  5. Now add your addons back through ACP step by step, and reload the UI between each step
  6. Swatter should start popping up by itself, if not, type /swat show to see the error list, and /swat autoshow once to have the window pop up on an error
  7. The errors due to any missing libraries are at the beginning of the error lists, the rest are usually errors borne out of the fact that said libraries aren’t there
  8. /buggrabber # will show you each error in turn. Swatter will need you to click through to reach the earliest errors.
  9. Now go download your missing dependencies, exit the game and restart to get them accounted for, then rince and repeat.
  10. Last but not least, with Swatter, make sure you type /swat clear before you reload, since it actually saves the entire error list. Buggrabber does not.

Note that Buggrabber also relies on a companion, bugsack, which gives a nice window display too. It doesn’t currently work for me, though, and barebones buggrabber does the trick as well.

It’s a long and painful process, but the only way to recover whatever you need asap without going completely insane.

I hope :)

On Similar Matters

Accessing a WordPress Blog’s Comment Feed

Have you ever been reading a blog post, posted a comment and wanted to keep an eye on what other people had to say? And been frustrated that there’s no apparent way to subscribe to the comments to avoid re-visiting over and over to check for replies?

On WordPress, you have an option to subscribe to every post’s individual comment feed built into the code. While not all WordPress themes actually provide a link to the feed, you can still subscribe very easily:
Take the post’s url (or permalink), add feed/ at the end and your browser should now offer you the normal syndication subscription options you’re used to.

For instance to subscribe to this post, you’d simply browse to http://altitis.treehuggers.info/2008/06/02/accessing-wordpress-blogs-comment-feed/feed/ and then follow up on all comments posted in your feed reader.

This works both with self-hosted WordPress blogs and WordPress.com hosted blogs.

For self-hosted bloggers, if you want to add the link to a post’s feed into your template, you will have to edit single.php in your theme files, and insert the following piece of code in there, probably in the post metadata section:

<?php post_comments_feed_link('RSS 2.0'); ?>

Simple as that.

On Similar Matters

Blogging: A few Pointers on Copyrights

This post can also be found on Blog Azeroth.

You blog, you write, and therefore you produce Intellectual Property, which is copyrighted. How does it work in practice? Let’s find out.

Mandatory Disclaimer
I am not a lawyer. This post cannot constitute valid legal advice under any jurisdiction and doesn’t pretend to. I urge you to contact a lawyer licensed to practice in whatever jurisdiction is relevant to you if you are looking for said valid legal advice.

That being disclaimed, and without further ado, here are the few promised pointers:

1. Copyright Fundamentals

Intellectual Property is regulated by the Berne Copyright Convention, an international treaty which almost all countries have signed. The convention defines that a creative work is copyrighted by default the moment it is published unless explicitly stated otherwise.

This means, concretely, that you don’t have to register your blog or even every single post for it to be protected by international copyright laws – the content is yours by default.
Also note that this right is yours even if there is no copyright notice included. A notice simply serves to reinforce and remind everyone, including people unaware that any work is protected unless otherwise specified, that it is yours.
The correct and internationally recognized form for a notice is:
Copyright [dates] by [author / owner]

If you are blogging for a third party and being paid for that, the basic assumption is that what you write for that 3rd party is considered as Work-For-Hire, and that they, not you, are the copyright holder. Concretely, if you netted yourself a contract with WoWInsider or Curse.com, unless something different has been specified in written between you and them, what you write for their sites is their ownership, not yours.
Conversely, if you have a guest blogger writing on your site for free, unless otherwise specified, whatever the guest writes is his intellectual property. It is also assumed that since the guest publishes on your site, that you retain an implicit license to use the material. Same assumption is also valid for the comments you get.

2. A Copyright is no Trademark

When someone (typically a corporation) is involved in a trademark dispute, whether they have taken action on other prior trademark violations or let it slide has a big impact on their case. Copyright is different. You could let 100 of copyright violations slide and still have the exact same case if you were to act upon the 101st. Or the 24th even if you have been letting it slide for years.

3. Fair Use

Although certain big media organizations have done their utmost best to limit or even fully eliminate Fair Use in recent years, the right still exists and allows someone to reuse excerpts from work copyrighted by third-parties without requesting explicit rights for the purpose of quoting it, exposing a point or teaching about it, or satyre. You can’t repost something in its entirety, add one line, and claim fair use, though. It is normally meant for small portions of a copyrighted work, not the work in its entirety.

4. Usage Rights

Beyond Fair Use, even a non-commercial reproduction of someone else’s work without the author’s consent is a copyright violation. There is two ways you as an author will typically grant permission:

  • Individual, per case basis
  • Wholesale licensing

Individual, per case basis is simple. People wanting to use your material have to ask you permission individually, and you grant them whatever rights are appropriate.

Wholesale Licensing simply implies declaring the rules under which anyone can reuse your intellectual property.

For instance, Blizzard Entertainment grants their players an unlimited non-commercial right to use their name and their screenshots, you should however include the text below somewhere on your blog if you do more than discuss about the game (that is, use material coming from WoW directly):

World of Warcraft™ and Blizzard Entertainment® are all trademarks or registered trademarks of Blizzard Entertainment in the United States and/or other countries. These terms and all related materials, logos, and images are copyright © Blizzard Entertainment. This site is in no way associated with Blizzard Entertainment®

That is an example of wholesale licensing.

There are other means to do wholesale licensing. The simplest way is to explicitly state on your blog what rights you grant third parties under what condition. The most practical is re-using existing licenses. For blogging, my own recommendation is that you investigate the Creative Commons licenses, as these aren’t just well suited for our purpose but also implemented in several complementary tools, widgets and plugins. Feedburner for instance can add your Creative Commons license to your syndication feed, and that’s just one among many examples.

5. Derivative Works

If you expand significantly upon the work of someone else, you will typically retain the rights to your own intellectual property, assuming of course that the original author has granted you permission to create such a derivative work in the first place. This is probably less directly applicable to blogging, it would mainly focus on, eg, AddOns you would be recoding or something. But WoW-comics or machinima ought to qualify as derivative works.

6. Defending your Rights

This is where it becomes tougher, because a lot of it will depend on where a copyright violator resides.
There are however a certain amount of steps and measures you can take no matter how without having to enter the court system right off the bat.
It is customary to first send a firm but professional communication to the offender, informing him that he is in violation of your copyright and that you demand the content to be removed. If it is someone who simply isn’t aware that there are rights attached to anything published on the web, he will usually say sorry and comply, or try to work out a way to reuse your material legally. If it’s a scrapper, he’ll probably ignore it, or just reply “hahah, whatcha gonna do about it?”
In that case, your next resort is to take it up with his host. Send the host a takedown notice where you declare you are the owner of said piece of intellectual property, and that such and such, hosted by their services, is in violation, and ask for their assistance to uphold your rights.
If the host is based in the US or an US corporation (hint, Blogger, hint), you can issue a formal DMCA takedown notice instead.
If this still doesn’t help, your last resort before court action is to write the upstream provider. Finding this one is a bit of work out of scope of this short overview, just know that your chances are a lot slimmer, as since they aren’t hosting the offending material themselves, you will have to ask for their kind assistance (and most of the time get a “sorry, we can’t help you here”).

At any rate, though, you can fully expect the major blogging platforms to honour your takedown requests after some basic delay, and at present, this is our first and best defense.

This concludes this short and limited primer. For further reading,  I recommend starting with Lorelle’s excellent posts on the matter, the one I just linked will lead you through a lot more material.

On Similar Matters

The Losing AV gives Zero Honour Fallacy

Every other month or so, there’s another common QQ theme, and the current one is about AV post 2.3 -  the complaint that losing nets you next to no honour, making queuing up pointless.

Now I’m holding the opinion that AV needs fixes, both in its design and more generally through improvements with the AFK mechanism, but what strikes me with this current wave of forum angst is that the current belief prevails so much people don’t even put a honest effort into the game anymore.

Undeniably, the heavy strategic weight the captain has in current AV is what usually decides the battle, and horde do have an unfair advantage on their side, as much as alliance has one with the positioning of Dun Baldar’s NPC and the bridge. Nonetheless, in the first weeks after 2.3, especially at the later hours (past 1am) when you’d find a bit more of the dedicated PvPers in any given game, it wasn’t unusual to have the losing side actually get more bonus honour than the winners.

The key being, of course, to play the new AV instead of the old one.

It has been said by many people in the blogosphere but bears repeating again. Today’s AV requires a combination of offense and defense to score honour. Rushing the enemy general (made harder with patch 2.3.2) actually nets little points, whereas downing the general, capping towers and defending yours is where the money lies.

”But Gwaendar, it’s easy for you to say, you’re horde and you have Galv!”, some will object. And there’s some truth to that.

But let’s think in broader pictures. For horde, defending Galv during the first 10-15 minutes is one of the most important keys to victory, for two reasons. First, it breaks the alliance assault and scatters their forces along a fragmented GY line, making a Drek + 2 marshalls rush more difficult to pull off. Second, it creates traction – Balinda usually goes down within the first 5 minutes, and the difference in reinforcements puts alliance under pressure. Add Stonehearth Tower which caps within roughly the same timeframe, and at that point, the score is usually around 400-580 in favour of horde.

That’s not entirely trivial to turn around, and at that point, often alliance just plain gives up and leave the game in the hands of horde.

But let’s look at the scoring system in a little bit more detail:

  • Capping an enemy tower or killing a general nets you 62.7 bonus honour when it happens
  • Killing the general earns 83.6 bonus honour
  • A wing commander reaching his base nets 20.9 honour

Here’s the other important part, though, what happens when the victory screen goes up:

  • A surviving Captain is worth 41.8 honour
  • Each tower you defended is woth 41.8 honour as well

So how do you capitalize on that?

  1. First, write Balinda off. She’s literally undefensible, that’s just a fact of the game.
  2. Unless there happens to be a well-geared PvE tank available, killing the general with more than one marshalls is now quite challenging. Capitalize on that from the start. The horde offensive will rush Balinda and then move on to SH GY and towards Dun Baldar. The SH Bunker cap, however, rarely gets defended by more than 3-4 horde. Make sure SH doesn’t fall
  3. Don’t charge Galvanger when the game starts, you can’t mirror what horde does. Instead, the objectives during the first 10-12 minutes should include defending SH Bunker, capping SF and IB GY, and burning Tower Point. Mount a defense of the Dun Baldar Bunkers, and if you get a chance to defend IW, do it. Frostwolf GY and putting pressure on FW towers will help
  4. When the game clocks above 10-12 minutes, the Galvanger defense tends to get bored and leave. Half of them will move to offense, the rest will go to FW keep and try to defend the towers. Now is the time to go kill Galvanger, and burning IB tower at the same time. If you have IB GY, FW GY and SF is either yours or disputed, horde will rez either at the Relief Hut (and will stick to FW towers and the GY), or at SH / SP and tend to join the offense.
  5. From there, react to the situation. Your objective should be that when one side runs out of reinforcements, you have burned 3 towers and defended at least 2 bunkers.

Obviously, once AV can be joined as a group again, coordinating all this becomes much easier. Still, taking the lead and announcing a short battle plan before the game starts, then driving one objective after the other will get 10-15 people to follow, because most people are just content to follow directions from anyone pretending to know what he’s doing. If at the end of the game you scroll back to /bg chat and the majority of the communication is insults, you know why you lost. If it’s timers, objectives and situation reports, congratulations, you were in a good AV PUG and you will have gotten substantial bonus honour even in defeat.

And another thing. I don’t know how this plays out on other Battlegroups than EU-Blackout on horde, but if this one is any indication…  Remember that WoW has integrated voice chat nowadays? Yes, nobody uses it, and in any given PUG, 75% won’t even hear it. Still, try out just giving calm commands and objectives to the 10 other people who will listen, and add the other 10 who will read what you type. Horde has 10-15 afkers per game these days, so you suddenly lead a coordinated group of 20 against 25 people split in two barely coordinated groups.

Theorycraft, since I’m horde? Sure. But give it a shot. If you pull it all off, you will get 334 bonus honour from the game. Horde would get 314 provided they killed Vann. In about 20 minutes. That’s hardly “zero honour” in my book…

On Similar Matters

First WordPress update performed

Tonight WordPress released a minor update with some bug fixes(version 2.3.2). It was with a slight apprehension that I went about the upgrade, not least because the backup plugin I was using was acting up at first. As you can see, though, it all went down smoothly in the end.

The only thing which I had some issues with at first was not realizing that my posting account to which I gave admin rights wasn’t actually recognized as the “true” admin by some stuff, mainly the BackupWordPress Plugin I was using. Once I switched to the installation admin account, it all went well.

And there we are. Nothing much to it, really, at least not with this release. Phew.

Further reading: First test of WordPress 2.5RC1

On Similar Matters

Google Polymorph Focus

Reviewing search terms used to reach you is always amusing. Now why I don’t have any leave-children-behind searches to puzzle about, the above search term still stands out.

I had posted a needlessly complicated Polymorph (Sheep) Macro before as a template for generic CC spells. Here’s a shorter version:

#showtooltip
/focus [target=focus, nodead, harm] focus; [harm][target=mouseover, harm]
[target=noexists] target
/clearfocus [modifer:alt]
/stopmacro [modifier:alt]
/cast [target=focus] Polymorph

Why not reuse the /clearfocus stuff I had before? As one of my blogging peers once remarked (and damned if I remember who it was, apologies in advance if you recognize yourself), /focus when you have no selected target clears your focus, and no sheeping will happen. (edited – no, with the conditionnals you actually get an error message that way)

So simple I’m way too dense to find it out myself.

So how does it work? If you have a focus, it will resheep it. If you have none, it will try to focus the enemy you are mousing over and sheep it, and if it can’t, it will focus your current target and sheep it. One caveat, if you have both a hostile target and are mousing over another hostile, the mouseover will always dominate.

On Similar Matters

From Blogger to WordPress: One Gotcha

Reviewing where I stand after the initial awe of discovery has died down, there’s one thing I’ve missed when I moved from Blogger: images.

Indeed, the importing process will get all your posts and comments off blogger without issues, but it won’t copy over the images you inserted in your original blog posts. All screenshots will remain hosted on blogger, which will not only slow down any reader looking up older posts of yours, but also consume unnecessary bandwidth and resources from a service which you don’t use any more.

Of course you could just not care, but beyond the experience offered to your own readers, being a good Net citizen in regards to free services will also help ensuring these services remain free for people coming after you.  And may avoid, in the long term, that people see the dreaded red cross should blogger decide some day that it won’t host images for a different blog platform.

So my own posting rythm may slow down a bit over the coming days while I fix my own mess and import my old pictures cleanly into the new Altitis.

On Similar Matters

World of Warcraft™ and Blizzard Entertainment® are all trademarks or registered trademarks of Blizzard Entertainment in the United States and/or other countries. These terms and all related materials, logos, and images are copyright © Blizzard Entertainment. This site is in no way associated with Blizzard Entertainment®