Search found 4822 matches

by bartbes
Tue Jul 10, 2018 5:13 pm
Forum: Support and Development
Topic: Help, I upgraded to 11.1 and now everything's fucked
Replies: 3
Views: 163

Re: Help, I upgraded to 11.1 and now everything's fucked

Okay, let's do this one by one.. I decided to upgrade and adapt my game so it would be compatible. Once I did this, trying to run love resulted in the error: love: error while loading shared libraries: liblove-11.1.so: cannot open shared object file: No such file or directory I'm guessing you're run...
by bartbes
Sun Jul 01, 2018 11:33 am
Forum: Support and Development
Topic: Creating an instance of the Image class from C++ and pushing it to Lua
Replies: 5
Views: 300

Re: Creating an instance of the Image class from C++ and pushing it to Lua

Well, you create a FileData from the downloaded data, then create an ImageData from that, you then use that ImageData to create an Image::Slices object, and use that to create an Image.
by bartbes
Sat Jun 30, 2018 7:39 pm
Forum: General
Topic: lua 5.1
Replies: 2
Views: 223

Re: lua 5.1

Note that the lua 5.1 docs specify the following behaviour for the length operator: function len_event (op) if type(op) == "string" then return strlen(op) -- primitive string length elseif type(op) == "table" then return #op -- primitive table length else local h = metatable(op).__len if h then -- c...
by bartbes
Sat Jun 30, 2018 7:54 am
Forum: Support and Development
Topic: Creating an instance of the Image class from C++ and pushing it to Lua
Replies: 5
Views: 300

Re: Creating an instance of the Image class from C++ and pushing it to Lua

This is kind of vague, what do you want to know? You can definitely just instantiate an Image. Are you looking for luax_pushtype?
by bartbes
Mon Jun 25, 2018 8:30 pm
Forum: Support and Development
Topic: [SOLVED] Can os.execute() be executed after LÖVE is closed?
Replies: 2
Views: 242

Re: [SOLVED] Can os.execute() be executed after LÖVE is closed?

You could also try calling love.window.close, then call os.execute, and re-open the window with love.window.setMode after, that way you have a single continuous love process, if you want.
by bartbes
Sun Jun 24, 2018 8:04 am
Forum: Support and Development
Topic: Prevent freezing while working with large files?
Replies: 28
Views: 1593

Re: Prevent freezing while working with large files?

Can't you just get an actual file handle in append mode and keep appending that way? Sure sounds more efficient than repeatedly opening and closing the same file.
by bartbes
Sat Jun 23, 2018 8:51 am
Forum: General
Topic: Trying to draw a textured polygon
Replies: 4
Views: 248

Re: Trying to draw a textured polygon

Note that love.graphics.quad, contrary to what the name might suggest, did not draw Quads at all, it drew quadrilaterals. Anyway, the answer is to use a Mesh. Note that shaders are supported everywhere love is, but on phones/embedded devices the shaders need to be OpenGL ES-compliant too.
by bartbes
Fri Jun 22, 2018 6:43 pm
Forum: Support and Development
Topic: Can I change LÖVE's default save directory?
Replies: 3
Views: 207

Re: Can I change LÖVE's default save directory?

The easiest way is probably to set either the XDG_DATA_HOME or HOME environment variables. If you set XDG_DATA_HOME to /tmp/whatever, you'll find your game's save dir in /tmp/whatever/love/<identity> or /tmp/whatever/<identity> when fused. If you set HOME to /tmp/whatever, those paths will be /tmp/w...
by bartbes
Tue Jun 19, 2018 6:40 pm
Forum: Support and Development
Topic: Impossible d'ouvrir LOVE sur Lubuntu
Replies: 4
Views: 338

Re: Impossible d'ouvrir LOVE sur Lubuntu

Please speak english on the forums.

As for your actual issue, "it doesn't open" is about as vague as it gets. What actually happens?
by bartbes
Tue Jun 19, 2018 5:33 pm
Forum: Ports
Topic: iOS Side scrolling port
Replies: 2
Views: 391

Re: iOS Side scrolling port

As far as I know you can just set your resolution (either in conf.lua or using setMode) to one that is wider than it is high.