squishy_biscuit
Official Terrarian
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?!
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?!