Standalone [1.3] tModLoader - A Modding API

when install tmodloader 0.9.0.2 and start terraria, it launches like i didnt even install tomdloader. any suggestions??


Edit: now it works but now mid through loading the mods it crashes with a big scary crash log D:
 
Last edited:
upload_2016-12-18_1-33-3.png

hey, sorry for silly questions, still how do i fix ?
 
You're missing a semicolon after 'using Terraria'
actually, i had it with semicolon also, i had to put terraria as refferences by browsing to executable and it started to work :D
i didnt know of this as i followed some simple viedo tutiorials that didnt mention it.
 
it said this
An error occurred while loading CosmieticVariety This mod has automatically been disabled

Object reference not set to an instance of an object.
at EnemyMods.NPCs.gNPC.SetDefaults(NPC npc) in c:\Users\Kenneth\Documents\my games\Terraria\ModLoader\Mod Sources\EnemyMods\NPCs\gNPC.cs:line 29
at Terraria.ModLoader.NPCLoader.SetupNPC(NPC npc)
at Terraria.NPC.SetDefaults(Int32 Type, Single scaleOverride)
at Terraria.NPC.SetDefaultsKeepPlayerInteraction(Int32 Type)
at Terraria.NPC.CloneDefaults(Int32 Type)
at CosmeticVariety.NPCs.Starzar.SetDefaults() in c:\Users\benma\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\CosmeticVariety\NPCs\Starzar.cs:line 14
at Terraria.ModLoader.Mod.SetupContent()
at Terraria.ModLoader.ModLoader.do_Load(Object threadContext)

HELP!
 
For some reason, enemies aren't dropping money. I'm currently using:


Thorium Mod
Calamity Mod
Zoaklen Mod
Reduced Grinding Mod
RPG classes mod
Dushy's Upgrade mod

It's really frustrating how I always have like no money.
 
Every single weapon that Summons an entity on screen doesn't work, like the flare gun, slime staff, and it applies to modded weps too. Can someone plz help(I'm sorry for bothering everyone again
 
when i make a sword, i can change item width and height, but i do not notice any effect of changing it, as hitbox of my sword seem to stay just as big as my sprite size which stay the same size as well. So what are those for?
 
View attachment 152072
hey, sorry for silly questions, still how do i fix ?
See the yellow triangle next to 'Terraria' in references? that means that Visual Studio can't find the file anymore. Remove the reference and add it again. Also, make sure you are referencing tModLoader's .exe not vanilla .exe, if you have a side-by-side installation.

when i make a sword, i can change item width and height, but i do not notice any effect of changing it, as hitbox of my sword seem to stay just as big as my sprite size which stay the same size as well. So what are those for?
I think that width and height change the item's appearance when dropped in the world. I think that item.scale is what you want to change. But I could be wrong.
 
Is it possible to store data in an external file, such as a .txt?
 
Hi guys, I don't see a bug or feature request thing in the OP and the former programmer in me has been tickled.

In short, when trying to build a mod without the "build.txt" file existing in the mod's source folder, everything *appears* to work properly but it fails miserably. If you use tModReader to extract the result, essentially all the input files are missing. Any chance of adding a simple check for the existence of the "build.txt" file during the build phase?
 
EDIT: Nevermind. I removed and reequiped all my equipment and things seem to have fixed themselves and I can't cause it to happen again. So.. I guess.. move along, nothing to see here.

EDIT 2: Thanks to another member posting about this same issue, it turns out that putting a dye in the head slot is what caused it: https://forums.terraria.org/index.p...der-a-modding-api.23726/page-733#post-1156016

I'm working on getting the TML GOG patches working and I've come across some unusual behavior. Before I make a github issue, I want to see if any of you steam users can reproduce this, because there is every possibility that it could just be an issue on the GOG patching side.

Basically, the Balloon Animal and Bundled Party Balloons vanity accessories display below the character's feet instead of above their head. The left image shows the problem in patched GOG Terraria and the right image from vanilla Terraria shows what it should look like.
View attachment 151690
Steam user here, and I have the exact same problem. I first noticed it with "Bundle of Balloons", and it indeed happens with all others I've tried -- all of them appear just like in your picture, roughly half of it depicted underneath the character. This is the only significant problem I've encountered so far using the latest tMod.



Apologies in case this has since been addressed.
 
Hi guys another question. The answer is likely no but is there a way to directly access player data? Specifically, I'd like to be able to access the player's equipment array and increase the size of array that holds accessories. It seems to be hard coded to 7.
 
When im trying to use ranged type weapon nothing happens. if im facing right every weapon is in daedalus bow position and if im facing left every weapon aims into the ground. They don't shoot anything and don't consume ammo.

Edit1: also my game crashes every 10 mins.
 
Last edited:
one question: ive found the tmodloader migration file an had migrated most of the stuff, but now tmodloader says something llike "no override accepts 2-arguments for the "hurt"-method" (sorry i had to translate that error it might not be perfect) and ive found nothing about it on this migration file so could someone please help me? :confused:
 
TML GOG Patcher for 1.3.4.4
Is out and up and running (contrary to the current opening post in this topic - due to a short timeframe since release and this post).
Refer to the link provided in this topic to 'GOG Installer' for an up-to-date download link and information.

Thanks to Jeckel for continuing work on this.
 
one question: ive found the tmodloader migration file an had migrated most of the stuff, but now tmodloader says something llike "no override accepts 2-arguments for the "hurt"-method" (sorry i had to translate that error it might not be perfect) and ive found nothing about it on this migration file so could someone please help me? :confused:
Hurt in ModPlayer looks like this: public override void Hurt(bool pvp, bool quiet, double damage, int hitDirection, bool crit). You'll have to show the exact error if this doesn't help
 
Hurt in ModPlayer looks like this: public override void Hurt(bool pvp, bool quiet, double damage, int hitDirection, bool crit). You'll have to show the exact error if this doesn't help
in fact ive put that in my weapon...
and the specific code of this is:
Code:
public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit)
        {
               int spike = (int)Math.Floor((double)(damage / 10));
                 player.Hurt(spike, target.direction);
            base.OnHitNPC(player, target, damage, knockBack, crit);
        }
or do I have to do it in ModPlayer?
 
in fact ive put that in my weapon...
and the specific code of this is:
Code:
public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit)
        {
               int spike = (int)Math.Floor((double)(damage / 10));
                 player.Hurt(spike, target.direction);
            base.OnHitNPC(player, target, damage, knockBack, crit);
        }
or do I have to do it in ModPlayer?
Oh. You are talking about a vanilla method. I am in bed, hopefully someone can tell you the new parameters.
 
You are talking about a vanilla method. I am in bed, hopefully someone can tell you the new parameters.
yeah probably (yeah im not a pro coder...). but then i wont bother you
 
Back
Top Bottom