Oceanus5000
Skeletron Prime
So I started to mod my Terraria to join some friends in a new playthrough, and we noticed that for some reason, the mod browser doesn't show mods at all, even after restarting the game. I'm on OSX, if that helps.
Ever made a mod before? neither have I, so don't rush them, asking about it won't make it come to us faster.Why no V0.8.3.5 yet???
Mod browser dont work on OS XSo I started to mod my Terraria to join some friends in a new playthrough, and we noticed that for some reason, the mod browser doesn't show mods at all, even after restarting the game. I'm on OSX, if that helps.
Main.npcFrameCount[npc.type] = 2; // Amount Of SlidesAsk that on the Thorium page
Also, can someone help me with my slime problem?
Thanks, the sprite was made by a guy called Nitromancer though. We are doing a mod along with Sky High and JimboPandaMain.npcFrameCount[npc.type] = 2; // Amount Of Slides
aiType = NPCID.RedSlime;
animationType = NPCID.RedSlime;
This Should Work. Also, that is a really good sprite
v0.8.3.5
-Updated to Terraria 1.3.3.3
-Added mod packs - ability to enable/disable groups of mods at once
-Added ability to search mod browser by author
private static Random rand = new Random();
public int shoot = rand.Next(15);
public override void SetDefaults()
{
item.name = "Endless Test Pouch";
item.damage = 1;
item.ranged = true;
item.width = 26;
item.height = 34;
item.maxStack = 1;
item.consumable = false;
item.knockBack = 1f;
item.value = 20000;
item.rare = 4;
item.shootSpeed = 1f;
item.ammo = ProjectileID.Bullet;
if (shoot == 0)
{
item.shoot = 14;
shoot = rand.Next(15);
}
if (shoot == 1)
{
item.shoot = 36;
shoot = rand.Next(15);
}
if (shoot == 2)
{
item.shoot = 89;
shoot = rand.Next(15);
}
if (shoot == 3)
{
item.shoot = 104;
shoot = rand.Next(15);
}
if (shoot == 4)
{
item.shoot = 207;
shoot = rand.Next(15);
}
if (shoot == 5)
{
item.shoot = 242;
shoot = rand.Next(15);
}
if (shoot == 6)
{
item.shoot = 279;
shoot = rand.Next(15);
}
if (shoot == 7)
{
item.shoot = 207;
shoot = rand.Next(15);
}
if (shoot == 8)
{
item.shoot = 283;
shoot = rand.Next(15);
}
if (shoot == 9)
{
item.shoot = 284;
shoot = rand.Next(15);
}
if (shoot == 10)
{
item.shoot = 285;
shoot = rand.Next(15);
}
if (shoot == 11)
{
item.shoot = 286;
shoot = rand.Next(15);
}
if (shoot == 12)
{
item.shoot = 242;
shoot = rand.Next(15);
}
if (shoot == 13)
{
item.shoot = 287;
shoot = rand.Next(15);
}
if (shoot == 14)
{
item.shoot = 638;
shoot = rand.Next(15);
}
}
Yeah I had the same problem..not with the corrupted character or anything because I didn't make a world, but it asked me to "update" to 0.8.1I think i may need to wait for the other mods to update. i just downloaded this and tried playing the game. it worked at first, but when i exited the world. my Character got corrupted. also some maps will not load now. Also when i visit the mod browser it says that i need to update this mod to the V 0.8.1 which isn't right at all. that's a much older version of this.
Yeah I had the same problem..not with the corrupted character or anything because I didn't make a world, but it asked me to "update" to 0.8.1![]()
All good now
So..that means you fixed it? o.oAll good now
Im making an ammo bag that will cycle through and shoot random bullets. When I craft the bag, it only randomly chooses one type of ammo and will only shoot that kind. (Example, ill craft the pouch and it gets Musket shots, it will only shoot musket shots.)
Hints anyone?
Code:private static Random rand = new Random(); public int shoot = rand.Next(15); public override void SetDefaults() { item.name = "Endless Test Pouch"; item.damage = 1; item.ranged = true; item.width = 26; item.height = 34; item.maxStack = 1; item.consumable = false; item.knockBack = 1f; item.value = 20000; item.rare = 4; item.shootSpeed = 1f; item.ammo = ProjectileID.Bullet; if (shoot == 0) { item.shoot = 14; shoot = rand.Next(15); } if (shoot == 1) { item.shoot = 36; shoot = rand.Next(15); } if (shoot == 2) { item.shoot = 89; shoot = rand.Next(15); } if (shoot == 3) { item.shoot = 104; shoot = rand.Next(15); } if (shoot == 4) { item.shoot = 207; shoot = rand.Next(15); } if (shoot == 5) { item.shoot = 242; shoot = rand.Next(15); } if (shoot == 6) { item.shoot = 279; shoot = rand.Next(15); } if (shoot == 7) { item.shoot = 207; shoot = rand.Next(15); } if (shoot == 8) { item.shoot = 283; shoot = rand.Next(15); } if (shoot == 9) { item.shoot = 284; shoot = rand.Next(15); } if (shoot == 10) { item.shoot = 285; shoot = rand.Next(15); } if (shoot == 11) { item.shoot = 286; shoot = rand.Next(15); } if (shoot == 12) { item.shoot = 242; shoot = rand.Next(15); } if (shoot == 13) { item.shoot = 287; shoot = rand.Next(15); } if (shoot == 14) { item.shoot = 638; shoot = rand.Next(15); } }
That error means that the compiler thinks it's possible for the game to get through all of the code without returning a value. Fix this by replacing the last 'else if (condition)' with 'else'. You don't really need it anyway because either it won't be reached or it will always return true.so how can i get random stuff from trees like change some of the drops to something els
it wont allow main.rand.Next(0, 10)
error CS0103: The name 'Main' does not exist in the current context
why does it say this or is there some other way to get random numbers?
int f = main.rand.Next(0, 100);
if(f >= 0 && f <= 74)
{
return mod.ItemType("ITEM NAME");
}
else if(f >= 75 && f <= 99)
{
return mod.ItemType("ITEM NAME");
}
this also gives another error to
error CS0161: MODs NAME.Tiles.trees.ITEM NAME.DropWood ()': not all code paths return a value
What is it used for?-Made Main._drawInterfaceGameTime public