gui10pow
Skeletron Prime
you will need to rebuild your mods for this update
probaly nois v0.5 compatible with v0.4 mods?
you will need to rebuild your mods for this update
probaly nois v0.5 compatible with v0.4 mods?
//Chat input void
if (command == "elevator")
{
WorldCommand(args);
}
//
private void WorldCommand(string[] args)
{
Player player = Main.player[Main.myPlayer];
for (int i = 0; i < 500; i++)
{
for (int j = 0; j < 5; j++)
{
WorldGen.KillTile((int)player.position.X + j - 1, (int)player.position.Y + i);//Doesn't work
WorldGen.KillWall((int)player.position.X + j - 1, (int)player.position.Y + i);//Doesn't work
Main.NewText("Hi!");//Is outputted when I use the command
}
}
}
The problem is that you're using an entity position for tile coordinates. You need to divide the coordinates by 16 to work with tiles.Is Player.Bottom.X relative to the on screen position because my code doesn't seem to be working.
It outputs Hi!, but it doesn't destroy the tiles(anywhere I could see).
Edit: It doesn't work when I use player.Bottom.X/Y eitherCode://Chat input void if (command == "elevator") { WorldCommand(args); } // private void WorldCommand(string[] args) { Player player = Main.player[Main.myPlayer]; for (int i = 0; i < 500; i++) { for (int j = 0; j < 5; j++) { WorldGen.KillTile((int)player.position.X + j - 1, (int)player.position.Y + i);//Doesn't work WorldGen.KillWall((int)player.position.X + j - 1, (int)player.position.Y + i);//Doesn't work Main.NewText("Hi!");//Is outputted when I use the command } } }
It might help if you post those crash logsit wont even install is the problem, When i try to install it, it takes the terraria.exe, makes it so it cant load and spams crash logs.
Just to make sure, the BadUtils.dll is in the dllReferences folder in the ModLoader folder, right?Hey @bluemagic123 whenever I build the dependent mod I always get this.
Could not load file or assembly 'BadUtils, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
at DependentMod.Items.DependentModItem.SetDefaults(Item item)
at Terraria.ModLoader.ItemLoader.SetupItem(Item item)
at Terraria.Item.SetDefaults(Int32 Type, Boolean noMatCheck)
at Terraria.Recipe.SetupRecipes()
at Terraria.ModLoader.ModLoader.do_Load(Object threadContext)
I know it doesn't do much but I would like to try it out.
Yup.The problem is that you're using an entity position for tile coordinates. You need to divide the coordinates by 16 to work with tiles.
It might help if you post those crash logs
Just to make sure, the BadUtils.dll is in the dllReferences folder in the ModLoader folder, right?
Hm. Given that it says it can't find the file itself, it isn't a problem with actually loading it. I'm not really sure what else the problem might be.Yup.
Ok that's weird... thanks anyway.Hm. Given that it says it can't find the file itself, it isn't a problem with actually loading it. I'm not really sure what else the problem might be.
TY it fixed it and I hope it does help solve that problem.I get that while playing with mods that use the dllReferences folder, and have found that if you put the dll file into the terraria folder it solves it.(hope this helps identify the problem)