tAPI tAPI General Discussion + Progress Info

Discussion in 'Working in Progress Mods' started by Shockah, Oct 8, 2013.

  1. Shockah Grandson of the Wizard

    tAPI - where all your dreams come true...
    tAPI is a standalone mod for Terraria 1.2.2 [at the time this post was written / last edited], that allows loading modded content, be it simple new items, recipes for them, monsters and even code-only mods.
    tAPI is a continuation to the old and beloved tConfig, although they don't hold many similarities, other than being able to mod most of the game mechanics and having mostly the same dev team members.

    tAPI dev team:
    Arkhalis, Grox the Great, MiraiMai, PoroCYon, Shockah, Yoraiz0r, zetaPRIME.

    [IMG]

    Download (r10)
    Online IRC (direct link to our channel!) (if you have your own IRC client: server = irc.esper.net, port = 6667, channel = #tapi)
    Online documentation (work in progress!)
    Bugtracker (check either on the bugtracker first or ask in the IRC channel whether the bug is already reported, also make sure you're on the latest tAPI version)

    [IMG]

    Alternate links (open)
    Direct download link (r10) (please use the adf.ly link, that's your way of thanking the development team and a way for us to collect download statistics!)
  2. Garneac The Red God

    ......Good to hear the devs are making progress.
    ......I don't know if this has been addressed, but how easy (or difficult) will it be to transfer some of our favourite tConfig mods over to tAPI? Would tAPI somehow be able to read the source of those mods and rebuild them from there, or would we have to wait for creators to remake their mods (or, for the more knowledgeable players, remake the mods themselves)?
    Fruitbat, Sable, LolHens and 5 others like this.
  3. PoroCYon Crimera

    All mods will have to be rewritten.
  4. Copern Mouse

    Just from the simple example code I can already tell tAPI is going to be oh so much better than tConfig. Good job guys.

    Edit: IMO GetModInfo would make more sense as a virtual or abstract ModInfo property.
    Code:
    //omitted code
    private static readonly ModInfo modInfo;
     
    static ImaMod()
    {
        ModInfo info = new ModInfo();
        info.name = "TestMod";
        info.version = "r1";
        info.author = "Shockah";
        modInfo = info;
    }
     
    public override ModInfo ModInfo
    {
        get
        {
            return modInfo;
        }
    }
    //omitted code
    Kalcipher, Xyore and PoroCYon like this.
  5. Bullseye55 Moth

    Appreciate the progress all of you are giving. Keeping new-modder friendliness should be a cause though.

    As for the survey, I would prefer a separate application, as automatic effectively makes it harder to add things and test a large amount of them, then when the game crashes, and I can't revert easily.
    PoroCYon likes this.
  6. omega101 Zombie

    okay so lets asume i dont want to punch someone for discontinuing tconfig. i got a question:
    Will the way to mod items stay the same llike this:

    [Stats]
    stack=1
    bodySlot=-2
    rare=3
    defense=25
    hasArms=True
    hasHands=False
    height=18
    maxStack=1
    scale=1
    type=-1
    useAnimation=100
    useTime=100
    value=640000
    width=18
    setName=Dragon Set

    or will we have to relearn everything?
  7. PoroCYon Crimera

    There won't be inis.
  8. Shockah Grandson of the Wizard

    JSON though.
    Droid15243, Persuasion, NeonJ and 3 others like this.
  9. omega101 Zombie

    I know that, but do you have an idea how a new piece of armor code will look?

    BTW im sticking with tconfig
  10. PoroCYon Crimera

    Code:
    "item": {
        "name": "armor",
        "defense": 5,
        "setName": "armorSet"
        // etc
    }
    
    Wooren, hellow27, Droid15243 and 4 others like this.
  11. Fraidar Green Slime

    Nice! I was very surprised when i heared about tAPI. I found that topic in 5 minutes and i am really happy, that will by so easy to make mods now. Guys, good wokr at the moment, i'm interested what would you do in future. Good luck and don;t drop the idea.
    Shockah and PoroCYon like this.
  12. omega101 Zombie

    from what ive seen it will be even more annoying now. im sticking to 1.1.1 and tconfig
  13. Shockah Grandson of the Wizard

    Do it then. No one cares. Modding isn't really supposed to be something newbies should do, be happy you'll BE ABLE to do it anyways.

    EDIT: Btw. You meant 1.1.2.
  14. Zer0 Th3 Fall3n Blazing Wheel

    Shockah I want to say I am very greatful personally and I am litterally as excited to see this as I was the release of 1.2! Modding kept terraria alive way beyond its lifespan and I personally appreciate the ability to mod! I also want to ask if there is a place to learn proffesional .json code. I would like to also if at all have a rough idea of folder structure and setup in advanced because I am going to be starting my own mini mods.
  15. Shockah Grandson of the Wizard

    There is no such thing as "professional JSON code", because JSON isn't code. It's just a way of storage. Think of it as of advanced INI files, allowing nesting structures (objects and arrays).

    Currently, tAPI uses the Documents/My Games/Terraria/tAPI folder for storing all things. tAPI/Players, tAPI/Worlds, tAPI/Mods. Mods should be put as folders with sources in tAPI/Mods. For example, mod Accessory Slots+ should be put in tAPI/Mods/Accessory Slots+, and its whole code right in this folder.
    We didn't decide on the other paths just yet, so I can't say just yet.
    hellow27, Kitty Box, PoroCYon and 5 others like this.
  16. Xyore Green Slime

    What a large overhaul. As flexibility increases, so does complexity I assume. I also see this as a sort of "loyalty test" for those who are truly determined to mod or convert existing mods to 1.2. My deepest gratitude to the tAPI team.
  17. Fraidar Green Slime

    I'm totally newbie in modding but i really want to learn how to make mods, so i will wait for tAPI and when i make my first mod, i think it will be pretty nice. I want to make a custom music box. It will be able to do in tAPI?
  18. Shockah Grandson of the Wizard

    Anything is possible with a little of knowledge. Although... I don't know, aren't there music boxes for new 1.2 music? If yes, why would you want to add any?
    hellow27, Kitty Box, PoroCYon and 3 others like this.
  19. Zer0 Th3 Fall3n Blazing Wheel

    I didn't know that :p I will look into how it works then. Thank you for the prompt response.
    Shockah likes this.
  20. Fraidar Green Slime

    I want to make a Music Box with "epic sax guy" music. I can't make it in normal terraria and i'm really determined to do that. If it posiible, i will make it. (Sorry for mistakes but i'm from Poland and i don't know English very good)
    offthewallie likes this.

Share This Page