Getting somewhere but need some help

Now i have another question. i have armour and i made it in to pieces and i am looking into the standart files and see them named. but the names are not stable. the number behind differs. any clue what number i should use?

The models has to have the correct names, cause this is how the animations know which pieces to move (the animation looks for specific names)

The number depends, what exactly number are you talking about? The defense? ilevel?

1 Like

well some rightHand’s are called righHand_7 while others are just rightHand

and i am currently naming them. Also do you know if i have to export in righthanded z or lefhanded z in quibicle. cause for my decoration it was righthanded but the first test of armour was located about 1 hearling away from his body xD.

and jet another question what term must i use for my armour to replace it instead of merge with it as als the other standart armour pieces do?

thanks for all the help!

Uhm, I think those numbers are the fingers? not sure, these is already out of my knoledge (I’m bad at the models parts)

About the models being far from the hearthling, I also had this problem, but I used another software. So I also don’t know how to help here. (just wait, there is plenty of guys here that will be able to help in this)

To merge there is this:

     "render_type": "merge_with_model",

(from one of the game’s armor)
And also:

        "transparent": "true",

I’m not sure the differences between them. (I think one complements the other)

1 Like

Your en.json contained an UTF-8 BOM. Make sure to save your files as just UTF-8, without BOM.

"{ \r\n   \"jobs\": {\r\n      \"weaver\": {\r\n         \"recipes\" : {\r\n            \"nachtwacht_recipe\" : {\r\n               \"recipe_name\" : \"Nachtwacht\",\r\n               \"description\" : \"Made by Rembrand van Rijn\",\r\n               \"flavor\" : \"A master piece!\"\r\n            }\r\n         }\r\n      }\r\n   },\r\n   \"entities\": {       \r\n      \"decoration\" : {\r\n         \"nachtwacht\": {\r\n            \"description\" : \"The master piece made by Rembrand van Rijn\",\r\n            \"display_name\": \"Nachtwacht\"\r\n         }\r\n      }\r\n   }\r\n}   "```

The ``is the BOM. I suppose Stonehearth doesn't deal with BOM properly and because of that, the JSON parser assumed that it was malformed JSON (because it started with ï, which isn't a valid part of... any JSON outside a string, I believe).

<small>(Also, "night watch" in German would be "Nachtwache", not "Nachtwacht", but that's nitpicking now and could very well be for artistic reasons... But you know, as a heads up.)</small>
1 Like

Thx for the tip but i have no clue how to do that xD. i just create a text file and change the .txt to a .json and that works almost all the time but it seems to fail some times. How can i change this?

And i know my languages. The actual original name is De Nachtwacht it is made by a dutch man named Rembrandt van Rijn. So the name is correct since its a dutch masterpiece and not german :wink:

Apologies, I’ve come around pseudo-German too often recently.

It should be an option in your text editor, probably named “Encoding” or something similar. Which editor are you using?

Haha np man. i did it with wordpad and that didnt had that option. I dowloaded PSPad and i can change it now. thx!

I then recommend sublime text editor, it is really good. Has syntax highlight for a bunch of languages by default and has a lot of quality of life functions.

By default it saves the files with the correct encoding.

1 Like

well here is my mod page [MODS] Yang & Co's Mod Making [A22.5][A23]

1 Like

The numbers you can ignor xD this happens when you have more then one entitie with the same Name… The stonehearth System only recognize The Name left_hand etc

1 Like

Best is you download sublime text for the formatation xD there you can save it correctly

And Sry for the short answers ist have only Internet via Handy at the Moment xD

np! the awnser is what is was looking for. no need for more text then needed.

Alright i have another question. en.json does not seem to like me. I am using sublime text editor.
here is my file
there is a an.json and a en.json
i called the one that didnt work an.json cause you can not have 2 files with the same name.

Now here is the problem. I went back on an older version and added part by part and found out that:
“mastersword” : {
“description” : “A very strong sword”,
“display_name” : “Master Sword”,
}
is the problem. i went and manually typed it over in the new one and it worked so there is something wrong with it. Problem is to me the
"mastersword" : {
“description” : “A very strong sword”,
“display_name” : “Master Sword”
}
and
"mastersword" : {
“description” : “A very strong sword”,
“display_name” : “Master Sword”,
}
look exactly the same to me. can a profesional tell me what is wrong with it so it wont happen again.

thank you in advance

There is an excessive comma after [quote=“Yangzhoui, post:18, topic:26981”]
“display_name” : “Master Sword”,
[/quote]

in your second version.

2 Likes

thank you
i know to look out for that but i just couldnt find it this time
i have dislexia so stuff like that is my weakness

thanks again!

1 Like

For this kinda of check, I recommend the http://jsonlint.com/ site. You just copy your text there, and it will point errors like extra commas, wrong opening brackets, etc…

Edit, get ninjad BarbeQ

3 Likes

Then I must have dislexia as well :smile:
I constantly miss stuff like that in my files (especially in the en.json).

But a good place to check your JSON files is JSONLint . There, no comma can slip through…

Oh… @BrunoSupremo just slipped past me and inserted his post. Smooth move, man :sunglasses:

3 Likes

To be fair, Stonehearth’s JSON parser is beyond bad and its error messages, if there even are any, aren’t helpful at all.

allright next question :stuck_out_tongue:

so i iam thinking of making a new job. Can you guys help me by telling me what i am still missing and these few code lines i cant figure out.

So what i found i need in the mod for a new job are these files:
entities/(every other entity i need to make)
jobs/painter/painter_abilities
jobs/painter/painter_outfit
jobs/painter/painter_(tool)
jobs/painter/painter_workbench
jobs/painter/images
jobs/painter/recipes
jobs/painter/skin
jobs/painter/painter.lua
jobs/painter/painter_descritpion.json
jobs/index.json
locales/en.josn
manifest.json

Those are the files i see i need for a new job.
Aside from that i cant find the source of these lines to changes. i take carpenter as example.

“controller”: “stonehearth:class:carpenter”, (does this refer to the class you created in the .lua?)
“talisman_uri”: “stonehearth:carpenter:talisman”,
“promotion_activity_name”: “promote_carpenter”,

do i have erverything? and those 3 lines can someone explain them to me. all the other stuff i got except for those.
I also know how to created items and how recipes work and stuff so that is no problem. i have spit trough all the files in the maps i listed and understood where they for where and how they worked.

tanks in advance!