Standalone [1.3] tModLoader - A Modding API

I've tried uninstalling and reinstalling the game, verifying the files, uninstalling and reinstalling tmodloader, downloading a new tmodloader. even uninstalling steam. I don't get any error messages but there is still nothing in any of my menus. no characters, worlds, mods, or mod browser.
Well, according to the op, your players and worlds need to be manually copied over to the tmodloader save folder, so do that. If you are on linux or mac, mod browser doesn't work right now.
 
Well, according to the op, your players and worlds need to be manually copied over to the tmodloader save folder, so do that. If you are on linux or mac, mod browser doesn't work right now.

But the thing is that I had already done that. This is a new computer but I had downloaded TModLoader only 2 or 3 days after getting it. So i've had it installed for a few months and everything was fine. Running on Windows, I had moved my characters over and they worked fine, and I had created new characters and they worked fine. Same with worlds. However as of yesterday, everything is just gone. I didn't change any files or settings or anything. I still only run it through steam on Windows 10.
 
upload_2017-2-6_0-10-30.png


Game crashes everytime I try to use the demon heart.

EDIT: nvm, I seemed to have missed it calling ou the mod that was causing the problem. So ignore it.
 
Last edited:
But the thing is that I had already done that. This is a new computer but I had downloaded TModLoader only 2 or 3 days after getting it. So i've had it installed for a few months and everything was fine. Running on Windows, I had moved my characters over and they worked fine, and I had created new characters and they worked fine. Same with worlds. However as of yesterday, everything is just gone. I didn't change any files or settings or anything. I still only run it through steam on Windows 10.
oh, might have been reverted back to vanilla by steam for some reason. And the other half of the issue might be your anti virus quarantining the tmodloader exe. Is the icon still a jungle tree, or is it a forest tree.
 
Yes I've looked in that folder and the players folder exists, it's empty but it's there. There's no worlds folder, the Mods folder only has another folder called Mod Packs, which is empty, and the mod sources folder is empty. the only other things in the modloader folder is a file called "config.json" and "input profiles.json"
Right, so it sounds like all of your saves have been cleared for some reason. I don't know what could cause that, but re-installing tModLoader won't fix anything, I'm afraid.

I wonder if your Worlds and players have been moved to the recycle bin somehow. Or, if you have a backup drive, you could restore your saves from that. Also, are your vanilla worlds and players still there? You could revert to those as a last resort. It's also possible that your saves have been moved somewhere else somehow. You could run a search on your entire hard drive for ".tplr" and see what comes up.

oh, might have been reverted back to vanilla by steam for some reason. And the other half of the issue might be your anti virus quarantining the tmodloader exe. Is the icon still a jungle tree, or is it a forest tree.
The problem seems to be that his player and world files have gone missing.
 
Hi, I'm having a problem when launching the exe.
System.DllNotFoundException: Unable to load DLL 'CSteamworks': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Steamworks.NativeMethods.SteamAPI_RestartAppIfNecessary(AppId_t unOwnAppID)
at Terraria.Social.Steam.CoreSocialModule.Initialize()
at Terraria.Social.SocialAPI.Initialize(Nullable`1 mode)
at Terraria.Program.LaunchGame(String[] args)
Can anyone help?
 
Hi, I'm having a problem when launching the exe.
System.DllNotFoundException: Unable to load DLL 'CSteamworks': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Steamworks.NativeMethods.SteamAPI_RestartAppIfNecessary(AppId_t unOwnAppID)
at Terraria.Social.Steam.CoreSocialModule.Initialize()
at Terraria.Social.SocialAPI.Initialize(Nullable`1 mode)
at Terraria.Program.LaunchGame(String[] args)
Can anyone help?
You are launching from the Steam install directory, right? Not from an unzipped folder elsewhere?
 
You are launching from the Steam install directory, right? Not from an unzipped folder elsewhere?
I'm launching from the exe put into the steam Terraria folder after using the installer thing.
 
I seem to be having a problem on multiplayer where me and my friends are finding zero mobs or monsters any help will be appreciated
 
I seem to be having a problem on multiplayer where me and my friends are finding zero mobs or monsters any help will be appreciated
What mod(s) do you have enabled? one of them might not work with multiplayer or conflict with another.
 
What mod(s) do you have enabled? one of them might not work with multiplayer or conflict with another.
Fargo's mutant mod, cheat sheet, calamity mod, legends of terraria, crystilium mod, thorium mod, tremor remastered, more guns mod, terralands, water biome mod
[doublepost=1486498028,1486497900][/doublepost]
Fargo's mutant mod, cheat sheet, calamity mod, legends of terraria, crystilium mod, thorium mod, tremor remastered, more guns mod, terralands, water biome mod
oh and also imksushi, prefixes for enemies, rpg classes, ersion, nightmare unleased, zoaklen, more katantas, even more modifiers, and spirit mod
 
@Dragonpriest4 My bad, I forgot that projectiles inherit their damage from the item that shoots them. Thanks, @FARemy


Have you located the folder '...My Documents/My Games/Terraria/ModLoader'? That's where your mods, settings, worlds and players are stored. If it was deleted, it would explain why tModLoader has been reset. Maybe have a look in your recycle bin to see if it's there.

