Mod programming help thread for Azhrak

@Azhrak Nope don’t say anything useful, thanks for posting anyway. :grin: The log gets overwritten each time you start SH, so there’s no need to delete it. :wink:

@honestabelink Ah I didn’t know that, I hope it’ll be changed later on. Otherwise it’s gonna be painful that you have to start up a new game just cause you added one new recipe. :stuck_out_tongue:

Edit: hmm looking at your log again, there are stuff missing, like when you’re generating a new world and such (it should be a lot bigger). Anyway the interesting part is at the very end of the log file, there should be some output of memory being used and such too.

1 Like

I’ll make a new world and see if there is more, It could just be a bug where it didn’t write the log correctly.

I see you are running r196, perhaps try updating to the current release r2081.

This is what I am running your mod on and it works just fine… again shooting in the dark :wink:

Here is new log file.

Paste right over your mason_recipes.json

{
   "craftable_recipes" : {
      "decoration" : {
         "ordinal" : 7, 
         "name" : "Armored Stone Statue",
         "recipes" : {
            "stone_armor_statue" : {
               "recipe" : "file(/recipes/stone_armor_statue_recipe.json)"
            }
         }
      }
   }
}

Looks like you were missing the beginning {
:wink:

2 Likes

Moment of truth… :smile:

I found a bug. Its not showing the iconic version in the stockpile… So I have a really big statue in the stockpile.
Edit: Fixed it.

3 Likes

stone_armor_statue_iconic.json

"file(stone_armor_statue.qb)"

to

 "file(stone_armor_statue_iconic.qb)"

That should do it, @Relyss pointed this out before :wink:

2 Likes

Yeah, I did fix it, I completely forgot about it.
Now I figured out the bugs, time to add more to my mod.

Thanks everybody who helped, Public download link is here: Azhraks Extended Crafting Mod

3 Likes

Okay: new problem

I want to add the carpenter to my crafting classes, I have tried to add it myself, but json validator is saying its all wrong.
I don’t understand validators.

"mixintos" : {
       "/stonehearth/jobs/mason/recipes/recipes.json" : [
          "file(mixins/mason_recipes/mason_recipes.json)" ]
},
{
       "/stonehearth/jobs/carpenter/recipes/recipes.json" : [
          "file(mixins/carpenter_recipes/carpenter_recipes.json)" ]
}

Try with
"mixintos" : {
"/stonehearth/jobs/mason/recipes/recipes.json" : “file(mixins/mason_recipes/mason_recipes.json)” ,
"/stonehearth/jobs/carpenter/recipes/recipes.json" : “file(mixins/carpenter_recipes/carpenter_recipes.json)”
}

1 Like

That isn’t a valid json? I checked it using json lint?

When you validate it in jsonlint, paste the entire json file (in this case, the manifest).

Anyway, your mixintos should be all inside the
"mixintos" : {
}

section, don’t make
"mixintos" : {
-one mixinto-
},
{
-another mixinto-
}

because it won’t work.

1 Like

Relyss is right on both points.

If you insist on checking specific sections you will need a { at the start, and an } at the end. i.e.

{
"mixintos" : {
"/stonehearth/jobs/mason/recipes/recipes.json" : "file(mixins/mason_recipes/mason_recipes.json)" ,
"/stonehearth/jobs/carpenter/recipes/recipes.json" : "file(mixins/carpenter_recipes/carpenter_recipes.json)" 
  }
}

Which you will find is valid

1 Like

Okay, I fixed that

How do I make stuff placeable on walls? I have the origin set up, and I also have
"placeable_on_walls" : true property in my item_name.json file

am I missing anything?

That’s the only thing you need to add.

Does the region_collision shape matter at all for the placeable on wall models?

Personally, I wouldn’t bother with one as it’s wall mounted

I can’t place it? I can create the model and stuff, I just can’t place it on walls.

Does your item_name.json look like this?

{
 "type" : "entity",
 "mixins" : "file(item_name_ghost.json)",

 "components": {
  "stonehearth:entity_forms" : {
     "iconic_form" : "file(item_name_iconic.json)",
     "ghost_form" : "file(item_name_ghost.json)",
     "placeable_on_walls" : true
  }
 }
}

Because that’s all you need.

Indeedy I do.
Still doesn’t work.

Download for mod if you want to take a look

I may have found the problem. I set the scale to 0 thinking it would just stay the same as voxel model.
Testing to see if thats the case.

edit: That wasn’t the problem, I still can’t place the item on the walls.