Search found 2279 matches

by pgimeno
Mon Sep 21, 2020 1:35 pm
Forum: Ports
Topic: Love.js - A Direct Emscripten Port
Replies: 157
Views: 156238

Re: Love.js - A Direct Emscripten Port

Note that in WebGL you are not allowed to initialize your externs so: extern number scale = 1; Well. True. But it used to work. You do not see shaders compilation warnings automatically. Löve does not perform any syntax analysis of the code beyond some very basic checks. Compilation of GLSL is perf...
by pgimeno
Thu Sep 17, 2020 2:20 pm
Forum: Libraries and Tools
Topic: Screen wipe/transition shader
Replies: 2
Views: 635

Re: Screen wipe/transition shader

Nice effect! I wonder though, could it be done with a greyscale texture? For example: http://www.formauri.es/personal/pgimeno/temp/crossfade-patterns.png Or of course, anything else you can draw with a black-white gradient, e.g. spiral: https://www.filterforge.com/filters/6027.html or spotted or fra...
by pgimeno
Thu Sep 17, 2020 10:18 am
Forum: Support and Development
Topic: Why aren't my quads drawing?
Replies: 2
Views: 903

Re: Why aren't my quads drawing?

Every thing I can think to print to console to debug and verify looks fine. So you have that luxury but you don't allow it to us... :cry: I've made a runnable program out of your snippets, but next time please do that yourself. Help us help you. If you don't want to share all of your code, just mak...
by pgimeno
Wed Sep 16, 2020 8:27 pm
Forum: General
Topic: Calling a previous file
Replies: 2
Views: 820

Re: Calling a previous file

It's a little problem of Android, you can't use different folders, you're limited to the lovegame folder, or to using .love files. Here's what you can do: To run several different Lua files in Android, I suggest you have a file called main.lua which only requires the file you want to run and does no...
by pgimeno
Wed Sep 16, 2020 5:23 pm
Forum: Support and Development
Topic: 'untrusted' code
Replies: 10
Views: 3027

Re: 'untrusted' code

The reason why running umc (UserMadeContent) code on the server would require people to limit its cpu usage is simply that the server shouldn't become become unresponsive (for probably many players in case that the server hosts multiple games) if one umc author writes bad code. Minetest has been ru...
by pgimeno
Tue Sep 15, 2020 12:29 pm
Forum: Support and Development
Topic: 'untrusted' code
Replies: 10
Views: 3027

Re: 'untrusted' code

Yes, it seems now, sooner or later, the server must move from Löve to another framework. Most likely the best solution is to come up with another c++ host that links to the love2d library for providing the filesystem features (savedir, mounting zips, etc). If that's really all you need to use from ...
by pgimeno
Tue Sep 15, 2020 11:48 am
Forum: Support and Development
Topic: 'untrusted' code
Replies: 10
Views: 3027

Re: 'untrusted' code

I agree that a centralized server can indeed be beneficial to thwarting cheating, but i don't see how that has anything to do with guaranteeing that the clients don't softlock the computers they run on. [...] Now pgimeno mentioned DoS attacks... if we're only talking about the worry that a client c...
by pgimeno
Tue Sep 15, 2020 12:30 am
Forum: Support and Development
Topic: 'untrusted' code
Replies: 10
Views: 3027

Re: 'untrusted' code

If you want to protect against DoS (infinite or very long loops, memory exhaustion), it's a hell. I'd advise you to look into a different language or framework. If protecting against DoS is not a requirement, it's still a hell but not so much. Besides blocking bytecode, you need to include only safe...
by pgimeno
Mon Sep 14, 2020 10:40 am
Forum: Support and Development
Topic: Getting a key as a number
Replies: 8
Views: 3269

Re: Getting a key as a number

Sorry, I should've added a use case. I want to do: if var[2] > 1 then ~other stuff Right now, that won't work, because var[2] is a table. I want to eval that "2" there, as a number. The 2 is a value itself. Taken at face value, the answer to your question is: if 2 > 1 then ~other stuff But I have t...
by pgimeno
Sun Sep 13, 2020 7:24 pm
Forum: Ports
Topic: Love.js - A Direct Emscripten Port
Replies: 157
Views: 156238

Re: Love.js - A Direct Emscripten Port

ivan wrote:
Sun Sep 13, 2020 5:53 pm

Code: Select all

Error: [string "boot.lua"]:530: conf.lua:21: attempt to index a nil value
What about showing what conf.lua line 21 does?