Standalone [1.3] tModLoader - A Modding API

I need the old version of tmodloader v0.9.1 where I can download it
I don't know what to say.
oe58OfL.png
 
Hey I just wanted to ask something. The files that are in the cache folder are in .wav so most of the time when I reload my mods it gives me the error that It doesn't find the mp3 file. Sometimes it works sometimes it doesn't.

The mp3 sound file at Sounds/Music/High_On_Selenium.mp3 failed to load
at Terraria.ModLoader.Mod.Autoload()
at Terraria.ModLoader.ModLoader.do_Load(Object threadContext)

Inner Exception:
Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
at Microsoft.Xna.Framework.Audio.SoundEffect.AllocateFormatAndData(Byte[] format, Byte[] data, Int32 offset, Int32 count)
at Microsoft.Xna.Framework.Audio.SoundEffect..ctor(Stream stream)
at Microsoft.Xna.Framework.Audio.SoundEffect.FromStream(Stream stream)
at Terraria.ModLoader.Mod.Autoload()

And that message goes for multiple kinds of mods. I tried putting the mp3 version of the files in the cache folder but when I reload it makes new .wav files again but the mp3 ones are still there. When I managed to load them and play I had to exit and the next day the same error occured.
 
Hey I just wanted to ask something. The files that are in the cache folder are in .wav so most of the time when I reload my mods it gives me the error that It doesn't find the mp3 file. Sometimes it works sometimes it doesn't.

The mp3 sound file at Sounds/Music/High_On_Selenium.mp3 failed to load
at Terraria.ModLoader.Mod.Autoload()
at Terraria.ModLoader.ModLoader.do_Load(Object threadContext)

Inner Exception:
Insufficient memory to continue the execution of the program.
at Microsoft.Xna.Framework.Helpers.GetExceptionFromResult(UInt32 result)
at Microsoft.Xna.Framework.Audio.SoundEffect.AllocateFormatAndData(Byte[] format, Byte[] data, Int32 offset, Int32 count)
at Microsoft.Xna.Framework.Audio.SoundEffect..ctor(Stream stream)
at Microsoft.Xna.Framework.Audio.SoundEffect.FromStream(Stream stream)
at Terraria.ModLoader.Mod.Autoload()

And that message goes for multiple kinds of mods. I tried putting the mp3 version of the files in the cache folder but when I reload it makes new .wav files again but the mp3 ones are still there. When I managed to load them and play I had to exit and the next day the same error occured.
This is a memory (loading) issue with the current Tmodloader. It is fixed in the next version, and if you really want you can use the Beta.
 
error CS1002: ; expected
upload_2017-8-28_21-9-3.png

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

namespace Kenz.Items.Tools
{
public class iron : ModItem //Change The public class to the name of the .cs file & .png file
{
public override void SetDefaults()
{
item.name = "The Iron PickAxe";
item.damage = 50;
item.melee = true;
item.width = 50;
item.height = 50;
item.toolTip = "It's pickaxe";
item.useTime = 10;
item.useAnimation = 10;
item.pick = 1050; //pickaxe power
item.useStyle = 1;
item.knockBack = 50;
item.value = 10000;
item.rare = 10;
item.UseSound = SoundID.Item1;
item.autoReuse = true;

}

public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock,1); // Recipe
recipe.AddTile(TileID.WorkBenches); // Craft at WorkBenches, MythrilAnvil for orichucalcum anvil/ mythril anvil, Anvils for all anvils, TinkererWorkshop, tinkerer's workshop
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
 
This is a memory (loading) issue with the current Tmodloader. It is fixed in the next version, and if you really want you can use the Beta.
Whaaaaat theres a tModloader Discord? lol never knew, and thx for telling whats the issue here. (Even tho I didn't ask this but, ive been wondering this since it first started happening xD)
 
Hey can i get help? i downloaded mods and when i restarted game 1 of the mods (Yoshi mod) was breaking my game at the start so i can't delete this mod.I reinstaled tmloader and Terraria and nothing is there any chance of fixing this?
 
Hey can i get help? i downloaded mods and when i restarted game 1 of the mods (Yoshi mod) was breaking my game at the start so i can't delete this mod.I reinstaled tmloader and Terraria and nothing is there any chance of fixing this?
If you hold shift, you can bypass mods loading. Or just open up the Mods folder and delete it before lauching: Documents\My Games\Terraria\ModLoader\Mods
 
Question! How can you make an npc spawn another npc on a multiplayer server? I've figured out npc.newnpc(...), and I set netUpdate to true once I create it. I've tried a lot of different ways, but nothing seems to work. It never spawns on another player's screen, though it does on my screen if I activate it.

Code:
int npcIndex = NPC.NewNPC((int)npc.position.X, (int)npc.position.Y, mod.NPCType("Virus"));
            Main.npc[npcIndex].netUpdate = true;
 
I have terraria error CS1061 and I cant fix it,

My Code:


using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace UpdatedTerrariaMod.Items.IceyGreatsword
{
public class IceyGreatsword : ModItem
{
public override void SetDefaults()
{
item.name = "Icey Greatsword";
item.damage = 56;
item.melee = true;
item.width = 60;
item.height = 60;
item.toolTip = "An Icey Blade That Can Resist Fire.";
item.useTime = 20;
item.useAnimation = 20;
item.useStyle = 1
item.knockBack = 6;
item.value = Item.buyPrice(0, 1, 0, 0);
item.rare = 2;
item.UseSound = SoundID.Item1;
item.autoReuse = false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 10);
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
 
@Coolgaming933
Seems you had code from tModLoader 0.9, you need to separate the tooltip and name from the rest now.
here's it fixed up, tell me if it works!

using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace UpdatedTerrariaMod.Items.IceyGreatsword
{
public class IceyGreatsword : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Icey Greatsword");
Tooltip.SetDefault("An Icey Blade That Can Resist Fire.");
}
public override void SetDefaults()
{
item.damage = 56;
item.melee = true;
item.width = 60;
item.height = 60;
item.useTime = 20;
item.useAnimation = 20;
item.useStyle = 1;
item.knockBack = 6;
item.value = Item.buyPrice(0, 1, 0, 0);
item.rare = 2;
item.UseSound = SoundID.Item1;
item.autoReuse = false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 10);
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
 
Back
Top Bottom