Eli10293
Spazmatism
Not That CodeI'm sure you meant something more complicated.Code:"shoot": 95,
Im Talking About The Internal Code For The AIStyle, Thats The Projectile ID
Not That CodeI'm sure you meant something more complicated.Code:"shoot": 95,
Terraria 1.2.4.1, tAPI Builder r15
========================================
Building mod Bomb
Validating Jsons...
Validating ModInfo.json
Packaging...
Compressing \Items\Bomb.png
Compressing \ModInfo.json
Done.
========================================
Built 1 mod.
{
"size": [28,62],
"aiStyle": 20,
"penetrate": -1,
"timeLeft": 600,
"frameCount": 8,
"friendly": true,
"tileCollide": false,
"melee": true,
"hide": true
}
it's simple. you can't do projectile animations via JSON, you have to do it via code...Why projectile animation won't work?
Code:{ "size": [28,62], "aiStyle": 20, "penetrate": -1, "timeLeft": 600, "frameCount": 8, "friendly": true, "tileCollide": false, "melee": true, "hide": true }
Tried this and it won't work too.it's simple. you can't do projectile animations via JSON, you have to do it via code...
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using TAPI;
using Terraria;
namespace Tremor.Projectiles
{
public class LaserDrilLProj : ModProjectile
{
public override void PostAI()
{
projectile.frameCounter++;
if (projectile.frameCounter > .9)
{
projectile.frame++;
projectile.frameCounter = 0;
}
if (projectile.frame >= 8)
{
projectile.frame = 1;
return;
}
}
}
}
1. it's because you still need frameCount on the JSONTried this and it won't work too.
Code:using System; using System.Collections.Generic; using System.Text; using Microsoft.Xna.Framework; using TAPI; using Terraria; namespace Tremor.Projectiles { public class LaserDrilLProj : ModProjectile { public override void PostAI() { projectile.frameCounter++; if (projectile.frameCounter > .9) { projectile.frame++; projectile.frameCounter = 0; } if (projectile.frame >= 8) { projectile.frame = 1; return; } } } }
Just download installer of new version and install it. You don't have to remove the previous version.how do you update Tapi ?
thanks! that will be helpful for many people !Just download installer of new version and install it. You don't have to remove the previous version.
I have a problem.
While loading the Mods, the game crashes.
It says:
"tAPI.exe has stopped working"
ModInfo
Item json
However, i have tried to change all items, tiles and names by replacing them with others.
jsonlint.com says that the codes are valid
Thanks for your reply!First off: I'm pretty sure your internal name should never have any spaces in it. This shouldn't be causing the crash, but if you ever need the internalname later you'll want to change this.
Second, the texture property is unneeded if the texture is in the same directory as the json, although it needs to be the same name as the json. I'm pretty sure that something relating to this is why it's crashing.
Finally, I'd recommended you use something like pastebin or hastebin rather than a picture of text.
Unhanded Exception: System.IO.FileNotFound: Could not loud file or assembly 'tAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot fine the file specified.
at Terraria.ProgramServer.Main(String[] args)