FreeTrack Forum
FreeTrack Forum > FreeTrack : English Forum > Support : FreeTrack Software > Lua Interface for Freetrack
Lord_Nothing | #1 30/08/2012 - 20h29 |
Class : Apprenti Off line |
k so i was adding freetrack support to my lua standalone game engine and i was able to talk to the dll with alien. so heres my code. a lot of games have lua scripting built in and so mods can be created to talk to freetrack in cases where the game source is unavailable. this would allow you to add freetrack support to such games.
this is just preliminary so im not sure if im closing things down right or checking for errors enough. documentation on alien is hard to come by it seems. this works by itself if you have lua for windows installed and will print the freetrack data to a console. it uses the alien module which comes with lfw or can be downloaded by itself or with lua rocks. all the games ive used external modules on usually require you to copy the library dlls to the program folder, but im sure that varies with lua implementations. *edit* changed ftLibPath to default install path. you can change this if you have your dll somewhere else.
Edited by Lord_Nothing on 31/08/2012 at 04h24.
|
FreeTrack Forum > FreeTrack : English Forum > Support : FreeTrack Software > Lua Interface for Freetrack
> Stats
1 user(s) connected during the last 10 minutes (0 member(s) and 1 guest(s)).
Powered by Connectix Boards 0.8.4 © 2005-2024 (7 queries, 0.025 sec)