Iroh The Dragon
Terrarian
thanks 
Start by learning some C# if you want to mod. Look up some tutorials and download Visual Studio 2015 Community edition (you can also download another programming tool, but I'd advice you to go with Visual Studio). You can then stroll through the example mod and change some values to see what they do...How can I make mods in terraria? I have been looking everywhere but I can't find anything about making mods and I really want to make mods.
Looks nice, but creating custom grappling hooks is already possible, right? Or are there some functions to simplify things for the user(s)?sneak peak of something from v0.7:
View attachment 84788
It also takes my pc a while to decompile some of the files, but 3 hours?... My PC (laptop) is 3-4 years old I think and it takes a maximum time of 15-20 minutes to decompile the .cs files (especially the NPC one).Speaking of the source code, has anyone had any issues decompiling it? I can read most classes fine within ILSpy itself, but attempting to decompile/export the whole archive causes my computer to freeze up; the longest I've left it running is about 3 hours before I needed to use the machine again. I'm on a mid-range machine from a few years ago, but I wouldn't expect it to be so slow that nothing else works for several hours while decompiling!
I've left a 4GB machine running for 24 hrs. (Ram is the limiting factor I think, unless you have an SSD.) Didn't work. Try another machine if you can, or change the configureation of "SingleDecompileThread" in \tModLoader\setup\bin\setup.vshost.exe.config from False to True.Speaking of the source code, has anyone had any issues decompiling it? I can read most classes fine within ILSpy itself, but attempting to decompile/export the whole archive causes my computer to freeze up; the longest I've left it running is about 3 hours before I needed to use the machine again. I'm on a mid-range machine from a few years ago, but I wouldn't expect it to be so slow that nothing else works for several hours while decompiling!
Yep I have a laptop from 'bout 12/25/9-10 and it works perfectIt also takes my pc a while to decompile some of the files, but 3 hours?... My PC (laptop) is 3-4 years old I think and it takes a maximum time of 15-20 minutes to decompile the .cs files (especially the NPC one).
No i dont think soIs it possible to add custom prefixes to weapons and accessories?
How do you do what the worm scarf does?You are just making the sprite then? You'll want to make the projectile and the dust sprites. You'll want to convert Projectile_280.xnb and Dust.xnb to .png (XNB to PNG Converter), then find the 170th dust (I think it's this one), go into your image editing program and copy that into a 10x30 image, use the image adjustment commands to change the hue to silver, save it (in the mod soures folder). Do the same for the projectile.![]()
If you need help with the programming of the buff, projectile, or item, let me know where you are stumped.
It wouldn't be part of ModPlayer, but it's not that high a priority right now.
Oh, here are some snippets of things you can do, mix and match as you like, they should all be pretty self explanatory. Check the wiki for which ones go with what.
Code:player.aggro += 300; player.meleeCrit += 17; player.meleeDamage += 0.22f; player.meleeSpeed += 0.15f; player.moveSpeed += 0.15f; player.rangedCrit += 7; player.rangedDamage += 0.16f; player.maxMinions++; player.minionDamage += 0.22f; player.statManaMax2 += 60; player.manaCost -= 0.15f; player.magicCrit += 7; player.magicDamage += 0.07f;
You can modify the 'endurance' variable from the player. Say you've got the following when updating your accessory (for example):How do you do what the worm scarf does?
player.endurance += 0.25F;
My almost-2-year-old labtop freezes for 2-3 hours trying to decompile it, so it's perfectly normal.Speaking of the source code, has anyone had any issues decompiling it? I can read most classes fine within ILSpy itself, but attempting to decompile/export the whole archive causes my computer to freeze up; the longest I've left it running is about 3 hours before I needed to use the machine again. I'm on a mid-range machine from a few years ago, but I wouldn't expect it to be so slow that nothing else works for several hours while decompiling!
So you mean like how a Wooden Arrow spawns itself when it hits a block? In that case you would call (in the projectile coding)What code I can use to add a item spawn for a projectile?
public override void Kill(int timeLeft)