JacRich / vkt

GNU General Public License v3.0
31 stars 9 forks source link

Lua bindings #19

Open RNU4 opened 2 years ago

RNU4 commented 2 years ago

adds Lua support and a few bindings. main.lua contains a simple script to destroy blocks quickly and refuel the torch, it also prints out the player's position

RNU4 commented 2 years ago

i dont have linux so someone who have should test it.

garv-shah commented 2 years ago

I think the GitHub workflows should essentially automatically it (well test if it builds), so that's all g question, do u have to recompile for the Lua script to work, or does it load the script in whenever the game launches (such that it works in the precompiled build)?

RNU4 commented 2 years ago

I think the GitHub workflows should essentially automatically it (well test if it builds), so that's all g question, do u have to recompile for the Lua script to work, or does it load the script in whenever the game launches (such that it works in the precompiled build)?

The lua scripts are loaded when the game launches so you can change them without recompiling. jac rich tested it and it works on linux too

garv-shah commented 2 years ago

oh dope, sick :D is there a reason it hasn't been merged yet??

RNU4 commented 2 years ago

oh dope, sick :D is there a reason it hasn't been merged yet??

jac rich thinks its maybe to early to add it, but if we add it now we can expand on it when new functions are added

IgorAlexey commented 2 years ago

I love the idea of Lua! And look forward for this to be implemented, however i can't review right now as I am not currently using linux