tAPI [Discontinued] tAPI - A Mod To Make Mods

Status
Not open for further replies.
could someone please help me with this error


TAPI.Mods+LoadException: ThoriumMod+.tapi: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at TAPI.ReflectionHelper.FindSubclasses(Assembly code, Type superclass)
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()
 
how do you get r15 work with 1.3
It's not easy, but if you happen to have access to the data from 1.2, you can simply copy 29 of the images from 1.2's folder into 1.3's Images folder. And even then, there will be some graphical glitches on town NPC's.

If you don't have any of 1.2's images, it's possible, just more tricky. Follow these instructions at your own risk!

You need to copy certain .xnb files from Terraria's Content/Images folder, and then rename them as follows: (without removing the .xnb extension)
1.3 name ---------------------> 1.2 name
Craft_Toggle_0---------------------> CraftButton
Cursor_0---------------------> Cursor
Cursor_1---------------------> Cursor2
Player_4_11---------------------> Female_Pants
Player_4_4---------------------> Female_Shirt
Player_4_6---------------------> Female_Shirt2
Player_4_12---------------------> Female_Shoes
Player_4_8---------------------> Female_Undershirt
Player_4_13---------------------> Female_Undershirt2
Player_0_13---------------------> player_belt //the p in player must be lowercase, for this one only
Player_0_1---------------------> Player_Eye_Whites
Player_0_2---------------------> Player_Eyes
Player_4_5---------------------> Player_Hands
Player_4_9---------------------> Player_Hands2
Player_0_0---------------------> Player_Head
Player_0_11---------------------> Player_Pants
Player_0_6---------------------> Player_Shirt
Player_0_12---------------------> Player_Shoes
Player_0_4---------------------> Player_Undershirt
Player_0_8---------------------> Player_Undershirt2
Rain---------------------> Rain_0 //This will probably cause graphical wierdness,
Rain---------------------> Rain_1 //Not much that I can do about it really.
Rain---------------------> Rain_2
Rain---------------------> Rain_3
Rain---------------------> Rain_4
Rain---------------------> Rain_5
Player_0_7---------------------> Skin_Arm
Player_0_3---------------------> Skin_Body
Player_0_10---------------------> Skin_Legs
Once done, copy these back to the Images folder. If you get asked to overwrite anything, don't. It means that you forgot to rename something.

If it still won't launch, it's possible that you made a spelling error. Check (userName)\Documents\My Games\Terraria\tAPI\Logs for the most recent log file that tells you which images are still missing and check the spelling of those.

There's been some changes made to the sprites with 1.3 that will cause graphical wierdness on the player, but there isn't much that I can do about it. You also have to create six copies of Rain and rename them Rain_0 to Rain_5. This will make rain look strange, but again, I can't really do anything.

Having gone to all of that effort... you're probably better off waiting for tModLoader or Prism anyway. tAPI doesn't have any of 1.3's features and nobody is making any new mods for it.
 
though tModLoader currently has more features than prism, is actually released, and also has already a mod for it
So it's better than prism? as i recall pages back there is just people battling on ''how prism is gonna be better cause it has better features and support and all and etc.''

Also whats with the r16 exe on download latest tapi?
 
So it's better than prism? as i recall pages back there is just people battling on ''how prism is gonna be better cause it has better features and support and all and etc.''

Also whats with the r16 exe on download latest tapi?
tModLoader is slightly older than Prism, but they work diffrently.
tModLoader is closed-source and uses decompiled terraria.exe, meanwhile Prism is open-source, and uses code-injection at original .exe - thus barely requiring any changes if terraria gets updates.

They both have their own good points, but I would prefer Prism due to being open source(mess with code for yourself, or PR changes at github).
 
May I have help with this?
When I once tried to code something very simple, (an item), it worked.
Compiling the mod worked too. But when I launch tAPI, it shows up on the processes list in task manager, only to end 2 minutes later.
The only thing I managed to get from the log is this: (Note that I am using 1.2.4.1 ! )


my crap.png
 
May I have help with this?
When I once tried to code something very simple, (an item), it worked.
Compiling the mod worked too. But when I launch tAPI, it shows up on the processes list in task manager, only to end 2 minutes later.
The only thing I managed to get from the log is this: (Note that I am using 1.2.4.1 ! )


View attachment 67279

I think its easy. Look at the line 2 and 12:

Line 2: Error loading "Images\SmartDig". File not found.
Line 12: Error Loading "Content\Images\SmartDig.xnb". File not found.

Look at that directory and see if you can find this file.
 
So it's better than prism? as i recall pages back there is just people battling on ''how prism is gonna be better cause it has better features and support and all and etc.''

Also whats with the r16 exe on download latest tapi?
From what I can tell so far, it's way easier for Prism to update to future versions of Terraria, but it's way easier for tModLoader to have things added to it.

Hopefully it will be easier for tModLoader to update in the future, since someone has been working on a tool to patch the vanilla code, plus the tModLoader code is open-source.
 
tModLoader is slightly older than Prism, but they work diffrently.
tModLoader is closed-source and uses decompiled terraria.exe, meanwhile Prism is open-source, and uses code-injection at original .exe - thus barely requiring any changes if terraria gets updates.

They both have their own good points, but I would prefer Prism due to being open source(mess with code for yourself, or PR changes at github).
tModLoader was only released sooner.
Prism has been in development longer.
 
I'm just curious: will tModLoader and Prism mods be compatible with each other?
At the moment I'm going to assume no, but eventually it's possible we could add compatibility

To avoid dividing and splitting up the consumers and creators of mods with multiple API's and to unify and ensure both unbound creativity and longevity in the mod scene in general, I think this should definitely be a priority for the dev teams of TModLoader, Prism or even TerrariaPatcher.
Compatibility between or even merging parts of these would, if at all technically possible, be a great boon to the modding community, possibly even helping to extend the popularity and future of Terraria in general.
 
I think its easy. Look at the line 2 and 12:

Line 2: Error loading "Images\SmartDig". File not found.
Line 12: Error Loading "Content\Images\SmartDig.xnb". File not found.

Look at that directory and see if you can find this file.
Don't worry, I already fixed it :) .
 
Status
Not open for further replies.
Back
Top Bottom