# Mod doesn't work

**URL:** <https://discourse.stonehearth.net/t/mod-doesnt-work/30106>\
**Category:** Modding\
**Created:** [May 6, 2017, 1:23pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106 "2017-05-06T13:23:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![pingu](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pingu/32/51648_2.png) [@pingu](https://discourse.stonehearth.net/u/pingu)\
**Post date:** [May 6, 2017, 1:23pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/1 "2017-05-06T13:23:31Z")

</div>

Hey, i have a problem with a small Mod i tried to make. Im really a Newbie in Coding so please don’t be too frustrated 😃

I tried to upload my .smod file to the Mods and in the game i get this error. ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/0/0/00e0db65385737b92c6306a4301bf70f774f257f.PNG)

Its my first try in programming so im a little bit confused about this error. Copied the code from the example files…

```
{
"info" : {
   "name" : "HomeSweetHome",
   "version" : 1
  },
  "default_locale" : "en",
  "aliases" : {
    "herbalist_library" : "file(entities/furniture/herbalist_library/herbalist_library.json)"
  },
  "mixintos" : {
    "/stonehearth/jobs/herbalist/recipes/recipes.json" : "file(mixins/herbalist_recipes.json)"
  }
}
```

---

<div class="post-metadata">

**Author:** ![pingu](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pingu/32/51648_2.png) [@pingu](https://discourse.stonehearth.net/u/pingu)\
**Post date:** [May 6, 2017, 1:27pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/2 "2017-05-06T13:27:43Z")

</div>

Here is also the entire Mod file… maybe someone can help me to find the Problem. Its only a basic version.

[HomeSweetHome.zip](https://discourse.stonehearth.net/uploads/short-url/whAmF57ozh8HuptFpgTQvvHuCZV.zip) (30.8 KB)

---

<div class="post-metadata">

**Author:** ![BrunoSupremo](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/brunosupremo/32/54819_2.png) [@BrunoSupremo](https://discourse.stonehearth.net/u/BrunoSupremo)\
**Post date:** [May 6, 2017, 1:29pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/3 "2017-05-06T13:29:00Z")

</div>

Make sure the version is 3. That version is the stonehearth modding api version, not the actual mod version.

---

<div class="post-metadata">

**Author:** ![pingu](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pingu/32/51648_2.png) [@pingu](https://discourse.stonehearth.net/u/pingu)\
**Post date:** [May 6, 2017, 1:35pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/4 "2017-05-06T13:35:59Z")

</div>

You mean the version line in the “info”?

i changed this one in 3 but the game gives me the same error “invalid manifest” 😓

---

<div class="post-metadata">

**Author:** ![BrunoSupremo](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/brunosupremo/32/54819_2.png) [@BrunoSupremo](https://discourse.stonehearth.net/u/BrunoSupremo)\
**Post date:** [May 6, 2017, 1:36pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/5 "2017-05-06T13:36:47Z")

</div>

Ok, I’m downloading it to check.

Edit: you have two folders inside the zip.

You have \_\_MacOS and inside it you have HomeSweetHome.

As I posted on the other topic, you should have a main folder and files inside it, not a folder inside another like you have now. If you put that \_\_macos folder in your mods folder the game will not see it. And if you zip it and rename the zip to .smod it will not work, for the same reason.

Besides that, in your manifest you are trying to add a file from a path that does not exist.  
"/stonehearth/jobs/herbalist/recipes/recipes.json" : "file(mixins/herbalist\_recipes.json)"  
there is no folder called mixins in your mod

---

<div class="post-metadata">

**Author:** ![pingu](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pingu/32/51648_2.png) [@pingu](https://discourse.stonehearth.net/u/pingu)\
**Post date:** [May 6, 2017, 1:47pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/6 "2017-05-06T13:47:52Z")

</div>

Thx for checking it… it seems that the two folders are automatically created when im zipping the file on my mac 😕

Trying to eliminate this folder

and thx for checking also the other code! changed the “mixins” to “recipes” hope this will work

---

<div class="post-metadata">

**Author:** ![pingu](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pingu/32/51648_2.png) [@pingu](https://discourse.stonehearth.net/u/pingu)\
**Post date:** [May 6, 2017, 1:57pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/7 "2017-05-06T13:57:17Z")

</div>

I tried it again but always the same Error Message ☹

Tried also to zip the file on my windows but doesn’t work…

This are the folders that i tried to zip and convert to a .smod but it sems that im doing it wrong

**The Folders**

![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/4/d/4dd9b029cf9d1390858d0496328653957aa08391.png)

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/d/3/d384d28ff42ed498e4e445015424de72546b673a.png) ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/9/0/9079e574e92e385784cbfffc2e409fb17af36eb4.png) ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/d/7/d70368ee25e6302bbd51a8a27cd879ffd86a43f1.png)

---

<div class="post-metadata">

**Author:** ![BrunoSupremo](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/brunosupremo/32/54819_2.png) [@BrunoSupremo](https://discourse.stonehearth.net/u/BrunoSupremo)\
**Post date:** [May 6, 2017, 2:04pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/8 "2017-05-06T14:04:04Z")

</div>

Upload your new mod here to check it.

---

<div class="post-metadata">

**Author:** ![pingu](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pingu/32/51648_2.png) [@pingu](https://discourse.stonehearth.net/u/pingu)\
**Post date:** [May 6, 2017, 2:32pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/9 "2017-05-06T14:32:02Z")

</div>

i posted this one in the wrong place. sorry my mistake @BrunoSupremo

ok i found a way to make it work… but there are many other problems for now in this mod. for testing it here is the smod file [homesweethome.zip](https://discourse.stonehearth.net/uploads/short-url/eSikkZ36R7d91UCNuxIojkO6Eke.zip) (23.8 KB)

after crafting my object this error message pops up  
 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/0/f/0ffe00268fea2c15d272cc3ad3b4a417834bd62e.PNG)  
I think a problem with my qubicle exportation. but also for this i used a tutorial to make it work ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/e/7/e78a802e40bf7f502e84a987168a594e30bcadf8.png) ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/9/d/9da131ffb7d70fe93c1a1583dc5e34031ef6c07c.png)

---

<div class="post-metadata">

**Author:** ![Chabonit](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/chabonit/32/54838_2.png) [@Chabonit](https://discourse.stonehearth.net/u/Chabonit)\
**Post date:** [May 6, 2017, 2:42pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/10 "2017-05-06T14:42:53Z")

</div>

just a first thing:  
First:  
Your Mixinto for the herbalist recipes is wrong because it must have the same naming  
(and paths ?)

like this:  
“stonehearth/jobs/herbalist/recipes/recipes.json”: “file(jobs/herbalist/recipes/recipes.json)”,  
(i nearly always use long path writing)  
Try to stand by the original folder structure and naming when you use mixintos then you will have less errors

Second:  
Your aliases in the manifest should be better. Look up the original stonehearth manifest to se the categories and the sub categories.  
i do it like this  
"aliases": {  
“armor:silver\_circlet”: “file(entities/armor/silver\_circlet)”,

The error you have can be from the qb you made but i had that one just from naming typos

---

<div class="post-metadata">

**Author:** ![BrunoSupremo](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/brunosupremo/32/54819_2.png) [@BrunoSupremo](https://discourse.stonehearth.net/u/BrunoSupremo)\
**Post date:** [May 6, 2017, 2:43pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/11 "2017-05-06T14:43:15Z")

</div>

Yes, it is a .qb problem. I opened the files and resaved them and it worked. Though I do not use Qubicle, so you will need to see what setting are needed there.

---

<div class="post-metadata">

**Author:** ![pingu](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pingu/32/51648_2.png) [@pingu](https://discourse.stonehearth.net/u/pingu)\
**Post date:** [May 6, 2017, 2:48pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/12 "2017-05-06T14:48:12Z")

</div>

> [@Chabonit](#):
>
> Your Mixinto for the herbalist recipes is wrong because it must have the same naming  
> (and paths ?)

Yes in the new smod-file i changed this 😃

And thx for the tip with the aliases. try to find something better

> [@BrunoSupremo](#):
>
> Yes, it is a .qb problem. I opened the files and resaved them and it worked. Though I do not use Qubicle, so you will need to see what setting are needed there.

Ok thx Bruno! Try to find the right exporting settings 😃

Last question. I noticed that my created furniture was added above all crafts without a title displayed in the herbalist crafting menu. maybe its because the herbalist doesn’t craft furnitures but how i can add this category to the herbalist crafting menue?

---

<div class="post-metadata">

**Author:** ![BrunoSupremo](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/brunosupremo/32/54819_2.png) [@BrunoSupremo](https://discourse.stonehearth.net/u/BrunoSupremo)\
**Post date:** [May 6, 2017, 3:00pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/13 "2017-05-06T15:00:48Z")

</div>

Yes, you put the item in a category that does not exist. To create one you can check other recipes files. For example, the carpenter recipe list:

```
{
   "craftable_recipes": {
      "workbenches": {
         "ordinal": 1,
         "name": "i18n(stonehearth:jobs.carpenter.recipes.workbench_name)",
         "recipes": {
            "carpenter_workbench": {
               "recipe": "file(carpenter_workbench_recipe.json)"
            },
            "carpenter_toolbench": {
               "recipe": "file(carpenter_toolbench_recipe.json)"
            }
         }
      },

```

To have the workbenches category, it needed an ordinal (the order of who goes on the top of the list) and a name (to be displayed), then the recipes in it.

I think you can simple add those two missing bits to your recipe file and it will work in game.

---

<div class="post-metadata">

**Author:** ![pingu](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pingu/32/51648_2.png) [@pingu](https://discourse.stonehearth.net/u/pingu)\
**Post date:** [May 6, 2017, 4:39pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/14 "2017-05-06T16:39:41Z")

</div>

Now its working 😃 thanks for your help! I have to make some code optimizations but its a good start xD

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/6/f/6f51568ca6154fb26f28e27ea123186fdf671e9a.PNG)

---

<div class="post-metadata">

**Author:** ![MoonSight](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/moonsight/32/55148_2.png) [@MoonSight](https://discourse.stonehearth.net/u/MoonSight)\
**Post date:** [May 6, 2017, 5:28pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/15 "2017-05-06T17:28:40Z")

</div>

Oh! Shame i couldn’t help you on this!, though it seems like you managed to fix it thanks to others

Cool looking furniture though! Can’t wait to see them in-game

---

<div class="post-metadata">

**Author:** ![pingu](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pingu/32/51648_2.png) [@pingu](https://discourse.stonehearth.net/u/pingu)\
**Post date:** [May 6, 2017, 6:09pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/16 "2017-05-06T18:09:13Z")

</div>

Ah thx Hyrule\_Symbol 🙂  
Im planning to add some more furnitures and decorations in this Mod. First version only for the Herbalist 😉

Maybe i need some help later too ahahahhaah 😃

---

<div class="post-metadata">

**Author:** ![Chabonit](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/chabonit/32/54838_2.png) [@Chabonit](https://discourse.stonehearth.net/u/Chabonit)\
**Post date:** [May 6, 2017, 6:54pm UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/17 "2017-05-06T18:54:58Z")

</div>

No problem we are here and watching your progress 😀  
The bookshelf is nice

---

<div class="post-metadata">

**Author:** ![pingu](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pingu/32/51648_2.png) [@pingu](https://discourse.stonehearth.net/u/pingu)\
**Post date:** [May 13, 2017, 6:38am UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/18 "2017-05-13T06:38:29Z")

</div>

I changed something and everything stops working ☹

i can’t understand why the recipes aren’t visible in the Herbalist Craft screen. And why locales data can’t be read…

added this mod on my Github. Maybe someone can help me to solve this stupid problem

> **[pingu92/homesweethome](https://github.com/pingu92/homesweethome)**
>
> homesweethome - Mod for Stonehearth

---

<div class="post-metadata">

**Author:** ![artifus](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@artifus](https://discourse.stonehearth.net/u/artifus)\
**Post date:** [May 13, 2017, 9:42am UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/19 "2017-05-13T09:42:55Z")

</div>

hello :  
error :  
typo in bookshelf.json  
typo in bookshelf\_ghost.json  
–\> “display\_name”: “i18n(homesweethome:jobs.herbalist.entities.furniture.bookshelf\_ghost.name)”,

to “display\_name”: “i18n(homesweethome:jobs.herbalist.entities.furniture.bookshelf\_ghost.display\_name)”,

in small\_jar\_ghost.json  
"description": “i18n(homesweethome:jobs.herbalist.entities.containers.small\_jar\_ghost\_ghost.description)”,

—\>  
“description”: “i18n(homesweethome:jobs.herbalist.entities.containers.small\_jar\_ghost.description)”,

in small\_jar\_recipe.json  
"description" : “i18n(homesweethome:herbalist.recipes.lsmall\_jar.description)”,

–\>  
“description” : “i18n(homesweethome:herbalist.recipes.small\_jar.description)”,

in en.json  
"small\_jar\_ghost" : {  
“description” : “Small but fine container.”,  
“name”: “Small Jar”  
},

–\>  
“small\_jar\_ghost” : {  
“description” : “Small but fine container.”,  
“name”: “Small Jar”  
}

–\> remove one } at the end of file

and the “entities”: { … need to go after “recipes”: { so check the order

---

<div class="post-metadata">

**Author:** ![pingu](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pingu/32/51648_2.png) [@pingu](https://discourse.stonehearth.net/u/pingu)\
**Post date:** [May 13, 2017, 11:55am UTC](https://discourse.stonehearth.net/t/mod-doesnt-work/30106/20 "2017-05-13T11:55:53Z")

</div>

Ahh thx… so many typo errors 😕

Never code when you are busy… But i still have the problem that some bugs make the mod don’t work properly 😕 really don’t understand why

[Next page](https://discourse.stonehearth.net/t/mod-doesnt-work/30106.md?page=2)
