gmLua for Game Maker 8.1

Posted by DFortun81 on Oct. 22, 2012, 9:14 p.m.

Hey guys,

I managed to port gmLua to Game Maker 8.1 using GMAPI 0.0.7. I'd like to share it with all of you: gmLua81!!

Please note: You should NOT use this DLL with Game Maker 8.0 or less. It is ONLY compatible with 8.1.

In other news…

Lua Framework Teaser

I'm still working on my lua framework project. It'll allow you to develop awesome User Interfaces for your game maker projects with minimal impact on performance as opposed to scripting it all in GM. The best part? You can embed your scripts in a DLL so that no one can touchie! I'm still working on it, but I plan to have a sample project ready in the next few weeks as well.

- DF81

Comments

ludamad 11 years, 5 months ago

"You can embed your scripts in a DLL so that no one can touchie!"

You'll have to do better than just embed them as strings if someone really wants to touch them though : P

But really, I'd like to see some real open source in the GM community. (not just, here's my code dump, but projects that have changes submitted by anyone who wants to help. For various reasons GM makes doing that retarded though)

svf 11 years, 5 months ago

LUA be sexy.

ludamad 11 years, 5 months ago

Quote: http://www.lua.org/about.html
Please do not write it as "LUA", which is both ugly and confusing, because then it becomes an acronym with different meanings for different people. So, please, write "Lua" right!

Rob 11 years, 5 months ago

execute_string();

It's not like GM's a compiled language like C/C++, where being able to do Lua/Python from it makes a bigger difference.

DFortun81 11 years, 5 months ago

No Rob, I'm more concerned about being able to do what I want while maintaining the framerate of what I want. I'm using 98% Lua script. Using 98% GML script would put my engine at 1 FPS.

ludamad 11 years, 5 months ago

DFortun81: Interesting. I'd love to see benchmarks on where/how much lua is faster than GML. (What do you think is causing most of the relative speedup ?)

TehHoosier 11 years, 5 months ago

Most likley the fact that GML tries to compensate for things it doesn't need to load for.

Nice work on this.

I'm using it.

ludamad 11 years, 5 months ago

Quote:
Most likley the fact that GML tries to compensate for things it doesn't need to load for.
I'm not sure I understand what you're saying, sorry. Mind elaborating?

TehHoosier 11 years, 5 months ago

-If you get a chance to peek at legacy code for the gamemaker 8.1 program and so, there is a large number of blocks that don't do anything for the scripting system itself.

It was also developed in delphi.

Dinosaur programming at it's finest.

Rob 11 years, 5 months ago

Quote:
No Rob, I'm more concerned about being able to do what I want while maintaining the framerate of what I want. I'm using 98% Lua script. Using 98% GML script would put my engine at 1 FPS.

1FPS? How? Wouldn't you see way better performance by doing C/C++ DLLs from GML for the very intense parts? I can't imagine general gameplay code (the stuff I'd imagine using LUA for) being the bottleneck in GML, but the rendering and collisions and stuff. All of which I don't see how they would be much faster in Lua, especially considering all the calls back and fourth. And if they are, why not in a faster language?

…and if your game is 98% non-GML, why the hell are you using Game Maker anyways? Just do C/C++ for the heavy lifting, and Lua for the rest.