tModLoader Tutorial: [1] Getting started with tModLoader

Terraria_ Now with more things to kill you! 7_7_2017 5_30_32 PM.png c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(3,16) : error CS1010: Newline in constant

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(3,16) : error CS1012: Too many characters in character literal

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(5,13) : error CS1010: Newline in constant

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(5,13) : error CS1012: Too many characters in character literal

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(7,15) : error CS1010: Newline in constant

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(7,15) : error CS1012: Too many characters in character literal

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(3,16) : error CS1514: { expected

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(5,13) : error CS1514: { expected

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(5,13) : error CS1519: Invalid token ''\u0073'' in class, struct, or interface member declaration

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(7,15) : error CS1519: Invalid token ''\u0073'' in class, struct, or interface member declaration

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(9,15) : error CS1519: Invalid token '=' in class, struct, or interface member declaration

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(9,21) : error CS1520: Method must have a return type

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(14,5) : error CS1597: Semicolon after method or accessor block is not valid

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(17,1) : error CS1022: Type or namespace definition, or end-of-file expected

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\Items\Slime Sword.cs(4,16) : error CS1010: Newline in constant

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\Items\Slime Sword.cs(4,16) : error CS1012: Too many characters in character literal

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\Items\Slime Sword.cs(4,16) : error CS1514: { expected

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\Items\Slime Sword.cs(6,21) : error CS1514: { expected

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\Items\Slime Sword.cs(6,27) : error CS1519: Invalid token ':' in class, struct, or interface member declaration

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\Items\Slime Sword.cs(7,2) : error CS1519: Invalid token '{' in class, struct, or interface member declaration


How do I fix this???
 
Last edited:
View attachment 175598 c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(3,16) : error CS1010: Newline in constant

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(3,16) : error CS1012: Too many characters in character literal

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(5,13) : error CS1010: Newline in constant

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(5,13) : error CS1012: Too many characters in character literal

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(7,15) : error CS1010: Newline in constant

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(7,15) : error CS1012: Too many characters in character literal

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(3,16) : error CS1514: { expected

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(5,13) : error CS1514: { expected

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(5,13) : error CS1519: Invalid token ''\u0073'' in class, struct, or interface member declaration

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(7,15) : error CS1519: Invalid token ''\u0073'' in class, struct, or interface member declaration

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(9,15) : error CS1519: Invalid token '=' in class, struct, or interface member declaration

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(9,21) : error CS1520: Method must have a return type

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(14,5) : error CS1597: Semicolon after method or accessor block is not valid

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\KraZe's Mod.cs(17,1) : error CS1022: Type or namespace definition, or end-of-file expected

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\Items\Slime Sword.cs(4,16) : error CS1010: Newline in constant

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\Items\Slime Sword.cs(4,16) : error CS1012: Too many characters in character literal

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\Items\Slime Sword.cs(4,16) : error CS1514: { expected

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\Items\Slime Sword.cs(6,21) : error CS1514: { expected

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\Items\Slime Sword.cs(6,27) : error CS1519: Invalid token ':' in class, struct, or interface member declaration

c:\Users\CHRISTIAN\Documents\My Games\Terraria\ModLoader\Mod Sources\KraZe's Mod\Items\Slime Sword.cs(7,2) : error CS1519: Invalid token '{' in class, struct, or interface member declaration


How do I fix this???
Given your folder name, I'm guessing you tried to put an apostrophe in your Mod classname. Keep the folder and classname limited to the alphabet.
 
Overhauled the thread, it is now a more general introduction to tML.
I will also be overhauling all of the previous tutorials when I got time, then making new ones.
 
When I try to type in anything into the recipes part it doesn't give me any Terraria block options, any help?
 
When I try to type in anything into the recipes part it doesn't give me any Terraria block options, any help?
So I fixed that problem, but now I'm getting this (This is the log I got for the error message):
c:\Users\XXX\Documents\My Games\Terraria\ModLoader\Mod Sources\TestMod\Items\LunarFury.cs(8,24) : error CS0115: 'TestMod.Items.LunarFury.SetStaticDefaults()': no suitable method found to override
 
Is there any modders that I can talk with? I want to mod but I have having some issues and I have some questions that I can't seem to get answered, and just posting them here as a reply would be too much of a hassle as I have a few questions. Is there a Terraria Modder I can directly contact?
 
Is there any modders that I can talk with? I want to mod but I have having some issues and I have some questions that I can't seem to get answered, and just posting them here as a reply would be too much of a hassle as I have a few questions. Is there a Terraria Modder I can directly contact?
I think I'll be able to answer most of your questions. Just send me a PM and I'll answer to the best of my abilities.

There is also a tModLoader Discord, but in my personal experience it's not very 'beginner friendly'. It's your choice, of course, but I can at least promise I will be (beginner) friendly. ;)
 
So i need help coding. All Code i put in doesn't work, and i've been trying many different ways. Is there somebody who would be willing to code for me ( They would get credit in the making of the mod). I have some sprites finished as well.
 
So i need help coding. All Code i put in doesn't work, and i've been trying many different ways. Is there somebody who would be willing to code for me ( They would get credit in the making of the mod). I have some sprites finished as well.
I can't code for you,but DM me whatever you need help with
 
c:\Users\peter\Documents\My Games\Terraria\ModLoader\Mod Sources\Chaos-\Chaos_\Chaos_.cs(3,16) : error CS1514: { expected

c:\Users\peter\Documents\My Games\Terraria\ModLoader\Mod Sources\Chaos-\Chaos_\Chaos_.cs(5,13) : error CS1514: { expected

c:\Users\peter\Documents\My Games\Terraria\ModLoader\Mod Sources\Chaos-\Chaos_\Chaos_.cs(5,13) : error CS1519: Invalid token '?' in class, struct, or interface member declaration

c:\Users\peter\Documents\My Games\Terraria\ModLoader\Mod Sources\Chaos-\Chaos_\Chaos_.cs(6,2) : error CS1519: Invalid token '{' in class, struct, or interface member declaration

c:\Users\peter\Documents\My Games\Terraria\ModLoader\Mod Sources\Chaos-\Chaos_\Chaos_.cs(7,16) : error CS1519: Invalid token '(' in class, struct, or interface member declaration

c:\Users\peter\Documents\My Games\Terraria\ModLoader\Mod Sources\Chaos-\Chaos_\Chaos_.cs(9,15) : error CS1519: Invalid token '=' in class, struct, or interface member declaration

c:\Users\peter\Documents\My Games\Terraria\ModLoader\Mod Sources\Chaos-\Chaos_\Chaos_.cs(9,21) : error CS1520: Method must have a return type

c:\Users\peter\Documents\My Games\Terraria\ModLoader\Mod Sources\Chaos-\Chaos_\Chaos_.cs(14,5) : error CS1597: Semicolon after method or accessor block is not valid

c:\Users\peter\Documents\My Games\Terraria\ModLoader\Mod Sources\Chaos-\Chaos_\Chaos_.cs(17,1) : error CS1022: Type or namespace definition, or end-of-file expected

c:\Users\peter\Documents\My Games\Terraria\ModLoader\Mod Sources\Chaos-\Chaos_\Items\ChaosSword.cs(4,16) : error CS1514: { expected

What do I do?
you post the relevant code when asking for help. We aren't mind readers.
 
Back
Top Bottom