betterlugi
Terrarian
Trying to make this code work , but it says that i'm missing a } at 13,46. Even if i put it there or in another place it still says i need more
Try "UpdateEquip(Player player)". Found it in the ModItem class reference, scroll down until you see it.Hi i'm new here , came to ask : How can i detect that a player is wearing a certain armour piece ?
You probably need more! It's likely that the code editor program you're using highlights these brackets in pairs, so you can see which brackets have a pair and which ones do not.Trying to make this code work , but it says that i'm missing a } at 13,46. Even if i put it there or in another place it still says i need more
Thanks for the help , i'll send you the code . Terraria paste - Pastebin.comTry "UpdateEquip(Player player)". Found it in the ModItem class reference, scroll down until you see it.
You probably need more! It's likely that the code editor program you're using highlights these brackets in pairs, so you can see which brackets have a pair and which ones do not.
Send your code here if you can't figure it out.
I'm pretty sure you can't override from inside other overriden methods: public override void Kill code must be on the same level as public override void ProcessTriggers code.Thanks for the help , i'll send you the code . Terraria paste - Pastebin.com
View attachment 272674Every time I try to open up terraria 1.4 with Tmodloader this shows up. Idk what I did wrong, and I am new to the forums. Any help would be appreciated, thanks!
it says that : CS0115 Tutorialplayer(int) no suitable methode to overrideI'm pretty sure you can't override from inside other overriden methods: public override void Kill code must be on the same level as public override void ProcessTriggers code.
There's also a stray "/" at line 28 after the calculation
It seems you've began writing ProcessTriggers, then the Hotkey check, and then didn't finish it and went straight to Kill(). The "{" after (TutorialMod.ExplodeHotKey.JustPressed) is the bracket that needs a pair. After that, you can begin writing your Kill() code.
here's how I'd do it
Where does it say that exactly? Is it in regards to the Kill() method? I've checked just now and the Kill() method does not take in a single int parameter like it does in your code (the timeleft one), instead it takes up several and none of them are ints i believe.it says that : CS0115 Tutorialplayer(int) no suitable methode to override
the error is at : 18,29. I'm tryna make a bind that explodes you (a killbind so to speak) , since i don't know exaclty what i'm doing i checked the example mod for instructions for binds and it was in the modplayer. And this methode was taken from a custom explosive , i hoped that if i just took the kill code it'll workWhere does it say that exactly? Is it in regards to the Kill() method? I've checked just now and the Kill() method does not take in a single int parameter like it does in your code (the timeleft one), instead it takes up several and none of them are ints i believe.
Where did you get this method from? It's possible it's supposed to run elsewhere. If you're sure that this is the place, check the PlayerHooks reference page and search for the kill method, and simply copy the parameters from there.
The bind does go into the modplayer class, but you'll have to do some extra work with the explosive code, just copying it won't work since the explosive and modplayer classes work very differently.the error is at : 18,29. I'm tryna make a bind that explodes you (a killbind so to speak) , since i don't know exaclty what i'm doing i checked the example mod for instructions for binds and it was in the modplayer. And this methode was taken from a custom explosive , i hoped that if i just took the kill code it'll work
The problem most likely has to do with tmodloader's version, terraria 1.4 requires tmodloader 0.11.7+ version. I've had the exact same problem until I've installed the latest tmodloader version via Steam.Did you get it to work?
The problem most likely has to do with tmodloader's version, terraria 1.4 requires tmodloader 0.11.7+ version. I've had the exact same problem until I've installed the latest tmodloader version via Steam.
That depends on your computer actually! Some processors are 64-bit while others are 32-bit. You need to go into your computer's settings window to see info on your processor. My bet is on it being 64-bit though, since you say that it crashes less, and more importantly, that it still works fineOkay! Is that the x64 bit version or the x32 bit version. The reason for the question is that I would be able to run more mods without worrying about it crashing on the x64 bit version than the x32 bit version.
It actually doesn't have to do with the computer. The majority of tModLoader installs are 32-bit. There is an unofficial 64-bit version but it is buggy and outdated. For the time being 32-bit is the more stable one.That depends on your computer actually! Some processors are 64-bit while others are 32-bit. You need to go into your computer's settings window to see info on your processor. My bet is on it being 64-bit though, since you say that it crashes less, and more importantly, that it still works fine
Try adding "using static Terraria.ModLoader.ModContent;" to the top of your class code, you can insert it right after "using Terraria.Modloader"Having issues with namespaces
Here is the code: Terraria paste - Pastebin.com
The dusts are in TutorialMod/TutorialDusts
and the sword is in TutorialMod/Items
why isn't it working?
sorry for the late reply but , it shows the same errorTry adding "using static Terraria.ModLoader.ModContent;" to the top of your class code, you can insert it right after "using Terraria.Modloader"