T
conscious-sapphire
Was creating my first mod, i am directionless now.
I followed LYNX videos in his footsteps https://www.youtube.com/watch?v=2HS3OV6xuNI&list=PLYaXRYIpx67G4wTDiR7a9YOPjHJ6sicIf&index=4
and also used RiptideDev's videos
error cs1061, something aboput setting a default or using a directive or assembly reference, which i dont undestand. it goes right through my ears.
Lynx
YouTube
BASIC ITEM & SWORD - HOW TO MAKE A MOD - TMODLOADER 1.4 - 02
► Video Information
Welcome to How to Make a Mod for Terraria 1.4. This series will cover a range of items from basic weapons to advanced AI and world generation.
Each episode will cover a different topic, with this episode covering setting up tmodloader to access 1.4 alpha and creating your mod as well as setting up a new file layout.
This...
24 Replies
You are using old code. DisplayName, Tooltip are no longer in SetStaticDefaults but in the localization files. The tutorials you are using are out of date
conscious-sapphireOP•2y ago
Thank you for the response Mr.Softman
conscious-sapphireOP•2y ago
@Michaelsoftman It's now saying my rectangle cannot be found, as i have added a few things
conscious-sapphireOP•2y ago
could it be im not supposed to say rectangle hitbox in melee effects?
Are you using VS?
It'll recommend the fix to you
You are just missing a using directive
conscious-sapphireOP•2y ago
i am using vs 2022 but itsays all good
conscious-sapphireOP•2y ago

Are you opening the .csproj?
If not it won't debug for you
conscious-sapphireOP•2y ago
so i just have to occasionally run the csproj to debug?
ALWAYS use the csproj
If you open the individual .cs files, you are basically just using VS as a text editor, like notepad
conscious-sapphireOP•2y ago
ahh oki, and it said dis

conscious-sapphireOP•2y ago
i must be using old code again or sum thang
if you have the csproj open, open that file and it'll highlight Rectangle in red
hover over it to see the recommended fixes
conscious-sapphireOP•2y ago
it just says this and i click back to my items file and no red on the rectangle

Why are you building it
open the csproj that's already there
in the mod source folder
then open the cs file from the file tree
conscious-sapphireOP•2y ago
it did highlight it under red, then i clicked on it,also its saying no suitable method for override
conscious-sapphireOP•2y ago

Ok so for that, the method parameters are wrong (probably old)
Delete the line
public override void... and then start retyping it. When you get to OnHitNPC, press tab and VS will create it with all the current parametersconscious-sapphireOP•2y ago
i went through and it gave me new syntaxin jus like ya said

conscious-sapphireOP•2y ago

conscious-sapphireOP•2y ago
now on the debuffs it gives, which i retyped, but now im stuck,as i cant find how to do buffsright on the github guides
You had them working in the screens above
conscious-sapphireOP•2y ago
i was overthinkin it, it is just a comma not an equation


