Search found 3041 matches

by zorg
Sat Jan 16, 2021 10:40 am
Forum: Libraries and Tools
Topic: SUPER STRICT for LUA
Replies: 27
Views: 2392

Re: SUPER STRICT for LUA

return not not self.rects This is a weird-looking line, but yea I can adjust the parser to support it. not can be stacked more than twice, just saying that more than two should parse fine as well. :3 Also SUPERSTRICT now allows empty functions. All other empty code blocks are reported. so these one...
by zorg
Sat Jan 16, 2021 4:37 am
Forum: General
Topic: Midi format music distortion
Replies: 4
Views: 1958

Re: Midi format music distortion

I'm assuming that libmodplug itself handles the "no timidity? use beeps" thing; it is probably also responsible for whatever timing issues happen; MIDI and tracker formats are not 1:1 compatible, so strange things can happen after it converts the data. Might be a neat idea to look at that fork, thou...
by zorg
Wed Jan 13, 2021 4:26 am
Forum: Libraries and Tools
Topic: SUPER STRICT for LUA
Replies: 27
Views: 2392

Re: SUPER STRICT for LUA

Others are allowed: local obj = {} function obj:baz() -- allowed because it's inside an object end while myFunc() do -- allowed because of the call to myFunc() end since : is just syntax sugar, are empty functions of this form allowed or not? i'd assume they are since they're in a table as well, du...
by zorg
Sun Jan 10, 2021 1:25 pm
Forum: Support and Development
Topic: [Solved] Pointing at an object that's out of sight
Replies: 14
Views: 1658

Re: [Solved] Pointing at an object that's out of sight

darkfrei wrote:
Sat Jan 09, 2021 8:55 pm
But (t==t) is always true.
Not for NaN values; those are the only ones where x==x is false.
by zorg
Sun Jan 03, 2021 6:45 am
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 15783

Re: Optimization Stuff

For you what is an example of a reasonably scaled game ? Something with multiple entities pathfinding on a large map, for example. Complex computation being done continuously. I guess Pacman is the minimal example to qualify, but even that's stretching. By that metric, Valve's Portal is not a reaso...
by zorg
Thu Dec 31, 2020 3:39 am
Forum: Support and Development
Topic: Function that switch values in a table
Replies: 2
Views: 755

Re: Function that switch values in a table

test[testselected] is equivalent to test[1] because testselected is equal to 1 initially. I'm assuming your switchTableParameter function would change testselected to the next value that's in range of the table's numeric indices (in this case, test contains 3 elements, so the param would be 1, 2 or ...
by zorg
Thu Dec 31, 2020 3:34 am
Forum: Support and Development
Topic: How to make sure someone actually beated a level/course?
Replies: 4
Views: 1001

Re: How to make sure someone actually beated a level/course?

Just one thing i wanted to mention, in case any confusion would arise; TAS or not, speedrunners are technically not malevolent cheaters, they just like finding ways to play the game differently than how the developers intended them to be played; some might not consider that cheating at all. :3
by zorg
Tue Dec 29, 2020 7:57 am
Forum: Libraries and Tools
Topic: Simple HTTPS loader in pure Lua
Replies: 2
Views: 659

Re: Simple HTTPS loader in pure Lua

Yep, me being on Win7 also precludes using the snippet since it also lacks powershell. Not sure if wget depends on curl that a relatively new Win10 build included natively (or so i heard) or not, because then the compatibility is even worse.
by zorg
Tue Dec 29, 2020 7:52 am
Forum: General
Topic: Canvas support 99% ?
Replies: 5
Views: 2287

Re: Canvas support 99% ?

Less officially, for switch homebrew, there's LövePotion, but that has its own set of limitations.
by zorg
Sun Dec 27, 2020 10:59 pm
Forum: Support and Development
Topic: Enet makes love2d not responding
Replies: 3
Views: 924

Re: Enet makes love2d not responding

Hi and welcome to the forums! The reason for that is that the two examples on that page are not meant for löve at all, so they both contain infinite loops (the while true do code block) that shouldn't be there; that's why it's not responding. Get rid of that, and put the contents of that block into ...