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 / [Unity] Getting Started Example generates LUA error (expected `=')

Author
Message
Omen
17
Years of Service
User Offline
Joined: 7th Nov 2006
Location: Maple Grove, MN US
Posted: 14th Mar 2008 21:40
I was going through the Unity Getting Started document included with Unity 5.0 and coding/compiling the examples as I went along.

When I get to the MoveCube example, though, I get this error:



I copied and pasted the code directly from the Getting Started document, but it still returns the same error. This is not a good sign if even the simplest examples won't compile and run

Here's my LUA script:



Here's my DBPro Code:



jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 20th Mar 2008 13:22
When you cut and paste, make absolutely certain that you end the last line with a carriage return. Otherwise, you get that error because the consumer cannot see the end of the last line. Usually, when you cut, you dont get a carriage return automatically.

To fix it, place your cursor on the last line of the LUA script, and press enter. Save it, and try again.

The <eof> is not seen by LUA because the last line never terminated. In C/C++, you get something like "expected end of file" in that situation.

Login to post a reply

Server time is: 2024-09-08 03:31:53
Your offset time is: 2024-09-08 03:31:53