Terraria weight gain mod (in development)

icon

As the title says, this is a Terraria weight gain mod currently in development. It’s not finished, but we’re slowly adding more and more features. For now you can only download the mod’s source code. (No binaries) You can compile it with tModLoader and check it out that way!

wgmod2

Contributing

If you want to suggest things, report a bug or add new features you’re welcome to do so! This mod is open source for everyone to look and edit.

Downloads and links

When downloading the lastest zip from github, be sure to rename WgMod-main to WgMod in your ModSources folder

WgMod source latest zip
Github repository
Mod wiki
Join the WgMod Community Server

44 Likes

where to install the mod?

this is really neat! hope it goes anywhere beyond just a proof of concept

1 Like

you’re gonna want to download the WgModSourceCode.7z from the OP, open tmodloader, go to the workshop hub and click this button:


from there, you want to click image to go to the sources folder, where you should drag and drop the WgMod folder from inside the WgModSourceCode.7z

it should look like this,


and in tmodloader, it would look like this,


from there, either click build + reload if you want to play with it immediately, or build, if you plan on playing with it later
it’ll look like this in the mods menu

the item that is seen in the gif in the original post is crafted at an anvil with a lever and 20 slime, but if you can’t be bothered, use a cheat mod like cheatsheet and spawn the item in (edit: you can also just eat food items to gain weight)


hope this helped!

4 Likes

im very interested.. but please add a toggle so its only looks instead of actual downsides cause of how fast your kinda required to go on later fights

2 Likes

this is legit something people have wanted for years and was also said to be impossible or not nearly as sophisticated as stardew’s fat mod for example and here it is.

1 Like

This is incredibly exciting, I hope this can be worked on further and expanded upon!! Armor sprites may be nearly impossible given all of the variables going into it, but any weight gain mechanics at all are better than nothing!

1 Like

I created a github repository for the mod if anyone with programming experience wants to collaborate :3
You can also clone it or download the main branch as a zip for ease of use

I unfortunately have absolutely zero understanding of Terraria’s programming, but I may need to learn just to get involved in this project…

I’ve been brainstorming how a WG system could work for a little bit now!

I’m looking around in the source code, is there where the weight values of the different buffs are determined? 1 lb, 3 lbs, and 6 lbs for each well fed buff?

Now that I look at it that really should be in WgMod.cs (since that’s where the logic is) not WgPlayer.cs but yeah, that’s the buff lookup table. When a buff is applied to the player (see WgMod.cs) it uses that table to know how much weight to add to the player’s weight.

Weight values in the mod are managed by a structure (see Weight.cs) and are in kg. There are also methods for working with pounds.

Got it! I’m probably gonna customize my version to include every single potion buff, as well as some debuffs like slimed and potion sickness >:3

1 Like

A basic toggle for disabling buffs and debuffs has been added :3

1 Like

I do have some questions

  1. How does death effect weight?
  2. Is there a way to lose weight?
  3. Are there any upsides to gaining weight, or is it only negative?
  1. Currently, I think weight persists after death. I have not tested it though.
  2. You can lose weight by moving, there’s a penalty for horizontal movement.
  3. With stage 3 onwards you get a 5 defense buff, immobile gets you 10 (note that I am most likely going to change this so that it is more granular)

Got it got it. So far I’ve been playing fairly normally on the Constant seed (needing to eat regularly) and I haven’t actually moved up a stage visually. I tested via spawning a ton of food and the mod is working, it just appears that I’m losing faster than I’m gaining. Not particularly an issue, just an observation.

If I could make a suggestion though, a DR buff rather than a defense buff. That defense buff will drop off hard!

1 Like

Noted!
Please do keep in mind that posted the mod in a very early state, I hadn’t touched it for months
It’s only now that I’m starting to make changes so be patient! :3
But yeah gaining is currently reaaaally slow since i only ever tested it well, on journey mode and with a mod for spawning infinite items

Increasing your hitbox size as well as decreasing your movement is a really big downside that would take a lot to make it worth it. Definitely add DR, but I would also suggest upping regen, max hp, and max mana, it obviously warrants a tank build.
(I feel like vert. movement should be affected as well, but idk if that’s possible to implement.)
Also, getting hit by slimes should increase your weight.
Here are some sprites I did.

9 Likes

Nice sprites! I just finished moving some things around, the buff icon now acts as a little indicator for the various weight stages. (Shows how far along you are at any given stage)

(For now damage reduction is 10% max)

Vertical movement can be affected but I opted to not modify it (unless you’re immobile) because it seemed like waaay too much of a debuff

Do note that there are currently no plans for NPC fattening as I first wanna get the player perfect :3

2 Likes

I understand! I’m absolutely ready to wait for updates, especially with how much promise this mod is showing already! In fact I’d love to contribute, I’ve already customized my copy to include numerous buffs aside from well fed in the list of fattening buffs! I would be willing to share my list if people were interested, I did it mostly vibes based so it’s not set in stone :3

1 Like