Talk:Lua:Tutorials:Scripting with LuaPlus and Cpp

From GPWiki

Files:GUITutorial_warn.gif The Game Programming Wiki has moved! Files:GUITutorial_warn.gif

The wiki is now hosted by GameDev.NET at wiki.gamedev.net. All gpwiki.org content has been moved to the new server.

However, the GPWiki forums are still active! Come say hello.

This document contains lots of small errors and is mixed with information that is either not applicable to Lua or just simply wrong. If anything, it should be called "scripting with LuaPlus and C++" as opposed to "Lua and C++." This article links to a dead website (as of this writing luaplus.org DNE) and out of date content (gamedev.net). There is also an entire Wiki devoted to Lua already, with much more pertinent data. http://lua-users.org/wiki/ is the URL if you're interested.


Hi there. Your feedback is welcomed, although more specific information would be nice. The one piece of information that you give us to go on is that the luaplus.org website is dead. Thank-you for that, I will remove the link. As for your other comments, yes, there may be a Lua wiki, but this wiki is dedicated to game programming, and as such, this tutorial attempts to relate the use of Lua and C++ to game programming. If you believe you can correct the errors in the article, please do so and help us out!

Thanks. Ryan Clark 18:26, 22 Jan 2005 (EST)


http://www.luaplus.org works perfectly. It simply redirect to: http://www.luaplus.org/tiki-index.php

I think the article explains pretty much that instead of Lua, I will be using LuaPlus. I wrote it just after getting my first things to work, and will work out more detail later.

btw: Even if the GD.net article might be out of date, DirectX8 articles are still usefull to DirectX9, aren't they? :-). With a few minor differences.

--Almar Joling 11:25, 23 Jan 2005 (EST)

--- Sorry Almar, I didn't mean to say anything bad about your tutorial, but I do have an interest in LUA, and your tutorial is really not applicable at all. Here is a quote from the luaplus tiki, "The LuaPlus distribution contains some modifications to the core Lua code base. As such, it is not an official distribution of Lua 5.01 (which may be found at http://www.lua.org/), nor does it intend to represent itself as one." I think the same care should be taken here to not represent this modification, i.e. LuaPlus as though it was Lua. As I suggested earlier, it should be titled "Scripting with LuaPlus and Cpp." Also, that gamedev.net article is not usefull because Lua is not backwards compatible. The gamedev.net article is for Lua 4, and the things it talks about have been totally removed from Lua 5. It would be like reading a directx 7 article on Direct Draw to learn how to use Directx 8. Since there is no direct draw in dx8 and no tags in lua 5 the ideas from one simply can't be applied to the other. To give a better idea of how this is named totally wrong, it would be like learning how to use BlitzBasic and then saying you know DirectX. I'm not saying LuaPlus is bad, I'm saying this article is named wrong.

And for this recored this is Eric Coleman. Apparently the wiki doesn't save login information like the message board, so I assumed I was logged in. And apparently I'm not logged in now, and I can't be bothered to go through the steps to remember my password before I submit. You can check IP addresses to verify it's actually me.

---Actually, you can make it remember your login. There is a checkbox that says something like "remember this login across multiple sessions". I had to check it twice though. It didn't work the first time. --Lachlan87 09:07, 27 Jan 2005 (EST)


Thanks for the info, Eric. I've renamed the article. Ryan Clark 09:35, 27 Jan 2005 (EST)


No harsh feelins Eric :).

The code you can write in a texteditor, is still Lua. The way of accessing it is just different.

I guess I should add some more regarding LuaPlus. Unfortunatly, my time is getting nearly to 0 soon :(.

Hm. I'll see what I can do, soon or somewhat later :).

Maybe you could write a tutorial about 'pure' Lua. :)

--Almar Joling 17:53, 27 Jan 2005 (EST)

Hooray for pure Lua without wrappers :) I always get even more confused when trying to read about Lua wrappers for C++ so I finally said screw it. I would like to write a tutorial on Lua, but unfortunately I don't know much of it myself :) - sik0fewl 18:06, 27 Jan 2005 (EST)


That's why I like LuaPlus :) It's quite convenient, imo. :)

--Almar Joling 03:47, 28 Jan 2005 (EST)


The article could probably be improved in several ways, but it's a good start. It managed to get me started experimenting with Lua. It took many fustrating hours to get it working but after that hurdel it's a pleasure to be working with Lua. It has almost unlimited promise and I can't wait to learn more about it.

Thanks for sharing your adventures into the unknown Almar ;)

- Sion 21:27, 10 Feb 2005 (GMT+1)


Whatever you discover share it ;). I hate it that I can't write more onto it, but I'm so deep into time troubles that I'm near going nuts :). Quite frustrating if you have less than 2h for programming, after programmin all day :). Things just don't want to go then :).

This weekend I'm plannin to work on some Lua stuff though, (LuaPlus) for my game. I might post a snippet somewhere maybe :)

^ That was me, Almar :)



Do a find on this page for "thatr" What is that sentence trying to say?--Snoolas 12:39, 14 May 2005 (EDT)