Standalone [1.3] tModLoader - A Modding API

hey i got an better idea!

a gun thats totally overpowered that would be made an endgame upgrade to the venus magnum!

the super blaster 2.0!
View attachment 183781
just copy it and download it

and make it a mod called the super blaster 2.0!

and make the mod for me cuz when i make mods i get errors

make it do

70 ranged damage
5.5 knockback
critical chance: 24%
use time: 8
velocity: 13.5

tooltip: get destroyed enemies
rarity: red
sell: 7 gold

best modifier: unreal

and make it the shooting sound the same as
flintlock pistol
the undertaker
red ryder
musket
etc

i used a sprite of the 1.0 phoenix blaster sprite

and i recolored it
I might... Permission?
 
Ive got a mind blowing idea for Tmodloader, a Linux package that has actual Linux files and not just the windows ones, please. It just irks me a bit when I download a version clearly marked Linux and am greeted with .exe files.
Hello. I understand the frustration, but keep in mind that the exe files are automatically called by mono. Because of this, a linux elf is not needed. On top of that, the game itself would need to be remade in a way. The mono version is fine anyways. I see a 0% difference in execution speed compared to Windows.

Edit: Except tmodloader mods initialize really slowly compared to Windows. :l
 
I NEED HELP !!!
these days I was adding some mods to play, after giving reload in the mods my terraria crasho and clasp, I opened it later and after loading the mods it closes alone, ie I can not play terraria with mods anymore.
Maybe it's some mod that I added that is giving this problem, I do not know.
I also wanted to know where the mods file is in the archive, because I already tried to reinstall everything and always loads the mods I already had. Can you handle this? Someone help me please '-.-
 
The newest tModloader update completely broke the game for me. I have the same mods as before I updated (except for one, but it can't possibly be the reason to this), but when I'm in game, I get huge lagspikes, even on the main menu. And the game crashes A LOT. When I make a new character, the game crashes. When I die in game, the game crashes. When I try to host a server for my friend who recently got into modded Terraria, MY GAME CRASHES. It also just decides to crash at completely random times when I'm not doing anything at all. Is there anything I can do to fix this, or do I have to wait for a new update entirely?
 
  1. I have a problem about tmodloader mod browser any mod dont have icons and when ı click anywhere game freezing and says a error anyone can help me (sorry for bad english)
    Code:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    
    ************** Exception Text **************
    System.IO.IOException: Beklenmeyen paket biçimi nedeniyle el sıkışması başarısız oldu.
       at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
       at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)
       at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
 
