You might have to look for a file called MP3Sharp.dll inside your Terraria's Steam folder then delete that. I'll update my post with this.I'm getting the following error when trying to rebuild mods:
You might have to look for a file called MP3Sharp.dll inside your Terraria's Steam folder then delete that. I'll update my post with this.I'm getting the following error when trying to rebuild mods:
You might have to look for a file called MP3Sharp.dll inside your Terraria's Steam folder then delete that. I'll update my post with this.
Awesome, nice work!v0.8:
Server Bugs:
-Fixed server sync bug with OnPickup hook for items
-Fixed server bug where chests are not synced properly
-Fixed bug where Steam servers don't work
-Hopefully fixed ItemLoader.GetAlpha crash for clients on servers
-Hopefully fixed NPCs disappearing on servers? Please?
-Fixed server bug where custom item data is not synced
-Fixed server bug where custom town NPCs do not work
Other Bugs:
-Fixed bug where bottom half of long hair does not draw
-Fixed bug where modded tiles crashed the game in early stages of world generation
-Fixed bug where Start Bag cannot contain vanilla items
-Fixed bug where Mod.GetEquipTexture always returns null
-Mods with sounds now load for people without sound cards
-Fixed NPC.CloneDefaults with buffImmune
-Fixed bug where SetMatch hook doesn't work at all-Added the ability to build and debug mods from Visual Studio
-Improved the .tmod file format
-Added the ability to support future .tmod file format changes
-Renamed Other.dll to Mono.dll for noCompile mod-building
-Mods can now reference embedded dlls
-Added the ability to compile mods in C# 6
-Made the Mod Browser more secure
-ItemIO can now save items in general, including vanilla items
-Mods menu now displays how much stuff each mod adds
-Detect and display modder errors in LoadCustomData
-Huge performance improvements
-Changed structure of equipment update code to make it easy to create new equipment slots
-Converted some local world generation variables to static fields
-Made Player.jumpSpeed and Player.jumpHeight public
-Made a bunch of Mount fields public
-Added April Fools (sorry this was late)-Added GlobalRecipe and RecipeAvailable hook for recipes
-Added gender parameter to SetMatch hook for items
-Added generic GetModX accessors for reduced redundancy
-Added OnCraft hook for recipes and items
-Added TileCountsAvailable hook for ModWorld
-Added GetMapBackgroundImage hook for ModPlayer
-Added ModifyBuffTip hook for buffs
-Added option to use constructor for cloned ModPlayers
-Added DrawEffects and CanExplode hooks for tiles
-Made code source files hidden from tModReader based on hideCode instead of hideResources
All mods must be rebuilt! Mods from v0.7.1.1 or earlier will not work!
The format for mod properties and the build.txt version have changed! Please look at the ExampleMod!
Mod properties must be made in the constructor, and you cannot put a "v" in your version number (we do that for you).
Code://old //public override void SetModInfo(out string name, ref ModProperties properties) //{ // name = "TheLuggage"; // properties.Autoload = true; // properties.AutoloadGores = true; // properties.AutoloadSounds = true; //} //new public TheLuggage() { Properties = new ModProperties() { Autoload = true, AutoloadGores = true, AutoloadSounds = true }; }
Edit 1: Also, if you had previous versions of tModLoader, you'll need to delete MP3Sharp.dll from your Terraria's Steam folder.
Now that that's out of the way, I don't remember whether I announced this or not, but @Chicken Bones is officially part of the team now! Ever since he's joined, progress has picked up a lot, and there's been tons of internal improvements, so be sure to thank him!
I had an April Fools joke in this update, but it looks like this update got released a bit late. Oh well, hope you guys can enjoy a day-late April Fools joke.
Was I going to say anything else? I don't remember... I guess I'll edit this post as things come up, just as usual.
Gonna make some more. Probably tomorrow.
Have you followed the example of ExampleMod? In what situation are we talking?How do I get my custom music to play custom music?
Go read bluemagics post, the structure has changed a bit.I try to build my mod and this error pops out:
error CS0115: „EpicModpack.EpicModpack.SetModInfo(out string, ref Terraria.ModLoader.ModProperties)”: nie znaleziono odpowiedniej metody do zastąpienia
So, how can I create CraftGroups now?Have you followed the example of ExampleMod? In what situation are we talking?
Go read bluemagics post, the structure has changed a bit.
So I'm finally getting around to trying to make my mod happen and I'm having a problem getting Visual Studio setup to work with the mods. All the terraria specific code/calls are being highlighted/underlined. Is there a doc on how to setup Visual Studio to work with tModLoader?Tmodloader saves are separate from your original saves. And you could do a global npc script that override the spawning of the monsters . If you dont know how to make that PM me and I can do the mod it for you
So I'm finally getting around to trying to make my mod happen and I'm having a problem getting Visual Studio setup to work with the mods. All the terraria specific code/calls are being highlighted/underlined. Is there a doc on how to setup Visual Studio to work with tModLoader?
- Aerlock
TileObjectData.newTile.CoordinateHeights = new int[]{ 18 };
TileObjectData.newTile.Width = 3;How can I place tile 3x2, when I tried before only 1/3 tile was placed. I saw that I have to modify this:
but I don't know how.Code:TileObjectData.newTile.CoordinateHeights = new int[]{ 18 };
TileObjectData.newTile.CoordinateHeights = new int[]{ 18 }; defines height of one block in tile in pixels.How can I place tile 3x2, when I tried before only 1/3 tile was placed. I saw that I have to modify this:
but I don't know how.Code:TileObjectData.newTile.CoordinateHeights = new int[]{ 18 };
Craftgroups haven't changed. My signature has a guide for them.So, how can I create CraftGroups now?
I've already found that out. Thank you anyways.Craftgroups haven't changed. My signature has a guide for them.
Thank you!TileObjectData.newTile.CoordinateHeights = new int[]{ 18 }; defines height of one block in tile in pixels.
For example TileObjectData.newTile.CoordinateHeights = new int[]{ 16, 18, }; means that upper block int tile made of 16 pixels and lower made of 18 pixels (18 pixels are using to "put" it in the ground like this)
That's because projectile.owner only defines players, not npcs. All NPC projectiles are owned by Main.myPlayer usually.public override void AI()
{
projectile.timeLeft += 1000;
projectile.rotation += 0.05f;
Dust.NewDust(projectile.position, projectile.width, projectile.height, 158);
fCount++;
if (fCount > 70)
{
if (Main.npc[projectile.owner].position.X < projectile.position.X)
{
//projectile.velocity.X = -10 ;
}
if (Main.npc[projectile.owner].position.X > projectile.position.X)
{
//projectile.velocity.X = 10;
}
if (Main.npc[projectile.owner].position.Y < projectile.position.Y)
{
//projectile.velocity.Y = -10 ;
}
if (Main.npc[projectile.owner].position.Y > projectile.position.Y)
{
//projectile.velocity.Y = 10;
}
/*Rectangle a = new Rectangle((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height);
Rectangle prjRec = new Rectangle((int)Main.npc[projectile.owner].position.X, (int)Main.npc[projectile.owner].position.Y,Main.npc[projectile.owner].width,Main.npc[projectile.owner].height);
if (a.Intersects(prjRec))
{
projectile.Kill();
}*/
}
}
The above is the code for the AI method of a projectile. For some reason, every time the variable fCount reaches 70, the projectile kills itself. I have been commenting out particular sections (as you can see) and I have narrowed it down to some 'if statements'... What am I doing wrong and how on earth do 'if statements' with no uncommented code within do anything?
[EDIT]
On further inspection, it seems like any reference to Main.npc[projectile.owner] kills it. Is there a reason behind this or is this some kind of bug?