Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / DBpro commands within LUA scripts.

Author
Message
Paranoid Android
19
Years of Service
User Offline
Joined: 5th Feb 2005
Location:
Posted: 23rd May 2006 22:43
I've started using LUA with the Unity plugin today, and I have a short question.

I've read in the "getting started with unity" document that you can access the dbpro world from the LUA script using certain function like: CamInfo(), ObjInfo(), MoveObject(number,speed), PointObject(number,X,Y,Z).

My question: Are those the only implemented functions that control the dbworld directly from the LUA script? if not, where can I find the list of all such function? I couldn't find any such list in the help files.

Thanks in advance,
Paranoid Android.

Cheers,
Paranoid Android.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 23rd May 2006 22:57
Only the core commands are exported for the following reason - if every single command was exported, then it would take only a few lines of code to create an all-new game creation language, using TGC's engine, which you could then sell on - easily killing the market for DBPro. To protect TGC's work I didn't include every command.

There's a list of the functions available in the manual, page 20.

As a rule you should separate 3d form (DBPro) from logic and function (Lua) - hence there shouldn't be too much need for a crossover. But having a few functions exported does make knocking up a good looking demo very easy!

Paranoid Android
19
Years of Service
User Offline
Joined: 5th Feb 2005
Location:
Posted: 23rd May 2006 23:01
Thanks

Cheers,
Paranoid Android.
Paranoid Android
19
Years of Service
User Offline
Joined: 5th Feb 2005
Location:
Posted: 23rd May 2006 23:20
Oops. Can't find the list

The pdf "getting started" document has only 17 pages and the other help files are html files (no page 20).

What am I missing?

Cheers,
Paranoid Android.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 24th May 2006 13:49
There should be two PDF files - Getting Started and Unity Manual.pdf as well as the HTML help files for the editor.

Paranoid Android
19
Years of Service
User Offline
Joined: 5th Feb 2005
Location:
Posted: 26th May 2006 01:38
A simple case of FTFM

Missed it, found it, bashed meself on the head.

Thanks.

Cheers,
Paranoid Android.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 29th May 2006 14:06 Edited at: 29th May 2006 14:06
No probs! I was worried then, I was sure I'd written that bit of the manual but was looking for it myself a few days ago and couldn't find it too...

DaveC9000
18
Years of Service
User Offline
Joined: 15th Jan 2006
Location:
Posted: 31st May 2006 03:33
It is possible to forward commands to your DBPro app using the LUA stack. Just write some sort of function string to the stack in lua, then write a function in your app that check the stack each loop and parses out the commands. I thought that was what the stack was for. In theory, given enough time and a boat load of code you could in fact forward EVERY DB command through it. It would prabably take the rest of your natural life though, and that's why I mainly only use lua to store data.
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 20th Jun 2006 00:57
In Unity there is a message queue system, and as you said you are basicaly pushing data onto the stack then popping it off in your dbpro app.

I know the voices aren't real, but they have good ideas!

Login to post a reply

Server time is: 2024-11-22 06:42:22
Your offset time is: 2024-11-22 06:42:22