Данный сайт активно использует технологию JavaScript.
Пожалуйста, включите JavaScript в вашем браузере.
Newbie Guide for creating addons
Ответить
Вернуться на главную страницу форума
Сообщение от
Tamardia
Hello there everyone. I'm not really new to WoW, but I -am- really new to Lua and the likes.
I'm wondering if anyone know a online site with free content that covers most stuff from Basics to more advanced options when it comes to coding your own addon.
I have Scite as my Lua reader, and I've looked through loads and loads of addons to see what it's all about. However I don't get a single thing more than 'SetScale'. I have a hard time concentrating and to learn new stuff, so I would really appreciate your help.
I have tried wowprogramming.com, but it doesn't let me read the chapters, only look to see if I want to buy the book, which I have no economy to do while studying.
I also read Webdesign in school, but it's only HTML and my teacher knows nothing of Lua more than I do.
Thanks beforehand for your help.
Сообщение от
TheReal
You'll first need a basic understanding of object-oriented programming concepts. WoW's UI is event-driven as well.
Сообщение от
GTMistral
HTML is
NOT
a programmation language nor is CSS.
As Arkayn said, you need to understand the concept of object-oriented language, like C, C++, C#, VisualBasic. These are the most common object-oriented language. LUA is somewhat like these in terms of syntax, but so different at the same time.
I have that knowledge about object, but there are still A LOT of obscur things to me in addon programming. I can use the function provided with the API, can use many of these function pretty easily, but as to make an addon, I'll have to put some time into understanding the structure and relation between everything, creating frames, reacting to event raised by WoW, etc.
Сообщение от
550132
This post was from a user who has deleted their account.
Сообщение от
TheReal
In fact,
CurrencyMonitor
would be awesome to start picking apart.
downloadCount++
Сообщение от
550132
This post was from a user who has deleted their account.
Сообщение от
GTMistral
I wish WoW had some development environment and simulation environment as well. That would ease everything up when it comes to developping and testing addons. That's mainly what repulses me from really getting into it. I hate to load and unload and reload the game everytime! >< StarCraft has it's own very complex editor (ever saw a siege tank with the Colossus' ray?). Why not WoW? Yeah, I know it might be a little too late for that as WoW 5.0 is coming out in a few months and who knows if there is anything else after.
Сообщение от
550132
This post was from a user who has deleted their account.
Сообщение от
GTMistral
I miss IntelliSense! :p
Сообщение от
TheReal
Whoa. At the top of CurrencyMonitor.lua you have two variables that are neither local nor prefixed by any specific name. Just called "currencies" and "allCurrency". If another addon used those variables you'd have some trouble.
You should make them local.
Edit:
currentAmount is also not local.
See? Still a newb. lol
Сообщение от
Ketho
I have a summary of guide links over here:
http://www.wowhead.com/forums&topic=188643
As for OOP, I don't understand anything about it since I don't know e.g. C or Java, but I do have some experience with (Lua) WoW addons
So I don't really think you'd
have
to learn OOP to learn writing WoW addons, but it will likely improve your coding though
Router54: Most of the WoWWiki people have
moved
to
Wowpedia
, its resources are also more up to date
Сообщение от
Tamardia
Thank you all for your answers! Really appreciated.
@GTMistral: No, I know that. I didn't say HTML or CSS was anything alike Lua, I just mentioned that I read it simply because they're both code languages. But I appreciate that you told me the difference, since I had no idea there even -was- different kinds of languages :)
Сообщение от
RealUnimportant
All languages are "code languages", because they all use their own terms (or codes) to refer to things. /nitpick
HTML & CSS are stylistic, LUA is programming. The closest you'd get to LUA with an HTML course is JavaScript.
Сообщение от
550132
This post was from a user who has deleted their account.
Сообщение от
Blekwave
Well, scripting is still programming. The difference between scripting languages and other languages is that scripting languages are run directly from the code through an interpreter, while other languages like C are compiled to a binary format that the CPU understands natively.
By the way, you shouldn't need OOP to make basic addons. Structured programming is all you'll need, with a little bit of event orientation, no more. Of course, you should learn OOP eventually, but it's not needed.
Сообщение от
pelf
Yeah I would also contest the "Lua is scripting/C is programming" phrasing.
Lua is an interpreted scripting language and C is a compiled mid-level language. (That might do it.)
Сообщение от
164227
This post was from a user who has deleted their account.
Сообщение от
pelf
Some people lust for creation.
Сообщение от
164227
This post was from a user who has deleted their account.
Сообщение от
pelf
Yeah, melodrama aside, I agree. Learning by tinkering is a time-honored tradition in the world of programming.
Ответить
Вы не авторизованы.
Войдите
или
зарегистрируйтесь
, чтобы оставить сообщение.