Standalone [1.3] tModLoader - A Modding API

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

  1. 11pixels

    11pixels Terrarian

    I've tried to run as administrator, and make the Terraria folder in Documents/My Games/ non read only (like, untick the read only thing), but still nothing.
     
  2. ALmaZss

    ALmaZss Plantera

    I'm taking numbers from my post http://forums.terraria.org/index.php?threads/sound-ids.41821/ .
    And what do you mean, asking me what I got?
    --- Double Post Merged, Jun 11, 2016 ---
    I guess there is something like types of sounds, but I wonder how I can use them properly.
     
  3. jopojelly

    jopojelly Retinazer

    Yeah, those are just the item use sounds. The tile collide sounds are a completely different category. Look in the dust and sound catalogue mod. They are explained there.

    That is odd. I don't know what is going on there.
     
  4. 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.
     
  5. ALmaZss

    ALmaZss Plantera

    Thanks!
     
  6. 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.
     
  7. 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
     
  8. jopojelly

    jopojelly Retinazer

    You mean installing a mod, right? Did you read the error message in the window there?
     
  9. 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"
     
  10. 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
  11. ALmaZss

    ALmaZss Plantera

    And about ray/stream projectiles, projectile moves too fast for dust that's why holes are forming
     
  12. 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.
     
  13. 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?
     
  14. 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
     
  15. 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.
     
  16. Lukas04

    Lukas04 Official Terrarian

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

    11pixels Terrarian

    umm anyone can give me direct links for cheat sheet & creative mode mod - the commander (whatever it is)?
     
  18. 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.
  19. Lukas04

    Lukas04 Official Terrarian

    or just Using Visual Studio autocomplete
     
  20. 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);
            }
        }
    }