Standalone [1.3] tModLoader - A Modding API

Who wants to be an awesome person, and help me figure out my error when trying to publish my Tech Mod, it is small, so size is not the error. I believe the error could be the custom music I added in before attempting to publish. Here's the error:

The operation has timed out
at System.Net.HttpWebRequest.GetResponse()
at Terraria.ModLoader.IO.UploadFile.UploadFiles(String address, IEnumerable`1 files, NameValueCollection values)
at Terraria.ModLoader.UI.UIModSourceItem.Publish(UIMouseEvent evt, UIElement listeningElement)

See it? Last line down, listeningElement, must be sound. But, I don't think I coded wrong.

ButterKnifeMod is the file name for my mod.
Here's my code:

using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Graphics.Effects;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;
using ButterKnifeMod.Items;

namespace ButterKnifeMod
{
public class ButterKnifeMod : Mod
{
public ButterKnifeMod()
{
Properties = new ModProperties()
{
Autoload = true,
AutoloadGores = true,
AutoloadSounds = true
};
}
public override void UpdateMusic(ref int music)
{
if (Main.myPlayer != -1 && !Main.gameMenu)
{
if (Main.player[Main.myPlayer].active && Main.player[Main.myPlayer].GetModPlayer<MyPlayer>(this).ZoneCustomBiome) Biome
{
music = this.GetSoundSlot(SoundType.Music, "Sounds/Music/CustomMusic");
}
}
}
}
}

Of course, with all the usual spaces, but could someone please help me?!
 
Is there a way to see if a sound (specifically music) finished playing? As in - to catch the moment in which it starts playing again from the beginning? In order to, for example, change track.
 
I'm trying to make a case that is right clicked and drops swords to make the nights edge, but when I right click it in-game it drops nothing.

using System;
using System.IO;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace OxysMod.Items.Cases
{
public class NightsEdgeCase : ModItem
{
public override void SetDefaults()
{
item.name = "Night's Edge Case";
item.maxStack = 1;
item.consumable = true;
item.width = 24;
item.height = 24;
item.toolTip = "'Open to find a material for the Night's Edge'";
item.toolTip2 = "'Has a 1/6 chance to drop some junk'";
item.rare = 3;
}
public override bool CanRightClick()
{
return true;
}

public override void OpenBossBag(Player player)
{
int choice = Main.rand.Next(6);
if (choice == 0)
{
player.QuickSpawnItem(ItemID.OldShoe);
}
if (choice == 1)
{
player.QuickSpawnItem(ItemID.Muramasa);
}
if (choice == 2)
{
player.QuickSpawnItem(ItemID.LightsBane);
}
if (choice == 3)
{
player.QuickSpawnItem(ItemID.BladeofGrass);
}
if (choice == 4)
{
player.QuickSpawnItem(ItemID.BloodButcherer);
}
if (choice == 5)
{
player.QuickSpawnItem(ItemID.FieryGreatsword);
}
}
}
}

Nobody responded so I'm just reposting it again :\
 
Guys my modded terraria keeps crushing every 10 minutes or when i want to exit the world. What can i do with it?
 
Guys my modded terraria keeps crushing every 10 minutes or when i want to exit the world. What can i do with it?
Well I guess you could try to disable all mods and then turn them on one by one to see which one is problematic? If none of them alone crashes your game, then maybe some of your mods aren't compatible?
 
Well I guess you could try to disable all mods and then turn them on one by one to see which one is problematic? If none of them alone crashes your game, then maybe some of your mods aren't compatible?
Im playing with my friend, we both have the exact same mods loaded, but my game keeps crushing every 10 mins [his is fine]. Yesterday everything was fine. I didn't updated any of the mods. [turning computer off and on isn't an option]
 
Im playing with my friend, we both have the exact same mods loaded, but my game keeps crushing every 10 mins [his is fine]. Yesterday everything was fine. I didn't updated any of the mods. [turning computer off and on isn't an option]
You both have same versions of everything? Try to reinstall ModLoader, maybe your Steam downloaded and changed some files?
 
Im playing with my friend, we both have the exact same mods loaded, but my game keeps crushing every 10 mins [his is fine]. Yesterday everything was fine. I didn't updated any of the mods. [turning computer off and on isn't an option]
Clear out mod folder to , sometimes disabling is not enough.

Also it's crashing not crushing
 
So yeah, i deleted all mods and re-installed tmodloader it still doesn't works.

Edit1: When im creating new world it works. I think something corrupts world file but i don't know what it might be.
 
Last edited:
noooooooooooooooooooooo i waited soo long for the nnew versio nand the GOG version is not out!?!?! noooooooooooooooooooooooooooooooooooooooo
 
For some reason, enemies aren't dropping money. I'm currently using:


Thorium Mod
Calamity Mod
Zoaklen Mod
Reduced Grinding Mod
RPG classes mod
Dushy's Upgrade mod

It's really frustrating how I always have like no money.
Never mind I realized that it was the MoreAccessories Mod that was bugging the game, but they fixed it.
 
Let's say you have a custom tree, and you to have to put a minimum power requirement on that tree, how would you? I tried minPick = 60; and minAxe = 60; but neither work.
 
same here the pikachufactor
 
So yeah, i deleted all mods and re-installed tmodloader it still doesn't works.

Edit1: When im creating new world it works. I think something corrupts world file but i don't know what it might be.
Well maybe it's just your old world that got corrupted somehow?
 
I don't know if this is a bug or not but sometimes when i kill enemies, their gore seems to stay and never disappear. It seems to disappear when i leave the world and join back but its kinda bothersome when im playing the game to see enemie remains everywhere and having to leave the world and join back just to remove the remains. Of course i can just disable gore all together and the problem is fixed but i actually like the gore, just not when it stays on the screen for more than 3 minutes and jugs on my frame rate. I don't know if its just my game or if anyone else is experiencing this issue but hopefully this gets fixed. (if your wondering, i did have mods installed when i took the picture. It could just be the mods i have installed but i don't know for certain.)
 

Attachments

  • Bug Pic.PNG
    Bug Pic.PNG
    409.4 KB · Views: 218
i can't run the tmodloaderinstaler...
 
I don't know if this is a bug or not but sometimes when i kill enemies, their gore seems to stay and never disappear. It seems to disappear when i leave the world and join back but its kinda bothersome when im playing the game to see enemie remains everywhere and having to leave the world and join back just to remove the remains. Of course i can just disable gore all together and the problem is fixed but i actually like the gore, just not when it stays on the screen for more than 3 minutes and jugs on my frame rate. I don't know if its just my game or if anyone else is experiencing this issue but hopefully this gets fixed. (if your wondering, i did have mods installed when i took the picture. It could just be the mods i have installed but i don't know for certain.)
Well, first place you gotta look is gore-editting mods that you have enabled, which might be just about any mod that has custom NPCs I suppose. Again I'd recommend trying the mods one by one to see if any of them cause trouble. I'd also recommend using a new world and character for this, since the absence of mods might mess up your current player and world, if there are mod items in them (which I guess they are).

i can't run the tmodloaderinstaler...
You can just copy all the tModLoader files into your Terraria installation folder instead. I guess it's not working because of your absent or outdated Java installation :)
 
Well, first place you gotta look is gore-editting mods that you have enabled, which might be just about any mod that has custom NPCs I suppose. Again I'd recommend trying the mods one by one to see if any of them cause trouble. I'd also recommend using a new world and character for this, since the absence of mods might mess up your current player and world, if there are mod items in them (which I guess they are).


You can just copy all the tModLoader files into your Terraria installation folder instead. I guess it's not working because of your absent or outdated Java installation :)

I believe the persistent gore is a confirmed bug of the new TML. I saw a post that it would get fixed with the next release of TML.

There also seems to be another bug which turns music volume to 0 after reloading mods.
 
I believe the persistent gore is a confirmed bug of the new TML. I saw a post that it would get fixed with the next release of TML.

There also seems to be another bug which turns music volume to 0 after reloading mods.
Thanks for the addition :) @Bonvoyage284 there you have it.
 
Back
Top Bottom