tAPI Getting Started with Modding

Status
Not open for further replies.
I've been having trouble getting the summon item i'm making to work properly. The minion only spawns for a second, and then it disappears. Here is the summon item .json. http://hastebin.com/iluwetemow.coffee

Here is the projectile/minion .json http://hastebin.com/icucetiler.cpp
What does he look like? He's based off the pirate AI and needs the correct amount of frames, in this order
rGfMj5B.png
 
Yeah, he has that amount of frames. But I'm not sure if pixels from each from overlap into the other. I'll try using the regular Pirate sprite and see if that works. EDIT: No go.
 
Last edited:
This is awesome! Now I know how to create minions!
And how to create Minion Buff?
It doesn't really have an effect, so it's only a choice; but just make the "tip" whatever you want, set "noTimer" to true, set "noSave" to true, and make the summoner weapon give the buff for as much time as possible without the builder unrecognizing it as an int (i think 99999999 is the max)
 
It doesn't really have an effect, so it's only a choice; but just make the "tip" whatever you want, set "noTimer" to true, set "noSave" to true, and make the summoner weapon give the buff for as much time as possible without the builder unrecognizing it as an int (i think 99999999 is the max)
And if I right click the buff will the Minions disappear?
 
Hello again

I have a problem, I am trying to make a new crafting station but the texture that I use wont appear when I place the tile, It is just pink.

This is the code for the tile:

{
"displayName": "Stone Workbench",
"size": [ 2, 2 ],
"frameWidth": 54,
"frameHeight": 54,
"solid": false,
"blocksLight": false,
"blocksSun": false,
"mergeDirt": false,
"placementConditions": "flatGround",
"placementOrigin": [0,1],
"drop": "ocranian:StoneWorkBench",
"breaksByPick": true,
"dust": 0,
"sound": 1,
"soundGroup": 6,
"mapColor": [126, 160, 142],
"mapHoverText": "Stone Workbench"
}

And here is the tile texture:

upload_2015-1-3_20-57-45.png


