Standalone [1.3] tModLoader - A Modding API

Can some one tell me where the characters are store, I have an old character that I want to "revive" (he is not dead in the game / he is in softcore)
 
Can some one tell me where the characters are store, I have an old character that I want to "revive" (he is not dead in the game / he is in softcore)
Vanilla: Documents/My Games/Terraria
tModLoader: Documents/My Games/Terraria/ModLoader
 
What exactly do you mean? If you can't get your item then you can add a recipe to it, or spawn it in with cheat sheet.
when ever there is an item on the ground from like mining a block or killing a monster and i try to pick it up i cant do anything it just freezes my character and i can only open my inv. or save & exit
 
Can anyone tell me how to get my projectile to explode on impact? I got it to stop bouncing and etc..
Code:
using Microsoft.Xna.Framework;

using Microsoft.Xna.Framework.Graphics;

using Terraria;

using Terraria.ID;

using Terraria.ModLoader;



namespace Tf2.Projectiles

{

    public class Rocket : ModProjectile

    {

        public override void SetDefaults()

        {

            projectile.name = "Rocket";

            projectile.width = 8;

            projectile.height = 8;

            projectile.aiStyle = 1;

            projectile.friendly = true;

            projectile.ranged = true;

            projectile.penetrate = 1;

            projectile.timeLeft = 600;

            projectile.alpha = 255;

            projectile.light = 0.5f;

            projectile.extraUpdates = 1;

            ProjectileID.Sets.TrailCacheLength[projectile.type] = 5;

            ProjectileID.Sets.TrailingMode[projectile.type] = 0;

            aiType = ProjectileID.Bullet;

        }



        public override bool OnTileCollide(Vector2 oldVelocity)

        {

            projectile.penetrate--;

            if (projectile.penetrate <= 200)

            {

                projectile.Kill();

            }

            else

            {

                if (projectile.velocity.X != oldVelocity.X)

                {

                    projectile.velocity.X = -oldVelocity.X;

                }

                if (projectile.velocity.Y != oldVelocity.Y)

                {

                    projectile.velocity.Y = -oldVelocity.Y;

                }

                Main.PlaySound(SoundID.Item10, projectile.position);

            }

            return false;

        }



        public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)

        {

            Vector2 drawOrigin = new Vector2(Main.projectileTexture[projectile.type].Width * 0.5f, projectile.height * 0.5f);

            for (int k = 0; k < projectile.oldPos.Length; k++)

            {

                Vector2 drawPos = projectile.oldPos[k] - Main.screenPosition + drawOrigin + new Vector2(0f, projectile.gfxOffY);

                Color color = projectile.GetAlpha(lightColor) * ((float)(projectile.oldPos.Length - k) / (float)projectile.oldPos.Length);

                spriteBatch.Draw(Main.projectileTexture[projectile.type], drawPos, null, color, projectile.rotation, drawOrigin, projectile.scale, SpriteEffects.None, 0f);

            }

            return true;

        }

    }

}
[doublepost=1483215141,1483215054][/doublepost]
Im Having A Problem, My Mod Wont Build And The Error Lead's To My Armors Buff Code.
If You Find SomeThing Wrong Please Tell Me.

Helmet :

Code:
public override void UpdateArmorSet(Player player)
        {
            player.AddBuff(BuffID.NightOwl, 2);
        }
    }

Breastplate :

Code:
public override void UpdateArmorSet(Player player)
        {
            player.AddBuff(BuffID.Shine, 2);
        }
    }

Leggings :

Code:
public override void UpdateArmorSet(Player player)
        {
            player.AddBuff(BuffID.Speed, 2);
        }
    }
Change speed to swiftness, just like jopojelly said speed isn't a vanilla buff :P
 
@KirbyMaster500 @jopojelly Alright, I found the problem. This has nothing to do with custom wavebanks.


After exhaustive testing, the music box bug is without a doubt being caused by the Crystilium Mod. Which makes sense, given the fact this mod has been known to cause similar problems with other items within its mod, ideally candelabras.


Apologies for believing it was tModLoader itself causing the problem prior to this. It turns out I had to take more precautions in disabling each mod and restarting the game than I first realized, which made it impossible to get a true understanding of the problem's source. I've now tested all dozen or so of my mods individually and restarted between each enabling and disabling. Crystilium Mod is the only one where this music box bug occurs, and this happens regardless of using any custom wavebanks.


