Suggested Scripting Language
I'm looking to expand my game engine to scripted objects and have been considering using Lua. Does anyone have a better language to use and if so, why and where?
On a related note, been having some trouble getting LuaCore to work. Keeps giving me a SIGTRAP error for "Reason: image not found". Unsure what this could be referring to, please let me know if you have gotten LuaCore to work on your setup, thanks.
On a related note, been having some trouble getting LuaCore to work. Keeps giving me a SIGTRAP error for "Reason: image not found". Unsure what this could be referring to, please let me know if you have gotten LuaCore to work on your setup, thanks.
If you use Objective C, there's also MacRuby or Python, which are both bridged and relatively easy to use.
Did you try to get help from the LuaCore person?
I like Lua. I just made a Dungeon Master
level reader/to-be-editor/3D map maze maker using about 98% pure Lua.
With a touch of FLTK and iGame3D.
Yay Lua!
I like Lua. I just made a Dungeon Master
level reader/to-be-editor/3D map maze maker using about 98% pure Lua.
With a touch of FLTK and iGame3D.
Yay Lua!
If you're using C++, boost::python is fantastic.
Talyn Wrote:I'm looking to expand my game engine to scripted objects and have been considering using Lua. Does anyone have a better language to use and if so, why and where?
On a related note, been having some trouble getting LuaCore to work. Keeps giving me a SIGTRAP error for "Reason: image not found". Unsure what this could be referring to, please let me know if you have gotten LuaCore to work on your setup, thanks.
More info on my LuaCore issues. Apparently it's not liking trying to import the framework. It gives me the following error in full:
dyld: Library not loaded: @loader_path/../Frameworks/LuaCore.framework/Versions/A/LuaCore
Referenced from: <Project Path>
Reason: image not found
The Debugger has exited due to signal 5 (SIGTRAP).The Debugger has exited due to signal 5 (SIGTRAP).
Not sure where to go from here. It let me do a code completion for #import <LuaCore/LuaCore.h>, so I don't know what could be happening. Any insight would be great.
And yeah, I'm probably going to send the creator a message asking what's happening and how to fix it. Thanks guys.
DoG Wrote:LuaCore.framework you have is built for the wrong arch?
That's entirely possible. Hadn't considered that... I am running on Intel, so that may be issue.
Lua is definitely the way to go for scripting unless you have another language in mind; it's small, fast, written to be embedded, etc.
It's not magic, it's Ruby.
Boy, I feel a little silly. I figured out my issue with LuaCore: I was adding the framework from a folder on my Desktop. Apparently, Xcode will only look in designated framework folders unless you tell it otherwise. So, I just had to move the framework to one of these folders and it works like a charm.
Be careful not to set up your program so that it can only run on computers with the framework installed in a standard location. This is very easy to do if you have external dependencies that aren't completely encapsulated in your application bundle. Try your app on another computer and see if it still runs.
ThemsAllTook Wrote:Be careful not to set up your program so that it can only run on computers with the framework installed in a standard location. This is very easy to do if you have external dependencies that aren't completely encapsulated in your application bundle. Try your app on another computer and see if it still runs.
Thanks for the heads up TAT, but I'm just running some prelim experiments and getting familiar with the Lua language. I will definitely have to remember your advice when moving forward, though.
Say, does anyone use LuaCore here? I can't figure out how to read data from a Lua script. Can anyone help me out? Thanks.
[EDIT] Nevermind, found the info I was after.
igame3d Wrote:Dungeon MasterMight be top 10 game of all time.
Carlos A. Camacho,
Founder
iDevGames
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Scripting Language Woes (Lua) | Bachus | 2 | 3,310 |
Oct 14, 2008 09:48 AM Last Post: Blacktiger |
|
| Looking for a compilable scripting language | BinarySpike | 8 | 4,369 |
Apr 24, 2007 09:59 AM Last Post: BinarySpike |
|
| Scripting Language: Rolling Your Own | Emehr | 14 | 5,040 |
Feb 10, 2007 08:14 AM Last Post: IBethune |
|
| Scripting language recommendation? | WhatMeWorry | 6 | 3,044 |
Nov 11, 2006 10:09 AM Last Post: Duane |
|
| Embedding Scripting Languages Tutorials | Nick | 18 | 6,855 |
Apr 13, 2006 09:53 PM Last Post: kelvin |
|

