[Mod] Basic Materials [git][basic_materials]

rsslcs
New member
Posts: 2
Joined: Tue Jan 25, 2022 22:14
GitHub: rsslcs

Re: [Mod] Basic Materials [git][basic_materials]

by rsslcs » Post

Apologies as I'm new to Minetest; this mod is not staying enabled, and other mods are throwing an error as if this mod is missing. (technic mod pack for example) Indeed, I click "enable", save the change, but going back into the mod list shows the mod is disabled again.

Now, is this a problem with the mod, with minetest, another mod, with muh brain or what? :D Thanks a lot, I'm a bit stuck (clueless)

Cheers!

wsor4035
Member
Posts: 182
Joined: Sun Aug 11, 2019 21:23
GitHub: wsor4035
IRC: wsor
In-game: wsor

Re: [Mod] Basic Materials [git][basic_materials]

by wsor4035 » Post

j5uBLfc6NxgersvVj5D5dIsiKDkoQb0o

User avatar
T6C
Member
Posts: 119
Joined: Thu May 07, 2020 17:11
In-game: T6C

Re: [Mod] Basic Materials [git][basic_materials]

by T6C » Post

Just caught this. When I updated the basic_materials mod via git pull, the server would crash at startup with the error that it couldn't find /sound_api_core/init.lua. The sound_api_core directory was empty. After looking on Github, I found that sound_api_core was separated from basic_materials. I had to copy the files from there into the empty local directory, and then the server started without error.

SFENCE
Member
Posts: 280
Joined: Sun Sep 29, 2019 07:13
GitHub: SFENCE
In-game: SFENCE

Re: [Mod] Basic Materials [git][basic_materials]

by SFENCE » Post

T6C wrote:
Mon Feb 14, 2022 04:23
Just caught this. When I updated the basic_materials mod via git pull, the server would crash at startup with the error that it couldn't find /sound_api_core/init.lua. The sound_api_core directory was empty. After looking on Github, I found that sound_api_core was separated from basic_materials. I had to copy the files from there into the empty local directory, and then the server started without error.
It is a git repository with a submodule.
Command git pull is not enough to get it.

You should use this command git pull --recurse-submodules for example.
cdb_3P0AYqjEIn68

User avatar
T6C
Member
Posts: 119
Joined: Thu May 07, 2020 17:11
In-game: T6C

Re: [Mod] Basic Materials [git][basic_materials]

by T6C » Post

SFENCE wrote:
Mon Feb 14, 2022 07:04
It is a git repository with a submodule.
Command git pull is not enough to get it. You should use this command git pull --recurse-submodules for example.
Good to know. Should I be doing that with all Git-based mods, just to be safe?

SFENCE
Member
Posts: 280
Joined: Sun Sep 29, 2019 07:13
GitHub: SFENCE
In-game: SFENCE

Re: [Mod] Basic Materials [git][basic_materials]

by SFENCE » Post

T6C wrote:
Mon Feb 14, 2022 14:04
SFENCE wrote:
Mon Feb 14, 2022 07:04
It is a git repository with a submodule.
Command git pull is not enough to get it. You should use this command git pull --recurse-submodules for example.
Good to know. Should I be doing that with all Git-based mods, just to be safe?
Most Minetest mods do not include submodules. So I think It is good to know, but not necessary to be used always. But I expect no problems if you use it always when cloning/pulling without local changes.
cdb_3P0AYqjEIn68

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

Re: [Mod] Basic Materials [git][basic_materials]

by Blockhead » Post

T6C wrote:
Mon Feb 14, 2022 14:04
[Good to know. Should I be doing that with all Git-based mods, just to be safe?
You can tell if a mod uses git submodules by looking for the file .gitmodules. If you've pulled and see you're missing the contents of submodules, there's a handy quick reference on what commands to run over at pandora-box mods README. You can also see on that page that submodules are listed on GitHub with an @ <commit-hash> showing their version and a hyperlink if they're also on GitHub; other git hosts like GitLab, NotABug etc. may have similar functionality. This is something that might clue you in on submodules before you clone.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

User avatar
Linuxdirk
Member
Posts: 3216
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Basic Materials [git][basic_materials]

by Linuxdirk » Post

Yaaay, more complexity.

roscoeb
Member
Posts: 16
Joined: Fri Jan 21, 2022 22:27

Re: [Mod] Basic Materials [git][basic_materials]

by roscoeb » Post

hi
this error appears 2022-02-27 12:04:40: ERROR[Main]: ModError: Failed to load and run script from C:\Users\rozco.PC\Downloads\minetest-5.4.1-win64\minetest-5.4.1-win64\bin\..\mods\basic_materials-master\init.lua:
2022-02-27 12:04:40: ERROR[Main]: C:\Users\rozco.PC\Downloads\minetest-5.4.1-win64\minetest-5.4.1-win64\bin\..\mods\basic_materials-master/sound_api_core/init.lua: No such file or directory
2022-02-27 12:04:40: ERROR[Main]: stack traceback:
2022-02-27 12:04:40: ERROR[Main]: [C]: in function 'dofile'
2022-02-27 12:04:40: ERROR[Main]: ...5.4.1-win64\bin\..\mods\basic_materials-master/nodes.lua:2: in main chunk
2022-02-27 12:04:40: ERROR[Main]: [C]: in function 'dofile'
2022-02-27 12:04:40: ERROR[Main]: ...-5.4.1-win64\bin\..\mods\basic_materials-master\init.lua:11: in main chunk

wsor4035
Member
Posts: 182
Joined: Sun Aug 11, 2019 21:23
GitHub: wsor4035
IRC: wsor
In-game: wsor

Re: [Mod] Basic Materials [git][basic_materials]

by wsor4035 » Post

roscoeb wrote:
Sun Feb 27, 2022 12:06
hi
this error appears 2022-02-27 12:04:40: ERROR[Main]: ModError: Failed to load and run script from C:\Users\rozco.PC\Downloads\minetest-5.4.1-win64\minetest-5.4.1-win64\bin\..\mods\basic_materials-master\init.lua:
2022-02-27 12:04:40: ERROR[Main]: C:\Users\rozco.PC\Downloads\minetest-5.4.1-win64\minetest-5.4.1-win64\bin\..\mods\basic_materials-master/sound_api_core/init.lua: No such file or directory
2022-02-27 12:04:40: ERROR[Main]: stack traceback:
2022-02-27 12:04:40: ERROR[Main]: [C]: in function 'dofile'
2022-02-27 12:04:40: ERROR[Main]: ...5.4.1-win64\bin\..\mods\basic_materials-master/nodes.lua:2: in main chunk
2022-02-27 12:04:40: ERROR[Main]: [C]: in function 'dofile'
2022-02-27 12:04:40: ERROR[Main]: ...-5.4.1-win64\bin\..\mods\basic_materials-master\init.lua:11: in main chunk
you need the sound api core submodule, please read up for instructions on how to do this
j5uBLfc6NxgersvVj5D5dIsiKDkoQb0o

roscoeb
Member
Posts: 16
Joined: Fri Jan 21, 2022 22:27

Re: [Mod] Basic Materials [git][basic_materials]

by roscoeb » Post

ok thanks, will do :)

Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 2 guests