tAPI [Discontinued] tAPI - A Mod To Make Mods

Discussion in 'Released' started by Yoraiz0r, Oct 14, 2014.

Thread Status:
Not open for further replies.
Thread was lock by: Tunnel King
Reason: discontinued prior to 1.3 release
Lock date: 20:26 04-08-2016
  1. Azu

    Azu Retinazer

    That is wrong. There is a HUGE difference between the two:tModloader doesn't use .jsons, it is all in .cs files. This makes it harder to work with than tAPI.
     
  2. Sylent :^)

    Sylent :^) Plantera

    Yes, but JSON isn't really coding, it's more like writing out properties. And the fact it only uses CS isn't that big a different. I learned it really quickly, taking notes from the ExampleMod.
     
    Eli10293 likes this.
  3. blushiemagic

    blushiemagic Retinazer

    That's actually a pretty small difference. All that means is you set properties using a different syntax, and you get to put everything into one file instead of two files.

    There are large differences between the two APIs, but most those differences are internal, where most people can't see them. (Well, another difference is that tModLoader is still very incomplete.)
     
    Sylent :^) likes this.
  4. W1K

    W1K Witch

    The lack of jsons essentially just makes it harder for people who are not experienced coders, possibly also makes it so it needs a slight tiny bit more effort to create the entry for an item that has only purpose of being a material. I was initially dissatisfied with the lack of jsons from both tmodloader and prism, but it turns out it makes organizing slightly easier and kinda reduces files clutter.
     
    Last edited: Jan 4, 2016
    Eli10293 likes this.
  5. Eli10293

    Eli10293 Spazmatism

    Using .cs files for all my mod files really helped me improve my coding abilitly
     
    Sylent :^) likes this.
  6. MudkipMonkey

    MudkipMonkey Terrarian

    I have been trying to play tAPI mods but everytime i start tAPI up through gamelauncher it says:
    tAPI has stopped working.
    I have tried reinstalling my entire Terraria but nothing helps.
    Anybody please help?
     
  7. Sylent :^)

    Sylent :^) Plantera

    A feature with 1.3 makes tAPI unable to launch.
     
  8. x3r0x

    x3r0x Terrarian

    Hi. Can someone help me, please? Im new in it, i installed some mods and i got those errors:

    >>> Singleplayer: 00:29:39 <<<
    TAPI.Mods+LoadException: berberborscing v1.1.4.tapi: System.TypeLoadException: Could not load type 'TAPI.ModBuff' from assembly 'tAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
    at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
    at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
    at System.Reflection.Assembly.GetType(String name)
    at TAPI.ModJsonHandler.HandleBuff(ModBase modBase, JsonData j, String fname) in x:\tAPI Core\tAPI\Mod\ModJsonHandler.cs:line 1447
    at TAPI.ModJsonHandler.Handle(ModBase modBase) in x:\tAPI Core\tAPI\Mod\ModJsonHandler.cs:line 59
    at TAPI.Mod.<Load>b__0(BinBuffer bb) in x:\tAPI Core\tAPI\Mod\Mod.cs:line 276
    at TAPI.Mods.HandleTapiModFile(FPath path, Action`1 action) in x:\tAPI Core\tAPI\Mod\Mods.cs:line 449
    at TAPI.Mods.HandleModFile(FPath path, Action`1 action) in x:\tAPI Core\tAPI\Mod\Mods.cs:line 427
    at TAPI.Mod.Load() in x:\tAPI Core\tAPI\Mod\Mod.cs:line 107
    at TAPI.Mods.Load() in x:\tAPI Core\tAPI\Mod\Mods.cs:line 539
    DungeonGen.tapi: System.TypeLoadException: Could not load type 'TAPI.ModBuff' from assembly 'tAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
    at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
    at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
    at System.Reflection.Assembly.GetType(String name)
    at TAPI.ModJsonHandler.HandleBuff(ModBase modBase, JsonData j, String fname) in x:\tAPI Core\tAPI\Mod\ModJsonHandler.cs:line 1447
    at TAPI.ModJsonHandler.Handle(ModBase modBase) in x:\tAPI Core\tAPI\Mod\ModJsonHandler.cs:line 59
    at TAPI.Mod.<Load>b__0(BinBuffer bb) in x:\tAPI Core\tAPI\Mod\Mod.cs:line 276
    at TAPI.Mods.HandleTapiModFile(FPath path, Action`1 action) in x:\tAPI Core\tAPI\Mod\Mods.cs:line 449
    at TAPI.Mods.HandleModFile(FPath path, Action`1 action) in x:\tAPI Core\tAPI\Mod\Mods.cs:line 427
    at TAPI.Mod.Load() in x:\tAPI Core\tAPI\Mod\Mod.cs:line 107
    at TAPI.Mods.Load() in x:\tAPI Core\tAPI\Mod\Mods.cs:line 539
    GRealm.tapi: System.TypeLoadException: Could not load type 'TAPI.ModBuff' from assembly 'tAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
    at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
    at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
    at System.Reflection.Assembly.GetType(String name)
    at TAPI.ModJsonHandler.HandleBuff(ModBase modBase, JsonData j, String fname) in x:\tAPI Core\tAPI\Mod\ModJsonHandler.cs:line 1447
    at TAPI.ModJsonHandler.Handle(ModBase modBase) in x:\tAPI Core\tAPI\Mod\ModJsonHandler.cs:line 59
    at TAPI.Mod.<Load>b__0(BinBuffer bb) in x:\tAPI Core\tAPI\Mod\Mod.cs:line 276
    at TAPI.Mods.HandleTapiModFile(FPath path, Action`1 action) in x:\tAPI Core\tAPI\Mod\Mods.cs:line 449
    at TAPI.Mods.HandleModFile(FPath path, Action`1 action) in x:\tAPI Core\tAPI\Mod\Mods.cs:line 427
    at TAPI.Mod.Load() in x:\tAPI Core\tAPI\Mod\Mod.cs:line 107
    at TAPI.Mods.Load() in x:\tAPI Core\tAPI\Mod\Mods.cs:line 539
    Necro.tapi: System.TypeLoadException: Could not load type 'TAPI.ModBuff' from assembly 'tAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
    at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
    at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
    at System.Reflection.Assembly.GetType(String name)
    at TAPI.ModJsonHandler.HandleBuff(ModBase modBase, JsonData j, String fname) in x:\tAPI Core\tAPI\Mod\ModJsonHandler.cs:line 1447
    at TAPI.ModJsonHandler.Handle(ModBase modBase) in x:\tAPI Core\tAPI\Mod\ModJsonHandler.cs:line 59
    at TAPI.Mod.<Load>b__0(BinBuffer bb) in x:\tAPI Core\tAPI\Mod\Mod.cs:line 276
    at TAPI.Mods.HandleTapiModFile(FPath path, Action`1 action) in x:\tAPI Core\tAPI\Mod\Mods.cs:line 449
    at TAPI.Mods.HandleModFile(FPath path, Action`1 action) in x:\tAPI Core\tAPI\Mod\Mods.cs:line 427
    at TAPI.Mod.Load() in x:\tAPI Core\tAPI\Mod\Mod.cs:line 107
    at TAPI.Mods.Load() in x:\tAPI Core\tAPI\Mod\Mods.cs:line 539
    OmnirsNosPak.tapi: System.TypeLoadException: Could not load type 'TAPI.ModBuff' from assembly 'tAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
    at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
    at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
    at System.Reflection.Assembly.GetType(String name)
    at TAPI.ModJsonHandler.HandleBuff(ModBase modBase, JsonData j, String fname) in x:\tAPI Core\tAPI\Mod\ModJsonHandler.cs:line 1447
    at TAPI.ModJsonHandler.Handle(ModBase modBase) in x:\tAPI Core\tAPI\Mod\ModJsonHandler.cs:line 59
    at TAPI.Mod.<Load>b__0(BinBuffer bb) in x:\tAPI Core\tAPI\Mod\Mod.cs:line 276
    at TAPI.Mods.HandleTapiModFile(FPath path, Action`1 action) in x:\tAPI Core\tAPI\Mod\Mods.cs:line 449
    at TAPI.Mods.HandleModFile(FPath path, Action`1 action) in x:\tAPI Core\tAPI\Mod\Mods.cs:line 427
    at TAPI.Mod.Load() in x:\tAPI Core\tAPI\Mod\Mod.cs:line 107
    at TAPI.Mods.Load() in x:\tAPI Core\tAPI\Mod\Mods.cs:line 539
    Tremor Mod.tapi: System.IndexOutOfRangeException: Index was outside the bounds of the array.
    at TAPI.ModJsonHandler.HandleBuff(ModBase modBase, JsonData j, String fname) in x:\tAPI Core\tAPI\Mod\ModJsonHandler.cs:line 1450
    at TAPI.ModJsonHandler.Handle(ModBase modBase) in x:\tAPI Core\tAPI\Mod\ModJsonHandler.cs:line 59
    at TAPI.Mod.<Load>b__0(BinBuffer bb) in x:\tAPI Core\tAPI\Mod\Mod.cs:line 276
    at TAPI.Mods.HandleTapiModFile(FPath path, Action`1 action) in x:\tAPI Core\tAPI\Mod\Mods.cs:line 449
    at TAPI.Mods.HandleModFile(FPath path, Action`1 action) in x:\tAPI Core\tAPI\Mod\Mods.cs:line 427
    at TAPI.Mod.Load() in x:\tAPI Core\tAPI\Mod\Mod.cs:line 107
    at TAPI.Mods.Load() in x:\tAPI Core\tAPI\Mod\Mods.cs:line 539
    at Mods.Load()

    Mods used:
    BaseMod (Grox The Great's BaseMod 1.0.5 by Grox The Great)
    berberborscing (berberborscing's Mod 1.1.3c by berberborscing)
    DungeonGen (DungeonGen 1.4.3 by Flanker)
    GRealm (Grealm 1.0.5 by Grox The Great)
    Necro (Necropolis Mod null by Zoodletec and Sapharan)
    OmnirsNosPak (Omnirs Nostalgia Pack 1.0.4.3 by Omnir)
    InvisibleHand (The Invisible Hand 1.2.0rc3-tr16 by wuli1986)
    Tremor (Tremor Mod 1.2 by Bogdan3456, Zadum4ivii, Slavdey, Wilson P., The Mystery Chest, Naikoraptor, Rostos16)

    ^ this one after loading mods


    >>> Singleplayer: 00:41:10 <<<
    System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    at Dictionary`2.get_Item(TKey key)
    at InvisibleHand.IHPlayer.Save(BinBuffer bb)
    at Player.DeepClone()
    at <>c__DisplayClass2cb.<CreateMenus>b__a9()
    at MenuPage.Draw(SpriteBatch SP)
    at Menu.DrawMenu()
    at Main.Draw(GameTime gameTime)

    Mods used:
    BaseMod (Grox The Great's BaseMod 1.0.5 by Grox The Great)
    berberborscing (berberborscing's Mod 1.1.3c by berberborscing)
    DungeonGen (DungeonGen 1.4.3 by Flanker)
    GRealm (Grealm 1.0.5 by Grox The Great)
    Necro (Necropolis Mod null by Zoodletec and Sapharan)
    OmnirsNosPak (Omnirs Nostalgia Pack 1.0.4.3 by Omnir)
    InvisibleHand (The Invisible Hand 1.2.0rc3-tr16 by wuli1986)
    Tremor (Tremor Mod 1.2 by Bogdan3456, Zadum4ivii, Slavdey, Wilson P., The Mystery Chest, Naikoraptor, Rostos16)

    ^ and this one when i want to play my character :(
     
  9. Is there a way to run tAPI again?
     
  10. Zanthor

    Zanthor Golem

    Not without files from 1.2.
     
  11. How do you get the files i REALLY REALLLY want to play tAPI again.
     
  12. Zanthor

    Zanthor Golem

    If you don't already have the files, you can't legally re-obtain them. At least, not until Game Launcher gets its downgrade feature back, and I'm not sure if that will even happen at this point.
     
  13. Hold on i found 1.2.4.1 files. What do i do with them?
     
  14. Zanthor

    Zanthor Golem

    Go to this directory: C:/Program Files(or Program Files(x86) if you have that folder)/Steam/Steamapps/common/Terraria Now, in here you'll see a 'content' folder. Replace that with the 1.2.4.1 content folder.
     
  15. Ok i did that is that all?
     
  16. Zanthor

    Zanthor Golem

    It should be.
     
  17. It won't launch no error or anything it just won't launch.
     
  18. Zanthor

    Zanthor Golem

    Huh. Then I have no clue.
     
  19. This is a dissapointment.
     
  20. Zanthor

    Zanthor Golem


    Well, luckily, tModLoader is a thing and people are making mods for it. There's a few good ones out already and once tML gets world hook support, there'll be a bunch more.
     
Thread Status:
Not open for further replies.