Krelle Posted November 23, 2014 Share Posted November 23, 2014 Greetings I am a newbie when it comes to the leadwerks engine and lua in general. I am trying to get LETheora to play videos in my game I assigned an ogg file to the script, but when i try to run it i get the following error message : Script Error attempt to index global 'package' (a nil value) Line 221 The error occours in the following function function TheoraVideo:Init() if self.initialized == 0 then assert(package.loadlib("LETheora.dll", "luaopen_theoravideo"))() theoravideo.init() self.initialized = 1 end Please help Quote Link to comment Share on other sites More sharing options...
macklebee Posted November 23, 2014 Share Posted November 23, 2014 Make sure you have lua sandboxing disabled 1 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
macklebee Posted November 23, 2014 Share Posted November 23, 2014 Granted this only works now with the '2014-09 - Archive' or '2014-08 - Archive'... It appears Josh has changed something in the engine that causes a c++ runtime error now whenever this library is used. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Krelle Posted November 23, 2014 Author Share Posted November 23, 2014 Granted this only works now with the '2014-09 - Archive' or '2014-08 - Archive'... It appears Josh has changed something in the engine that causes a c++ runtime error now whenever this library is used. Thank you for replying to my question, I greatly appreciate it. I guess it wont work with the version I am running then. I disabled Lua sandboxing and in debug mode im getting invalid ELF header on line 221, as before too bad it can't run, it looked really cool in the video presented Quote Link to comment Share on other sites More sharing options...
kspes Posted November 25, 2014 Share Posted November 25, 2014 Hi Guys, I'm the author of Theora Playback Library that LETheora uses, don't hessitate to drop me a line if you run into problems or need help with the library! link: http://libtheoraplayer.cateia.com/wiki/index.php/Main_Page 3 Quote Link to comment Share on other sites More sharing options...
BES Posted November 26, 2014 Share Posted November 26, 2014 It would be nice if any of you guys get a video player working for Leadwerks 3 for lua and C++ ...please upload the file on this site.. Quote Threadripper 2920X Gen2 CPU(AMD 12-core 24 thread) | 32Gigs DDR4 RAM | MSI Nvidia GeForce RTX 2070 Stock OCed | ASRock X399 Professional Gaming Motherboard | Triple M.2 500Gig SSD's in Raid0 Windows 10 Pro | Blender | Paint.Net | World Machine | Shader Map 4 | Substance Designer | Substance Painter | Inkscape | Universal Sound FX | ProBuilder | 3D World Studio | Spacescape | OpenSky | CubeMapGen | Ecrett Music | Godot Engine | Krita | Kumoworks | GDScript | Lua | Python | C# | Leadworks Engine | Unity Engine Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.