Search found 1892 matches

by raidho36
Sun Oct 13, 2019 2:43 pm
Forum: Support and Development
Topic: .love file not working
Replies: 2
Views: 89

Re: .love file not working

Make sure your package structure looks like this:

Code: Select all

game.love /
  +-main.lua
  +-conf.lua
  |
by raidho36
Thu Oct 10, 2019 11:30 pm
Forum: Support and Development
Topic: A problem with Sock.lua library
Replies: 5
Views: 191

Re: A problem with Sock.lua library

Address indicates on which IP the server is going to run. You usually want to use asterisk ( "*" ) or "localhost" for server IP when you create it.
by raidho36
Tue Oct 08, 2019 11:36 am
Forum: Support and Development
Topic: More granular control of music loops and using tracker files
Replies: 11
Views: 714

Re: More granular control of music loops and using tracker files

Couldn't it support specifying the seek position in samples, just as streaming sources do, for consistency? I suppose it could, if someone implemented it. It should be just a few lines of code, most of which can be copy-pasted from /modules/audio/openal/source.cpp. But, again, decoders internally d...
by raidho36
Tue Oct 08, 2019 9:27 am
Forum: General
Topic: Lua encoding
Replies: 13
Views: 780

Re: Lua encoding

Well that's literally what crackers and hackers do so you can't hope to stop people or even meaningfully impede them. And when someone wants to rip you off, they wouldn't even use any of your stuff, they'll just make a close enough copy. Again, don't worry about it.
by raidho36
Tue Oct 08, 2019 6:36 am
Forum: Support and Development
Topic: More granular control of music loops and using tracker files
Replies: 11
Views: 714

Re: More granular control of music loops and using tracker files

Also mind the OpenAL's internal refresh rate of 50 Hz. This puts a lower limit on how short a buffer you can use with queueable sources. Since manual playback is affected by FPS hiccups which can cause buffer underflow and stutter, it's advisable to put that into a separate thread running at a consi...
by raidho36
Tue Oct 08, 2019 5:48 am
Forum: Support and Development
Topic: More granular control of music loops and using tracker files
Replies: 11
Views: 714

Re: More granular control of music loops and using tracker files

I can't seem to seek forward in the docoder. Have I seriously forgot to add seek to decoder? No, it can't be. *double checking the source code* *crafting a demo to make sure* Decoders have ":seek" function, works the same* as for streaming sources (they're basically a decoder + qsource but transpar...
by raidho36
Mon Oct 07, 2019 7:03 pm
Forum: General
Topic: Lua encoding
Replies: 13
Views: 780

Re: Lua encoding

Everything can be decompiled so don't worry about it. If you're worried that someone will steal your great software invention - don't oversell yourself. It will at best be something that million other people already did and millions more will do without your input. There's nothing you can come up wi...
by raidho36
Mon Oct 07, 2019 8:32 am
Forum: Support and Development
Topic: The big problem with loops running at the same time, about destroying objects and asking about how loops work
Replies: 21
Views: 1144

Re: The big problem with loops running at the same time, about destroying objects and asking about how loops work

Short answer is "don't worry about it". You'll gradually improve over time, you don't need to put any specific conscious effort towards it (mainly because it's a cognitive skill so you improve by radically changing it and not by refining & reinforcing it). Don't expect any quick success though, it u...
by raidho36
Mon Oct 07, 2019 6:51 am
Forum: Support and Development
Topic: The big problem with loops running at the same time, about destroying objects and asking about how loops work
Replies: 21
Views: 1144

Re: The big problem with loops running at the same time, about destroying objects and asking about how loops work

Code: Select all

if enemy ~= nil then
This is the same as "if enemy then" because everything except nil and false resolves to true.
by raidho36
Sun Oct 06, 2019 2:35 am
Forum: Support and Development
Topic: More granular control of music loops and using tracker files
Replies: 11
Views: 714

Re: More granular control of music loops and using tracker files

You can manually decode your audio stream and feed it into a queueable source, to produce seamless transition between different points on the track. As for tracker music formats, LOVE uses a simple tracker player which doesn't have many features. You can however hook up a different player via FFI.