Terraria weight gain mod (in development)

It does sound like nonsense unfortunately ;w; I’ve only ever used LUA so this is very new to me

So let me try to understand on a basic level, if I do a “using directive” for one of the folders within the mod, then I would be able to access the local variables without writing out the whole file directory every time?

Kindaaaa… but not precisely x3 I’ve also used lua too! Cool language, good for modding
But they’re pretty different languages
Lua is interpreted while C# is kind of like java but a little funkier
in lua you can use tables for pretty much anything but in C# you have to use different types for things, variables can only be contained inside methods/functions and types

Maybe this tutorial could help?

I think this is getting a bit off-topic :3 if you wish to continue this conversation maybe we should go to private messages or smth

1 Like

Yeye private messages would be great! Back on topic, I’ve convinced multiple friends to try out this mod with me, so that will be some multiplayer testing!

2 Likes

personally i think the mod should be balanced around slowly gaining throughout a regular playthrough, and the weight being extremely difficult to shed. (pretty much the opposite of starpounds, where you can gain/lose weight very rapidly)
you should have to deal with worsening mobility as the game goes on, being forced to use greater and greater mobility options to offset it.

4 Likes

Multiplayer is probably completely broken x3 Networking is hard :'3

1 Like

you should have to deal with worsening mobility as the game goes on, being forced to use greater and greater mobility options to offset it.

That would require the weight to be a flat reduction rather than a percentage based reduction, which I’m not sure if the game supports

1 Like

Slowly improving the sprites :3


There’s still a bunch of stuff I need to address and features I want to add to the mod, but I think everything’s going smoothly so far.

2 Likes

Experimenting with some rudimentary jiggle physics
jiggle

10 Likes

Welp turns out I was wrong :3
I figured out a way to change the hitbox while peeking around at some vanilla code, it’s surprisingly simple and seemingly robust
I will add changing the hitbox to my todo list

Edit: Nevermind I couldn’t resist implementing so I just did it

2 Likes

Okay, what if I did it? At least for a zoologist skin.
Like what parts would I need to split the sprite into? Which parts need animation?
I’ve never worked with terraria player models and I’m not sure how you can put things together with this mod.

1 Like

Well since this is a mod and not just a texture pack, it means we can use code, which in turn means, that we can draw whatever we’d like to the screen, with basically no liminations
So you can split it however you want to :3

The way I’ve set it up on this mod is I primarily have two textures with multiple frames: One for the legs, and another one for the belly
There’s also some textures I’ve been working on for replacing the player’s arms

Then those textures are placed on top of the existing player, that way, I can animate the belly and legs via code without having to do extra work

In total there are 8 weight stages (counting the regular non-fat one)

1 Like

very curious.
i will be observing

1 Like

while messing around, i ate a golden delight while submerged in honey… which caused the character to immediately hit the max weight? lmao

1 Like

bruh what x3 are you in the latest version? I think that used to be an issue in an older one
if you are do tell so that it can be fixed ':3

i just used the one directly from the github :3c

oh no
well I’ll check that in a sec :3

Edit: I am able to recreate it, seems to happen when you eat anything while submerged in honey, will debug

Edit2: Okay good catch! It was an oversight related to how buff durations are managed, the issue should be fixed now :3

this has a lot of potential, id say
i think jump height should be affected by weight (and not just being immobile) & maybe have damage reduction replaced with increased max life?

1 Like

The player’s weight currently affects three stats:

  • Movement speed (up to 70% decrease and then 100% when immobile)
  • Damage reduction (up to 10% increase)
  • Melee damage boost (up to 10% increase when on fat stage 3 or greater)
What to do with fat damage reduction?
  • Keep damage reduction
  • Increase max health instead
  • Have both but tweak the maximum values
0 voters
1 Like

Instead of having just plain stat increases from gaining, it would be super cool if there were weight and fat based abilities with damage scaling with weight. I understand if its too complicated to add, though, and pls keep up the great work whichever way you see fit!

1 Like

perhaps there could be unique accessories that scale with weight?

2 Likes