• 0

    posted a message on Store Gift Card Restock?
    Thanks Phanx.

    I'm probably not going to PM him. I have no idea when they went out of stock, for all I know they ran out the day I posted this thread.

    I may PM him if they're still out for like a month from now. But I'm sure they'll be in when they're in.
    Posted in: General Chat
  • 0

    posted a message on Store Gift Card Restock?
    Currently the $10 Amazon.com gift cards are out of stock - that's completely understandable, I'm sure they're the most popular.

    I'm not trying to nag, I'm just wondering on average how long it usually takes before they're restocked - if anyone knows. Is it something that I should check back every few days, or should I not expect to see it for a few months? Or is it just random and unpredictable? Just looking for a ballpark time frame, not any specific dates or promises.
    Posted in: General Chat
  • 0

    posted a message on Is it possible to get Blizzard support regarding API?
    Is there a special event to listen for to make the second addon work? Or does PLAYER_REGEN_DISABLED fire while you still have that grace period to perform actions?

    Currently I have it monitoring the combat log to ensure YOU were actually involved in the combat (not that someone in your party attacked something nearby).

    The third all I have to do is make it wait for you to leave combat once you dismount the vehicle. But since it only has 500 downloads, I really don't think it's that important.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Is it possible to get Blizzard support regarding API?
    The first add-on was one that swapped daggers to swords for PVP rogues to use ambush.

    The second add-on was one that swapped fishing pole to weapons if you entered combat while fishing

    The third add-on was one that swapped your weapons to lance, and lance to weapons automatically in ToC (or just jousting in general).

    All of which apparently Blizzard doesn't like, lol.

    Edit:
    I do know a workaround for this. However, in an effort to try to keep my account active, I am not going to play cat and mouse with Blizzard.

    Edit 2:
    Now that I know all three of my addons are intentionally disabled. Should I leave the old versions up for archival purposes? Or should I go through and delete the addons from Curse?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Is it possible to get Blizzard support regarding API?
    With patch 3.3 it seems they have crippled EquipItemByName, and EquipCursorItem while in combat. This has actually disabled all three of the addons that I make. They seemed to work fine on the PTR, but no longer function properly on the live servers.

    I want to find out if this is a bug, or if this is the new intended functionality. However, I do not know what is the proper method to get a response from Blizzard, if there is one.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Packager keeps saying "alpha"
    Maybe I'm doing something wrong.

    I use TortoiseSVN to commit changes to my addons. I've always updated all the files through that, then logged into WoWAce, project management, then finally Tag Repository.

    There are the two boxes, Tag Name, which I filled in "v3.1.3.9" without the quotes. The other box always says "Tagging as %TAGNAME%" which I used to leave alone.

    However, now with the new WoWAce site, I tried about 5 times the above procedure. Every time it saw it as Alpha. Finally I decided to try putting "v3.1.3.9" in the first box, and manually changing the second box to say "Tagging as v3.1.3.9" After doing that, it worked perfectly.

    Is this a bug? Or was I always supposed to have been changing both boxes?
    Posted in: General Chat
  • 0

    posted a message on Guide: Browse WoWWiki offline as a portable app. (Win32)
    Difficult Method Page 2:

    Install optional MediaWiki Extension: (required to view some pages properly)
    1) Go to http://www.mediawiki.org/wiki/Special:ExtensionDistributor/StringFunctions and download the snapshot that corresponds to the version of your MediaWiki in your MoWeS package - usually 1.15.x

    2) Go to http://www.mediawiki.org/wiki/Special:ExtensionDistributor/ParserFunctions and download the snapshot that corresponds to the version of your MediaWiki in your MoWeS package - usually 1.15.x

    3) Go to http://www.mediawiki.org/wiki/Special:ExtensionDistributor/Cite and download the snapshot that corresponds to the version of your MediaWiki in your MoWeS package - usually 1.15.x

    4) Extract the archives to "X:\Path\www\mediawiki\extensions"

    5) Open "X:\Path\www\mediawiki\LocalSettings.php" with notepad, and add the following line to the bottom:
    require_once ("$IP/extensions/StringFunctions/StringFunctions.php");
    require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
    require_once("$IP/extensions/Cite/Cite.php");
    


    6) Save and exit

    Enabling the Search Feature: (optional, ~15 minutes, requires more space)

    1) Open a command prompt, and browse to "X:\path"

    2) From the cmd prompt, run "php5\php www\mediawiki\maintenance\rebuildtextindex.php

    3) Optionally run, "php5\php optimize.php" to reoptimize the tables (slightly reduces size).
    Posted in: Tips, FAQs, and Guides
  • 0

    posted a message on HowTo: New API, how to equip a set in LUA.
    Thanks. I just found that too.
    Posted in: Lua Code Discussion
  • 0

    posted a message on HowTo: New API, how to equip a set in LUA.
    Lol... I could have fixed it if I hit the "Go Advanced" button. But I'm always looking for shortcuts.

    I didn't know about EquipmentManager_EquipSet(name). How do you find out about the new API? I just tried a bunch of different function names til one worked (well, I tried like 3, it wasn't a hard guess). I feel like there's some info available somewhere and I missed the invitation.
    Posted in: Lua Code Discussion
  • 0

    posted a message on HowTo: New API, how to equip a set in LUA.
    I found this function

    UseEquipmentSet("name");

    Note that the names of equipment sets appear to be case-sensitive. I haven't found this API documented anywhere; however, I think it's one of the most useful functions.

    Also, refer to the obvious
    http://forums.worldofwarcraft.com/thread.html?topicId=15443405133&sid=1 Look for the "Equipment Set Functions" section for more info on other related API.

    Edit:
    Oops, I capitalized Lua in the thread title... So sue me.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Lua - C++ extern equivalent?
    Thanks for the input. Sorry for my delayed response, today's been a nightmare.

    I think OrionShock's answer may be best in this case, since I am using AceAddon-3.0.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Lua - C++ extern equivalent?
    Haha, thanks I really should read that link. I kinda jumped into the addon programming without any knowledge of Lua and was like, "It's programming, how different can it be!?"

    It's starting to turn out that I really should take the time to do my homework and get a more intimate knowledge of the language instead of doing trial and error and hoping - lol. Maybe I'll stop knocking on my neighbor's door with a sledge hammer to ask to borrow some sugar for my coffee - I don't drink coffee, but my neighbor doesn't know that.

    Edit:
    In my defense, I really didn't think I was going to get INTO the addon programming. I figured, ah, I'll just make this quick addon with duct tape and bailing wire. Then I gave the hideous contraption a name, which led to sentimental values. Now my addon's starting to talk back I don't know how to respond with polite logic, so I smack it with huge blocks of "because I said so, and it works" code. Now we're in family counselling and I'm in a room full of people looking at me like: "You didn't read Addon Rearing 101 before you became an author?" ... and I took that metaphor way to far.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Lua - C++ extern equivalent?
    I generally like to try to keep all my variables file-local, since I don't want to pollute the global scope.

    However, I think I want to break my addon up into multiple Lua files to better organize the functionality.

    If I have:
    File1.lua
    local ImportantTable = {"Important","Stuff"}; --[[Don't underestimate the importance of it]]
    --ImportantTable = {}; -- :D (ok, ignore this comical line)
    


    Is there a way to access it in:
    File2.lua
    local I_must_remember = ImportantTable[2];
    if (I_must_remember ~= "Stuff") then
        print("I forgot stuff :(");
    end
    


    If I must resolve to using the global scope, what would be a better practice?
    A table: MyAddonGlobals.Var1; MyAddonGlobals.Var2;
    Or: MyAddonGlobals_Var1; MyAddonGlobals_Var2;

    I generally have a fear of using Tables in Lua, because I hear they can be messy. But if you have a table that's created once, only destroyed when the addon is unloaded, and once all the inital keys are set no more are created or destroyed; however, the values may be accessed and changed many times - is that still bad?

    Edit:
    In case it changes the answer at all, the table in question is going to contain all the GUI frames. I want to make "template" functions to help dynamically create and position elements in a frame so I'm not hand coding each and every element. However, this table of frames will need to be accessed by multiple Lua files. Currently (with my potentially undue fear of tables) I've just made a ton of file-local variables with the Parent_SubFrame_Variable_Etc naming convention instead of using tables. It works, but it lacks iteration functions.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Guide: Browse WoWWiki offline as a portable app. (Win32)
    Difficult Method Page 1:

    Abstract:
    This guide will show you how to set-up a portable MediaWiki server to browse WoWWiki dumps offline. The purpose of this is not to replace visiting www.wowwiki.com, but to provide a way of viewing the content without an internet connection. It can be installed onto a USB Flash drive, provided it has enough space (between 300MB and 1.5GB depending on options).

    The XML database content is provided from www.wikia.com under the GNU Free Document License.

    In case it isn't overly obvious, it is important to note that the content of the databases are from www.wowwiki.com. I am only detailing how to take the freely available information from the internet to make an offline viewable version for yourself.

    Portability:
    The term portability, as used to describe this method, means that there is no permanent install of any software. None of the software attaches to the host PC, nor does it require an admin account. The folder in which the MediaWiki is extracted can be easily moved or deleted without adversely affecting the MediaWiki (provided the servers are not running) - however, if you delete the folder, don't expect it to run anymore.

    Alternatives explored:
    I tried applications such as: WikiFilter, WikiTaxi, and BZReader. None of them performed properly with the WoWWiki XML dump. That is why I chose to do the method described in this post.

    Requirements:
    *A Windows PC (tested on Vista 32-bit, should also work on 2000 and XP)
    *About 5GB (over estimate) of HDD space for initial set-up.
    *The finished product is between 300-1500MB, which can be transfered to a thumb drive.
    *7-Zip http://www.7-zip.org/ or an archiver capable of handling 7z, zip, gz, and bz2 files.
    *WoWWikiSplit Link Removed: http://www.mediafire.com/file/2kbt81bos8le400/WoWWikiSplit v0.4a.7z - coded in C++ by me, source included. It also includes some PHP scripts that you will need.
    *A WoWWiki database dump - links will be provided later in the guide.
    *Basic knowledge of the windows command prompt

    Getting Ready:
    Create a folder on a hard drive that has sufficient space. It will hereafter be referred to as "X:\Path\". If you are going to be putting the Wiki onto a thumb drive, it will be much faster and have less wear on the thumb drive if you do the initial set up on a hard drive, then copy the folder contents to the thumb drive.

    Portable Server Setup:
    1) Download a MoWeS Porable package, http://www.chsoftware.net/en/useware/mowes/mowes.htm. Click on the download link, and specify that you do not have a MoWeS Portable II package. You will be presented a check list of package options. Select the following, and note the version numbers down so you can download appropriate extensions later.

    2) From "Server Software": Apache2_SE, PHP5, and MySQL5. Note it is important that you do not download the SE versions of PHP5 or MySQL5 as some needed binaries will not be included.

    3) From "Application Software": MediaWiki.

    4) You will be presented with a "zip" file of all your selected packages. Extract this file to "X:\Path\".

    5) Run "X:\Path\MoWeS.exe", and it will guide you through the initial install. Note this does not attach any programs to the host in anyway, it just extracts them. If you are prompted by your firewall to unblock MySQL or Apache, you should be able to safely DENY access. Neither of these programs will need WAN access at any point for the purposes of this install. Once the install is complete and MoWeS is running, it will open your internet browser to your new http server, just close the browser.

    6) Hit the "Options" menu in MoWeS, and change "http://localhost/start/" to "http://localhost/mediawiki/"

    7) Save and close the options menu, but leave MoWeS running.

    MySQL Database Set-up
    1) Extract WoWWikiSplit.7z from Requirements to "X:\Path\".

    2) Open a command prompt (Run "cmd" or "command"), then browse to "X:\Path"

    3) From the cmd prompt, run "php5\php tomyisam.php" - this should run fast, and will convert the default MediaWiki MySQL db from InnoDB tables to MyISAM tables.

    4) From Windows Explorer, open "X:\path\mysql\my.ini" in notepad (or preferred text editor). Search (ctrl+f) for "default-storage-engine", change it from "=InnoDB" to "=MyISAM"

    5) Search for "#skip-innodb" and delete the '#' character in front of it. Save this file and close the file.

    6) Open "X:\path\www\mediawiki\localsettings.php" in notepad. Search for "$wgDBTableOptions", change it from "ENGINE=INNODB" to "ENGINE=MyISAM", save and close the file.

    7) Close MoWeS and restart it for the changes to take effect.

    Database Import: (The potentially long part)
    1) Download the WoWWiki XML dump http://www.wowwiki.com/Special:Statistics - Look for "Database dumps" and download the one that says "Current pages"

    --XML dump import filtered: (2.5~14 hours, Advanced, see WoWWikiSplit.txt for usage instructions)
    1) Save the "pages_current.xml.gz" file to a temporary folder (hereafter "X:\temp")

    2) Open a commant prompt, then browse to "X:\Path\"

    3) From the cmd prompt, run "mowes\7z e -so X:\temp\pages_current.xml.gz | WoWWikiSplit [options]"
    Note: See WoWWikiSplit.txt for details on [options]

    --XML dump import unfiltered: (12+ hours)
    1) Save the "pages_current.xml.gz" file to a temporary folder (hereafter "X:\temp")

    2) Open a command prompt, then browse to "X:\Path\"

    3) From the cmd prompt, run "mowes\7z e -so X:\temp\pages_current.xml.gz | php5\php www\mediawiki\maintenance\importdump.php"

    Optimizing the database: (a few minutes)
    1) From the cmd prompt, run "php5\php optimize.php" to truncate the cache table, and optimize the other tables.

    Configuring MediaWiki:
    1) Open "X:\path\www\mediawiki\localsettings.php" with notepad. Go to the end of the file to insert the following lines to increase performance:
    $wgShowIPinHeader = false;
    $wgDisableCounters = true;
    


    2) Save and close the file.
    Posted in: Tips, FAQs, and Guides
  • 0

    posted a message on Guide: Browse WoWWiki offline as a portable app. (Win32)
    Updated 2010-08-09 (This date will change when there's something new) [YYYY-MM-DD]
    WoWWiki Dump Date 2010-08-09 (This date will change when the database content is updated)
    Note: The dump was retrieved on the above date; however, the date mediawiki did the dump was marked as 'unknown.' It should only be up to a week earlier, at the earliest.

    Contents:
    Post 1 - Contents and Easy Method
    Post 2 - Difficult Method
    Post 3 - Difficult Method Cont'd + Optional Steps

    Easy Method:
    Choose one of the two available offline WoWWiki's.
      Name - Installer Size - Installed Size - Description
    • Full - ~221MB - ~1.5GB - This is the entire WoWWiki dump.
    • Slim - ~79MB - ~517MB - This is a filtered WoWWiki dump. Pages removed include: User Pages, Talk Pages, Image Pages, Item Pages, NPC Pages, Quest Pages and File Pages.
    Note: Neither the 'Full' nor 'Slim' version have any image files in them, as these are not part of the dump. The "Image" and "File" pages are just descriptions of the respective file.

    Download Links:

    Install Instructions:
    Once you have the WoWWiki-Name-Date.exe file, you can save it to a flash drive or CD if you want. This is an "installer" for the database. You do NOT need admin privileges to run it, and the install only consists of extracting files. If you want, you can even just extract the .exe file with an archiver (such as 7-zip) that supports the format. In other words, the entire "installer" is just a compressed set of files, there is no other execution that occurs.

    When you run the installer, it will ask for a path to save the extracted files to. This path does not matter, but it must have write permissions.

    Uninstall Instructions:
    Just delete the folder that you extracted the database to.

    Usage Instructions:
    In the extracted folder, there will be a .exe file named "MoWeS.exe" If you run that file, it will start a portable Apache and MySQL server. If you get any firewall messages, you can safely BLOCK access. Neither of these servers need WAN access, they only interact through the Localhost loopback interface.

    After the servers load, the default browser will open to the main page of the offline WoWWiki dump. The WoWWiki main page may not look 100% familiar... so you should start with the search box on the left-hand side.
    Posted in: Tips, FAQs, and Guides
  • To post a comment, please or register a new account.