Jump to content

LETheora - Script Error


Krelle
 Share

Recommended Posts

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 rolleyes.gif

Link to comment
Share on other sites

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. sad.png

 

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

Link to comment
Share on other sites

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..

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.NetWorld 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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...