Right, so it sounds like all of your saves have been cleared for some reason. I don't know what could cause that, but re-installing tModLoader won't fix anything, I'm afraid.

I wonder if your Worlds and players have been moved to the recycle bin somehow. Or, if you have a backup drive, you could restore your saves from that. Also, are your vanilla worlds and players still there? You could revert to those as a last resort. It's also possible that your saves have been moved somewhere else somehow. You could run a search on your entire hard drive for ".tplr" and see what comes up.


The problem seems to be that his player and world files have gone missing.

oh, might have been reverted back to vanilla by steam for some reason. And the other half of the issue might be your anti virus quarantining the tmodloader exe. Is the icon still a jungle tree, or is it a forest tree.

Jopo, it's still the jungle tree icon like usual when using TModLoader, and Solo, the players and worlds are gone yes, but that doesn't bother me as much. I can always restart those. The main issue is that the mods I had installed are gone, and the mod browser is completely empty. Doesn't matter if I search anything or change any of the buttons in the top left for like downloads or only updates etc.
 
Hello, I'm starting to create a mod and I'd like to implement a hunger system, but I have no idea of the code. Can somebody help me?
 
Hello, I'm starting to create a mod and I'd like to implement a hunger system, but I have no idea of the code. Can somebody help me?
Try to search the terraria code for breath and make it work like that.
I think it could work.
 
this pops up when ! open Terraria w tmodloader some of it is in polish sorry for the polish
terraria error.jpg
 
Code:
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace FutureNowMod.NPCs
{
    public class UPOSpy : ModNPC
    {
        public override void SetDefaults()
        {
            npc.name = "UPOSpy";
            npc.displayName = "UPO Spy";
            npc.width = 40;
            npc.height = 20;
            npc.damage = 500;
            npc.defense = 30;
            npc.lifeMax = 500;
            npc.HitSound = SoundID.NPCHit4;
            npc.DeathSound = SoundID.NPCDeath14;
            npc.value = 60f;
                        npc.noGravity = true;
            npc.knockBackResist = 0.3f;
            npc.aiStyle = 2;
            Main.npcFrameCount[npc.type] = Main.npcFrameCount[NPCID.DemonEye];
            aiType = NPCID.EyeofCthulhu;
            animationType = NPCID.DemonEye;
        }

        public override float CanSpawn(NPCSpawnInfo spawnInfo)
        {
            return spawnInfo.spawnTileY < Main.rockLayer && !Main.dayTime ? 0f : 3f;
        }







public override void AI()
        {
            npc.ai[0]++;
            Player P = Main.player[npc.target];
            if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead || !Main.player[npc.target].active)
            {
                npc.TargetClosest(true);
            }
            npc.netUpdate = true;
            npc.ai[1]++;
            if (npc.ai[1] >= 230)  // 230 is projectile fire rate
            {
                float Speed = 20f; //Projecile speed
                Vector2 vector8 = new Vector2(npc.position.X + (npc.width / 2), npc.position.Y + (npc.height / 2));
                int damage = 100;  //projectile damage
                int type = mod.ProjectileType("ShadowArm");  //put your projectile
                Main.PlaySound(23, (int)npc.position.X, (int)npc.position.Y, 17);
                float rotation = (float)Math.Atan2(vector8.Y - (P.position.Y + (P.height * 0.5f)), vector8.X - (P.position.X + (P.width * 0.5f)));
                int num54 = Projectile.NewProjectile(vector8.X, vector8.Y, (float)((Math.Cos(rotation) * Speed) * -1), (float)((Math.Sin(rotation) * Speed) * -1), type, damage, 0f, 0);
                npc.ai[1] = 0;
            }
      


        public override void HitEffect(int hitDirection, double damage)
        {
            for (int i = 0; i < 10; i++)
            {
                int dustType = Main.rand.Next(259, 259);
                int dustIndex = Dust.NewDust(npc.position, npc.width, npc.height, dustType);
                Dust dust = Main.dust[dustIndex];
                dust.velocity.X = dust.velocity.X + Main.rand.Next(-50, 51) * 0.01f;
                dust.velocity.Y = dust.velocity.Y + Main.rand.Next(-50, 51) * 0.01f;
                dust.scale *= 1f + Main.rand.Next(-30, 31) * 0.01f;
            }
        }
    }
}
I need help making my npc shoot a projectile. I already tried to copy the part of a boss code that make him shooting projectiles but it does not work.
 
public override float CanSpawn(NPCSpawnInfo spawnInfo)
{
if(!spawnInfo.player.zoneCrimson) return 0;
return 1;
}
Appaerntly zoneCrimson dousn't exist
 
Are tmodloader have bug about camera mode? Because, I use tmodloader today and take pic on my build but it was pure black even though there are torch everywhere. Then the second time the game crash! Please help me :(. Note: If it is a bug I will not put the crash log
 
public override float CanSpawn(NPCSpawnInfo spawnInfo)
{
if(!spawnInfo.player.zoneCrimson) return 0;
return 1;
}
Appaerntly zoneCrimson dousn't exist
Can you try ZoneCrimson with a capital Z
 
Back
Top Bottom