Standalone [1.3] tModLoader - A Modding API

I'm having a similar problem as the guy above.
I'm simply trying to make an item to get used to the way this works and it keeps giving me this:
Missing mod: Drom/Items/Drom
at Terraria.ModLoader.ModLoader.GetTexture(String name)
at Terraria.ModLoader.Mod.SetupContent()
at Terraria.ModLoader.ModLoader.do_Load(Object threadContext)

using Terraria.ID;
using Terraria.ModLoader;

namespace Drom.Items
{
public class Drom : ModItem
{
public override void SetDefaults()
{
item.name = "Carbonated Water";
item.width = 32;
item.height = 32;
item.maxStack = 30;
AddTooltip("Water that has been carbonated and has become fizzy");
item.value = 20;
item.rare = 1;
}

public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.BottledWater);
recipe.SetResult(this, 1);
recipe.AddRecipe();
recipe = new ModRecipe(mod);
recipe.AddRecipeGroup("Drom:CarbonatedWater");
recipe.SetResult(this, 1);
recipe.AddRecipe();
}
}
}

using System;
using Terraria;
using Terraria.Graphics.Effects;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;
using Microsoft.Xna.Framework;
using System.Collections.Generic;
using System.Linq;
using System.IO;

namespace Drom
{
public class Drom : Mod
{
public Drom()
{
Properties = new ModProperties()
{
Autoload = true,
AutoloadGores = true,
AutoloadSounds = true
};
}

public override void Load()
{
for (int k = 1; k <= 4; k++)
{

}
}

public override void Unload()
{
if (!Main.dedServ)
{

}
}
public override void AddRecipeGroups()
{
RecipeGroup group = new RecipeGroup( () => Lang.misc[37] + " " + GetItem("CarbonatedWater").item.name, new int[]
{
ItemType("CarbonatedWater"),
});
RecipeGroup.RegisterGroup("Drom:CarbonatedWater", group);
}
}
}

I'm not sure what it is that I'm missing but it's driving me nuts...
It's only happening whenever I run the mod since I already worked out a few errors that I found
It's missing a corresponding image file.

Make sure there is a Drom.png located in the same folder.
 
It's missing a corresponding image file.

Make sure there is a Drom.png located in the same folder.
Thank you for helping me.


Edit: That didn't fix it...
 
Last edited:
The new Tmod update isn't working for me. When I replace the files with the new version, it keeps the version at 0.8.1.2 instead of 0.8.2.1
 
Can someone get me a Windows 10 tutorial? Its really confusing for me when the rest of them are for Windows 7
 
Now, I spotted a mistake in my last comment. I meant to say item.channel instead of projectile.channel.

Also, the Arkhalis is both an item and a projectile. Using the item creates a projectile that sticks to the position of your player, and disappears when the player stops channeling i.e. when the left mouse button is released. Are you creating a moded item that shoots the vanilla projectile, or a moded item that shoots a moded projectile that mimics the vanilla projectile?

I am making a modded item that shoots a modded projectile that mimics the vanilla projectile.
 
Can someone get me a Windows 10 tutorial? Its really confusing for me when the rest of them are for Windows 7

For what, exactly? I can't think of anything that is substantially different between Windows 7 and 10.
 
Can someone get me a Windows 10 tutorial? Its really confusing for me when the rest of them are for Windows 7
Its just the same for every Windows Version
 
For what, exactly? I can't think of anything that is substantially different between Windows 7 and 10.
Alrighty, Ill tell you what, I am terrible with computers, a friend helped me figure it most out, I have Java and everything, I extracted/unpacked all filed correctly and fully, but the Terraria application I get keeps on giving me an error message :