System.DllNotFoundException: Unable to load DLL 'CSteamworks': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Steamworks.NativeMethods.SteamAPI_RestartAppIfNecessary(AppId_t unOwnAppID)
at Terraria.Social.Steam.CoreSocialModule.Initialize()
at Terraria.Social.SocialAPI.Initialize(Nullable`1 mode)
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
 
I am running Terraria on a Mac and Just installed tmodloader yesterday, It was working fine yesterday, but today it refuses to start up. The re-logic intro screen pops up, then fades and freezes when the mod initialization should come up. app says not responding, requires force quit. Double click on steam play button, repeat. I would appreciate some help.

Version 0.10.1
running terraria 1.3.5.2

Thanks
 
How to fix error


This code gives an error: ; expected at line 26
When I add the ; , it gives another error. Invalid Token '=>' in class, struct, or interface declaration at line 27


using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.GameContent.Generation;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ModLoader.IO;
using Terraria.World.Generation;

namespace Test3
{
public class Test3World : ModWorld
{
public enum Boss
{
Betsy,
Saucer,
PirateShip

}


private Boss FindBossMatch(string boss) //error happens here
=> (Boss)Enum.Parse(typeof(Boss), boss, true);

public static Dictionary<Boss, bool> downedBoss;

...
 
How to fix error


This code gives an error: ; expected at line 26
When I add the ; , it gives another error. Invalid Token '=>' in class, struct, or interface declaration at line 27


using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.GameContent.Generation;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ModLoader.IO;
using Terraria.World.Generation;

namespace Test3
{
public class Test3World : ModWorld
{
public enum Boss
{
Betsy,
Saucer,
PirateShip

}


private Boss FindBossMatch(string boss) //error happens here
=> (Boss)Enum.Parse(typeof(Boss), boss, true);

public static Dictionary<Boss, bool> downedBoss;

...
I wouldn't copy Tremor mod for how to do the boss bools. And that's a c#6 feature that is confusing you, and you can't use that unless you specify it in build.txt. Just follow examplemod.
 
I NEED HELP !!!
these days I was adding some mods to play, after giving reload in the mods my terraria crasho and clasp, I opened it later and after loading the mods it closes alone, ie I can not play terraria with mods anymore.
Maybe it's some mod that I added that is giving this problem, I do not know.
I also wanted to know where the mods file is in the archive, because I already tried to reinstall everything and always loads the mods I already had. Can you handle this? Someone help me please '-.-

Hey Draynek, I had similar problems a while ago with an older version of tmodloader. The conclusion I eventually reached was that I just had too many mods, because it began happening after adding 1 mod, but continued long after I removed more than just that one. So how do you fix it? Your mods folder can be found in documents/My Games/Terraria/Modloader/Mods. Go there and remove all .tmod files and the ones that say enabled.json. (those are your enabled and installed mods) Then it should work, requiring only that you install again whatever mods you want.

The reason you couldn't find your mods is that they are in your documents, not your steam terraria directory. If you clean out that mods folder in your documents, it should work again. Just don't delete anything but the tmod and enabled files or you'll have to reinstall tmodloader... again. Hope it helps you, good luck.
 
Why am I having this error? with this code:
using Terraria.ID;
using Terraria.ModLoader;

namespace DiscordianMod.Items
{
public class iridium : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("IridiumLance");
Tooltip.SetDefault("This is a modded Lance.");
}
public override void SetDefaults()
{
item.damage = 76;
item.melee = true;
item.width = 65;
item.height = 65;
item.useTime = 15;
item.useAnimation = 20;
item.useStyle = 2;
item.knockBack = 10;
item.value = 10000;
item.rare = 5;
item.UseSound = SoundID.Item1;
item.autoReuse = true;
}

public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 10);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}

upload_2017-9-24_22-51-46.png
 

Attachments

  • upload_2017-9-24_22-51-13.png
    upload_2017-9-24_22-51-13.png
    68.2 KB · Views: 145
I don't know how to fix that, but do you really want your tooltip to be "This is a modded Lance."

Help with trees:

using Microsoft.Xna.Framework;
using Terraria;
//using Terraria.ID;
using Terraria.ModLoader;
namespace SlimeBiome.Images.Tiles
{
public class SlimestoneBlock : ModTile
{
public override void SetDefaults()
{
Main.tileSolid[Type] = true;
//Main.tileShine2[Type] = true;
//Main.tileShine[Type] = 1200;
Main.tileMergeDirt[Type] = true;
Main.tileBlockLight[Type] = true;
//Main.tileLighted[Type] = true;
dustType = mod.DustType("Sparkle");
drop = mod.ItemType("SlimestoneBlock");
AddMapEntry(new Color(56, 255, 130));
minPick = 35;
SetModTree(new SlimeTreeTile()); //this make the tree spawn on this block/tile. change CustomTreeTile with u'r tree name
}
//public override void NumDust(int i, int j, bool fail, ref int num)
//{
//num = fail ? 1 : 3;
//}
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
{
r = 0.5f;
g = 0.5f;
b = 0.5f;
}
//public override void ChangeWaterfallStyle(ref int style)
//{
// style = mod.GetWaterfallStyleSlot("ExampleWaterfallStyle");
//}

public override int SaplingGrowthType(ref int style)
{
style = 0;
return mod.TileType("SlimeSaplingTile"); //this make the spaling spawn the custom tree/sapling on this block/tile. change CustomSaplingTile with u'r sapling name
}
}
}

More Code:

using Microsoft.Xna.Framework.Graphics;
using Terraria.ModLoader;
namespace SlimeBiome.Images.Furniture
{
public class SlimeTreeTile : ModTree
{
private Mod mod
{
get
{
return ModLoader.GetMod("SlimeBiome");
}
}
public override int DropWood()
{
return mod.ItemType("SlimestoneBlock"); //this is what the tree will drop
}
public override Texture2D GetTexture()
{
return mod.GetTexture("Images/Furniture/SlimeTreeTile"); //add where is u'r tree tile
}
public override Texture2D GetTopTextures(int i, int j, ref int frame, ref int frameWidth, ref int frameHeight, ref int xOffsetLeft, ref int yOffset)
{
return mod.GetTexture("Images/Furniture/SlimeTreeTile_Tops"); //add where is u'r tree tops tile
}
public override Texture2D GetBranchTextures(int i, int j, int trunkOffset, ref int frame)
{
return mod.GetTexture("Images/Furniture/SlimeTreeTile_Branches"); //add where is u'r tree branches tile
}
}
}

= the type or namespace SlimeTreeTile Could not be found?
 
Last edited by a moderator:
Is it possible for worldgen to replace EVERY time it finds a stone for another block (Stone would be unobtainable)

Help?
[doublepost=1506329343,1506329029][/doublepost]Help??

Please Help
 
Last edited by a moderator:
Back
Top Bottom