Regardless, users should take note Crystilium has some pesky issues at the moment, which may or may not be fixable by what Graydee has mentioned in their mod's thread. I've seen numerous people reporting strange bugs in other mod threads that could very well be caused by this mod.
 
Last edited:
Hey i got an error while renaming chests. I'm trying to rename my chest to "Misc. 1" and when i press "." it gives me this error. Tried with other keyboard layouts. (normally finnish, tried with EN(US) ) Using tmodloader 0.9.1.
The specified key is not found in the dictionary
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Terraria.GameInput.KeyConfiguration.CopyKeyState(TriggersSet oldSet, TriggersSet newSet, String newKey)
at Terraria.GameInput.PlayerInput.KeyboardInput()
at Terraria.GameInput.PlayerInput.UpdateInput()
at Terraria.Main.DoUpdate(GameTime gameTime)
at Terraria.Main.Update(GameTime gameTime)
 
Somehow I didn't find this int he thorium thread or here...

Where is the Mods folder on linux (Ubuntu 14.04) by default?

Found it

.local/share/Terraria/ModLoader/Mods

Please add this to the first post as it's not clear yet the mod loader it states won't work.
 
is there any way I can add a colored glow to wings when the user has them on (Not when the user uses them but in all conditions)
 

Attachments

How do I use projectiles that are already in the game?
 
Yeah... you may want to fix this.
There is an error/bug that happens when you try to type something in chat or trying to name something.
Here's the Error given.
Code:
The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Terraria.GameInput.KeyConfiguration.CopyKeyState(TriggersSet oldSet, TriggersSet newSet, String newKey)
   at Terraria.GameInput.PlayerInput.KeyboardInput()
   at Terraria.GameInput.PlayerInput.UpdateInput()
   at Terraria.Main.DoUpdate(GameTime gameTime)
   at Terraria.Main.Update(GameTime gameTime)
I hope you fix this problem.
 
Has anyone else been having issues with summoned minions, even vanilla ones, deciding to randomly despawn on you? It's something that I've seen multiple times in my last few sessions and it's really dang annoying. >_>
 
Happy New Year, everyone! :)

The TML GOG Patcher patches for Terraria 1.3.4.4 and TML 0.9.1.0 have been released: TML GOG Patcher

Here is the manual diff installer zip, for those Windows users that prefer it: tModLoader Windows GOG v0.9.1.0.zip

I don't have my workflow back up to full speed yet on my new computer -- Windows 10 is a pain -- so if there are any problems with the manual installer send me PM and we'll figure it out, and as always any problems with the TML GOG Patcher patches should be brought up in the application's thread and not here.
 
Can some one tell me where the characters are store, I have an old character that I want to "revive" (he is not dead in the game / he is in softcore)
Thank you so much ^_^ :D
 
Has anyone else been having issues with summoned minions, even vanilla ones, deciding to randomly despawn on you? It's something that I've seen multiple times in my last few sessions and it's really dang annoying. >_>
I've had minions despawn on me to, even way back in 0.8 versions. Usually during intense boss fights when lots of projectiles are being spawned. I'd like to know why this is happening to.
 
I've had minions despawn on me to, even way back in 0.8 versions. Usually during intense boss fights when lots of projectiles are being spawned. I'd like to know why this is happening to.
Hell I'm seeing it happen in the middle of my base with no action currently. There'd be a few seconds or so and then they disappear.
 
I think that I had to many mods open at the same time because when I disabled and opened 1 mod it was back to normal.
 
Does anybody know what reader I should use for a tmod, I'm attempting to manually update Pumpkings mod cause he hasn't updated it yet. I saw a link to a special one earlier but now for the life of me I cant find it.
 
I need some help here
Capture4.PNG

Code:
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;

namespace MoreStuff.Dusts
{
    public class GalacticDust : ModDust
    {
        public override void OnSpawn(Dust dust)
        {
            dust.color = new Color(255, 255, 255);
            dust.alpha = 1;
            dust.scale = 1.3f;
            dust.velocity = 0.5f;
            dust.noGravity = true;
            dust.noLight = false;
        }
        public override bool Update(Dust dust)
        {
            dust.Position += dust.velocity;
            dust.rotation += dust.velocity.X * 0.65f;
            dust.scale *= 2f;
            float light = 1 * dust.scale;
            Lighting.AddLight(dust.position, light, light, light)
            if (dust.scale < 9f)
            {
                dust.active = false;

            }
            return false;
        }
    }
}
 
Back
Top Bottom