Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wearing leg clothing lowers temperature #42563

Closed
esavier opened this issue Jul 30, 2020 · 14 comments
Closed

Wearing leg clothing lowers temperature #42563

esavier opened this issue Jul 30, 2020 · 14 comments
Labels
Mechanics: Character / Player Character / Player mechanics Mechanics: Temperature Freezing, cooling, thawing, heating, etc. mechanics (S1 - Need confirmation) Report waiting on confirmation of reproducibility stale Closed for lack of activity, but still valid.

Comments

@esavier
Copy link

esavier commented Jul 30, 2020

Description

Wearing more pieces of clothing lowers bodypart temperature

Steps To Reproduce

  1. optionally i was in lmao shelter
  2. start the game, legs are cold, found fur trousers
  3. wear trousers
  4. legs temp drop from -60 to -90

Expected behavior

duh...
i guess the opposite to the effect mentioned above

Versioning :

  • OS: gentoo linux
  • Game Version: - terminal, 0.E-4611-ga5b97a8087
  • Ingame language: system (english)
  • Mods loaded: [dda, no_npc_food, crt_expansion, blazeindustries, aftershock, alt_map_key, no_Fungi, stats_through_kills, speedydex]

screenshots:

general state

obraz
obraz

before

obraz

afrer

obraz

@esavier esavier changed the title wearing leg clothing lowers temperature Wearing leg clothing lowers temperature Jul 30, 2020
@ZhilkinSerg
Copy link
Contributor

What are fur trousers? We do not have them in vanilla or in-repo mods.

@ZhilkinSerg ZhilkinSerg added (S1 - Need confirmation) Report waiting on confirmation of reproducibility Mechanics: Character / Player Character / Player mechanics Mechanics: Temperature Freezing, cooling, thawing, heating, etc. mechanics labels Jul 30, 2020
@Duck13Tales
Copy link
Contributor

Duck13Tales commented Jul 30, 2020

It seems that as soon as you load a game you get temperatures way lower than what should. Sometimes I save with a part at 25 warmth and load with the same part at -60. It makes some food "cold" or even "frozen". Maybe this isn't this issue?

@esavier
Copy link
Author

esavier commented Jul 31, 2020

What are fur trousers? We do not have them in vanilla or in-repo mods.

pardon sir, "fur pants", i also say armour and colour 😏
and i was reporting from memory since i was unable to access my workstation
i am updating request
ah, and due to some compilation issues i had to remove gcc warnings,
i will recompile on freshest commit and check it again, but the issue persist for at least a week now.

@esavier
Copy link
Author

esavier commented Jul 31, 2020

issue persist on
0.E-4643-gb31fb27112
as @Duck13Tales mentioned this actually may be related to saving game since i just loaded it, but this cost me my leg and arm before save so i am not sure

@andrei8l
Copy link
Contributor

There's currently a bug with setting weather on save game load.
This workaround solves the issue in my tests, but I'm not sure yet if it's the right solution:

index d581bef62e..836221693b 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -2935,6 +2935,8 @@ bool game::load( const save_t &name )
     validate_camps();
     validate_linked_vehicles();
     update_map( u );
+    weather.set_nextweather( calendar::turn );
+
     for( auto &e : u.inv_dump() ) {
         e->set_owner( get_player_character() );
     }

@esavier
Copy link
Author

esavier commented Aug 2, 2020

i am not sure if this will not have any long term side effets
however, good call :)
i will look into it tomorrow,

@Duck13Tales Duck13Tales mentioned this issue Aug 2, 2020
14 tasks
@Maleclypse
Copy link
Member

Have you tried using a towel to see if the clothes are wet and thus causing the infinite wetness/cold?

@esavier
Copy link
Author

esavier commented Aug 5, 2020

Have you tried using a towel to see if the clothes are wet and thus causing the infinite wetness/cold?

it deceases the amount of cold from -61 to -31, however there is no indicator what kind of clothing is actually wet? Also fur pants were spawned inside the shelter to debug the issue so i am sure those are not wet. There may be issue that some other parts of clothing can be wet and contribute to overall coldness.
I took everything covering my legs and i still have -54, after that wearing fur pants which should provide 80 warmth, makes my leg warmer but not much, from -54 to -30, however using tower in that setup actually makes my fur pants viable (to +14). i am guessing something is wrong in how the calculations are performed?

also this is very weird that only legs are affected, torso and others are mostly ok-ish

@anothersimulacrum
Copy link
Member

@Ramza13 Could I request your review on the proposed patch above? You've been in the weather code recently.

@Ramza13
Copy link
Contributor

Ramza13 commented Aug 7, 2020

So this is probably related to my weather changes. I changed the way weather is updated and I think on game load that some values aren't getting updated. I'll try to fix it.

The patch above will fix the bug but break some json functionality. No one is using that functionality right now and I am actually working on a PR that will change it all anyway so I'm not sure it matters

@stale
Copy link

stale bot commented Sep 6, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

@stale stale bot added the stale Closed for lack of activity, but still valid. label Sep 6, 2020
@anothersimulacrum anothersimulacrum removed the stale Closed for lack of activity, but still valid. label Sep 6, 2020
@stale
Copy link

stale bot commented Oct 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

@stale stale bot added the stale Closed for lack of activity, but still valid. label Oct 7, 2020
@stale
Copy link

stale bot commented Nov 7, 2020

This issue has been automatically closed due to lack of activity. This does not mean that we do not value the issue. Feel free to request that it be re-opened if you are going to actively work on it

@stale stale bot closed this as completed Nov 7, 2020
@anothersimulacrum
Copy link
Member

anothersimulacrum commented Nov 18, 2020

#45482 looks like the same issue, but has a save and can be reproduced.
EDIT: Probably separate.

@anothersimulacrum anothersimulacrum added (S3 - Duplicate) Bug that is duplicate of another one (S1 - Need confirmation) Report waiting on confirmation of reproducibility stale Closed for lack of activity, but still valid. and removed (S1 - Need confirmation) Report waiting on confirmation of reproducibility stale Closed for lack of activity, but still valid. (S3 - Duplicate) Bug that is duplicate of another one labels Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mechanics: Character / Player Character / Player mechanics Mechanics: Temperature Freezing, cooling, thawing, heating, etc. mechanics (S1 - Need confirmation) Report waiting on confirmation of reproducibility stale Closed for lack of activity, but still valid.
Projects
None yet
Development

No branches or pull requests

7 participants