Search found 724 matches

by grump
Mon Apr 19, 2021 5:08 pm
Forum: Support and Development
Topic: String to access nested table value.
Replies: 7
Views: 1827

Re: String to access nested table value.

but I was wondering if a more sane way of doing this existed. We could have a talk about your definition of "sane" now, but I have this instead: local function sanelookup(t, path) for s in path:gmatch('[^.]+') do t = t[s] end return t end local t = {x=0, y=5, other={z=10}} local zprop = &...
by grump
Mon Apr 19, 2021 10:54 am
Forum: Support and Development
Topic: Using a Shader breaks Image:replacePixels on my system
Replies: 6
Views: 1895

Re: Using a Shader breaks Image:replacePixels on my system

crickets

A little bit slow in the release department, but at least there's a lot of good and healthy communication!
by grump
Sat Apr 17, 2021 10:57 am
Forum: Games and Creations
Topic: Commodore 64 emulator
Replies: 2
Views: 1288

Commodore 64 emulator

An incomplete, barely functioning C64 emulator, written in MoonScript. Nothing except the CPU is properly implemented. It emulates barely enough of the machine to run BASIC and simple programs. No sound, no drive emulation, no storage... nothing much at all is emulated. But it runs glorious BASIC V2...
by grump
Fri Apr 16, 2021 7:59 am
Forum: Support and Development
Topic: Using a Shader breaks Image:replacePixels on my system
Replies: 6
Views: 1895

Re: Using a Shader breaks Image:replacePixels on my system

This is fixed in 11.4 already (as of a few months ago) - you can try a recent nightly Windows build of it here: Are there plans for a 11.4 release any time soon? Weird workarounds to make my stuff work are piling up. You say This is fixed in 11.4 already (as of a few months ago) but there is no 11....
by grump
Thu Apr 15, 2021 12:30 pm
Forum: Support and Development
Topic: Using a Shader breaks Image:replacePixels on my system
Replies: 6
Views: 1895

Re: Using a Shader breaks Image:replacePixels on my system

A workaround is possible for 11.3 as well, but I forget the exact details - in fact I think you might have been the person who reported the issue before it got fixed in 11.4... Oh, really? It's possible... I can't remember. I searched the issues on GitHub but nothing came up. I'm now working around...
by grump
Thu Apr 15, 2021 11:22 am
Forum: Support and Development
Topic: Using a Shader breaks Image:replacePixels on my system
Replies: 6
Views: 1895

Re: Using a Shader breaks Image:replacePixels on my system

Well that was quick, lol. Thanks.
by grump
Thu Apr 15, 2021 11:19 am
Forum: Support and Development
Topic: Using a Shader breaks Image:replacePixels on my system
Replies: 6
Views: 1895

Using a Shader breaks Image:replacePixels on my system

I have this weird bug with LÖVE 11.3 where I can't update an Image after a shader was active. Can anyone else confirm this or is it my system? I have a minimal example. Run the love file and press space key. Expected behavior: Bars scrolling right to left, pressing the space key does not make it sto...
by grump
Wed Apr 14, 2021 2:47 pm
Forum: Support and Development
Topic: Missing a function in love to check object:isReleased() or something like that
Replies: 4
Views: 1153

Re: Missing a function in love to check object:isReleased() or something like that

Keeping released objects around is dangerous, as you've seen here. If you have to call :release() for some reason (it's usually not required, except for some edge cases whose details I can't recall), always set the object to nil immediately afterwards. If you don't really need to call :release(), th...
by grump
Mon Apr 12, 2021 10:10 pm
Forum: Support and Development
Topic: Multidimentional arrays/Tables
Replies: 14
Views: 2583

Re: Multidimentional arrays/Tables

You can also use the # prefix to get the size of a table Note though that it only counts the elements from index 1 up until the first nil. It's even worse than that. The length of a table with holes in its sequence is actually undefined. LuaJIT is kind of nice and stops counting at the first nil. V...