Search results

  1. Solo-Ion

    tModLoader Official tModLoader Help Thread

    Assuming you are on PC, it's in This PC>Documents>My Games>Terraria. And unless you know how to edit a .json file, you are probably better off renaming/deleting it which will set many of your games settings to default.
  2. Solo-Ion

    tModLoader Official tModLoader Help Thread

    I'm guessing a bit here, but it could have something to do with Terraria's save folder being in your oneDrive folder. Perhaps try temporarily turning oneDrive off?
  3. Solo-Ion

    tModLoader Official tModLoader Help Thread

    I'm guessing a bit here, but you could try verifying Terraria's & tModLoader's game files.
  4. Solo-Ion

    tModLoader Official tModLoader Help Thread

    T That sounds like it could be a firewall wall problem. Have you tried temporarily turning off your firewall or anti virus?
  5. Solo-Ion

    Tutorial: How to get tModLoader working with Visual Studio Code. (Outdated, see note)

    I followed the link to .NET 5 and .NET 6 comes up. Is it fine to get 6, or do I need to choose 5 for modding to work? Also, I'm installing VS 2022 and that has the option to install .NET 5 and 6. I guess I'll do that instead? I read someone say that people were having problems with 2022, but...
  6. Solo-Ion

    tModLoader Official tModLoader Help Thread

    I think that means that it can't find the image for your projectile.
  7. Solo-Ion

    tModLoader Official tModLoader Help Thread

    Collision.SolidCollision is a function. I don't know exactly what you mean by get a variable from one method and use it in another, but what I was suggesting you do is something like the following. if (Collision.SolidCollision(npc.position, npc.width, npc.height)) { //do the thing } That...
  8. Solo-Ion

    tModLoader Official tModLoader Help Thread

    I'm no expert, but I did something similar on a projectile with the Collision class. Give Collision.SolidCollision(vector2, int, int) your NPC's position, width and height and it will return a bool based on weather or not it's hitting something. Hope that works.
  9. Solo-Ion

    tModLoader Official tModLoader Help Thread

    Yeah, you've got 26 as your number of frames, when your image has 27. I can also see that for ExtraFramesCount you have 9. I haven't played around with that number on NPCs, but I think that that is the number of frames after the walk cycle, and both the Guide and your image has 10. You could try...
  10. Solo-Ion

    tModLoader Official tModLoader Help Thread

    It's hard to say exactly what's gone wrong, but it looks like the number of animation frames in the .cs file doesn't match the actual number of frames in the .png file. What do you have in Main.npcFrameCount[npc.type] = ??; and how many are in the image? Edit: huh, the image didn't load until...
  11. Solo-Ion

    tModLoader Official tModLoader Help Thread

    I could be wrong but I think I see the problem. Where you have this, Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType<CreeperBand>()); put this instead, Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f...
  12. Solo-Ion

    tModLoader Official tModLoader Help Thread

    It might be worth having a look through Windows Logs in Event Viewer. There might be some errors there that give some clues.
  13. Solo-Ion

    tModLoader Official tModLoader Help Thread

    Then the problem is with Terraria, not tModLoader. The first thing that you should try is to verify Terraria's cache. (Right click on game > properties > Local Files > Verify integrity of game files...)
  14. Solo-Ion

    tModLoader Official tModLoader Help Thread

    I had a look through some old code for one of my mods, and I got it working by changing item.useStyle in the HoldItem hook. The HoldItem hook is called every frame, so you won't want to increase your swing int with it. Instead use UseItem to increase swing like you already do, and use HoldItem...
  15. Solo-Ion

    tModLoader Official tModLoader Help Thread

    I'm not certain, but I think you would need to update item.useStyle directly. The SetDefault hook is only called once, so changing swing has no impact during gameplay.
  16. Solo-Ion

    tModLoader Official tModLoader Help Thread

    Hang on, I've read the animation code more carefully and spotted some more errors. Don't have ++ inside if brackets. You use them to increase a value by one. In this case you want to increase frame counter every frame, and increase the frame and reset the frame counter once the frame counter...
  17. Solo-Ion

    tModLoader Official tModLoader Help Thread

    The only thing that you want in 'SetStaticDefaults()' is 'Main.projFrames[projectile.type] = 4;' The rest should go in AI.
  18. Solo-Ion

    Rounding Out the Journey: Terraria 1.4.1 is Here!

    I checked Terraria's install size before and after the update. Before it was 283 mb (approx). Now it's 437 mb. Has anyone else noticed this?
  19. Solo-Ion

    tModLoader Double Player Example

    I have no plans to update this, and as far as I know nobody has made any mods based on this.
  20. Solo-Ion

    Standalone [1.3] tModLoader - A Modding API

    Change Player p = Main.player[projectile.owner]; to Player player = Main.player[projectile.owner]; Or else player.Center.X and .Y won't have a clue which player you mean.
Top Bottom