Search found 602 matches

by grump
Thu Jan 30, 2020 2:12 pm
Forum: Support and Development
Topic: [SOLVED][STI]crash when map:resize
Replies: 8
Views: 537

Re: [STI]crash when map:resize

Calling :release() on the old canvas should help as well and is a more localized solution for the problem at hand.
by grump
Tue Jan 28, 2020 1:45 pm
Forum: Support and Development
Topic: How do I install on Linux system?
Replies: 5
Views: 374

Re: How do I install on Linux system?

You did not install love yet, you just added the repository to apt. Try

Code: Select all

sudo apt install love
by grump
Sun Jan 26, 2020 4:35 pm
Forum: Support and Development
Topic: IntelliJ or Zerobrane?
Replies: 8
Views: 480

Re: IntelliJ or Zerobrane?

Aside from console output, a typical text editor does not have Lua code debugging features.
by grump
Sun Jan 26, 2020 4:31 pm
Forum: Support and Development
Topic: event.quit() [solved]
Replies: 5
Views: 340

Re: event.quit()

It will only not quit if you have defined love.quit and it retuns something else than false or nil. In all other cases, it should quit. Not immediately though, it will quit after the next main loop iteration.
by grump
Sat Jan 25, 2020 7:56 pm
Forum: Support and Development
Topic: Is it possible to build an encrypted .exe?
Replies: 6
Views: 473

Re: Is it possible to build an encrypted .exe?

I'm offering my services: send me your LÖVE file under a confidentiality agreement, and I'll send back a package with your game that doesn't contain human-readable source code. I'm charging $49 USD per game. PM me for details.
by grump
Sat Jan 25, 2020 5:14 pm
Forum: Support and Development
Topic: Is it possible to build an encrypted .exe?
Replies: 6
Views: 473

Re: Is it possible to build an encrypted .exe?

It is possible, you just have to modify the LÖVE source code to make it parse your custom/encrypted archive format.
by grump
Sat Jan 25, 2020 2:37 pm
Forum: Support and Development
Topic: How to turn binary into characters and viceversa
Replies: 8
Views: 566

Re: How to turn binary into characters and viceversa

For 8-bit character bytes:

Code: Select all

local bits = {}
for i = 1, 8 do
	bits[i] = bit.band(byte, 2^(8-i)) > 0 and 1 or 0
end
Or for any number of bits:

Code: Select all

local bits = {}
local nbits = math.ceil(math.log(val) / math.log(2))
for i = 1, nbits do
	bits[i] = bit.band(val, 2^(nbits-i)) > 0 and 1 or 0
end
by grump
Mon Jan 13, 2020 2:19 pm
Forum: Support and Development
Topic: [SOLVED] How to create a simple encryption for a lua table?
Replies: 7
Views: 831

Re: How to create a simple encryption for a lua table?

I used your moonblob for binary serialization and then applied the encode/decode. Unfortunely, love.js does not port it (Something about FFI), so I will need to find other binary system or stick with Tserial, but that is a minor issue. moonblob is not the best choice for this anyways, because it fa...
by grump
Mon Jan 13, 2020 10:00 am
Forum: Support and Development
Topic: [SOLVED] How to create a simple encryption for a lua table?
Replies: 7
Views: 831

Re: How to create a simple encryption for a lua table?

I wouldn't mess with "real" encryption for this. You don't even care about hacks so just go with obfuscation and keep things as small as possible. - Serialize the data into a string. Use a binary serializer rather than one that outputs text for smaller and more obfuscated results - Compress the seri...
by grump
Mon Jan 06, 2020 2:24 pm
Forum: Support and Development
Topic: Execution speed varies wildly (47x) between (but not during) runs
Replies: 15
Views: 1833

Re: Execution speed varies wildly (47x) between (but not during) runs

I tested it too, and can confirm the observations. Simplifying the example code more would go a long way towards getting better answers here. I'd suggest removing complexity step by step until you find the culprit. Search the forums for "profiler", ivan released a lib that might be helpful here. it ...