Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Game Scripting in Lua #103

Open
s17227213417 opened this issue Sep 17, 2024 · 4 comments
Open

Support for Game Scripting in Lua #103

s17227213417 opened this issue Sep 17, 2024 · 4 comments

Comments

@s17227213417
Copy link

Requesting for Lua (incl. LuaJIT/Lua 5.1) language binding for ORX game engine 1.15.

ORX is a fantastic game engine. The Lua language binding will help game programmers develop games using ORX game engine who are not C/C++ programmers. Besides Lua has been used in the game industry for a long time as a game scripting language.

@iarwain
Copy link
Contributor

iarwain commented Sep 17, 2024

Hi there!

Thank you for your suggestion. Scripting language support in orx is a topic that has been discussed multiple times over the years.

Even though it's not LUA, I'd like to point out a recent effort from @hcarty to add Python bindings to the engine.
You can find the current WIP repo here: https://github.com/hcarty/orx/tree/orxpy-v2

I personally do not intend to add any bindings to orx at the moment (LUA or other), but I will welcome any contribution.

@s17227213417
Copy link
Author

Thank you for your response. 🙏🏼

Actually, there is a Lua binding for ORX GE but it's unofficial and only works for ORX v1.13.0.
It's called LORX (https://github.com/tankwyn/lorx).

The problems I faced are:

  • Even though it was built for ORX v1.13, the binding docs say it can be built for the latest ORX. But when I tried to build the binding (for ORX v1.15), it threw an error like this: LORX error: terminated by signal sigsegv (address boundary error).
    I looked it up on the Internet and found that it was related to a memory address error, which may be related to ORX since it is written in C/C++.

  • The developer of LORX seems to forget about this project, and there is no way to contact him.

Since you are an experienced C/C++ programmer, do you have any idea what might be causing the above error? (I lack C/C++ knowledge; that's why I am asking for your little help here.).

It will be a great thing if we somehow build this binding successfully for the latest version of ORX. Little kids who don't want to learn C/C++ to develop games can easily benefit from this.

Thank you. 🙏🏼

@znakeeye
Copy link
Contributor

Check out master and pull latest. This crash could be related to an assert bug that just got fixed.

@s17227213417
Copy link
Author

s17227213417 commented Sep 17, 2024

Check out master and pull latest.

Okay I'll do that. I will inform if it works. Thank you for your suggestion. 🙏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants