I would like to preface this, by stating that all of the resources I've looked up on the wiki are very outdated for Linux.
First off, VTE integration. Open up your package manager/terminal/software manager and search vte and the vte terminal package will come up. Install it.
Now integrate it in the settings -> terminal tab:
Okay great! Now let's get serious. Navigate to Build -> Set Build Commands.
Add a Preset into Lua Commands called build .love file, set the command to zip -r packaged_game.love *, and change the working directory to %p.
Next change the Execute command to love "%p".
It should look like this:
That's it, now you can build and run programs without issues.
Integrating Love Into Geany
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- jordan4ibanez
- Prole
- Posts: 24
- Joined: Sun Dec 30, 2012 7:22 pm
Integrating Love Into Geany
Check out my Github: https://github.com/jordan4ibanez/
It's a dumpster
It's a dumpster
Re: Integrating Love Into Geany
I've written a Lua script that scans the Love source and generates a tag file for Geany auto-completion. Place the tags file in ~/.config/geany/tags/ and restart Geany.
geany-love-tag-gen.lua
generated love.lua.tag for Love 0.10.2
geany-love-tag-gen.lua
generated love.lua.tag for Love 0.10.2
Re: Integrating Love Into Geany
I updated the Geany tags to version 11.1 of the LÖVE sources.
https://gist.github.com/wesleywerner/61 ... 6c9c8b151e
https://gist.github.com/wesleywerner/61 ... 6c9c8b151e
Re: Integrating Love Into Geany
Thank you all for sharing these informations .
I thought I'll share my Windows-Configuration which could be useful for others^^:
I thought I'll share my Windows-Configuration which could be useful for others^^:
- Using 7-Zip to build a "game.love"-file
Install 7-Zip which can be used to create .love-files. Add following:Also add %p as Working Directory, replace "C:\Program Files\7-Zip" if needed. (The Directory where you have installed 7-Zip)Code: Select all
cmd /c "del game.love & "C:\Program Files\7-Zip\7z.exe" u -xr0!game.love -xr0!bin/ -tzip game.love *"
Also add following:Also add %p as Working Directory, replace "C:\Program Files\7-Zip" if needed. (The Directory where you have installed 7-Zip)Code: Select all
"C:\Program Files\7-Zip\7z.exe" u -xr0!game.love -xr0!bin/ -tzip game.love *
- Sometimes it's necessary to delete "game.love" (First Command), because 7-Zip doesn't delete any file, which can bloat up your "game.love". For example, if you add many Assets in an early state of your Game, these Assets will remain in your "game.love" forever, even if you deleted it from your Source-Directory. That's why I added a "Build completely new"-Option in Geany^^.
The Second Command doesn't delete "game.love", but as an Advantance, it will only compress new Files, which can be useful. For example, if you have GB-sized Assets, it won't be compressed again, which saves time to recreate "game.love"^^.
- Sometimes it's necessary to delete "game.love" (First Command), because 7-Zip doesn't delete any file, which can bloat up your "game.love". For example, if you add many Assets in an early state of your Game, these Assets will remain in your "game.love" forever, even if you deleted it from your Source-Directory. That's why I added a "Build completely new"-Option in Geany^^.
- On "Execute", replace "love" with "lovec"
That's because Geany-Windows doesn't have VTE, so perhaps it's a good idea to use lovec.exe, because you can see a Terminal and some self-programmed Debug-Infos like Luas "print"-Statements^^.
Add following:Also leave Working-Directory empty, replace "C:\Program Files (x86)\LOVE" if needed. (The Directory where you have installed LOVE)Code: Select all
"C:\Program Files (x86)\LOVE\lovec.exe" "%p"
- Create Windows-Executable
That Thing need a bit of work.- First, Copy these Lines:
Code: Select all
MKDIR %1\bin copy *.dll %1\bin\ copy love.exe %1\bin\ copy license.txt %1\bin\ cd %1\bin copy ..\game.love . copy /b love.exe+game.love game.exe del game.love love.exe
- Save these Lines in a new File called "love2exe.bat".
- Move this File into the Directory where you installed LOVE.
- Add following Line in Geany:
Replace "C:\Program Files (x86)\LOVE" if needed. (The Directory where you have installed LOVE).
Code: Select all
cmd /c ""C:\Program Files (x86)\LOVE\love2exe.bat" "%p""
- As "Working-Directory", add following Line:
Replace if needed. (The Directory where you have installed LOVE).
Code: Select all
C:\Program Files (x86)\LOVE\
- First, Copy these Lines:
-
- Prole
- Posts: 1
- Joined: Wed Dec 23, 2020 9:59 am
Re: Integrating Love Into Geany
Neither the pregenerated tags nor the ones I generated with you script from the newest source worked completely. While some functions, like setLinearVelocity and others from Box2D were given tags, most weren't (e.g. love.graphics.rectangle, etc). Is there something I am missing?kbmonkey wrote: ↑Fri Aug 31, 2018 5:41 am I updated the Geany tags to version 11.1 of the LÖVE sources.
https://gist.github.com/wesleywerner/61 ... 6c9c8b151e
Re: Integrating Love Into Geany
@GestaltEngine, it seems like the first revision of my generated tags file contains the rectangle definition while the second revision does not. I guess there is a bug in the script. It will need debugging and fixing.
I have work deadlines and lack time. The code is MIT/BSD compatible so feel free to fork and fix it. I might decide to debug the script as a weekend project in the future, but I can't promise anything.
I have work deadlines and lack time. The code is MIT/BSD compatible so feel free to fork and fix it. I might decide to debug the script as a weekend project in the future, but I can't promise anything.
Who is online
Users browsing this forum: Ahrefs [Bot] and 5 guests