[Solved] where to manually install mods using flatpak?

Post Reply
monkeypox
Member
Posts: 24
Joined: Thu Nov 03, 2022 00:45

[Solved] where to manually install mods using flatpak?

by monkeypox » Post

[Solved]
When I downloaded then extracted the mods they extracted into a directory within a directory.
For example /tubelib/tubelib/ rather than just /tubelib/ as I thought.
Why it did this i don't know but thanks for the help guys, learned something new at least.


using ubuntu. I found /var/lib/flatpak/app/net.minetest.Minetest which leads to the mods folder in many different ways.
I get the error
and can't find debug.txt

ModError: Failed to load and run script from /app/share/minetest/games/minetest_game/mods/tubelib2/init.lua:
/app/share/minetest/games/minetest_game/mods/tubelib2/init.lua: No such file or directory
Check debug.txt for details.
Last edited by monkeypox on Tue Dec 27, 2022 16:51, edited 1 time in total.

User avatar
snoopy
Member
Posts: 263
Joined: Thu Oct 20, 2016 16:49
Location: DE, European Union

Re: where to manually install mods using flatpak?

by snoopy » Post

Hi,

Sorry to hear of your mishap.

One possible solution to find the respective file would be a general search from the command line (CLI) with the find command like:

Code: Select all

$ find / -name debug.txt -print 2>&1 | grep debug.txt
Please be aware this will scan your complete system and may take some time.

Explainer: This is a command pipe on the Shell and the output from the search should be filtered by GREP to avoid a bunch of warnings from unreachable folders. The "2>&1" part is redirecting stderr to stdout so you should see no warnings as these get filtered out when not containing an error with 'debug.txt' itself.

Certainly this search will provide more than one 'debug.txt' but you should easily identify the correct path by yourself, I presume.

If unsure, please look into the System Manual on your PC with:

Code: Select all

$ man find

$ man grep

$ man sudo
There should be no need for any 'sudo' and please always consider both the safety of your data and the system security first if approaching the Admin role on your system. Better safe than sorry.

A more comprised guide for Beginners/BashScripting on Ubuntu Linux should be available at:
Hope this helps.

Please note I am not familiar with the particularities of the apparent build package you are using and will leave this to some experts on this. However, feel free to ask again.

User avatar
Blockhead
Moderator
Posts: 2987
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: where to manually install mods using flatpak?

by Blockhead » Post

Here's a Reddit thread that should tell you where you need to put the files under flatpak. Let me know if that helps.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

User avatar
Tuxilio
Member
Posts: 144
Joined: Mon Nov 28, 2022 12:18
In-game: tuxilio
Contact:

Re: where to manually install mods using flatpak?

by Tuxilio » Post

Hi,

i've installed Minetest via Flatpak too. The folder is:

Code: Select all

/var/lib/flatpak/app/net.minetest.Minetest/
for the engine and

Code: Select all

/home/USER/.var/app/net.minetest.Minetest/.minetest/
for the mods.

Merry Christmas and a happy new year!

I hope this helps
Tuxilio

monkeypox
Member
Posts: 24
Joined: Thu Nov 03, 2022 00:45

Re: where to manually install mods using flatpak?

by monkeypox » Post

thanks guys. I did find both of those folders so now i know where debug.txt is
but my default mods folder is located /var/lib/flatpak/app/net.minetest.Minetest
which then has 3 directories which lead to /share/minetest/games/minetest_game/mods a few clicks later. No matter which way i choose they all lead to a "mods" folder/mirror i guess because they all contain the mods i added. When i'm at minetest menu to start my single player game I can see all my mods there. They're being recognised but somehow giving a location error it seems. I don't get it it. Permissions maybe? The mods are right along side the default mods like "beds" "butterflies" ect.

User avatar
Blockhead
Moderator
Posts: 2987
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: [Solved] where to manually install mods using flatpak?

by Blockhead » Post

For any users looking for the files post-renaming to Luanti, these directories would now be named org.luanti.luanti, in the same locations.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests