Search found 2311 matches

by pgimeno
Sat Oct 10, 2020 8:22 pm
Forum: Support and Development
Topic: Created .exe, when running .exe error unable to load audio file
Replies: 26
Views: 1287

Re: Created .exe, when running .exe error unable to load audio file

Nine Iron wrote:
Sat Oct 10, 2020 4:05 pm
objects/sound.lua:1: attempt to index field 'audio' (a nil value)
This is the first time we get to see an error message. So, the first line of objects/sound.lua has something that upsets the interpreter, and it may well not be due to a problem with a file. What does that line look like?
by pgimeno
Sat Oct 10, 2020 11:24 am
Forum: Support and Development
Topic: Created .exe, when running .exe error unable to load audio file
Replies: 26
Views: 1287

Re: Created .exe, when running .exe error unable to load audio file

I bet if you move the .love file to another directory, it will give errors too. That's because it's still finding the files in your folder, out of the .love file (IIRC it doesn't search for them for fused programs). Check the letter case of the filename of the sound files and the font files, vs. wha...
by pgimeno
Sat Oct 10, 2020 12:24 am
Forum: Support and Development
Topic: Created .exe, when running .exe error unable to load audio file
Replies: 26
Views: 1287

Re: Created .exe, when running .exe error unable to load audio file

Check the case of the filenames. In the case of a zip file, they must match.

(That's the comment I deleted, I thought I was off the mark when I noticed that you said that it didn't work in the IDE either)
by pgimeno
Fri Oct 09, 2020 10:33 am
Forum: Games and Creations
Topic: Timer for actions
Replies: 1
Views: 249

Re: Timer for actions

Please don't open support requests in the Games and Creations forum. Use the Support and Development forum.

There are timer libraries readily available, or you can make your own.

The most popular is probably hump.timer from the hump suite: https://github.com/vrld/hump
by pgimeno
Mon Oct 05, 2020 9:38 am
Forum: Support and Development
Topic: Lua cannot load Love modules
Replies: 4
Views: 360

Re: Lua cannot load Love modules

When I try to run `love .` in an inferior REPL in emacs, nothing happens. As best I can tell, this is because Lua cannot import the `love.event` module: > lua You don't run Lua, you run Löve, which comes with its own embedded LuaJIT. When you run Löve, it is able to find all of its modules, and pre...
by pgimeno
Sun Oct 04, 2020 2:03 pm
Forum: Support and Development
Topic: Square Color Picker
Replies: 9
Views: 483

Re: Square Color Picker

May you please send an example? Attempt to do it, then if you run into issues: ask for help on those issues. That. ^ I'll just outline the procedure: function love.load() create the ImageData object here with format rgba8 ImageDataObject:mapPixel(function (x, y) do here what Xugro suggested, return...
by pgimeno
Sat Oct 03, 2020 11:31 pm
Forum: Support and Development
Topic: Square Color Picker
Replies: 9
Views: 483

Re: Square Color Picker

I'd suggest using ImageData (and its mapPixel method) for this purpose instead of a canvas.
by pgimeno
Tue Sep 29, 2020 8:03 pm
Forum: Libraries and Tools
Topic: easy way to render pixelart with PIX.lua
Replies: 5
Views: 3873

Re: easy way to render pixelart with PIX.lua

I know you're probably not checking this account anymore, but I'm trying to use your library and I'm having a bit of an issue. For a tutorial I'm following, you center the player character by dividing the height and width of the window by 2 and using that as your draw coordinates. I tried to use th...
by pgimeno
Tue Sep 29, 2020 7:56 pm
Forum: Libraries and Tools
Topic: Groverburger's 3D Engine (G3D) New and Improved!
Replies: 48
Views: 61103

Re: Groverburger's 3D Engine (G3D) New and Improved!

One thing I'm curious to test is if there's a performance increase by using love.math.Transform objects instead of Lua tables, since they can be used as 4x4 matrices. In my experience , calling engine functions through the standard interface is slower than calling FFI functions or pure Lua code (wi...