Search found 1117 matches

by pgimeno
Sat Jun 23, 2018 2:28 pm
Forum: General
Topic: Windows XP Support!!!
Replies: 3
Views: 27

Re: Windows XP Support!!!

Use 0.10.2 and you'll be fine. Old OS = old programs, it's just that simple. I don't think it's short-sighted to require an OS that supports more advanced features, in order to have more advanced features.

Edit: It's a bit like saying that GTA V should still support PS1.
by pgimeno
Sat Jun 23, 2018 12:44 am
Forum: Support and Development
Topic: Issue with loading levels [solved]
Replies: 9
Views: 153

Re: Issue with loading levels (read for more info)

You can't *save* to a file inside a .love file.
by pgimeno
Fri Jun 22, 2018 2:13 pm
Forum: Support and Development
Topic: [SOLVED] Is it possible to have a config file next to executable?
Replies: 24
Views: 488

Re: [SOLVED] Is it possible to have a config file next to executable?

JSON is also good. https://arp242.net/weblog/json_as_configuration_files-_please_dont Fair enough for configuration files, which is the subject of the thread. I agree, simple INI files are probably the best choice. When a line in a configuration file has an out of range value (e.g. when value can o...
by pgimeno
Thu Jun 21, 2018 10:31 pm
Forum: Support and Development
Topic: [SOLVED] Is it possible to have a config file next to executable?
Replies: 24
Views: 488

Re: [SOLVED] Is it possible to have a config file next to executable?

I may be pretty much alone in thinking that using Lua for configuration files is not a good idea. There are several reasons, but the main ones are DoS and memory. Among the many text serialization libraries, there's one that stands out for the fact that it does not generate Lua, even though it suppo...
by pgimeno
Thu Jun 21, 2018 4:52 pm
Forum: Support and Development
Topic: Publishing problem on Mac
Replies: 2
Views: 72

Re: Publishing problem on Mac

This is an 11.0 thing, not a Mac thing. The second argument is no longer optional, see love.audio.newSource.

Note the error message says bad argument #2, and you're not passing a 2nd argument.
by pgimeno
Thu Jun 21, 2018 3:05 pm
Forum: Support and Development
Topic: Weird Snake behavior
Replies: 3
Views: 139

Re: Weird Snake behavior

I've tried the ceiling. It works if you update before setting canMove. Before: if canMove == false and math.floor(snake[1].realX) % 32 == 0 and math.floor(snake[1].realY) % 32 == 0 then dir = direction canMove = true end snake[1]:update(dt) snake[1].newX = math.floor(math.floor(snake[1].realX)/32) s...
by pgimeno
Wed Jun 20, 2018 9:08 am
Forum: Libraries and Tools
Topic: Öscillofun
Replies: 27
Views: 3977

Re: Öscillofun

Nice looking :)

That looks like a spectrogram! IMO spectrograms look sooo much nicer when the magnitude at each pixel is represented by a palette colour, preferably ranging from black through cold then warm colours, peaking at bright yellow or white e.g. https://www.youtube.com/watch?v=yzFit0nldf4
by pgimeno
Wed Jun 20, 2018 8:45 am
Forum: Support and Development
Topic: Prevent freezing while working with large files?
Replies: 25
Views: 570

Re: Prevent freezing while working with large files?

Strings in LuaJIT are slow to handle. Using string.byte tends to give much better performance than string.sub. Not sure if that's the issue here, but I thought it was worth noting.
by pgimeno
Tue Jun 19, 2018 11:27 pm
Forum: Support and Development
Topic: SSL, HTTPS in Love2D
Replies: 10
Views: 264

Re: SSL, HTTPS in Love2D

Spar wrote:
Tue Jun 19, 2018 10:24 pm
pgimeno wrote:
Tue Jun 19, 2018 8:10 pm
Googling for luasec binaries gives a thread in this forum. viewtopic.php?t=76728
They're too old.
LMGTFY:

https://github.com/pkulchenko/ZeroBrane ... /bin/clibs
by pgimeno
Tue Jun 19, 2018 11:17 pm
Forum: Support and Development
Topic: [somehow Solved] Moving platforms
Replies: 2
Views: 126

Re: Moving platforms

When the player is on a platform, it should move at a speed which is the player's "normal" speed (zero if stopped, or nonzero if it's walking) PLUS the platform's speed. That should do it.