# Mixintos and overrides

**URL:** <https://discourse.stonehearth.net/t/mixintos-and-overrides/35651>\
**Category:** Modding\
**Created:** [May 29, 2018, 5:58pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651 "2018-05-29T17:58:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![berutty](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@berutty](https://discourse.stonehearth.net/u/berutty)\
**Post date:** [May 29, 2018, 5:58pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/1 "2018-05-29T17:58:46Z")

</div>

Hello there, so guys, i have been cracking my head here. I made a new animal and wanted to add him to the current shepherd animal option, but i have been only able to do it when i edit the stonehearth files… i have tryied to mixnto and override with no sucess. For what i can tell what determine the animals is the “shepherd\_pasture.json” inside the shepherd jobs.  
What have i tried:  
1- I tried to creat another shepherd\_pasture.json in my mod and override the other with my manifest, no lucky  
2- I tried to mix my animal into the stonehearth shepherd\_pasture.json with no lucky…  
3- I created a new job called ExoticShepherd… it kind works… but the shepherd coding is to much for me…  
4- I tried to overrite the animal files from the mod into the stonehearth via manifest…

any tip? thank you !

---

<div class="post-metadata">

**Author:** ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)\
**Post date:** [May 29, 2018, 6:11pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/2 "2018-05-29T18:11:16Z")

</div>

This example is from my outdated Candyland mod (but still works, just checked). Does your mixinto file look like this (but changing the critters to your alpacas aliases)? :

```auto
{
   "components": {
      "stonehearth:shepherd_pasture": {
         "pasture_data": {
               "candyland:critters:chocolate_bunny": {
                  "name": "Chocolate Bunny",
                  "description": "Adorable food",
                  "icon": "/candyland/entities/critters/chocolate_bunny/chocolate_bunny.png",
                  "min_population": 2,
                  "reproduction_uri": "candyland:critters:chocolate_bunny",
                  "max_num_per_10_square_unit": 0.48,
                  "base_reproduction_period": "18h",
                  "min_reproduction_period": "12h",
                  "feed_uri": "candyland:food:rabbit_feed"
             }
         }
      }
   }
}

```

And then in your manifest the mixinto is added like this?:

```auto
"mixintos": {
      "stonehearth/jobs/shepherd/shepherd_pasture/shepherd_pasture.json" : "file(jobs/shepherd/shepherd_pasture/shepherd_pasture.json)"
   }

```

If you still have trouble, you can share your mod files and some of the community modders can take a look at them 🙂  
Also take a look at the stonehearth.log, usually there’s info there if something couldn’t be loaded properly.

---

<div class="post-metadata">

