Of all the apps I've built, perhaps my favorite is...
# devlog-together
k
Of all the apps I've built, perhaps my favorite is https://git.sr.ht/~akkartik/snap.love, my box and line drawing tool. I use it constantly -- including for work. I have a terrible short term memory, and now I make quick mindmaps for every little situation where a full-screen IDE on a huge monitor is too tiny to show all the parts of the codebase I care about right now. I seldom mess with it, but today I modified it to show gridlines any time I drag things around. Should lead to neater maps!
🎸 2
❤️ 3
🍰 3
m
I've installed löve app and snap.love on my mac but get an error that a folder needs to exist at the specified path. I've created the folder "graph" in the directory where snap.love and love.app are located. But that doesn't work. What should be the correct path name?
k
graph
should be a file not a folder, but it should also not need to be created. The app will do it for you. Did you try without creating it first and still see the same error? Are you running from the terminal? Could you share the command you use? To just click on the app to open, do the following: • Move the snap.love folder to something else, say just
snap
. • Go into the folder and create a zip file out of all the contents, say
snap.zip
. (Feel free to leave out `assets`; it's just images for the Readme and will blow up the zip file.) • Rename the .zip file you created to a .love extension, say
snap.love
. • Now you should be able to move the
snap.love
file anywhere and open it by double-clicking on it. The important thing is that the
.love
file has to be a "zip bomb". Expanding it shouldn't create a top-level directory. Hence the going into the folder in step 2 before creating the .zip. Does any of this help? Thanks for trying it out!
Oh, could you also send me the whole error you saw? If LÖVE is creating a blue screen, ctrl-c should copy the message to your clipboard. I don't quite understand why you're getting an error, hence all the questions.
m
[love "boot.lua"]330 Cannot load game at path '/Users/audax/Development/kartik/snap.love'. Make sure a folder exists at the specified path. Traceback [love "callbacks.lua"]228 in function 'handler' [C]: in function 'error' [C]: in function 'xpcall' [C]: in function 'xpcall'
I'll try out your instructions later on today, no problem
❤️ 1
k
And what was the command that got this error, if you were running it from a terminal.
m
This was from my first test, by clicking on the snap.love file
k
Thank you! I see, so snap.love is a file? And where did you get the file from? Sorry my memory is terrible. To my knowledge this particular app is only published as a repo which you should have as a directory..
m
Ah, I think I understand.. i tried downloading it via your link directly but probably didn't get a correct file (when visiting that link I see the repo). I'll follow your instructions which you wrote here
k
Yeah, thank you. Basically you'll need to run
git clone
on the repo link above first before those instructions. Hold on, let me just get you a .love file anyway for your convenience.
m
No rush, because I need to do some work in the garden first 😊
😊 1
k
m
It works now! I didn't clone your repo at first, which was a simple oversight from myself...😊
❤️ 1
k
Creating a .love file is klunky 😕 Do you think it would have been more obvious you had to clone if the link was github?
m
I was looking for a link where I could download the .love file directly
💯 1
k
Yeah I should just make that available like I do for https://akkartik.name/lines.love It's also confusing that the repo name is identical to the artifact it creates. The gap between the two is small, but still..
Update: you can now download the .love file directly from https://akkartik.name/snap.love I'll keep it up to date as I make changes.
❤️ 1
m
Thanks, I'll download it today. I already tried out some of your other löve apps (sokoban) and I also want to try out the editing environment you're working on
❤️ 1