tModLoader Official tModLoader Help Thread

I'm hoping to make a weapon with damage scaling off of missing health and/or missing mana. Would this be done with (player.statLifeMax - player.statLife)? And would this work similarly with mana? These variables came from the first page,and I'm also unsure of whether this has changed in the past 7 years. Thanks for your help!

Additionally, I need a little help here since it's my first time trying to make a modded item. I'm hoping for a vampire knives type throw of 1-3 projectiles that split into 0-2 upon hitting blocks/enemies like the scourge of the corruptor, after which the split pieces, as with the scourge, would have a certain degree of homing capability.

I also have no idea how to adjust the amount of lifesteal but at this point I feel like I'm just asking people to make the mod I have in mind for me. I do want this to be a learning experience for me, but I need help ;-;
 
Last edited:
People, maybe someone knows the name of the mod, which has two cool katanas with interesting mechanics
 
Last edited:
Народ, может кто знает название мода, в котором есть две крутые катаны с интересной механикой
примечание я не знаю русский но я постараюсь помочь также много модов добавить в катаны
 
примечание я не знаю русский но я постараюсь помочь также много модов добавить в катаны
Я ищу старый мод, в котором в хард-моде есть две катаны с интересной механикой
 
Last edited:
1674913852375.png
does anyone know how to fix this issue pls and thanks.
 
i swear to god if its the wall of the orange i will be mad
 
Ever since tmod loader got updated to the most recent update 1.4.4 when i try to open it a message pops up saying that "busybox" has stopped working. The only way im able to play tmodloader right now is to open properties on steam and select betas and go to the 1.3 legacy version. can someone help me out
 
I asked about this a week ago and have been working through my issues, but I still can't figure out how to make a weapon's damage scale off of missing hp.

If I try to use Main.player[Main.myPlayer].statLifeMax, Main.Player.statLifeMax, or other variations in the item damage, I get build errors.
Conversely, if I try to use projectile.damage = either of those, Main.player[projectile.owner].statLifeMax or other variations, it simply doesn't update the damage.

Is there any way to do this or must my dreams be dashed to bits against the cold, jagged cliffs of C sharp?
 
Terraria_ Terrestrial Trouble 3_02_2023 8_37_05 AM.png

please help am confused
 
Hi, i'm trying to make a summoner weapon that summons a Minion with similar or rather the same AI as the Pirate Staff Minion.
I've tried finding the source code for the Pirate Minion but I dont know how to extract the AI code from the source code?
If anyone could help me either reverse engineer the source code for a Pirate Minion, or maybe even just write my own AI code (which i don't know how to do).
 
I'm having a bit of trouble trying to just update my mod, not any errors or anything, I just don't know how to do it. Could I get any help?
 
Last edited:
You literally just need to add an ";" at the end if line #35

also anyone know how to make a projectile weapon be used as ammo? (the weapon that shoots it will shoot the projectile of the projectile weapon)
Yeah I already solved this ages ago, I should have deleted the post, sorry.
 
I asked about this a week ago and have been working through my issues, but I still can't figure out how to make a weapon's damage scale off of missing hp.

If I try to use Main.player[Main.myPlayer].statLifeMax, Main.Player.statLifeMax, or other variations in the item damage, I get build errors.
Conversely, if I try to use projectile.damage = either of those, Main.player[projectile.owner].statLifeMax or other variations, it simply doesn't update the damage.

Is there any way to do this or must my dreams be dashed to bits against the cold, jagged cliffs of C sharp?
I’m not advanced in C# in ANY way, but if you use anything with statLifeMax, I believe that you would be measuring off of the player’s max life, not current life. I believe you need “player.statLife” instead. :)
 
hello, my friend is having a problem with tmod where every screen looks something like this.
they've tried uninstaling and reinstaling and that didnt seem help anything, and we cant figure out how to verify the game file's.
 

Attachments

  • 20230302_220739.jpg
    20230302_220739.jpg
    507.2 KB · Views: 118
hello, my friend is having a problem with tmod where every screen looks something like this.
they've tried uninstaling and reinstaling and that didnt seem help anything, and we cant figure out how to verify the game file's.
ooh, that is very gory.
Did this occur before the mod development or after?
 
ooh, that is very gory.
Did this occur before the mod development or after?
it was on inital boot of tmod, so before.
were not trying to develop a mod just trying to play together and i thought this would be the place to ask
 
it was on inital boot of tmod, so before.
were not trying to develop a mod just trying to play together and i thought this would be the place to ask
Hmm, well that's strange.
I'm probably going to get this extremely wrong, but from how I can see it there is two possible reasons.
A. The terraria files that tmodloader uses to run are from a different platform (Terraria was downloaded on steam but tmodloader was downloaded from a separate website)
B. Again, Tmodloader is downlaoded from a different website, and the Terraria files that it uses are out of date, or corrupt.
 
Back
Top Bottom