Solo-Ion
Dungeon Spirit
preAI and postAI behave just like the AI hook, except they are called before & after the AI hook. You could experiment with both preAI and postAI and see what happens if you try something like projectile.velocity *= 1.5f; to speed it up. You could try using the onHitNPC hook with something like the following, though I don't know how well it would work.That is a bit fast. So I'm guessing that I'll have to use pre/postAI for this. The problem for me there is that I have never tried to use those and don't know anything that you can do with those or even where to start. I understand it would be tricky, but not impossible, right?
Code:
if (projectile.ai[1] > 0)
projectile.ai[0] = 0;
if (this.ai[0] == 0f)
{
this.velocity *= -1;
}
this.netUpdate = true;
I have the exact same problem. tModLoader will appear to freeze and require a forced close, but I later realised I could get control back by unplugging my controller, then click the continue button like normal. I'm using a dual PS2 to USB adapter, what kind are you using?Not sure whether this has been reported before but controller support seems to be causing a crash while reloading mods. Specifically, it happens when a world is loaded, exited and then mods are reloaded. To note I was using my keyboard most of the time despite having a controller plugged in and the crash happened essentially every single time conditions mentioned were met. As soon as I unplugged my controller, everything worked fine.
Code:Indice oltre i limiti della matrice. (Index exceeds matrix dimension) in Terraria.GameInput.PlayerInput.GamePadInput() in Terraria.GameInput.PlayerInput.UpdateInput() in Terraria.Main.do_Update(GameTime gameTime) in Terraria.Main.Update(GameTime gameTime)