T
tModLoader2y ago
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
Michaelsoftman
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-sapphire
conscious-sapphireOP2y ago
Thank you for the response Mr.Softman
conscious-sapphire
conscious-sapphireOP2y ago
@Michaelsoftman It's now saying my rectangle cannot be found, as i have added a few things
conscious-sapphire
conscious-sapphireOP2y ago
could it be im not supposed to say rectangle hitbox in melee effects?
Michaelsoftman
Are you using VS? It'll recommend the fix to you You are just missing a using directive
conscious-sapphire
conscious-sapphireOP2y ago
i am using vs 2022 but itsays all good
conscious-sapphire
conscious-sapphireOP2y ago
No description
Michaelsoftman
Are you opening the .csproj? If not it won't debug for you
conscious-sapphire
conscious-sapphireOP2y ago
so i just have to occasionally run the csproj to debug?
Rijam
Rijam2y ago
ALWAYS use the csproj
Michaelsoftman
If you open the individual .cs files, you are basically just using VS as a text editor, like notepad
conscious-sapphire
conscious-sapphireOP2y ago
ahh oki, and it said dis
No description
conscious-sapphire
conscious-sapphireOP2y ago
i must be using old code again or sum thang
Michaelsoftman
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-sapphire
conscious-sapphireOP2y ago
it just says this and i click back to my items file and no red on the rectangle
No description
Michaelsoftman
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-sapphire
conscious-sapphireOP2y ago
it did highlight it under red, then i clicked on it,also its saying no suitable method for override
conscious-sapphire
conscious-sapphireOP2y ago
No description
Michaelsoftman
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 parameters
conscious-sapphire
conscious-sapphireOP2y ago
i went through and it gave me new syntaxin jus like ya said
No description
conscious-sapphire
conscious-sapphireOP2y ago
No description
conscious-sapphire
conscious-sapphireOP2y 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
Michaelsoftman
You had them working in the screens above
conscious-sapphire
conscious-sapphireOP2y ago
i was overthinkin it, it is just a comma not an equation

Did you find this page helpful?