Page 1 of 1

Mod Loading Error Message

PostPosted: Sat Jul 11, 2015 13:34
by ConfusedMonster
Hello I am having trouble with my mods loading in game. I hope this is all the info you need.

I am using version 04.10 on a Windows 7 and it works great.


However, I can't load mods. I get this: "No such file or directory" error, and I've looked it up I get the same as what this person gets https://forum.minetest.net/viewtopic.php?f=6&t=11160.
This is what I get with any of the mods listed below:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
05:54:18: ERROR[main]: ========== ERROR FROM LUA ===========
05:54:18: ERROR[main]: Failed to load and run script from
05:54:18: ERROR[main]: C:\minetest-0.4.10\bin\..\mods\mobs\init.lua:
05:54:18: ERROR[main]: cannot open C:\minetest-0.4.10\bin\..\mods\mobs\init.lua: No such file or directory


I've read Kronk's answer in the post above and I don't really understand it, I'm a little dumb with this kind of stuff, I've never coded, programmed, modded or anything like that, so please explain the solutions thoroughly.
Also I am following the directions as https://forum.minetest.net/viewtopic.php?f=11&t=10029 says, to my best understanding, however I am still getting this error.

I have attempted to install the following mods: Carts, Simple Mobs, and MoreOres.
For the Carts mod I have tried the old version as well and I get the same error message, I haven't the luck to find the older versions of the other mods. (if you have a link please link me if you think it might work)
I have uninstalled and reinstalled them all, and it still isn't working properly.

Do some of these mods just don't work with the 04.10 version of Minetest?
Do I need to modify/rename my init.lua file?

Please help it would be greatly appreciated, also please remember to explain if I need to do any changes to the mod itself thoroughly, sadly as though you are talking to a child, I am a noob after all, lol.

Re: Mod Loading Error Message

PostPosted: Sat Jul 11, 2015 14:20
by rubenwardy
You'll probably find that there is no init.Lua file in mobs. You probably installed it incorrecty - at a guess there will be another folder in the mobs folder which has the init.Lua file in it. You need to take out all the files in that folder and place it in the mobs folder.

Re: Mod Loading Error Message

PostPosted: Sat Jul 11, 2015 14:41
by ConfusedMonster
rubenwardy wrote:You'll probably find that there is no init.Lua file in mobs. You probably installed it incorrecty - at a guess there will be another folder in the mobs folder which has the init.Lua file in it. You need to take out all the files in that folder and place it in the mobs folder.


There is a init.Lua file in my mobs folder.
this is where it is: Minetest-0.4.10/mods/mobs/mob
So I need to move what exactly? I installed it exactly the way the instructions said too.

Re: Mod Loading Error Message

PostPosted: Sat Jul 11, 2015 14:44
by Calinou
This is the directory structure of the carbone_mobs mod:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
carbone_mobs
├── api.lua
├── depends.txt
├── init.lua
├── models
│   ├── mobs_dirt_monster.png
│   ├── mobs_dungeon_master.png
│   ├── mobs_dungeon_master.x
│   ├── mobs_oerkki.png
│   ├── mobs_oerkki.x
│   ├── mobs_rat.png
│   ├── mobs_rat.x
│   ├── mobs_rhino.png
│   ├── mobs_sand_monster.png
│   ├── mobs_sand_monster.x
│   ├── mobs_sheep.png
│   ├── mobs_sheep_shaved.png
│   ├── mobs_sheep_shaved.x
│   ├── mobs_sheep.x
│   ├── mobs_stone_monster.png
│   ├── mobs_stone_monster.x
│   ├── mobs_tree_monster.png
│   └── mobs_tree_monster.x
├── README.txt
├── sounds
│   ├── hit_death.ogg
│   ├── hit.ogg
│   ├── mobs_bullet.ogg
│   ├── mobs_fireball_explode.ogg
│   ├── mobs_fireball.ogg
│   ├── mobs_punch.ogg
│   ├── player_damage.1.ogg
│   ├── player_damage.2.ogg
│   ├── player_death.ogg
│   └── player_falling_damage.ogg
└── textures
    ├── mobs_bullet.png
    ├── mobs_cooked_rat.png
    ├── mobs_fireball.png
    ├── mobs_meat.png
    ├── mobs_meat_raw.png
    └── mobs_rat_inventory.png


You can see that init.lua must be in the root directory of the mod folder.

Also, why are you not using 0.4.12, or, better, a daily build? Daily builds even have a minimap.

Re: Mod Loading Error Message

PostPosted: Sat Jul 11, 2015 14:48
by ConfusedMonster
Calinou wrote:This is the directory structure of the carbone_mobs mod:

You can see that init.lua must be in the root directory of the mod folder.

Also, why are you not using 0.4.12, or, better, a daily build? Daily builds even have a minimap.


I'm trying to used Simple_mobs, not carbone_mobs. but if you recommend that mod I'll gladly try it.

And because I can't update my graphics, my computer won't let me so with 0.4.12 I couldn't break blocks without causing a crash, I had the same problem with 0.4.11 so 0.4.10 was the only one where I could break blocks without it crashing.

Edit: I moved all the components of the mob file within the mobs file into the mobs file and it loaded. lol if that makes any sense.

Re: Mod Loading Error Message

PostPosted: Sat Jul 11, 2015 16:47
by Krock
ConfusedMonster wrote:And because I can't update my graphics, my computer won't let me so with 0.4.12 I couldn't break blocks without causing a crash, I had the same problem with 0.4.11 so 0.4.10 was the only one where I could break blocks without it crashing.

Edit: I moved all the components of the mob file within the mobs file into the mobs file and it loaded. lol if that makes any sense.


When you use the newest available driver, there shouldn't be a problem. Mine got its last update in 2010 and never had problems with newer Minetest version.
Please check out Minetest 0.4.12 and post the error log (debug.txt contents), as described in viewtopic.php?f=6&t=5073

Your problem was that you extracted the mod contents into a new directory, this way you had a "mobs" directory inside your minetest\mods\mobs directory, which would explain your error.

PS: Please spell my name correctly the next time.