Fluffyturtle225
Spazmatism
Does this work with 1.3.5.3? because mine says 1.3.5.2 and doesnt work on servers working on 1.3.5.3.
It means you have something like this in your Mods folder. A duplicate mod sharing the same internal name:"
Sequence contains more than one matching element
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at Terraria.ModLoader.UI.UIModBrowser.PopulateFromJSON(TmodFile[] installedMods, String json)
"
anyone know what this means?
I had a copy of HEROsMod.tmod and HEROs Mod.enabledIt means you have something like this in your Mods folder. A duplicate mod sharing the same internal name:
Just to be sure, you are starting tModLoaderServer.exe and not TerrariaServer.exe, right?If you mean pressing on Tmodloader server, where a bunch of text comes up and you choose which world, how many players, and password, I already did that and it had the same problem, I put in the 127.0.0.1 ip and it said requesting world information and just lasted like that forever. My friend tried using my ip to get in too and same problem.
Then consult the latest version of ExampleMod. That has the updated format. Here's an example.if it was that easy for me i had done it
but i dont know how to change something like this as this is most of my items
both name and tooltip is changed in SetDefaults not sure what to do with it
Code:using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria.ModLoader; using Terraria.ID; using System.Collections.Generic; namespace lootweapons.Items.lootswords { class lootsword : ModItem { public lootsword() { } int lv1; int lv2; int lv3; public lootsword(int lv1, int lv2, int lv3) { this.lv1 = lv1; this.lv2 = lv2; this.lv3 = lv3; } public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips) { return false; } public override void SetDefaults() { item.name = "Loot Sword lvl1"; item.damage = 10; item.melee = true; item.width = 34; item.height = 34; item.useTime = 45; item.useAnimation = 45; item.useStyle = 1; item.knockBack = 6; item.value = 0; item.rare = 1; item.UseSound = SoundID.Item1; item.autoReuse = true; int lootlvl = System.Math.Max(lv1, System.Math.Max(lv2, lv3)); if(lootlvl == 1) { item.name = "Loot Sword lvl1"; item.rare = 1; item.value = 5200; } else if(lootlvl == 2) { item.name = "Loot Sword lvl2"; item.rare = 2; item.value = 7800; } else if(lootlvl == 3) { item.name = "Loot Sword lvl3"; item.rare = 3; item.value = 11700; } else if(lootlvl == 4) { item.name = "Loot Sword lvl4"; item.rare = 4; item.value = 17550; } else if(lootlvl == 5) { item.name = "Loot Sword lvl5"; item.rare = 5; item.value = 26330; } else if(lootlvl == 6) { item.name = "Loot Sword lvl6"; item.rare = 6; item.value = 39500; } else if(lootlvl == 7) { item.name = "Loot Sword lvl7"; item.rare = 7; item.value = 59250; } else if(lootlvl == 8) { item.name = "Loot Sword lvl8"; item.rare = 8; item.value = 88880; } else if(lootlvl == 9) { item.name = "Loot Sword lvl9"; item.rare = 9; item.value = 133330; } else if(lootlvl == 10) { item.name = "Loot Sword lvl10"; item.rare = 10; item.value = 200000; } else if(lootlvl == 11) { item.name = "Loot Sword lvl11"; item.rare = 11; item.expert = true; item.value = 300000; } if(lv1 == 1) { AddTooltip("Hilt lvl1"); item.useTime = 45; item.useAnimation = 45; } else if(lv1 == 2) { AddTooltip("Hilt lvl2"); item.useTime = 41; item.useAnimation = 41; } else if(lv1 == 3) { AddTooltip("Hilt lvl3"); item.useTime = 36; item.useAnimation = 36; } else if(lv1 == 4) { AddTooltip("Hilt lvl4"); item.useTime = 32; item.useAnimation = 32; } else if(lv1 == 5) { AddTooltip("Hilt lvl5"); item.useTime = 27; item.useAnimation = 27; } else if(lv1 == 6) { AddTooltip("Hilt lvl6"); item.useTime = 24; item.useAnimation = 24; } else if(lv1 == 7) { AddTooltip("Hilt lvl7"); item.useTime = 20; item.useAnimation = 20; } else if(lv1 == 8) { AddTooltip("Hilt lvl8"); item.useTime = 16; item.useAnimation = 16; } else if(lv1 == 9) { AddTooltip("Hilt lvl9"); item.useTime = 13; item.useAnimation = 13; } else if(lv1 == 10) { AddTooltip("Hilt lvl10"); item.useTime = 10; item.useAnimation = 10; } else if(lv1 == 11) { AddTooltip("Hilt lvl11"); item.useTime = 8; item.useAnimation = 8; } if(lv2 == 1) { AddTooltip("Length lvl1"); item.width = 34; item.height = 34; } else if(lv2 == 2) { AddTooltip("Length lvl2"); item.width = 36; item.height = 36; } else if(lv2 == 3) { AddTooltip("Length lvl3"); item.width = 38; item.height = 38; } else if(lv2 == 4) { AddTooltip("Length lvl4"); item.width = 40; item.height = 40; } else if(lv2 == 5) { AddTooltip("Length lvl5"); item.width = 42; item.height = 42; } else if(lv2 == 6) { AddTooltip("Length lvl6"); item.width = 44; item.height = 44; } else if(lv2 == 7) { AddTooltip("Length lvl7"); item.width = 46; item.height = 46; } else if(lv2 == 8) { AddTooltip("Length lvl8"); item.width = 48; item.height = 48; } else if(lv2 == 9) { AddTooltip("Length lvl9"); item.width = 50; item.height = 50; } else if(lv2 == 10) { AddTooltip("Length lvl10"); item.width = 52; item.height = 52; } else if(lv2 == 11) { AddTooltip("Length lvl11"); item.width = 54; item.height = 54; } if(lv3 == 1) { AddTooltip("Blade lvl1"); item.damage = 10; } else if(lv3 == 2) { AddTooltip("Blade lvl2"); item.damage = 15; } else if(lv3 == 3) { AddTooltip("Blade lvl3"); item.damage = 20; } else if(lv3 == 4) { AddTooltip("Blade lvl4"); item.damage = 28; } else if(lv3 == 5) { AddTooltip("Blade lvl5"); item.damage = 34; } else if(lv3 == 6) { AddTooltip("Blade lvl6"); item.damage = 45; } else if(lv3 == 7) { AddTooltip("Blade lvl7"); item.damage = 57; } else if(lv3 == 8) { AddTooltip("Blade lvl8"); item.damage = 69; } else if(lv3 == 9) { AddTooltip("Blade lvl9"); item.damage = 83; } else if(lv3 == 10) { AddTooltip("Blade lvl10"); item.damage = 100; } else if(lv3 == 11) { AddTooltip("Blade lvl11"); item.damage = 123; } } } }
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Paper Airplane");
Tooltip.SetDefault("Summons a Paper Airplane to follow aimlessly behind you");
}
Public override void SetDefaults()
{
item.CloneDefaults(ItemID.ZephyrFish);
item.shoot = mod.ProjectileType("ExamplePet");
item.buffType = mod.BuffType("ExamplePet");
}
public override void ModifyTooltips(List<TooltipLine> tooltips) //update the second ToolTip line
{
TooltipLine line2;
int lootlvl = System.Math.Max(lv1, System.Math.Max(lv2, lv3));
if(lootlvl == 1)
{
line2 = new TooltipLine(mod, "line2", "Loot Sword lvl1");
}
else if(lootlvl == 2)
{
line2 = new TooltipLine(mod, "line2", "Loot Sword lvl2");
}
//etc...
}
tooltips.Add(line2);
}
Oh it didnt workDisable all mods, reload them so they can be fully disabled, restart Terraria, enable the mods you want to use, reload mods. Worked for me, hopefully it works for you!
Make sure you are decompiling the steam/windows/client for 1.3.5.2, nothing else.hey ,i like this tools,i want look source code,but i use setup.bat , select Terraria.exe, setup , It's always failed
View attachment 179133
patching file 'src/Terraria\Terraria.csproj'
patching file 'src/Terraria\Terraria.GameInput\PlayerInput.cs'
patching file 'src/Terraria\Terraria\NetMessage.cs'
Hunk #4 succeeded at 1602 (offset -9 lines).
Hunk #6 succeeded at 1624 (offset -9 lines).
Hunk #8 succeeded at 1646 (offset -9 lines).
patching file 'src/Terraria\Properties\AssemblyInfo.cs'
patching file 'src/Terraria\Terraria.ID\SetFactory.cs'
patching file 'src/Terraria\Terraria\Chest.cs'
patching file 'src/Terraria\Terraria.IO\WorldFile.cs'
patching file 'src/Terraria\Terraria\Collision.cs'
patching file 'src/Terraria\Terraria.Map\MapHelper.cs'
patching file 'src/Terraria\Terraria\Dust.cs'
patching file 'src/Terraria\Terraria\WorldGen.cs'
patching file 'src/Terraria\Terraria.Map\MapTile.cs'
patching file 'src/Terraria\Terraria.Net\NetPacket.cs'
patching file 'src/Terraria\Terraria\HitTile.cs'
patching file 'src/Terraria\Terraria.Chat\ChatCommandProcessor.cs'
patching file 'src/Terraria\Terraria.Social.Steam\NetServerSocialModule.cs'
patching file 'src/Terraria\Terraria.GameContent.Biomes\CaveHouseBiome.cs'
patching file 'src/Terraria\Terraria.GameContent.Biomes\DesertBiome.cs'
patching file 'src/Terraria\Terraria.UI\ItemSlot.cs'
patching file 'src/Terraria\Terraria.GameContent.Biomes\MiningExplosivesBiome.cs'
patching file 'src/Terraria\Terraria\MessageBuffer.cs'
Hunk #3 succeeded at 3468 (offset -14 lines).
patching file 'src/Terraria\Terraria\NPC.cs'
patching file 'src/Terraria\Terraria.GameContent.Tile_Entities\TELogicSensor.cs'
patching file 'src/Terraria\Terraria.GameContent.UI\WiresUI.cs'
patching file 'src/Terraria\Terraria.GameContent.UI.States\UIVirtualKeyboard.cs'
patching file 'src/Terraria\Terraria\Main.cs'
Hunk #2 succeeded at 13037 (offset -2 lines).
Hunk #4 succeeded at 13107 (offset -2 lines).
Hunk #5 succeeded at 20173 (offset -4 lines).
Hunk #6 succeeded at 20187 (offset -2 lines).
Hunk #7 succeeded at 20450 (offset -4 lines).
Hunk #8 succeeded at 20499 (offset -2 lines).
Hunk #9 succeeded at 21332 (offset -4 lines).
Hunk #10 FAILED at 22435.
Hunk #11 FAILED at 22481.
Hunk #12 succeeded at 24114 (offset -3 lines).
Hunk #13 succeeded at 25024 (offset -4 lines).
Hunk #14 succeeded at 29498 (offset -3 lines).
Hunk #15 succeeded at 29516 (offset -4 lines).
Hunk #16 succeeded at 29733 (offset -3 lines).
Hunk #17 succeeded at 29752 (offset -4 lines).
Hunk #18 succeeded at 30676 (offset -3 lines).
Hunk #19 succeeded at 44255 (offset -21 lines).
Hunk #20 succeeded at 47202 with fuzz 2 (offset -21 lines).
Hunk #21 succeeded at 47314 with fuzz 2 (offset -21 lines).
Hunk #22 FAILED at 47389.
Hunk #23 succeeded at 47465 with fuzz 2 (offset -26 lines).
Hunk #24 succeeded at 47561 with fuzz 2 (offset -21 lines).
Hunk #25 succeeded at 47599 with fuzz 1 (offset -26 lines).
Hunk #26 succeeded at 47751 with fuzz 1 (offset -21 lines).
Hunk #27 succeeded at 47781 with fuzz 1 (offset -26 lines).
Hunk #28 succeeded at 48535 (offset -21 lines).
Hunk #29 succeeded at 48580 (offset -26 lines).
Hunk #30 succeeded at 48860 (offset -21 lines).
Hunk #31 succeeded at 48895 (offset -26 lines).
Hunk #32 succeeded at 49145 (offset -21 lines).
Hunk #33 succeeded at 49171 (offset -26 lines).
Hunk #34 succeeded at 49716 (offset -21 lines).
Hunk #35 succeeded at 49761 (offset -26 lines).
Hunk #36 succeeded at 50035 (offset -21 lines).
Hunk #37 succeeded at 50070 (offset -26 lines).
Hunk #38 succeeded at 50311 (offset -21 lines).
Hunk #39 succeeded at 50337 (offset -26 lines).
Hunk #40 succeeded at 52248 (offset -21 lines).
Hunk #41 succeeded at 53721 (offset -26 lines).
Hunk #42 succeeded at 58569 (offset -21 lines).
3 out of 42 hunks FAILED -- saving rejects to file 'src/Terraria\Terraria\Main.cs.rej'
patching file 'src/Terraria\Terraria\Player.cs'
patching file 'src/Terraria\Terraria\Projectile.cs'
Hunk #2 FAILED at 12705.
1 out of 5 hunks FAILED -- saving rejects to file 'src/Terraria\Terraria\Projectile.cs#'
patching file 'src/Terraria\Terraria\TestHighFPSIssues.cs'
patching file 'src/Terraria\Terraria\Tile.cs'
patching file 'src/Terraria\Terraria\WaterfallManager.cs'
patching file 'src/Terraria\Terraria\Wiring.cs'
I tried many times , but always the same error , I also tried Single Decompile Thread, still the same
Can you help me?