**Author:** ![berutty](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@berutty](https://discourse.stonehearth.net/u/berutty)\
**Post date:** [May 29, 2018, 6:37pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/3 "2018-05-29T18:37:08Z")

</div>

No bueno =/

Here is the file if any commynity modder could take a look ;3

[animalz.smod](https://discourse.stonehearth.net/uploads/short-url/wO2tMUbcEMCdlPu1DoaoOfCgfih.smod) (128.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 29, 2018, 6:58pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/4 "2018-05-29T18:58:14Z")

</div>

Your mixinto is inside your aliases.

---

<div class="post-metadata">

**Author:** ![berutty](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@berutty](https://discourse.stonehearth.net/u/berutty)\
**Post date:** [May 29, 2018, 7:33pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/5 "2018-05-29T19:33:16Z")

</div>

i edited and still no good…

{  
“info”: {  
“name”: “Animalz”,  
“namespace”: “animalz”,  
“version”: 3

```
},
"default_locale": "en",
"aliases": {
	"critters:alpaca:outfits:redbell": "file(entities/critters/alpaca/outfits/redbell_outfit.json)",
	"pets:alpaca": "file(entities/critters/alpaca/alpaca_pet.json)",
	"alpaca": "file(entities/critters/alpaca)",
	"alpaca:young": "file(entities/critters/alpaca/alpaca_young.json)"
},

"mixintos": {

	"stonehearth/jobs/shepherd/shepherd_pasture/shepherd_pasture.json": "file(jobs/shepherd_pasture/shepherd_pasture.json)"
}

```

}

---

<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 29, 2018, 7:34pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/6 "2018-05-29T19:34:32Z")

</div>

You are trying to mixinto a path that does not exist

---

<div class="post-metadata">

**Author:** ![berutty](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@berutty](https://discourse.stonehearth.net/u/berutty)\
**Post date:** [May 29, 2018, 7:39pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/7 "2018-05-29T19:39:57Z")

</div>

you live in my hearth \<3

---

<div class="post-metadata">

**Author:** ![berutty](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@berutty](https://discourse.stonehearth.net/u/berutty)\
**Post date:** [May 29, 2018, 8:13pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/8 "2018-05-29T20:13:58Z")

</div>

the problem i am running into now, is that stonehearth doesnt recognize the animalz en.json…

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/7/d/7d92307e41f6c2fd6d2066bddfd152a48cee90f8.jpg)

---

<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 29, 2018, 8:21pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/9 "2018-05-29T20:21:33Z")

</div>

Your en.json does not have that string

---

<div class="post-metadata">

**Author:** ![berutty](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@berutty](https://discourse.stonehearth.net/u/berutty)\
**Post date:** [May 29, 2018, 8:24pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/10 "2018-05-29T20:24:02Z")

</div>

stonehearth en.  
“pasture”: {  
“help”: “Shepherds bring animals to this region and tend to their needs here.”,  
“choose\_pasture\_type”: “Choose Pasture Type”,  
“sheep\_pasture\_name”: “Sheep Pasture”,  
“rabbit\_pasture\_name”: “Rabbit Pen”,  
“poyo\_pasture\_name”: “Poyo Coop”,  
“sheep\_pasture\_description”: “Sheep produce wool, used by the weaver. Slaughtering sheep will produce mutton, a raw cooking ingredient”,  
“rabbit\_pasture\_description”: “Rabbits reproduce quickly and can be slaughtered for jerky and pelts”,  
“poyo\_pasture\_description”: “Poyos produce eggs, a valuable cooking ingredient. Slaughtering poyo will yield meat and, occasionally, feathers for crafting”,  
“num\_animals”: “Animals:”  
},

my en

“pasture”: {  
“alpaca\_pasture\_name”: “Alpaca Pasture”,  
“alpaca\_pasture\_description”: “Alpaca produce wool, used by the weaver. Slaughtering alpaca will produce mutton, a raw cooking ingredient”  
},

---

<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 29, 2018, 8:26pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/11 "2018-05-29T20:26:15Z")

</div>

Yes, but you are pointing to “ui:game:zones…” and you do not have that in your en.json

---

<div class="post-metadata">

**Author:** ![berutty](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@berutty](https://discourse.stonehearth.net/u/berutty)\
**Post date:** [May 29, 2018, 8:31pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/12 "2018-05-29T20:31:04Z")

</div>

Should i point at “stonehearth:ui:game:zones…” or put the ui:gama:zones in my en file?

---

<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 29, 2018, 8:33pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/13 "2018-05-29T20:33:08Z")

</div>

If your i18n() is aimed at stonehearth, then it will look there, if you aimed it at your own mod (i18n(animalz:…)) then it will look at your mod.

---

<div class="post-metadata">

**Author:** ![berutty](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@berutty](https://discourse.stonehearth.net/u/berutty)\
**Post date:** [May 29, 2018, 8:55pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/14 "2018-05-29T20:55:23Z")

</div>

now its working, only thing not loading is the icon. anything wrong with my pathing?

“icon”: “animalz/entities/critters/alpaca/alpaca.png”,

---

<div class="post-metadata">

**Author:** ![berutty](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@berutty](https://discourse.stonehearth.net/u/berutty)\
**Post date:** [May 29, 2018, 8:58pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/15 "2018-05-29T20:58:42Z")

</div>

Sorry, should have posted the full code…

{  
“components”: {  
“stonehearth:shepherd\_pasture”: {  
“pasture\_data”: {  
“animalz:alpaca”: {  
“name”: “i18n(animalz:ui.game.zones\_mode.pasture.alpaca\_pasture\_name)”,  
“description”: “i18n(animalz:ui.game.zones\_mode.pasture.alpaca\_pasture\_description)”,  
“icon”: “animalz/entities/critters/alpaca/alpaca.png”,  
“min\_population”: 2,  
“reproduction\_uri”: “animalz:alpaca:young”,  
“max\_num\_per\_10\_square\_unit”: 0.48,  
“base\_reproduction\_period”: “36h”,  
“min\_reproduction\_period”: “12h”,  
“feed\_uri”: “animalz:food:alpaca\_feed”  
}  
}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![Moai](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/moai/32/16242_2.png) [@Moai](https://discourse.stonehearth.net/u/Moai)\
**Post date:** [May 29, 2018, 9:06pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/16 "2018-05-29T21:06:57Z")

</div>

Try enclosing it in the `file()` function:

`“icon”: “file(animalz/entities/critters/alpaca/alpaca.png)”`

---

<div class="post-metadata">

**Author:** ![berutty](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@berutty](https://discourse.stonehearth.net/u/berutty)\
**Post date:** [May 29, 2018, 9:18pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/17 "2018-05-29T21:18:40Z")

</div>

Didnt work ;s

---

<div class="post-metadata">

**Author:** ![berutty](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@berutty](https://discourse.stonehearth.net/u/berutty)\
**Post date:** [May 29, 2018, 9:21pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/18 "2018-05-29T21:21:42Z")

</div>

i used now “icon”: “file(/entities/critters/alpaca/alpaca.png)”, and it works!

Thank you all!

---

<div class="post-metadata">

**Author:** ![berutty](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@berutty](https://discourse.stonehearth.net/u/berutty)\
**Post date:** [May 29, 2018, 10:46pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/19 "2018-05-29T22:46:19Z")

</div>

ok… i am not sure, maybe from the beginning. But i just notice that now the alpaca is not showing the name _wtf_ i was before… and o over saved the backups because i thought i was all good now… and i was doing other things when i noticed… any clue?

{  
“ui”: {  
“game”: {

```
		"zones_mode": {
			"pasture": {
				"alpaca_pasture_name": "Alpaca Pasture",
				"alpaca_pasture_description": "Alpaca produce wool, used by the weaver. Slaughtering alpaca will produce mutton, a raw cooking ingredient",

				"entities": {
					"critters": {
						"alpaca": {
							"display_name": "A alpaca",
							"description": "So fluffy!",
							"unripe_description": "This alpaca is still quite naked.",
							"alpaca_young": {
								"display_name": "A alpacaquita",
								"description": "Awww!"
							},

							"renewable_harvest_status_text": "shearing alpaca",
							"species": "alpaca"
						}
					}
				}
			}
		}
	}
}

```

}

---

<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 29, 2018, 11:23pm UTC](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651/20 "2018-05-29T23:23:47Z")

</div>

Probably because in en.json your entities is now inside the pasture while you didn’t update your entity i18n to reflect that change.

[Next page](https://discourse.stonehearth.net/t/mixintos-and-overrides/35651.md?page=2)
