TriviaBot_QuestionMaker

Converting the QuestionMaker saved variables to a standalone quiz addon

Ok a step by step on how to convert the QuestionMaker saved variables file to a quiz plugin (addon) for TriviaBot.

(if you're not too confident you can do it first time, a link to the finished addon after these steps are done by me is provided further down)

Preparation

  1. Go into \World of Warcraft\WTF\Account\<youraccount>\SavedVariables\ and copy your TriviaBot_QuestionMaker.lua to the desktop.
    (make sure you've exited WoW or used the [Save] button on QuestionMaker before you do so it has your last work)
  2. Go into \AddOns\TriviaBot\Questions folder and copy <TriviaBot_QuizTemplate> folder to your desktop, this is the quiz template addon.
  3. Rename TriviaBot_QuizTemplate folder to TriviaBot_QuizDS1.
  4. Go into TriviaBot_QuizDS1 folder and rename the TriviaBot_QuizTemplate.toc file to TriviaBot_QuizDS1.toc as well
    (both the new addon folder and the .toc file inside it need to have the same name or the game won't load it)

File editing

If you're on Windows and don't have a proper editor get Notepad++
(it's a great and free text editor; don't use Windows Notepad for code)

  1. Open your TriviaBot_QuestionMaker.lua file in the text editor.
  2. At the very top of the file copy this line:
    local _,TriviaBot_Questions = ...
  3. Edit the second line:
    TriviaBot_QuestionsQM = {
    and make it
    TriviaBot_Questions[1] =
    (replace QM with [1] and remove the curly brace after '=')
  4. Scroll to the very bottom of the file and also remove the very last closing curly brace
    }
    and the trailing comma and comment from the one above. Remove
    , -- [1]
    but leave the 'line before last' curly brace intact.
  5. Save the TriviaBot_QuestionMaker.lua file and close it, then rename it to TriviaQuestions.lua.
  6. Finally, move your TriviaQuestions.lua file we just finished into TriviaBot_QuizDS1 folder and overwrite the example file that was there.

Finishing Touches

  1. Open the TriviaBot_QuizDS1.toc file in a text editor and
    put your name after
    Author:
    and your quiz description after
    Notes:
    Save and close the file.
  2. Zip up your TriviaBot_QuizDS1 folder and you have your new TriviaBot quiz plugin ready for upload.
    You unzip it to \World of Warcraft\Interface\AddOns\ folder like any other addon and it will appear as a selection in TriviaBot.

How to upload your Quiz to Curse for other users to download

  1. Visit http://wow.curseforge.com/addons/create-project/
  2. Fill in some information Addon Name: TriviaBotQuiz_DS1, License: All Rights Reserved,
    Primary Category: Minigames, Secondary Category: tick Plugins,
    type in a quick Summary: and Description: and press Create at the bottom of the form.
  3. Once your project is created, go to Files -> Upload and upload your TriviaBot_QuizDS1.zip you got from my link.
  4. The curse moderators will check the file and approve it (might take a while) at which point your Quiz will appear on Curse.com for download.

Congratulations, you're now an addon author. ;-)

I will add a link to your quiz on the main TriviaBot page when it's all done so TriviaBot users can find it easier.

Facts

Date created
Aug 28, 2012
Last updated
Sep 06, 2012

Author