Search found 30 matches
- Tue Oct 09, 2018 8:48 am
- Forum: Support and Development
- Topic: [SOLVED] Trying to load a DLL: "The specified procedure could not be found."
- Replies: 2
- Views: 2805
Re: Trying to load a DLL: "The specified procedure could not be found."
Lua calls luaopen_ lib.DepthBuffer when you require() the dll. You can either move the dll and provide that function or use package.loadlib. Thanks, that was the solution. I ended up just changing the require path. In case someone else is reading this, you change the require path by using love.file...
- Tue Oct 09, 2018 4:19 am
- Forum: Support and Development
- Topic: [SOLVED] Trying to load a DLL: "The specified procedure could not be found."
- Replies: 2
- Views: 2805
[SOLVED] Trying to load a DLL: "The specified procedure could not be found."
I'm porting one of my more computationally intensive Lua libraries to C, but trying to load the dll I'm compiling this library to gives me the following error: Error error loading module 'lib.DepthBuffer' from file '.\lib\DepthBuffer.dll': The specified procedure could not be found. Traceback [C]: a...
- Thu Sep 13, 2018 11:53 pm
- Forum: Support and Development
- Topic: How can I interact with LOVE2D objects in C code?
- Replies: 0
- Views: 2337
How can I interact with LOVE2D objects in C code?
Let's say I have the following Lua code: local imageData = love.image.newImageData(100, 100) someLibrary.doSomethingTo(imageData) and let's say that doSomethingTo() is defined by void doSomethingDo(lua_State *L) { u_int8 * data = // code here } What code needs to go at "// code here" so th...
- Thu Sep 13, 2018 11:44 pm
- Forum: General
- Topic: How do you specify the entry file?
- Replies: 8
- Views: 5632
Re: How do you specify the entry file?
If the goal is to just share libraries you could write a loading screen that downloads "NetherGraniteUtils" from a website into a save directory when the identity is set to "NetherGraniteUtils" this will create a folder in the save location called NetherGraniteUtils that all of ...
- Wed Aug 29, 2018 9:19 am
- Forum: Support and Development
- Topic: Mistake on love.filesystem Page
- Replies: 0
- Views: 1465
Mistake on love.filesystem Page
On https://love2d.org/wiki/love.filesystem, love.filesystem.exists is not marked as removed in 11.0.
- Sat Aug 25, 2018 3:32 am
- Forum: General
- Topic: How do you specify the entry file?
- Replies: 8
- Views: 5632
Re: How do you specify the entry file?
LÖVE automatically reads a main.lua file at the root, but nothing prevents you from require-ing any other file from there. Unfortunately, I am looking to create two applications that can operate independently of each other. This approach would result in only a single window that can only switch bet...
- Fri Aug 24, 2018 7:27 am
- Forum: General
- Topic: How do you specify the entry file?
- Replies: 8
- Views: 5632
How do you specify the entry file?
How does one go about telling love2d to use a different file than main.lua? Please do not tell me to use states; I am looking to make two separate applications that use the same set of libraries. Currently I am syncing all of my libraries using git subtrees, but it is a very painful process.
- Tue Aug 14, 2018 9:56 am
- Forum: Support and Development
- Topic: [SOLVED] `pcall(...)` inside `Canvas:renderTo(...)`
- Replies: 4
- Views: 3400
Re: `pcall(...)` inside `Canvas:renderTo(...)`
it was due to a `love.graphics.push('all')` being unmatched by a `love.graphics.pop()` inside `func`. Thanks for sharing, I got the exact same error, and your solution to your problem lead me to realize that I failed to match a love.graphics.setCanvas(canvas) with a love.graphics.setCanvas() to res...
- Thu Jul 12, 2018 8:25 pm
- Forum: Support and Development
- Topic: Encode an mp4?
- Replies: 4
- Views: 2835
Re: Encode an mp4?
I'm unsure of your goal Sorry, I just realized that my question was not clear. I was wondering how one would go about using love2d to draw each frame but instead of merely outputting each frame to the screen, outputting each frame to a function that would encode it into an mp4 file. I have added cl...
- Wed Jul 11, 2018 11:13 pm
- Forum: Support and Development
- Topic: Encode an mp4?
- Replies: 4
- Views: 2835
Encode an mp4?
Is there a way to use love2d to encode mp4s or other video formats, or is the most one could do simply to encode many png files and then use an external program to stitch them into a video? Or is there even a Lua library out there for doing this? Edit: I realized it was not exactly clear what I mean...