keeperfx icon indicating copy to clipboard operation
keeperfx copied to clipboard

Lua

Open PieterVdc opened this issue 2 years ago • 4 comments

not final yet, but works, will probably use code as a dependency instead, but for now it uses a precompiled dll

PieterVdc avatar Dec 12 '22 15:12 PieterVdc

Hello @PieterVdc, what is this PR? It adds Lua scripting to KeeperFX instead of its own scripting language?

AleWin32 avatar Dec 16 '22 11:12 AleWin32

not as a replacement, but yeah as a second level script, still in early stage, but on the discord I uploaded a sample map that uses it https://discord.com/channels/480505152806191114/1051878771692675082

PieterVdc avatar Dec 16 '22 11:12 PieterVdc

Why you have to bring lua.h and others? I assume only luaconf.h is necessary and other files should be attached using git submodule or something like that. Also API should be invented first. Raw ThingId is not userfriendly. Some userdata (not lightuserdata!) with list of thing-ids would be much better.

SimLV avatar Dec 28 '22 12:12 SimLV

indeed, but I started with just a quick draft test to get a quick idea of what would be needed, before doing it proper and yeah started with the dll, but was going to replace it with luau, as a submodule, so will delete the stuff in lib after I switched

PieterVdc avatar Dec 28 '22 12:12 PieterVdc