Standalone [1.3] tModLoader - A Modding API

Hey! When my friend tries to install mods(Thorium and Tremor), he gets this error (same error with Thorium). I have installed mods successfully at one attempt. What could we do?
IPaWtxZrxAM.jpg
 
Running into the same problem as HyperFlame across numerous mods. Seems like anything can be affected sporadically, but then is just as likely to load correctly and have something else break on the next attempt. I'm even hitting crashes during world creation.
 
Help pls

This happens with every mod that has custom music
 

Attachments

  • Send help.png
    Send help.png
    39 KB · Views: 6,286
Hello, i have a problem where i do not found fix.
When i loading a mod than i have build without error(after try to update to 0.10), Terraria crash without says nothing.

Visual studio say than this is System.NullReferenceException: "Object reference not set to an instance of an object."
Also, on my Visual Studio project, he do not found any errors or warnings for that.

Thank you for listen me.
For know, if a guy know where i have missed the update?

Thank you!
 
Ram or space memory? Because i load 1 mod at time
ram. And doing 1 at a time is the worst thing you can do. Enable all the ones you want to use, close and reopen terraria for best results.
 
The issue i have is I load up fine doing that method but when i join my friend's server it goes through the process again and gives an error like above before all mods are initialized again.
 
ram. And doing 1 at a time is the worst thing you can do. Enable all the ones you want to use, close and reopen terraria for best results.
It's true that restarts help, although this message will crop-up immediately if I'm enabling/disabling/installing/uninstalling any mods -- even without ever getting to play in-game. Restarts are now mandatory if I'm doing anything other than immediately playing the game.

While I have plenty of ram I know the issue of Terraria being a 32-bit program is always a problem while running a lot of mods. But I'm now consistently getting this problem while using only 2 large mods. Back before tMod 0.10, I could run 4+ large mods without ever getting bugs like these. Is Terraria 1.3.5 that much more ram intensive than 1.3.4? Or is there something specifically about tModLoader that makes it harder to run large mods simultaneously than it was before?
 
It's true that restarts help, although this message will crop-up immediately if I'm enabling/disabling/installing/uninstalling any mods -- even without ever getting to play in-game. Restarts are now mandatory if I'm doing anything other than immediately playing the game.

While I have plenty of ram I know the issue of Terraria being a 32-bit program is always a problem while running a lot of mods. But I'm now consistently getting this problem while using only 2 large mods. Back before tMod 0.10, I could run 4+ large mods without ever getting bugs like these. Is Terraria 1.3.5 that much more ram intensive than 1.3.4? Or is there something specifically about tModLoader that makes it harder to run large mods simultaneously than it was before?
The large mods keep adding more music, that's pretty much the whole problem.
 
i'm sure this has been answered before but every time i load a mod it says System.Net.WebException: The remote server returned an error: (503) Server Unavailable. i don't understand what that means, any help would be greatly appreciated, thanks
 
Can anyone help?

I made a mod called Sorcerer's Seceret on a dif computer and published it,but now i have to be on a dif computer,so how do i get my mod back where i don't have to publish it again? am i screwed and do i have to re-publish it?
 
This error means Out of Memory, try closing terraria and opening again.
Closing and re-opening Terraria doesn't help. GG.

Also that error appears with different files loading, not only music
 
Me , my friend and a lot of other mac users cant create a server. It always get stuck on "starting server" for hours. With out Tmodloader all works just fine. I can join people perfectly fine.

Also TheHyperFlame had the same problem but after some time its gonne. No idea what that was
 
Me , my friend and a lot of other mac users cant create a server. It always get stuck on "starting server" for hours. With out Tmodloader all works just fine. I can join people perfectly fine.

Also TheHyperFlame had the same problem but after some time its gonne. No idea what that was
But I never stucked at server starting...
However, new version of TModLoader has an INSANE amount of errors
 
But I never stucked at server starting...
However, new version of TModLoader has an INSANE amount of errors
i mean i had exact same problem as yours. But after some time it got fixed
 
c:\Users\Joshua\Documents\My Games\Terraria\ModLoader\Mod Sources\JoshuasMod\Buffs\Frostbite.cs(21,17) : error CS1061: 'Terraria.NPC' does not contain a definition for 'GetModInfo' and no extension method 'GetModInfo' accepting a first argument of type 'Terraria.NPC' could be found (are you missing a using directive or an assembly reference?)

c:\Users\Joshua\Documents\My Games\Terraria\ModLoader\Mod Sources\JoshuasMod\NPCs\NPCsGLOBAL.cs(13,17) : error CS1061: 'Terraria.NPC' does not contain a definition for 'GetModInfo' and no extension method 'GetModInfo' accepting a first argument of type 'Terraria.NPC' could be found (are you missing a using directive or an assembly reference?)

c:\Users\Joshua\Documents\My Games\Terraria\ModLoader\Mod Sources\JoshuasMod\NPCs\NPCsGLOBAL.cs(18,21) : error CS1061: 'Terraria.NPC' does not contain a definition for 'GetModInfo' and no extension method 'GetModInfo' accepting a first argument of type 'Terraria.NPC' could be found (are you missing a using directive or an assembly reference?)

Frostbite
Code:
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using JoshuasMod.NPCs;

namespace JoshuasMod.Buffs
{
    public class Frostbite : ModBuff
    {
        public override void SetDefaults()
        {
            DisplayName.SetDefault("Frostbite");
            Main.debuff[Type] = true;
            Main.pvpBuff[Type] = true;
            Main.buffNoSave[Type] = true;
            longerExpertDebuff = true;
        }

        public override void Update(NPC npc, ref int buffIndex)
        {
            npc.GetModInfo<NPCsINFO>(mod).customdebuff = true;
            int num1 = Dust.NewDust(npc.position, npc.width, npc.height, DustID.PinkFlame);
            Main.dust[num1].scale = 2.9f;
            Main.dust[num1].velocity *= 3f;
            Main.dust[num1].noGravity = true;
        }
        public override void Update(Player player, ref int buffIndex)
        {
            player.GetModPlayer<MyPlayer>(mod).customdebuff = true;
            int num1 = Dust.NewDust(player.position, player.width, player.height, DustID.PinkFlame);
            Main.dust[num1].scale = 2.9f;
            Main.dust[num1].velocity *= 3f;
            Main.dust[num1].noGravity = true;
        }

    }
}

NPCsGLOBAL
Code:
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace JoshuasMod.NPCs
{
    public class NPCsGLOBAL : GlobalNPC
    {

        public override void ResetEffects(NPC npc)
        {
            npc.GetModInfo<NPCsINFO>(mod).customdebuff = false;
        }

        public override void UpdateLifeRegen(NPC npc, ref int damage)
        {
            if (npc.GetModInfo<NPCsINFO>(mod).customdebuff)
            {
                npc.lifeRegen -= 30;
                if (damage < 2)
                {
                    damage = 4;
                }
            }
        }
    }
}

Did the tModLoader change "GetModInfo" to something else?
 
Anyone know how to Update Tmodloader? Do i need to redo everything again or do i only need to replace some stuff?
 
Anyone know how to Update Tmodloader? Do i need to redo everything again or do i only need to replace some stuff?
Migration Guide
You don't need to redo everything, just change some lines and you should be set, hopefully. :)
 
Back
Top Bottom