Search found 4728 matches

by bartbes
Wed Oct 18, 2017 6:25 pm
Forum: Support and Development
Topic: Crash of engine (CoE)
Replies: 15
Views: 387

Re: Crash of engine (CoE)

As far as I know love.graphics can be used from any thread (there isn't really anything special about the main thread after all), but only as long as all things related to windowing are also done from that thread. That also includes event handling like in TC1061's example. I don't think there's a re...
by bartbes
Tue Oct 17, 2017 8:49 am
Forum: Support and Development
Topic: Embedded Base64 encoded gzip'd FileData
Replies: 3
Views: 115

Re: Embedded Base64 encoded gzip'd FileData

But the data is Base64 encoded, and lm.decompress doesn't accept Base64 encoded strings. The only way to go from Base64 to binary is either through newFileData or by doing the decoding myself, right? My bad, yes, that is the case. In 0.11.0 there is a love.data.decode that does base64 decoding inst...
by bartbes
Tue Oct 17, 2017 7:38 am
Forum: Support and Development
Topic: Embedded Base64 encoded gzip'd FileData
Replies: 3
Views: 115

Re: Embedded Base64 encoded gzip'd FileData

love.math.decompress also accepts strings, so you don't need the first FileData. The name parameters is used... well, whenever a file name/its extension is used to determine the format: when loading images or sound. As most of love's functions accept FileData (and implicitly convert file names or F...
by bartbes
Tue Oct 17, 2017 7:31 am
Forum: Support and Development
Topic: Crash of engine (CoE)
Replies: 15
Views: 387

Re: Crash of engine (CoE)

Luajit is binary compatible with lua 5.1, so any library that works with lua 5.1 works with luajit. Note that lua 5.2 and lua 5.3 are not binary compatible with lua 5.1 (or each other). There's actually another possible issue: love dynamically links the visual c++ runtime, so other libraries you wan...
by bartbes
Sun Oct 15, 2017 2:03 pm
Forum: Support and Development
Topic: Crash of engine (CoE)
Replies: 15
Views: 387

Re: Crash of engine (CoE)

Please don't double (or triple) post, and edit your posts instead. Are you sure your luafilesystem binary is compatible with lua 5.1?
by bartbes
Sat Oct 14, 2017 8:35 pm
Forum: Support and Development
Topic: Crash of engine (CoE)
Replies: 15
Views: 387

Re: Crash of engine (CoE)

zorg wrote:
Sat Oct 14, 2017 6:45 pm
In conf.lua:
I'm not sure if you can require modules elsewhere if they're disabled here... i know it's possible in threads (except graphics stuff) but i'm not sure if it is on the main thread, to be honest.
Yes! Disabling a module simply means it doesn't get required automatically.
by bartbes
Tue Oct 10, 2017 8:32 am
Forum: Support and Development
Topic: Why does one of my timers take longer to go down to 0?
Replies: 1
Views: 114

Re: Why does one of my timers take longer to go down to 0?

It's because you decrease 'timer' multiple times: for i,v in ipairs(Spawned_Units) do timer = timer - (1*dt) if timer < 0 then timer = newTime end if timer < 1 then table.remove(Spawned_Units,i) end end So for every spawned unit you decrease the timer by 1 (per second). If there are 0 spawned units,...
by bartbes
Sat Oct 07, 2017 3:10 pm
Forum: Support and Development
Topic: Multiple Jumping won't work
Replies: 2
Views: 139

Re: Multiple Jumping won't work

The error is fairly simple to explain. The function you're trying to call is World:setCallbacks , note that it has a lower case b. As for the jumping, applying an impulse is much like applying a force over a short period of time. In this case you apply an upward impulse, kind of like you do in real ...
by bartbes
Thu Oct 05, 2017 10:01 am
Forum: Ports
Topic: Love2D on EOMA68 A20 card
Replies: 3
Views: 214

Re: Love2D on EOMA68 A20 card

If it runs a normal linux system (it seems to) and it supports OpenGL ES2 (which that page claims it does) it should run. It's hard to tell if it's going to be perform well, or if the graphics driver is going to be horrible though. I know the Raspberry Pi supposedly runs love okay-ish, and many phon...
by bartbes
Wed Sep 27, 2017 7:55 pm
Forum: Support and Development
Topic: [SOLVED] Running LOVE in just terminal
Replies: 6
Views: 216

Re: Running LOVE in just terminal

It may also be necessary to disable the graphics and window modules in conf.lua:

Code: Select all

function love.conf(t)
    t.modules.graphics = false
    t.modules.window = false
end