Search found 4832 matches

by bartbes
Sat Oct 13, 2018 10:59 am
Forum: Support and Development
Topic: C/C++ code cannot print to the console
Replies: 2
Views: 302

Re: C/C++ code cannot print to the console

On windows you need to make sure you link against the dynamic library version of the (same) c runtime. We've seen before that mixing runtimes causes output issues, for some reason.
by bartbes
Wed Sep 05, 2018 7:05 pm
Forum: Libraries and Tools
Topic: love-steam - Steamworks integration for LÖVE
Replies: 8
Views: 1191

Re: love-steam - Steamworks integration for LÖVE

replace: __declspec(dllexport) with: __attribute__((visibility("default"))) I would assume, considering you're setting the visibility to default, that you can simply remove the declspec, and it will work. I was then able to compile into an .so by using: gcc -fPIC love_steam.cpp -shared -o love_stea...
by bartbes
Sun Sep 02, 2018 8:04 pm
Forum: Support and Development
Topic: Conditional tweening confusion
Replies: 2
Views: 175

Re: Conditional tweening confusion

The exact symptoms you're describing are.. weird, but I'm fairly sure I know what the issue is: you're creating a new tween every frame. You probably want something like this: Timer = require 'hump.timer' function love.load() color = {0, 255, 0} end function love.update(dt) Timer.update(dt) end func...
by bartbes
Sun Sep 02, 2018 4:53 pm
Forum: Support and Development
Topic: What Luajit Version does Löve 11.1 use?
Replies: 7
Views: 605

Re: What Luajit Version does Löve 11.1 use?

Like I said in irc: that depends on your os, unfortunately but last I checked desktops were on latest 2.0, phones were on the 2.1 beta I should also mention that on linux it uses whatever your system provides, so if you have luajit 2.1.0-beta3 installed, it will use that. As an aside, the bbcode for...
by bartbes
Sun Aug 26, 2018 10:39 am
Forum: Support and Development
Topic: Lua/Löve2D newbie - need help understanding problem with loading graphics
Replies: 4
Views: 242

Re: Lua/Löve2D newbie - need help understanding problem with loading graphics

That code should work, do you have other code that may affect this? Have you tried running without mobdebug?
by bartbes
Sun Aug 26, 2018 8:17 am
Forum: Support and Development
Topic: Inconvenience: Errors upon unused shader uniforms
Replies: 4
Views: 263

Re: Inconvenience: Errors upon unused shader uniforms

The graphics driver does this optimisation, without love being able to affect it, so the uniforms are gone either way. So now the option is to either ignore all uniform errors, or error for all of them, and love chooses the safest option.
by bartbes
Sat Aug 25, 2018 5:05 pm
Forum: Support and Development
Topic: Transparent Background Video
Replies: 1
Views: 143

Re: Transparent Background Video

Transparent in what way? If you just want every part to be equally transparent, you can use setColor as usual. If not, you probably need to write a shader.
by bartbes
Sat Aug 04, 2018 8:24 am
Forum: Support and Development
Topic: Can I save an image loaded with love.graphics.newImage() as png?
Replies: 6
Views: 346

Re: Can I save an image loaded with love.graphics.newImage() as png?

Yes, but not easily. I think you have to draw the Image to a Canvas, then get ImageData from that. Then you can use the ImageData:encode function to save it.
by bartbes
Sat Aug 04, 2018 8:22 am
Forum: Support and Development
Topic: Runing love2d inside python
Replies: 2
Views: 243

Re: Runing love2d inside python

It looks like lupa explicitly supports loading lua binary modules. So if you compile (lib)love against lupo it might work.
by bartbes
Sat Aug 04, 2018 8:16 am
Forum: Support and Development
Topic: [Solved] Help Building Love2D from Source
Replies: 3
Views: 698

Re: Help Building Love2D from Source

I remember looking at this a while back, it looks like msvc changed its standard library in an incompatible way again. Omitting that line is indeed a possible fix, and it might be the one I end up going for.