1. For issues you find with the Switch and Console releases, please follow this link and give as much detail as possible. This is the speediest way to get info to Pipeworks and get a hotfix in the works.
    Dismiss Notice

Standalone [1.3] tModLoader - A Modding API

Discussion in 'Works-in-Progress' started by blushiemagic, Jul 7, 2015.

  1. 11pixels

    11pixels Terrarian

    Any suggestions? I'm going to uninstall terraria completely then install it again, gonna create new character, start new world then play for few mintues and at the end I'll try to put the mods.
     
  2. ALmaZss

    ALmaZss Plantera

    Thanks!
     
  3. jopojelly

    jopojelly Retinazer

    Well, the error is it can't open the error file. Actually, this error message looks like it happened when you clicked the open file button, is that right? You don't need to open the file.
     
  4. 11pixels

    11pixels Terrarian

    Error happens when I click the button for installing, then first i clicked open file but after i did that again it opened...idk
     
  5. jopojelly

    jopojelly Retinazer

    You mean installing a mod, right? Did you read the error message in the window there?
     
  6. 11pixels

    11pixels Terrarian

    first error after trying to install mod was about heavy load on server or something, second error was cannot find file specified, then it opened the folder with Runtime Error file which showed the same error: "cannot find file specified"
     
  7. ALmaZss

    ALmaZss Plantera

    I want when hit by a projectile at the enemy, it appeared the dust. When I use this code nothing happens
    Code:
            public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
            {
                int a = Dust.NewDust(new Vector2(target.position.X, target.position.Y + 2f), target.width, target.height, 21, target.velocity.X * 0.2f, target.velocity.Y * 0.2f, 100, default(Color), 2f);
                Main.dust[a].noGravity = true;
                Main.dust[a].velocity *= 0.3f;
                Dust b = Main.dust[a];
                b.velocity.X = b.velocity.X - target.velocity.X * 0.2f;
            }
     
    Last edited: Jun 11, 2016
  8. ALmaZss

    ALmaZss Plantera

    And about ray/stream projectiles, projectile moves too fast for dust that's why holes are forming
     
  9. W1K

    W1K Witch

    Quick and fast question, is there any way to hide an NPC's health bar? Specifically, I need this to prevent a worm NPC from showing the (usually wrong) hp of its single parts. Vanilla worms seem to use a bool called "dontCountMe", but setting it to true didn't seem to do anything.
     
  10. Four

    Four Terrarian

    Hey whenever I try to download a mod it says "The mod browser server is currently under heavy load. Try again later."
    Can I do anything to fix this or do I just have to wait?
     
  11. TheGamerLV

    TheGamerLV Terrarian

    Hello Please help me
    Code:
        public override void UpdateEquip(Player player)
         {
           player.moveSpeed += 0.05f;
         }
    
    How do i get to know all of the player. stats like there it is player.moveSpeed
     
  12. Hollycide

    Hollycide Skeletron

    Mod browser appears to be under heavy load, looks like I'll have to learn how to update mods manually for the time being.
     
  13. Lukas04

    Lukas04 Official Terrarian

    Hopefully thats get Better
    On some Places Summer Holidays just Started,i think thats why the servers overloaded C:
     
  14. 11pixels

    11pixels Terrarian

    umm anyone can give me direct links for cheat sheet & creative mode mod - the commander (whatever it is)?
     
  15. blushiemagic

    blushiemagic Retinazer

    Hm, it looks like health bars are terribly hardcoded into the game. I'll have to add a hook for that in the next update.

    Unfortunately, the only way is to decompile Terraria then look at Player.cs.
     
    W1K and Lukas04 like this.
  16. Lukas04

    Lukas04 Official Terrarian

    or just Using Visual Studio autocomplete
     
  17. NeonDragon5

    NeonDragon5 Official Terrarian

    Can anyone help me add more than one craft group. I can't seem to figure out how to add more.

    Code:
    using System;
    using Microsoft.Xna.Framework;
    using Terraria;
    using Terraria.ID;
    using Terraria.ModLoader;
    
    namespace ExampleMod
    {
        public class ExampleMod : Mod
        {
            public ExampleMod()
            {
                Properties = new ModProperties()
                {
                    Autoload = true,
                    AutoloadGores = true,
                    AutoloadSounds = true
                };
            }
    
            public override void AddRecipeGroups()
            {
                RecipeGroup group = new RecipeGroup(() => Lang.misc[37] + " " + GetItem("ExampleItem").item.name, new int[]
                {
                    ItemType("ExampleItem"),
                    ItemType("EquipMaterial"),
                    ItemType("BossItem")
                });
                RecipeGroup.RegisterGroup("ExampleMod:ExampleItem", group);
            }
        }
    }
     
  18. WhiteIce2112

    WhiteIce2112 Terrarian

    What is going on with the tmodloader mod browser? The server has been down for hours and is annoying me.
     
  19. Froddy Saxobear

    Froddy Saxobear Terrarian

    So My mod browser is under heavy load
    what does it means?
    does that means youre working on the mod browser?
     
  20. TheGamerLV

    TheGamerLV Terrarian

    oh could you upload Player.cs somewhere on your github?