Standalone [1.3] tModLoader - A Modding API

Hey some one help meView attachment 153261 View attachment 153262
[doublepost=1483059471,1483059356][/doublepost]
if you need to see the code here
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace ExampleMod.Items.Armor
{
public class WolfWings : ModItem
{
public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
{
equips.Add(EquipType.Wings);
return true;
}
public override void SetDefaults()
{
item.name = "Wolf's Wings";
item.width = 22;
item.height = 20;
item.value = 10;
item.rare = 2;
item.accessory = true;
}
public override void VerticalWingSpeeds(ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
{
ascentWhenFalling = 0.85f;
ascentWhenRising = 1.10f;
maxCanAscendMultiplier = 10f;
maxAscentMultiplier = 3f;
constantAscend = 1f;
}
public override void HorizontalWingSpeeds(ref float speed, ref float acceleration)
{
speed = 10f;
acceleration *= 2.5f;
}
}
}

-------------------------------------
Frame sizes for "./WolfsWings_Wings.png" are 22 x 20 px

I looked through all of my code at least 17 times trying to find inconsistencies but everything looks fine to me Whats causing this?
Your mod name in the code is wrong it shouldn't be ExampleMod but 551
 
It's probably just an accidental case of quickbar 9 being set as left mouse click.
[doublepost=1483051041,1483050978][/doublepost]
More, yes, but they are all abandoned mods.

I think they just need to update their mods,and fix the bugs that are around until 0.9.1 though,im waiting for pumpking's mod,its taking a while but hopefully he does update the mod(i really want some mods updated...like boss health bars and npc nick show or something like that i already forgot)
 
Hi,
Are there any tModloader mod to change the autosave frequency?
I could only find one and it works under tAPI.
Or perhaps the frequency can be changed without a mod?
 
the "virus total" file reports that the 0.9.1 file has a virus called Win.Trojan.Toa

can you fix it as soon as possible?
 
the "virus total" file reports that the 0.9.1 file has a virus called Win.Trojan.Toa

can you fix it as soon as possible?
There are no viruses in the file. Fix your own computer first.
 
Is there a way to make a 2x2 tile piece of furniture that can be placed on a wall?
I tried
Code:
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2Wall);
But I guess there is no tiles like that in vanilla Terraria.
 
DO ANYONE KNOW WHAT IS THE CODE FOR ADDING BUFF TO ACCESSORY / ARMOR ?
IT WILL REALLY HELP TO MAKE MY MOD BETTER.
 
Last edited:
Anyone here know to make your custom worm-type enemy spawn? Naturally. I tried this:

Code:
            {
                return spawnInfo.spawnTileY < Main.rockLayer && !Main.dayTime ? 0.01f : 0.01f;
            }

It doesn't work. If anyone would be able to help, I would be grateful.
There probably is an obvious way to do this.
And I'm probably just being an idoit.
^-^
 
Sorry to ask such a demanding question, but would someone be able to give me an example of wings code that spawns dust when in use? Thanks in advance.
 
Capture3.PNG
Your mod name in the code is wrong it shouldn't be ExampleMod but 551
No the actual name of the mod is ExampleMod but I changed the folder name to 511
[doublepost=1483110803,1483110556][/doublepost]
Capture3.PNG

No the actual name of the mod is ExampleMod but I changed the folder name to 511
Is the mod maker so case sensitive that it won't accept a different folder name than the mod name as its directory
[doublepost=1483111390][/doublepost]Oh. Well I changed the Directory name of the mod back to "ExampleMod" and I had no errors when building the mod thx so much Kreeperslayer11
 
It's probably just an accidental case of quickbar 9 being set as left mouse click.
[doublepost=1483051041,1483050978][/doublepost]
More, yes, but they are all abandoned mods.
How do I make it so that quickbar 9 isn't set?
 
none of the above delete your mod cache or try verifyinh steam files and reinstalling tmodloader
It happened after tmodloader updated to 0.9.1
[doublepost=1483114834,1483114740][/doublepost]
How do I make it so that quickbar 9 isn't set?
Yeah I figured it out... lol
 
It happened after tmodloader updated to 0.9.1
[doublepost=1483114834,1483114740][/doublepost]
Yeah I figured it out... lol
you don't understand that it happen after 0.9.1 does not change anything , something could still have become corrupt
 
you don't understand that it happen after 0.9.1 does not change anything , something could still have become corrupt
I found the problem already. For some reason many of my controls were set to left-click even though I didn't set them.
 
Umm... i dont know if this happenes to any of you guys... but when i try to use a weapon, for example, a yoyo, nothing happens. i dont know if this is in the settings or something, but i need help!
 
I'm having a problem. Every time I launch terraria, I get an error for the WWIAFT mod that I installed in a different version. When I get this, the game freezes. Due to the game automatically loading mods, it always just crashes. I have deleted and re-downloaded terraria and Tmodlaoder about 3 times and it still does it.
upload_2016-12-30_11-51-36.png
 
DO ANYONE KNOW WHAT IS THE CODE FOR ADDING BUFF TO ACCESSORY / ARMOR ?
IT WILL REALLY HELP TO MAKE MY MOD BETTER.
Code:
 public override void UpdateEquip(Player player)
{
           player.AddBuff(9, 2); //first number is the buff id, next is how many frames(60th of a second) it lasts. for example, 9 is the id for spelunker
}
Code:
 public override void UpdateAccessory(Player player, bool hideVisual)
{
         player.AddBuff(9, 2); //first number is the buff id, next is how many frames(60th of a second) it lasts. for example, 9 is the id for spelunker
}
 
I'm having a problem. Every time I launch terraria, I get an error for the WWIAFT mod that I installed in a different version. When I get this, the game freezes. Due to the game automatically loading mods, it always just crashes. I have deleted and re-downloaded terraria and Tmodlaoder about 3 times and it still does it. View attachment 153361
documents /my games /terraria/modloader/mods here you can delete mods
 
Thank you! it works now!
 
Back
Top Bottom