Please help me someone who knows :(


Edit:
I have mixed around a bit more and this is how it looks when i place it down:
upload_2015-1-3_21-17-35.png


And here is the tile code:

{
"displayName": "Stone Workbench",
"size": [3,3],
"frameWidth": 52,
"frameHeight": 44,
"frameImportant": true,
"solid": false,
"blocksLight": false,
"blocksSun": false,
"mergeDirt": false,
"placementConditions": "flatGround",
"drop": "ocranian:StoneWorkBench",
"breaksByPick": true,
"adjTile": ["Work Bench"],
"dust": 0,
"sound": 1,
"mapColor": [126, 160, 142],
"mapHoverText": "Stone Workbench"
}

I still dont know what i am doing wrong :(

Oh and here is the tile texture:

upload_2015-1-3_21-19-10.png
 
Last edited:
I kept on trying and trying to build my mod, but it kept on giving me the same error.
Terraria 1.2.4.1, tAPI Builder r14a

========================================

LitJson.JsonException: ModInfo Error: Invalid token '"' in input string ---> LitJson.JsonException: Invalid token '"' in input string ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at LitJson.JsonReader.Read()
--- End of inner exception stack trace ---
at LitJson.JsonReader.Read()
at LitJson.JsonMapper.ReadValue(WrapperFactory factory, JsonReader reader)
at LitJson.JsonMapper.ToObject(String json)
at tAPI_Builder.MainWindow.<>c__DisplayClass8.<BtnBuild_Click>b__0()
--- End of inner exception stack trace ---
at tAPI_Builder.MainWindow.<>c__DisplayClass8.<BtnBuild_Click>b__0()
Please halp!
Thanks
 
Hello again

I have a problem, I am trying to make a new crafting station but the texture that I use wont appear when I place the tile, It is just pink.

This is the code for the tile:

{
"displayName": "Stone Workbench",
"size": [ 2, 2 ],
"frameWidth": 54,
"frameHeight": 54,
"solid": false,
"blocksLight": false,
"blocksSun": false,
"mergeDirt": false,
"placementConditions": "flatGround",
"placementOrigin": [0,1],
"drop": "ocranian:StoneWorkBench",
"breaksByPick": true,
"dust": 0,
"sound": 1,
"soundGroup": 6,
"mapColor": [126, 160, 142],
"mapHoverText": "Stone Workbench"
}

And here is the tile texture:

View attachment 18770

Please help me someone who knows :(


Edit:
I have mixed around a bit more and this is how it looks when i place it down:
View attachment 18775

And here is the tile code:

{
"displayName": "Stone Workbench",
"size": [3,3],
"frameWidth": 52,
"frameHeight": 44,
"frameImportant": true,
"solid": false,
"blocksLight": false,
"blocksSun": false,
"mergeDirt": false,
"placementConditions": "flatGround",
"drop": "ocranian:StoneWorkBench",
"breaksByPick": true,
"adjTile": ["Work Bench"],
"dust": 0,
"sound": 1,
"mapColor": [126, 160, 142],
"mapHoverText": "Stone Workbench"
}

I still dont know what i am doing wrong :(

Oh and here is the tile texture:

View attachment 18776
Each area surrounded by pink lines is one frame. So, the frame measurements should actually be
"frameWidth": 16,
"frameHeight": 18,
or the other way around, not sure. Hope this helped!
 
i was testing a sword to go farther in other things to buid to start a mod i did used your and the youtube tutorial to build a simple code but my sword isnt in the recepect and cant be buid why i dont have an idea

1- the code json
{
"displayName": "pmansword",
"size": [42,44],
"maxStack": 1,
"value": [0,2,16,50],
"rare": 1,
"tooltip": "its the pmansword",
"useStyle": 1,
"useAnimation": 16,
"useTime": 16,
"damage": 14,
"knockback": 2,
"useSound": 1,
"autoReuse": false,
"melee": true,

"recipes":
[{
"items": { "Dirt Block":4 },
"tiles": ["Work Bench"],
"creates": 1
}]
}
2-path source/modfiles/items/weapons/pmansword.json
source/modfiles/items/weapons/pmansword.png

3-building the mod in mod builder done
4-activated it done
5-start the game the guid dont tell me the recepte and i cant craft it if i go deractly (sorry for my bad english and hope you can tell me where im wrong thank for your help)
 
i was testing a sword to go farther in other things to buid to start a mod i did used your and the youtube tutorial to build a simple code but my sword isnt in the recepect and cant be buid why i dont have an idea

1- the code json
{
"displayName": "pmansword",
"size": [42,44],
"maxStack": 1,
"value": [0,2,16,50],
"rare": 1,
"tooltip": "its the pmansword",
"useStyle": 1,
"useAnimation": 16,
"useTime": 16,
"damage": 14,
"knockback": 2,
"useSound": 1,
"autoReuse": false,
"melee": true,

"recipes":
[{
"items": { "Dirt Block":4 },
"tiles": ["Work Bench"],
"creates": 1
}]
}
2-path source/modfiles/items/weapons/pmansword.json
source/modfiles/items/weapons/pmansword.png

3-building the mod in mod builder done
4-activated it done
5-start the game the guid dont tell me the recepte and i cant craft it if i go deractly (sorry for my bad english and hope you can tell me where im wrong thank for your help)
Did you enable your mod in tAPI? It's disabled by default.
You probably need a space in the recipe. Change it to
Code:
"items": { "Dirt Block": 4 },
 
first thanks for you fast replay
next i did said (2 - activated done that mean i did unable it in the mod menu )
i did made a space in my recipe and i did add another one like you did but its the same thing nothing changed im using the r14a TPI is there eny thing wrong in my codes ?
 
Man ı really want that gatling laser thing.
But,can we make razorblade typhoon effect?
What's the code berberborsching?
 
Status
Not open for further replies.
Back
Top Bottom