Standalone [1.3] tModLoader - A Modding API

Sunny ☼

Plantera
Is there a place to appeal discord bans? Cause i was banned like two years or so ago and ive never been provided a reason.
 

nachei

Terrarian
help, I don't know what I did,
[1/FATAL] [Terraria]: Main engine crash
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: m. Path '', line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at Terraria.IO.FavoritesFile.Load()
at Terraria.Main.Initialize()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at Terraria.Program.LaunchGame_()
 

Hohol

Terrarian
I play the 1.4 version of terraria I still didn't understand how to make our own mod. I jus want to edit some stats of weapons, buffs, maybe more accessory slots that's all.
 

Lord_BashALot

Terrarian
Hello folks,

Is there any way to resize the UI?
01.png


I am running the game at 4k resolution.
 

Attachments

  • 02.png
    02.png
    334.6 KB · Views: 36

Jely

Terrarian
1639610846251.png

Alright, so:

I'm trying to get into modding, and without even modifying the newly-created mod file, this error message pops up when I try to reload+build. None of the tutorials I've watched have accounted for this issue, and I've looked online with many keywords to try and find a solve, but still can't find anything.

I've checked tModLoader's files and my mod's files for something named "Object", tried renaming the "obj" file in my mod file to "Object", and none of it has worked. I'm stumped.

Very sorry if this is a frequently asked question, I'm just confused as to what to do to solve this.
 

Elemental Δ

The Destroyer
View attachment 351234
Alright, so:

I'm trying to get into modding, and without even modifying the newly-created mod file, this error message pops up when I try to reload+build. None of the tutorials I've watched have accounted for this issue, and I've looked online with many keywords to try and find a solve, but still can't find anything.

I've checked tModLoader's files and my mod's files for something named "Object", tried renaming the "obj" file in my mod file to "Object", and none of it has worked. I'm stumped.

Very sorry if this is a frequently asked question, I'm just confused as to what to do to solve this.
I don't know... really anything about C#, but judging by the error message, it looks like you need to reference a file. I have no idea how to do that, though, so my advice would be ask the Discord for help. Just tell them what you posted here in the modding-help channel, and you might be able to get someone who knows what they're doing pretty quickly.
 

Esther

Stardust Pillar
View attachment 351234
Alright, so:

I'm trying to get into modding, and without even modifying the newly-created mod file, this error message pops up when I try to reload+build. None of the tutorials I've watched have accounted for this issue, and I've looked online with many keywords to try and find a solve, but still can't find anything.

I've checked tModLoader's files and my mod's files for something named "Object", tried renaming the "obj" file in my mod file to "Object", and none of it has worked. I'm stumped.

Very sorry if this is a frequently asked question, I'm just confused as to what to do to solve this.
Are you using Visual Studio 2022? If so, try uninstalling that, deleting its installer, and getting the 2019 version here. I had the same problem when I started a few days ago and doing this fixed it.
 

>>Terrarian<<

Torch God
So, how much time left until we get tModLoader updated to 1.4?? The Journey's End update came almost 2 years ago and we still have nothing from tModLoader. And, no, tModLoader in alpha version is not valid here because it is laggy. I'm getting tired of waiting.-_-:rolleyes:
 

Zallaraxium

Official Terrarian
So, how much time left until we get tModLoader updated to 1.4?? The Journey's End update came almost 2 years ago and we still have nothing from tModLoader. And, no, tModLoader in alpha version is not valid here because it is laggy. I'm getting tired of waiting.-_-:rolleyes:
I can kinda understand, dude, I really want TModLoader to bw updated to 1.4 and its updates, cause as much as I love vanilla, I like using mods to add stuff or improve quality of life, like the Better Taxes mod, Nooby's OverPowered Mod cause it has a really powerful terrain destroying rocket launcher, or even Spirit, Tremor, and Calamity, but I'm hoping it wont be too much longer now.
 

Chaoticley

Terrarian
Hello everybody,
I've just got into modding Terraria, and I'm coming across something I have no idea how to do. It's a bit ambitious, but any help would be appreciated. I'm trying to create a custom resource, similar to mana. Also, by "consuming" this custom resource, your character will gain buffs with animated visual effects, such as lightning around your feet for a speed boost, an increase in character size for a health boost, a glowing red outline for a damage boost, etc. Does anybody know how I would go about doing this? I am a bit new to coding, so I may be in over my head here, but any help would be greatly appreciated!
 
Last edited:

W1K

Witch
Hello everybody,
I've just got into modding Terraria, and I'm coming across something I have no idea how to do. It's a bit ambitious, but any help would be appreciated. I'm trying to create a custom resource, similar to mana. Also, by "consuming" this custom resource, your character will gain buffs with animated visual effects, such as lightning around your feet for a speed boost, an increase in character size for a health boost, a glowing red outline for a damage boost, etc. Does anybody know how I would go about doing this? I am a bit new to coding, so I may be in over my head here, but any help would be greatly appreciated!
It is most definitely not the easiest thing for someone completely new to coding. The most basic tmodloader functions revolve around making basic items or npcs. What you are trying to make involves running a global player script that holds a variable for your resource which is then referenced in every script that uses said resource. Depending on how you want these buffs to activate you might need to catch player inputs in update methods and whatnot. It isn't the most complicated thing in the world but it requires a bit of knowledge of how object oriented programing works and it depends on how versed you are on the fundamentals of coding.
 
Top Bottom