tModLoader Official tModLoader Help Thread

Hello! Simple question:
Does anyone know how to check when the player is facing right or left?
I've tried using player.direction, but I can't figure out what it returns.
Thanks in advance!
 
I've been working on trying to get this fixed but I'm not having luck.

Uninstalled, deleted Terraria folder, reinstalled.
Game played unmodded.
Installed Tmodloader - game crashes when I try to open start my world.
This is the error bellow and game crash.
After this initial error and crash, the game will lock after the Terraria flash screen, requiring a system reboot.
Capture.PNG
 
I've been working on trying to get this fixed but I'm not having luck.

Uninstalled, deleted Terraria folder, reinstalled.
Game played unmodded.
Installed Tmodloader - game crashes when I try to open start my world.
This is the error bellow and game crash.
After this initial error and crash, the game will lock after the Terraria flash screen, requiring a system reboot.
View attachment 269175
Do you have any mods installed and enabled?
You can try going to %UserProfile%\Documents\My Games\Terraria\ModLoader and delete config.json, in the mods folder delete enabled.json
 
Ugh i need help, I looked everywhere but I can't find It
I want to make an animated sword, I got the sword animation in the inventory but when I swing the sword, it swings the whole sprite sheet.
I read that you have to make a projectile for the sword to have the correct animation but I don't know how to make that kind of projectile.

If someone could please help I'll be very grateful
 
Hey all, simple question once again.
I'm trying to make a modded bed be able to function as a spawn point without needing a room around it.
How do I remove the criteria for a bed to set the spawn point ?
Thanks in advance!
 
System.MissingMethodException: Method not found: 'Void.Relogic.OSPlatform.SetWindowUniformCode.(Microsoft.Xna.Framework.
GameWindow, System.String)
at Terraria.main.SetTitle0
at Terraria.main.Initialize0
at Microsoft.Xna.Framework.Game.RunGame(Boolean
useBlockingRun)
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)

any time i open it up, it says this. Any help? I've tried to delete all the files, and reinstall them, nothing. all my files that i deleted were there. I really want to play 1.4 when it comes out.

Verifying integrity of game files didn't work.
 
System.MissingMethodException: Method not found: 'Void.Relogic.OSPlatform.SetWindowUniformCode.(Microsoft.Xna.Framework.
GameWindow, System.String)
at Terraria.main.SetTitle0
at Terraria.main.Initialize0
at Microsoft.Xna.Framework.Game.RunGame(Boolean
useBlockingRun)
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)

any time i open it up, it says this. Any help? I've tried to delete all the files, and reinstall them, nothing. all my files that i deleted were there. I really want to play 1.4 when it comes out.

Verifying integrity of game files didn't work.
That's really odd, what version are you using? 32 of 64 bit ?
 
umm, I recently started an attempt to make my own terraria mod, and i wanted to ask 1 thing, i made a boss npc that is working, but how can i make that he boss can eather spawn randomly if player have more than 200 hp and is in cavern/underground layer ( until boss is defeated and can only be summoned by summon item) , or is summoned by a boss summon item while player is in cavern / undergraund layer?
 
i'm using 64 bit. I removed the main program (the boreal tree logo) and it didn't work. Brought it back again and only the 64 bit version works...
I heard things before of the 64 bit install bricking the 32 bit install, you may have to do some investigating there
 
can you help? (it is to do with my custom dust)


error CS1001: Identifier expected warnings


CODE:

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

namespace YourModName.Dust
{

public class DustName : ModDust
{

public override void onSpawn(Dust dust)
{

dust.color = new Color(80, 244, 255);
dust.alpha = 1;
dust.scale = 1.3f;
dust.velocity = 1.4f;
dust.noGravity = true;
dust.noLight = false;
}

public override bool Update(Dust dust)
{
dust.position += dust.velocity;
dust.rotation += dust.velocity.X * 0.15f;
dust.scale *= 0.99f;
float light = 0.35f * dust.scale;
Lighting.AddLight(dust.position, light, light, light);
if (dust.scale < 0.5f)
{
dust.active = false;
}
}
}
}
 

Attachments

  • 2020-05-07 (2).png
    2020-05-07 (2).png
    1 MB · Views: 110
can you help? (it is to do with my custom dust)


error CS1001: Identifier expected warnings


CODE:

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

namespace YourModName.Dust
{

public class DustName : ModDust
{

public override void onSpawn(Dust dust)
{

dust.color = new Color(80, 244, 255);
dust.alpha = 1;
dust.scale = 1.3f;
dust.velocity = 1.4f;
dust.noGravity = true;
dust.noLight = false;
}

public override bool Update(Dust dust)
{
dust.position += dust.velocity;
dust.rotation += dust.velocity.X * 0.15f;
dust.scale *= 0.99f;
float light = 0.35f * dust.scale;
Lighting.AddLight(dust.position, light, light, light);
if (dust.scale < 0.5f)
{
dust.active = false;
}
}
}
}
namespace YourModName but in the photo it's YourModname
 
I want to make an accessory that acts like the brain of confusion but I can't find anything that explains how and was wondering if you could guide me
 
Back
Top Bottom