Hello, first time moder ere.
Ran into a bump in my mod and I have flat lined in ideas of how to fix it. My mod consist of two items, both require crafting by the blacksmith.
release-663 (x64)[M]
Uncaught TypeError: Cannot read property 'level_requirement' of undefined
TypeError: Cannot read property 'level_requirement' of undefined
at http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_2/place_floor_deco_tool.js:138:35
at Object.<anonymous> (http://radiant/radiant/js/radiant/object.js:295:19)
at Function.x.extend.each (http://radiant/stonehearth/ui/root/js/libs/jquery-1.10.2.min.js:4:5401)
at Object.radiant.each (http://radiant/radiant/js/radiant/object.js:293:15)
at http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_2/place_floor_deco_tool.js:136:30
at Object.<anonymous> (http://radiant/radiant/js/radiant/object.js:295:19)
at Function.x.extend.each (http://radiant/stonehearth/ui/root/js/libs/jquery-1.10.2.min.js:4:5401)
at Object.radiant.each (http://radiant/radiant/js/radiant/object.js:293:15)
at http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_2/place_floor_deco_tool.js:135:27
at null.<anonymous> (http://radiant/radiant/js/radiant/object.js:295:19)
This is the bump.
Now there are two places where ālevel_requirementsā comes up in the code (Four if you put into account the two items). One is types as the error message an the other is ārequired_job_levelā
#1 - Diff
Item 1
{
ātypeā: ārecipeā,
"work_units": 2,
"recipe_name": "Tumult Long Sword",
"description": "Protection, Hospitality, tribulation.",
"flavor": "My fate is chosen",
"portrait": "/Tempest_Order/entities/Long_Redsword/long_Redsword.png",
"workshop": "stonehearth:blacksmith:workbench",
"required_job_level": 1,
"ingredients": [{
"uri": "stonehearth:entities:refined:silver_ingot",
"count": 2
}],
"produces": [{
"item": "Tempest_Order:Long_Redsword"
}]
}
Item 2
{
"type": "recipe",
"work_units": 2,
"recipe_name": "Tempest Helm",
"description": "Starter kit for all Tempest.",
"flavor": "My fate is chosen",
"portrait": "/Tempest_Order/entities/Silver_RedHelmet/silver_Redhelmet.png",
"workshop": "stonehearth:blacksmith:workbench",
"required_job_level": 2,
"ingredients": [{
"uri": "stonehearth:entities:refined:silver_ingot",
"count": 2
}],
"produces": [{
"item": "Tempest_Order:Silver_RedHelmet"
}]
}
#2 - The same
Item 1
{
ātypeā: āentityā,
āmixinsā: āfile(long_Redsword_ghost.json)ā,
"components": {
"model_variants": {
"default": {
"models": [
"file(long_Redsword_equipped.qb)"
]
}
},
"stonehearth:entity_forms": {
"iconic_form": "file(long_Redsword_iconic.json)"
},
"stonehearth:equipment_piece": {
"slot": "mainhand",
"render_type": "attach_to_bone",
"postures": [
"stonehearth:combat",
"stonehearth:patrol"
],
"ilevel": 18,
"roles": "knight_job",
**"level_requirement": 3,**
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
"entity_data": {
"stonehearth:combat:weapon_data": {
"base_damage": 64,
"reach": 1.8
},
"stonehearth:combat:melee_attacks": [{
"name": "combat_1h_backhand",
"effect": "combat_1h_backhand",
"active_frame": 17,
"cooldown": 0,
"priority": 0,
"aggro_multiplier": 3.0
}, {
"name": "combat_1h_forehand",
"effect": "combat_1h_forehand",
"active_frame": 16,
"cooldown": 0,
"priority": 0,
"aggro_multiplier": 3.0
}],
"stonehearth:combat:melee_defenses": [{
"name": "combat_1h_parry",
"effect": "combat_1h_parry",
"active_frame": 4,
"cooldown": 6000,
"priority": 0,
"chance_of_success": 0.75
}],
"stonehearth:net_worth": {
"value_in_gold": 700,
"rarity": "common",
"shop_info": {
"buyable": false,
"sellable": true,
"shopkeeper_level": 4,
"shopkeeper_type": "caravan"
}
}
}
}
Item 2
{
"type": "entity",
"mixins": "file(silver_Redhelmet_ghost.json)",
"components": {
"model_variants": {
"default": {
"layer": "hat",
"transparent": "false",
"models": [
"file(silver_Redhelmet.qb)"
]
},
"female": {
"layer": "hat",
"transparent": "false",
"models": [
"file(silver_Redhelmet_female.qb)"
]
}
},
"stonehearth:entity_forms": {
"iconic_form": "file(silver_Redhelmet_iconic.json)"
},
"stonehearth:equipment_piece": {
"render_type": "merge_with_model",
"slot": "helmet",
"ilevel": 6,
"roles": "plate_wearer",
**"level_requirement": 3,**
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
"entity_data": {
"stonehearth:combat:armor_data": {
"base_damage_reduction": 20
},
"stonehearth:net_worth": {
"value_in_gold": 510,
"rarity": "common",
"shop_info": {
"buyable": false,
"sellable": true,
"shopkeeper_level": 4,
"shopkeeper_type": "caravan"
}
}
}
}
Now Iāve tried switching all of them to the same, two of them diff and the other the same. mitch matching here and there that has been my past 2+ hours.
I also think I could of got my mixintos manifest wrong, plop
{
"info": {
"name": "Tempest_Order",
"version": 3
},
"aliases": {
"Long_Redsword": "file(entities/Long_Redsword/long_Redsword.json)",
"Silver_RedHelmet": "file(entities/Silver_RedHelmet/silver_Redhelmet.json)"
},
"mixintos": {
"/stonehearth/jobs/blacksmith/recipes/recipes.json": ["file(mixins/long_Redsword_recipes.json)"],
"/stonehearth/jobs/blacksmith/recipes/recipes.json": ["file(mixins/Silver_RedHelmet_recipes.json)"]
}
}
Apart from that idk what to do, I need help. Thankyou and have a nice day.
Here are the resources I have been using to get to where I am.
I know its waaaay behind but its the one I foundā¦ so that might be my mistake too~