Search found 1471 matches

by zorg
Mon Mar 27, 2017 9:39 am
Forum: Support and Development
Topic: Need an efficient binary networking example for server & clients.
Replies: 21
Views: 441

Re: Need an efficient binary networking example for server & clients.

First, i do want to apologize for my tone earlier, the whole thread feels/felt like a massive miscommunication, to put it mildly, so i was a bit aggravated. Still, let me try to summize as concisely as i can, and let me give you an example of what i meant by using unions. net.Begin( "UpdatePlayer" )...
by zorg
Mon Mar 27, 2017 5:20 am
Forum: Support and Development
Topic: Need an efficient binary networking example for server & clients.
Replies: 21
Views: 441

Re: Need an efficient binary networking example for server & clients.

The issue is networking in any lua library I've seen is string based (as opposed to binary). So the idea is to pack binary data into a string which will allow me to squeeze as much networking performance out of it as possible. The cpu/ram cost is negligible in my specific usage case. His issue is s...
by zorg
Sun Mar 26, 2017 11:13 am
Forum: Support and Development
Topic: love.filesystem does not work on Android 6.0+
Replies: 2
Views: 76

Re: love.filesystem does not work on Android 6.0+

local body, code = http.request("mydomain/game.love") if not body then error(code) end file = love.filesystem.newFile( "game.love" ) file:open("w") file:write(body) file:close() The download part does not throw an error but when i try to load it the app just resets so i assume there is nothing on t...
by zorg
Sat Mar 25, 2017 4:14 am
Forum: Libraries and Tools
Topic: lua-ibyte [simple, plaintext compression]
Replies: 3
Views: 147

Re: lua-ibyte [simple, plaintext compression]

But LOVE already has data compression engines built in. This imo was nothing more than fun data obfus -(Also please implement me a lib that supports all existing, obscure, archaic, forgotten, not-yet-invented, not-yet-patent-free already-patent-free patent:"it's complicated" data de/compressors pls...
by zorg
Fri Mar 24, 2017 11:49 pm
Forum: Libraries and Tools
Topic: lua-ibyte [simple, plaintext compression]
Replies: 3
Views: 147

Re: lua-ibyte [simple, plaintext compression]

Hi and welcome to the forums! A few months ago I found myself entertained with breaking down files into binary data, then converting that binary data into an image to look at (for who knows what reason...) comprised of each pixel (either black or white) signifying a binary switch Data munging like t...
by zorg
Fri Mar 24, 2017 2:59 pm
Forum: Support and Development
Topic: Calling other languages from love2d?
Replies: 16
Views: 405

Re: Calling other languages from love2d?

Ok, let's make it short; lua has no native integer support. The arrays starting with one are a little bit painful sometimes; For example, when you have an canvas of width 800, i goes from 0 to 799 in löve2d, but arrays go from 1 to 800, by default. Next, when you wrap around, you could write pos=(p...
by zorg
Thu Mar 23, 2017 3:02 pm
Forum: Support and Development
Topic: How to time keypresses
Replies: 9
Views: 246

Re: How to time keypresses

I've had an issue with my code, this line returns an error- "attempt to index local 'tbl' (a number value)" I updated to the newest version of Love. You're probably getting that error because i had an error in my code; that's what i get for not testing it beforehand. :P I went through it again, did...
by zorg
Thu Mar 23, 2017 2:54 pm
Forum: Games and Creations
Topic: [LD24] The Last Slime (done using Raycast)
Replies: 10
Views: 2287

Re: [LD24] The Last Slime (done using Raycast)

yetneverdone wrote:
Thu Mar 23, 2017 12:44 pm
Awww too bad, the link of the game is not working anymore
Necroposting aside, welcome to 2017, where Dropbox decided to ruin the internet by invalidating billions of links.
by zorg
Thu Mar 23, 2017 4:44 am
Forum: Support and Development
Topic: How to time keypresses
Replies: 9
Views: 246

Re: How to time keypresses

Hi and welcome to the forums! First, love.timer.getMicroTime doesn't accept parameters, so that's wrong. Second, it's strongly recommended to use the latest löve version, unless your computer's specs can't run it (mostly due to the gpu being old). In any case, there are a few ways to accomplish what...
by zorg
Thu Mar 23, 2017 4:00 am
Forum: Support and Development
Topic: Large Meta-Table Serialization
Replies: 4
Views: 129

Re: Large Meta-Table Serialization

Also, tables in tables are often called nested tables instead.