tModLoader Stamina

Gotcha, I'll have to let mod authors know. In the mean time, I would still love to see a configuration option for just Terraria Overhaul's Dodge Roll mechanic. hint hint wink wink nudge nudge

On a separate topic, it appears as though Stamina is causing issues in Multiplayer. It causes player animations to disappear entirely (As in, it's just your character standing there without swinging items or jumping), and when a player moves they appear extremely jittery. The movement isn't fluid, and it appears as though the player character teleports to spots. I assume it's some kind of synchronization error. I haven't seen it reported anywhere else, so I thought I would let you know!

Edited in: Quick question for you too. In regards to the CustomItemUseRate: variable. If I wanted, say, a really powerful Thorium item to use 5 stamina per swing, would the entry look like:
"<Strong Thorium Item>[Thorium Mod]": 5.0?
Or would it just be
"<Strong Thorium Item>": 5.0?
Does the modded item's mod name need to be appended to the end of the item, or is it strictly what the item is called in-game?
 
Last edited:
Gotcha, I'll have to let mod authors know. In the mean time, I would still love to see a configuration option for just Terraria Overhaul's Dodge Roll mechanic. hint hint wink wink nudge nudge

On a separate topic, it appears as though Stamina is causing issues in Multiplayer. It causes player animations to disappear entirely (As in, it's just your character standing there without swinging items or jumping), and when a player moves they appear extremely jittery. The movement isn't fluid, and it appears as though the player character teleports to spots. I assume it's some kind of synchronization error. I haven't seen it reported anywhere else, so I thought I would let you know!

Edited in: Quick question for you too. In regards to the CustomItemUseRate: variable. If I wanted, say, a really powerful Thorium item to use 5 stamina per swing, would the entry look like:
"<Strong Thorium Item>[Thorium Mod]": 5.0?
Or would it just be
"<Strong Thorium Item>": 5.0?
Does the modded item's mod name need to be appended to the end of the item, or is it strictly what the item is called in-game?
You'll have to test it, but I think just the item name (item.Name)

v2.0.1.4
  • (Hopefully) fixed a crash/rendering issue


Edit:

v2.0.2
  • Changed Joint Bracer recipe
  • Recolored Athlete Potion
  • Fixed (hopefully) player stamina bar overlay
  • Slightly buffed Energy Potion

Edit:

v2.0.3
  • Minor internal refactoring
  • Added API Mod.Call() bindings
  • Fixed config field CustomItemUseRate default values
  • Nerfed stamina accessory drain reduction (70% -> 80%)

Edit:

v2.0.4.9
  • Fixed possible crash on load
  • Removed stamina drains from re-jumping (non-responsive mid-air jumps)
Edit:

v2.0.4.11
  • Updated to new Hamstar's Helpers code layout
  • Restructured some code
  • Added a minor error spam counter measure in the drawing code
 

Attachments

  • Stamina v2.0.1.4.zip
    92.1 KB · Views: 217
  • Stamina v2.0.2.zip
    93 KB · Views: 212
  • Stamina v2.0.3.zip
    97.1 KB · Views: 192
  • Stamina v2.0.4.9.zip
    97.2 KB · Views: 318
  • Stamina v2.0.4.11.zip
    96.9 KB · Views: 201
Last edited:
v2.0.5
  • Updated to Mod Helpers v2.0.2
  • Assorted config updates
  • Fixed occasional draw error
  • Restructured player code
  • Added MP player load bug failsafe
 

Attachments

  • Stamina v2.0.5.zip
    60.5 KB · Views: 229
I'm confused. The angry band that turns fatigue into damage is able to kill the player wearing it, right? If so it needs a unique Death Message.
Some ideas:

"<PlayerName> fainted."
"<PlayerName> was too exhausted to get up."
"<PlayerName> died of fatigue."


*ignore this message if it's actually damage into fatigue!*
 
I'm confused. The angry band that turns fatigue into damage is able to kill the player wearing it, right? If so it needs a unique Death Message.
Some ideas:

"<PlayerName> fainted."
"<PlayerName> was too exhausted to get up."
"<PlayerName> died of fatigue."


*ignore this message if it's actually damage into fatigue!*
It should be saying '<PlayerName> died of over exertion.'.
 
Nice mod - but dont work on Server .....
On joining server, the client get unresponsive and have an lag on movement of objects (animals/NPCs) - the player char cant get to move at all - like frozen ..
Only killing the client Task help ....
Have a couple of other mods from you - here all works good on server .......

Error from Log :
1:000:00000 - 000158.26 EXCEPTION (0) - Stamina.NetProtocols.ClientPacketHandlers.ReceiveSettingsOnClient - Could not deserialize settings.

Regards
 
Last edited:
Nice mod - but dont work on Server .....
On joining server, the client get unresponsive and have an lag on movement of objects (animals/NPCs) - the player char cant get to move at all - like frozen ..
Only killing the client Task help ....
Have a couple of other mods from you - here all works good on server .......

Error from Log :
1:000:00000 - 000158.26 EXCEPTION (0) - Stamina.NetProtocols.ClientPacketHandlers.ReceiveSettingsOnClient - Could not deserialize settings.

Regards
I think I found the cause of this. New version will be posted soon.

Edit:

v2.0.5.2
  • Fixed an issue causing MP hang
 

Attachments

  • Stamina v2.0.5.2.zip
    60.6 KB · Views: 194
Last edited:
v2.1.0.2
  • Fixed stamina meter MP draw fail (again)
v2.1.0.1
  • Fixed stamina meter MP fail
v2.1.0
  • Updated to TML11.4 and MH5b
  • Changed CustomItemUseRate to use ItemDefinition
  • Set interface config settings to specific types
v2.0.7.1
  • Fixed incorrect adding with AddMaxStamina(...)
v2.0.7
  • Restructured StaminaLogic code files to better separate exercise and stat-only stuff
  • Added StaminaLogic.AddMaxStamina(Player, int)
  • Added StaminaAPI.AddMaxStamina(Player, int)
  • Added AddMaxStamina clamping against negative/low values
  • Fixed trying to display on-player stamina bar displaying while dead
  • Minor internal changes
v2.0.6
  • Updated to MH v4.2.3 (including conventions)
  • Changed snake case to camel case
 

Attachments

  • Stamina v2.0.6.zip
    59.1 KB · Views: 240
  • Stamina v2.0.7.zip
    59.2 KB · Views: 159
  • Stamina v2.0.7.1.zip
    59.2 KB · Views: 195
  • Stamina v2.1.0.zip
    116.7 KB · Views: 160
  • Stamina v2.1.0.1.zip
    116.3 KB · Views: 142
  • Stamina v2.1.0.2.zip
    117.2 KB · Views: 149
Last edited:
would not be the first time diff languages settings cause trouble :guidesmile:

edit-> oh, and the mod self looks like working (get exhausted) - only no status bar ...
 
have re-startet the server already (have it not 24/7 running) - or you mean new world or char ?
 
Back
Top Bottom