Search found 2311 matches

by pgimeno
Tue Sep 29, 2020 7:36 pm
Forum: Libraries and Tools
Topic: LuaPreprocess
Replies: 17
Views: 14727

Re: LuaPreprocess

Use the right tool for the job. This sums it up pretty concisely. If you don't see a need for it, maybe you don't have one. When you need it, it's there for you. There can be many uses for a preprocessor. One application that comes to mind is creating a demo version of a program without including t...
by pgimeno
Mon Sep 21, 2020 1:35 pm
Forum: Ports
Topic: Love.js - A Direct Emscripten Port
Replies: 171
Views: 163591

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: 1033

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: 1222

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: 1155

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: 3778

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: 3778

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: 3778

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: 3778

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...