new bugfix: 1.1.1 for dbp plugin and dgdk/c++ library! updated lua to 5.1.3 fixing some crashes! other fixes see changelog.
new: call dbpro user functions from lua! DBPro plugin version 1.1.0 release (affects only dbp, not the c++ library). See the changelog! and make sure to delete the old debug dll.
new2: released unmanaged c++ library of my plugin! download from my website.
check this out: coolgames released a very good lua plugin here:
http://forum.thegamecreators.com/?m=forum_view&t=126843&b=5
Hello there!
I just finished a releasable version of my Lua Plugin! It is an interface to use the power of Lua within your DBPro applications.
It is free for non-commercial use, as my Winsock plugin. If you use it commercially please send me an e-mail (read the license text file included in the download pack).
note: I am NOT the author of Lua. For more information about lua visit the official website:
http://www.lua.org
Now to my Lua Plugin!
Features
-load configuration files and access the variables
-execute script functions with arbitrary arguments (and access multiple return values)!
-use Lua tables directly and easily in DBPro! (array with named indexing)
-use Lua stack
-
new: call your dbpro user functions from within your scripts!
-
call every single DBPro/plugin command from within your scripts, directly!
-fast and small release version of the dll
-23 fully documented commands, and more to come...
-5 examples to get you started with the basics!
-1 Tutorial so far
Website
On my plugins website you can find all files and infos about this plugin:
http://homepage.swissonline.ch/barnski/main.htm
Download
read the license agreement please, in the download pack.
You can download it on my plugin website.
Online Help
You can also access each commands help. In the download there are examples included in the help directory.
http://homepage.swissonline.ch/barnski/help/lua.htm
Tutorials
Lua and configuration files
http://homepage.swissonline.ch/barnski/Lua-Configuration_files.html
Examples
You find all examples in the download pack in the folder: help/examples/lua
lua_functions example shows how to call DBPro functions
register_functions example shows how to register and call dbpro user functions.
Lua Compiler
I compiled a Lua 5.1 Compiler. With it you can compile your lua scripts. You can load them as usual with LUA LOAD FILE.
Lua5.1Compiler.zip
Lua Editor
A small and fast editor is for example scintilla:
http://gisdeveloper.tripod.com/scite.html
A more sophisticated editor is LuaEdit, check for it in google.
Alternatively, you can use John's Synergy IDE to edit lua files.
Why did I do another Scripting plugin?
Well, it has been already a year now since I heard of the capabilities of Lua, that was when I played World of Warcraft from Blizzard. Now I have seen that it is possible to bring the power of LUA to DBpro applications (with Unity by DavidT). Since I would like this power to have in my applications too, I decided to dive into the Lua world. It was actually quite easy to make this plugin, much easier than my Winsock plugin. I made it in a couple of days, and then I just tested it another couple. And it works!
Another reason to do this was to make this available for free!
Now I would like to add, that I did not copy any functionality of Unity (or DarkScript by Torrey, the other scripting pack). Actually, I haven't even looked at the possibilities of it, I did my plugin from scratch, with my own ideas!
This said, it may be that it lacks some functionality. But that does not mean that I won't might add it to my plugin!
One thing I probably won't add is the possibility to register DBPro user functions to the LUA scripting environment (edit: haha, I did it by now!). Since I will use DarkSDK I can do this easily by handing over the function pointers. But for the DBPro plugin it would require quite some assembly hack. Actually, Torrey told me that he did this for his DarkScript plugin, and he pointed me into the direction how to do it myself. For that I want to thank him and link his plugin here:
http://forum.thegamecreators.com/?m=forum_view&t=71740&b=5
note that it is not free.
Conclusion
This plugin should bring you the power of Lua scripting into your DBPro applications, for free!
A DarkSDK library will come too, stay tuned! (edit: its now available)
Thanks for your attention. Oh and, feedback is well appreciated! I will improve what I can.