Drexx Posted November 4, 2016 Share Posted November 4, 2016 I am trying to load the luasql module so that I can write a proper frontend website and have communications between website and server, also log all the events in the database. I am using a 64bit compiled version of luasql (for lua 5.1) The files to access the example are here: https://www.dropbox.com/sh/hjk9h2c4j6elsfw/AAABBJM5cTUicb5hlvF_R8lqa?dl=0 You put the luasql folder in DCS\bin (so it can get access to the library) and run the dbTestGameGUI.lua from the DCS\bin lua dbTestGameGUI.lua C:\Program Files\Eagle Dynamics\DCS World\bin>lua "c:\Users\andre\Saved Games\DCS\Scripts\DatabaseTestGameGUI.lua" Event: HAHAHA, Time: 2016-11-04 03:59:20 Event: YESSSSS, Time: 2016-11-04 03:59:20 Event: WEEEENER, Time: 2016-11-04 04:18:20 Event: DCS WROTE TO SERVER!, Time: 2016-11-04 13:34:22 it writes to the database and reads from it, this WORKS! but with luarun.exe luarun dbTestGameGUI.lua C:\Program Files\Eagle Dynamics\DCS World\bin>luarun "c:\Users\andre\Saved Games\DCS\Scripts\DatabaseTestGameGUI.lua" can't load c:\Users\andre\Saved Games\DCS\Scripts\DatabaseTestGameGUI.lua: [string "c:\Users\andre\Saved Games\DCS\Scripts\DatabaseTestGameGUI.lua"]:2: attempt to index global 'luasql' (a nil value) it has trouble Just an example of loading an external module would be fun or an explanation of the limitations of DCS + GameGUI + loading external modules. Lua.exe runs this code perfectly so theres definitely a different here somewhere Being able to load an external module from GameGUI can open our server up to a TON of possiblities! Thanks! -Drex -=16AGR=- US East Dynamic Caucasus Developer of DDCS MP Engine, dynamicdcs.com https://forums.eagle.ru/showthread.php?t=208608 Link to comment Share on other sites More sharing options...
VladMordock Posted June 19, 2018 Share Posted June 19, 2018 I know that this is quite old, but was there any luck making it work ? Zapraszam na Gildia.org - polska społeczność DCS. :thumbup: Link to comment Share on other sites More sharing options...
BlacleyCole Posted June 19, 2018 Share Posted June 19, 2018 Probably not as I was told ed is very restrictive on what dcs can and cannot do BlackeyCole 20years usaf XP-11. Dcs 2.5OB Acer predator laptop/ i7 7720, 2.4ghz, 32 gb ddr4 ram, 500gb ssd,1tb hdd,nvidia 1080 8gb vram New FlightSim Blog at https://blackeysblog.wordpress.com. Go visit it and leave me feedback and or comments so I can make it better. A new post every Friday. Link to comment Share on other sites More sharing options...
VladMordock Posted June 19, 2018 Share Posted June 19, 2018 Maybe, but I haven't reached the point when there might be ED blockade. I'm almost sure that we would need 64x recompiled luasql for lua 5.2.4 . :) Zapraszam na Gildia.org - polska społeczność DCS. :thumbup: Link to comment Share on other sites More sharing options...
feefifofum Posted June 19, 2018 Share Posted June 19, 2018 It's not so much a blockade for everyone but one for the layperson. You need to edit code in game files in order to execute code outside of the sim. This prevents the majority of users from accessing these options (and prevents the execution of potential malicious code by the game as it is shipped.) THE GEORGIAN WAR - OFFICIAL F-15C DLC Link to comment Share on other sites More sharing options...
VladMordock Posted June 19, 2018 Share Posted June 19, 2018 Sir, I understand general idea and those comments are welcome, but at the same time those comments are so general that will not help with the problem. ;) The question is if anybody was lucky with luasql with DCS 2.5 ? Zapraszam na Gildia.org - polska społeczność DCS. :thumbup: Link to comment Share on other sites More sharing options...
feefifofum Posted June 19, 2018 Share Posted June 19, 2018 (edited) That was more aimed at BlackleyCole. off now. ;) Edited June 19, 2018 by BIGNEWY 1.1 THE GEORGIAN WAR - OFFICIAL F-15C DLC Link to comment Share on other sites More sharing options...
Recommended Posts