Search found 6 matches

by magus_vageta_fusion
Fri Mar 03, 2023 5:28 pm
Forum: General
Topic: (Linux) Making a shell script to launch main.lua will gain you access to the print() function.
Replies: 14
Views: 3658

Re: (Linux) Making a shell script to launch main.lua will gain you access to the print() function.

Before, I was making the .desktop file through the menus of the OS, and on the desktop. Counter to that, I then put your code in a text editor and saved it as a .desktop file. The file opens, but not without error 577. It seems that "$(dirname %f)" is never parsed. It does indeed seem like...
by magus_vageta_fusion
Fri Mar 03, 2023 4:59 pm
Forum: General
Topic: (Linux) Making a shell script to launch main.lua will gain you access to the print() function.
Replies: 14
Views: 3658

Re: (Linux) Making a shell script to launch main.lua will gain you access to the print() function.

A bash script file with just "love ." results in the following error: "575: No code to run" A custom launch command with only "love $(dirname %f)" results in the following error: "577: Cannot load game at path '/home/USERNAME/$(dirname'" (Note that my system u...
by magus_vageta_fusion
Fri Mar 03, 2023 4:18 pm
Forum: General
Topic: (Linux) Making a shell script to launch main.lua will gain you access to the print() function.
Replies: 14
Views: 3658

Re: (Linux) Making a shell script to launch main.lua will gain you access to the print() function.

I was just showing how to make a project launcher using a bash script. After being set up, it is the easiest way to launch a unpackaged love project. The script was then corrected with the direction of you helpful folks. However, the script i posted is only good for a bash script file. In Linux Mint...
by magus_vageta_fusion
Fri Mar 03, 2023 2:50 pm
Forum: General
Topic: (Linux) Making a shell script to launch main.lua will gain you access to the print() function.
Replies: 14
Views: 3658

Re: (Linux) Making a shell script to launch main.lua will gain you access to the print() function.

The reason i thought you needed sudo is because just calling love doesnt work. it says "unknown sequence number while processing queue". My guess is that the terminal closes before love has a chance to stop it. This is because I removed sudo, then added "sleep 30" to have time to...
by magus_vageta_fusion
Fri Mar 03, 2023 6:41 am
Forum: General
Topic: (Linux) Making a shell script to launch main.lua will gain you access to the print() function.
Replies: 14
Views: 3658

Re: (Linux) Making a shell script to launch main.lua will gain you access to the print() function.

then what's the proper way to make the bash script file? It works if you know and trust the OS and programs you are running, and I am open to better alternatives for the script... or perhaps your suggesting that the shell script file is the problem?
by magus_vageta_fusion
Fri Mar 03, 2023 1:01 am
Forum: General
Topic: (Linux) Making a shell script to launch main.lua will gain you access to the print() function.
Replies: 14
Views: 3658

(Linux) Making a shell script to launch main.lua will gain you access to the print() function.

I wanted to make a .sh launcher for main.lua on Linux Mint. I worked out the script, then learned that print functions can be seen in the terminal window. I figured that this would be useful to share, since I had happened to catch on to it myself. The bash script is below. It will open love, pointin...