System.DIINotFoundException: Unable to load DLL 'CSteamworks': The specified module could not be found. (Exception from HRESULT: 0X80007007E)
at Steamworks.NativeMethods.SteamAPI_RestartAppIfNecessary(Appld_tunOwnApplD)
at Terraria.Social.SocialAPI.Initialize(Nullzble'1 mode)
at Terraria.Program.LaunchGame(String[] args)

That is one thing that happened, and for the Windows 7 videos, they get only a few things from the download, whereas after unpacking a tModLoaderInstaller that I got, along with other things, it gave me more files.

So, I feel like a video could help me out, as I am just overall confused at this point, which is just likely due to my small knowledge of anything about computers
 
Alrighty, Ill tell you what, I am terrible with computers, a friend helped me figure it most out, I have Java and everything, I extracted/unpacked all filed correctly and fully, but the Terraria application I get keeps on giving me an error message :

System.DIINotFoundException: Unable to load DLL 'CSteamworks': The specified module could not be found. (Exception from HRESULT: 0X80007007E)
at Steamworks.NativeMethods.SteamAPI_RestartAppIfNecessary(Appld_tunOwnApplD)
at Terraria.Social.SocialAPI.Initialize(Nullzble'1 mode)
at Terraria.Program.LaunchGame(String[] args)

That is one thing that happened, and for the Windows 7 videos, they get only a few things from the download, whereas after unpacking a tModLoaderInstaller that I got, along with other things, it gave me more files.

So, I feel like a video could help me out, as I am just overall confused at this point, which is just likely due to my small knowledge of anything about computers
its have nothing to do with w10,me self uses it lol


i haved the error before,but i dont remember how to fix it
 
Alrighty, Ill tell you what, I am terrible with computers, a friend helped me figure it most out, I have Java and everything, I extracted/unpacked all filed correctly and fully, but the Terraria application I get keeps on giving me an error message :

System.DIINotFoundException: Unable to load DLL 'CSteamworks': The specified module could not be found. (Exception from HRESULT: 0X80007007E)
at Steamworks.NativeMethods.SteamAPI_RestartAppIfNecessary(Appld_tunOwnApplD)
at Terraria.Social.SocialAPI.Initialize(Nullzble'1 mode)
at Terraria.Program.LaunchGame(String[] args)

That is one thing that happened, and for the Windows 7 videos, they get only a few things from the download, whereas after unpacking a tModLoaderInstaller that I got, along with other things, it gave me more files.

So, I feel like a video could help me out, as I am just overall confused at this point, which is just likely due to my small knowledge of anything about computers

Alright, don't worry, we'll get there. ;)
  1. Do you have the Steam or GOG version of Terraria?
  2. Did your run the installer (tModLoaderInstaller.jar file) or did you manually copy paste everything from the folder to Terraria's install directory?
    1. If you used the installer, did you extract all the files from the downloaded folder (zip) to a new folder first?
 
I'm having an issue working on a creature. Upon building and reloading the mod, it tells me that its expecting a ; in between the p and e in aiType? I tried adding it but then it asks for another ; right after it over and over.
 
Is normal to experience alot of lag when triying to play in multiplayer? I mean.. is not conection delay or lag.. is like game freezing and running slowly, but only in multiplayer.. i can play the game in singleplayer without any fps drop.
 
Is normal to experience alot of lag when triying to play in multiplayer? I mean.. is not conection delay or lag.. is like game freezing and running slowly, but only in multiplayer.. i can play the game in singleplayer without any fps drop.

Open Task Manager - Details - Terraria.exe - *right click* - Set Priority - High
:3
 
I'm having an issue working on a creature. Upon building and reloading the mod, it tells me that its expecting a ; in between the p and e in aiType? I tried adding it but then it asks for another ; right after it over and over.
Please post your code whenever you get such an error, it's virtually impossible to help you based on this limited information.
ummmm i tried downloading tModloader and copying all the files and everything into my terraria folder but when i open terraria nothing changes its just normal terraria, im running version 1.3.1.1. can someone help?
Sounds like you didn't replace the executable. Try again.
 
so i use this to print text into chat

Main.NewText("ExpertMode +2 Max",155,155,155);

but how can i print a number from a score that changes from time to time



something like this

int BlueSlime = Item.NPCtoBanner(NPCID.BlueSlime);

Main.NewText("Blue Slimes killed BlueSlime",155,155,155);

where it prints the number from the score
 
I am making a modded item that shoots a modded projectile that mimics the vanilla projectile.
In that case, the problem is most likely with the projectile. The defaults that I gave you before were for the item. Here's the defaults for the projectile.
projectile.name = "Arkhalis"; //change this of course
projectile.width = 68;
projectile.height = 64;
projectile.aiStyle = 75;
projectile.friendly = true;
projectile.tileCollide = false;
projectile.melee = true;
projectile.penetrate = -1;
projectile.ownerHitCheck = true;
You will also need aiType = ProjectileID.Arkhalis; (not projectile.type = 595; my mistake) and maybe also Main.projFrames[projectile.type] = 28;

What are you using for the projectile's texture? Vanilla uses a texture that's 68 x 1792 pixels big, divided vertically into 28 frames, each 64 px tall. It should be possible to use autoload to use vanilla's texture, but if you want to have your own custom look, you'll need to do your own texture.

ummmm i tried downloading tModloader and copying all the files and everything into my terraria folder but when i open terraria nothing changes its just normal terraria, im running version 1.3.1.1. can someone help?
If you renamed the Terraria.exe file when you copied it, just start that instead of the vanilla executable. If you rename the executable for tModLoader, you can choose between starting tModLoader or Terraria without having to rename any files.
 
so i use this to print text into chat

Main.NewText("ExpertMode +2 Max",155,155,155);

but how can i print a number from a score that changes from time to time



something like this

int BlueSlime = Item.NPCtoBanner(NPCID.BlueSlime);

Main.NewText("Blue Slimes killed BlueSlime",155,155,155);

where it prints the number from the score

If I understand your question right, try:

Main.NewText("Blue Slimes killed " + BlueSlime.ToString(),155,155,155);

or

Main.NewText(string.Format("Blue Slimes killed {0}", BlueSlime),155,155,155);
 
If I understand your question right, try:

Main.NewText("Blue Slimes killed " + BlueSlime.ToString(),155,155,155);

or

Main.NewText(string.Format("Blue Slimes killed {0}", BlueSlime),155,155,155);


i want the text in chat to look like this

Blue Slimes killed 293

where it uses the number from NPCtoBanner
 
Can servers still only be run on Windows, and if so, is there going to be linux server support in the future?
 
Back
Top Bottom