tAPI Getting Started with Modding

Status
Not open for further replies.
It said this:
TAPI.Mods+LoadException: Mod.tapi: TAPI.Mods+LoadException: Json "JsonData object" Missing default texture: Items/FleshStaff
at TAPI.ModJsonHandler.PropTexture(JsonData j, String key, IDictionary`2 dict, String defaultKey)
at TAPI.ModJsonHandler.HandleItem(ModBase modBase, JsonData j, String fname)
at TAPI.ModJsonHandler.Handle(ModBase modBase)
at TAPI.Mod.<Load>b__0(BinBuffer bb)
at TAPI.Mods.HandleTapiModFile(FPath path, Action`1 action)
at TAPI.Mods.HandleModFile(FPath path, Action`1 action)
at TAPI.Mod.Load()
at TAPI.Mods.Load()
at TAPI.Mods.Load()

when I had the png image in it.
It was called FleshStaff.png
and the json was FleshStaff.json
 
It said this:
TAPI.Mods+LoadException: Mod.tapi: TAPI.Mods+LoadException: Json "JsonData object" Missing default texture: Items/FleshStaff
at TAPI.ModJsonHandler.PropTexture(JsonData j, String key, IDictionary`2 dict, String defaultKey)
at TAPI.ModJsonHandler.HandleItem(ModBase modBase, JsonData j, String fname)
at TAPI.ModJsonHandler.Handle(ModBase modBase)
at TAPI.Mod.<Load>b__0(BinBuffer bb)
at TAPI.Mods.HandleTapiModFile(FPath path, Action`1 action)
at TAPI.Mods.HandleModFile(FPath path, Action`1 action)
at TAPI.Mod.Load()
at TAPI.Mods.Load()
at TAPI.Mods.Load()

when I had the png image in it.
It was called FleshStaff.png
and the json was FleshStaff.json
we need code or we cant help
 
ok,
{
"displayName": "Eye Staff",
"size": [28, 28],
"maxStack": 1,
"value": [5,5,0,0],
"rare": 1,
"tooltip": "'Eye See you'",
"useStyle": 1,
"useAnimation": 32, //Goes with useTime, if this value is higher than useTime the weapon will be used more than once per click
"useTime": 16,
"damage": 16, //How much damage the weapon does.
"knockback": 1,
"useSound": 1, //Generic swinging sound
"autoReuse": false,
"melee": true, //Item gains bonuses from melee equipment

"recipes":
[{
"items": { "Dirt Block": 1 },
"tiles": [ "Workbench" ],
"creates": 1
},
{
"items": {"Iron Bar": 5, "Fallen Star" : 1, "Hellstone Bar" : 5},
"tiles": [ "Workbench" ],
"creates": 1
}]
}
The one dirt block thing was for testing
 
Last edited:
i have a (small) problem with my mod, whenever i put in the code for this chest plate i made tAPI has an error and won't open, i checked my other code and it's definitely this item, my code is here:
"displayName": "Glowing Mushroom Chestplate",
"size": [34, 22],
"maxStack": 1,
"value": [0,0,6,15],
"rare": 1,
"defense": 4,
"tooltip": "The perfect armor for a novice Mage",
"armorBody": true,
"hasHands": false,
"setName": "Glowing",
"textureFemale": "Items/Armor/GlowingMushroomShirt_FemaleBody",

"recipes":
[{
"items": { "Dirt Block": 1 },
"tiles": [ "Work Bench" ],
"creates": 1
}]
}
any help would be appreciated :p
 
Last edited:
Post the code
{
"displayName": "Umramtes Holzschwert",
"size": [32, 32],
"maxStack": 1,
"value": [1,0,0,0],
"rare": 1,
"tooltip": "Mal so nen Test Item",
"useStyle": 1,
"useAnimation": 10,
"useTime": 10,
"damage": 8,
"knockback": 12,
"useSound": 1,
"autoReuse": true,
"melee": true,

"recipes":
[{
"items": { "Wooden Sword": 1, "Iron Bar": 3, "Wood": 2, },
"tiles": [ "Work Bench" ],
"creates": 1
}]
}

Its a testitem. ^^
 
Do you not mind if I run the code through the tapi builder to test it? Also do you have a texture for it? Finally, did it come up with an error message?
 
Do you not mind if I run the code through the tapi builder to test it? Also do you have a texture for it? Finally, did it come up with an error message?
No error and yes you can run it through the builder.
And yes its only an Wooden Sword with some iron xD
 

Attachments

  • Umramtes Holzschwert.png
    Umramtes Holzschwert.png
    402 bytes · Views: 190
Ok and thx that you help me ^^
lol_1.gif

Ive got the solution:
{
"displayName": "Umramtes Holzschwert",
"size": [32, 32],
"maxStack": 1,
"value": [1,0,0,0],
"rare": 1,
"tooltip": "Mal so nen Test Item",
"useStyle": 1,
"useAnimation": 10,
"useTime": 10,
"damage": 8,
"knockback": 12,
"useSound": 1,
"autoReuse": true,
"melee": true,

"recipes":
[{
"items": { "Wooden Sword": 1, "Iron Bar": 3, "Wood": 2 },
"tiles": [ "Work Bench" ],
"creates": 1
}]
}
Make sure it is like that with the indentations and everything, then run it through the builder. Once you open up the tAPI Terraria 1.2.4.1, ujst go into mod options make sure it is enabled by click on the mod and then clicking the button if is says enable. Then reload mods and it should work fine!
 
View attachment 56187
Ive got the solution:
{
"displayName": "Umramtes Holzschwert",
"size": [32, 32],
"maxStack": 1,
"value": [1,0,0,0],
"rare": 1,
"tooltip": "Mal so nen Test Item",
"useStyle": 1,
"useAnimation": 10,
"useTime": 10,
"damage": 8,
"knockback": 12,
"useSound": 1,
"autoReuse": true,
"melee": true,

"recipes":
[{
"items": { "Wooden Sword": 1, "Iron Bar": 3, "Wood": 2 },
"tiles": [ "Work Bench" ],
"creates": 1
}]
}
Make sure it is like that with the indentations and everything, then run it through the builder. Once you open up the tAPI Terraria 1.2.4.1, ujst go into mod options make sure it is enabled by click on the mod and then clicking the button if is says enable. Then reload mods and it should work fine!
Hmm... still dont working but i will later deinstall all other mods and test it again
 
Status
Not open for further replies.
Back
Top Bottom