Search found 166 matches

by Helvecta
Tue Jan 15, 2019 5:20 am
Forum: Libraries and Tools
Topic: [Notepad++] Launch Project From Any File
Replies: 0
Views: 1848

[Notepad++] Launch Project From Any File

Howdy :crazy: For Notepad++ users, here's a quick post about how to launch your LOVE2D project from any open file under that project's directory. In short, no more of this: boot.lua:479: No code to run Your game might be packaged incorrectly. Make sure main.lua is at the top level of the zip. 1.) In...
by Helvecta
Wed Apr 06, 2016 1:04 am
Forum: General
Topic: L2D Nemo/Vim/Sublime Text 3 Integration for Debian
Replies: 2
Views: 1937

Re: L2D Nemo/Vim/Sublime Text 3 Integration for Debian

For Sublime Text Integration, follow these instructions: 1.) take the below code and save it as "build.sh" wherever you like: #!/bin/bash path="$1"; subCount=$(echo "$path" | grep -o "/" | wc -l); for ((i=$subCount-1; i>=1; i--)); do testPath=$(echo "$path" | grep -ow "\(/[^/]*\)\{$i\}"); if [ -f "$...
by Helvecta
Mon Mar 07, 2016 12:40 am
Forum: Support and Development
Topic: [10.1, SOLVED] imagedata as string UTF-8 issues
Replies: 6
Views: 1386

Re: [10.1] imagedata as string UTF-8 issues

Aha! Got it. Using UDP, splitting the string into portions and sending it piece by piece does work correctly, I just wasn't splitting the string correctly. Thanks for the advice though, Hugo, that'd work if I were sending low amounts of data.
by Helvecta
Sun Mar 06, 2016 1:20 am
Forum: Support and Development
Topic: [10.1, SOLVED] imagedata as string UTF-8 issues
Replies: 6
Views: 1386

Re: [10.1] imagedata as string UTF-8 issues

It is definitely a buffer issue, since sending smaller images doesn't cause them to get cut off midway. The large image used in my second post is 31387 bytes in size, but something is restricting my packet size to 8192 bytes at a time, meaning that the rest of the information is truncated. I know th...
by Helvecta
Sat Mar 05, 2016 8:47 pm
Forum: Support and Development
Topic: [10.1, SOLVED] imagedata as string UTF-8 issues
Replies: 6
Views: 1386

Re: [10.1] imagedata as string UTF-8 issues

Thanks for your advice! I can now send most of the string, I believe. It seems to get truncated during transfer, resulting in a cut-off image, as seen in the two love files below (run the server first, run the client, then press any key on the client; the file will be saved in the L2D save directory...
by Helvecta
Sat Mar 05, 2016 5:29 pm
Forum: Support and Development
Topic: [10.1, SOLVED] imagedata as string UTF-8 issues
Replies: 6
Views: 1386

[10.1, SOLVED] imagedata as string UTF-8 issues

Hello world, I'm trying to send an image over a network using LUBE. I thought the best way to do it would be to send the imagedata as a string then convert it back on the other end, but I'm having some issues. When I convert an image to imagedata, it's all good, but when I change the imagedata to a ...
by Helvecta
Mon Jun 29, 2015 11:09 pm
Forum: Support and Development
Topic: pcall on newImage Function Returns string Type
Replies: 2
Views: 616

Re: pcall on newImage Function Returns string Type

Oh, that's embarrassing, I'm a dumby.. I forgot that pcall functions that way. I know that "err" is a boolean, though, but it flows better than "isNotError". Thanks for letting me know, though! And sorry for wasting your time. :)
by Helvecta
Mon Jun 29, 2015 9:05 pm
Forum: Support and Development
Topic: pcall on newImage Function Returns string Type
Replies: 2
Views: 616

pcall on newImage Function Returns string Type

Been doing some testing on 0.9.2 and it seems that pcall on the newImage function returns a string :( Tasty example: function love.load() meow = love.graphics.newImage("test.png") error(type(meow)) end returns: main.lua:3: userdata but then: function love.load() err, meow = pcall(love.graphics.newIm...
by Helvecta
Tue Feb 10, 2015 2:58 am
Forum: Libraries and Tools
Topic: Microphone Support for LÖVE!
Replies: 62
Views: 16373

Re: Microphone Support for LÖVE!

How do I use this? Like, do I slap this into a directory, then, in love.load put mic=require("I don't know") ? How do I use this? I really don't know the language of anything that is not lua. Here's the snippet that LPGhatguy included in the samples. Check out the code in main.lua, you only need to...
by Helvecta
Sat Sep 27, 2014 12:21 am
Forum: General
Topic: L2D Nemo/Vim/Sublime Text 3 Integration for Debian
Replies: 2
Views: 1937

Additional Information

Okay, I sat down today over the past year and wrote a comprehensive script to open LOVE2D projects. This is quick and dirty because no self-respecting person should learn bash, but this script is sufficient all the same. This script works on opening .love files, .zip files, directories that have "ma...