12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

16 Part I ■ Learning to ProgramDownloading <strong>and</strong> Installing a Lua InterpreterIf you prefer to download an interpreter so you can work <strong>of</strong>fline, packages areavailable <strong>for</strong> both Micros<strong>of</strong>t Windows <strong>and</strong> Mac OS X.Micros<strong>of</strong>t WindowsYou can download the interpreter <strong>for</strong> Micros<strong>of</strong>t Windows at http://wowprogramming.com/utils/lua/windows. The package doesn’t require anyinstallation; you can simply place it anywhere that is convenient <strong>for</strong> you.Extract the ZIP file to a new folder <strong>and</strong> place it where you can easily findit again.To launch the Lua interpreter, go to the files you’ve extracted <strong>and</strong>double-click the icon <strong>for</strong> the interpreter. This opens a window that lookssomething like that shown in Figure 2-3. You can also create a shortcut to thisfile from which you can launch the interpreter.Figure 2-3: Lua running on Micros<strong>of</strong>t WindowsMac OS XYou can find a package that can be used to install a Lua interpreter <strong>for</strong> MacOS X at http://wowprogramming.com/utils/lua/macosx. The download isa st<strong>and</strong>ard disk image that can be mounted on your system. To mount it,navigate to the disk image <strong>and</strong> double-click it. The disk image contains apackage (selected in Figure 2-4) that you can run to install Lua on your system.Double-click the package to install Lua on your system.To launch the Lua interpreter, you need to open Terminal. This is an applicationnormally located under Applications Utilities. A window appears,so you can type lua <strong>and</strong> press Enter to actually open the Lua interpreter.Figure 2-5 shows a terminal window with Lua running.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!