Page 1 of 2

[Mod] Temperature Survive 2.01 [tempsurvive]

Posted: Tue Nov 20, 2018 22:55
by AiTechEye
Makes you feel temperatures

Source
Download
Depends: none
Licenses: code: LGPL-2.1, media: CC BY-SA-4.0

Temperature from biometrics and things effects you and your body temperature.

Your temp will rise/lower depends where you are and are near to or touch
also things like snow, torch and light affects

Heat biometrics raises the temp much, even as much as it hurts and same for coldness (based on wolrd/perlin).

Just keep the bar near to green and you are safe.

The bar are placed under the health/breath to not mess with other hud mods.

It can be a good idea to be in water when its hot, but in winter this contributes with a quick death instead.

Grant someone the no_temperature privilege to spare him from all this mess (relogin to take effect)
or check with the thermometerImage(tempsurvive:thermometer) that are simeply crafted with


[bronze ingot]
[wood]
[glass]
+ Spoiler
Image
Image
Image

Image

Re: [Mod] Temperature Survive 0.5 [tempsurvive]

Posted: Tue Nov 20, 2018 23:26
by Gael de Sailly
Interesting, will check it out :)

I looked quickly into the code, and I suggest that it would be better to detect the temperature noise parameters instead of hardcoding with the default value, so that it will match even if someone is using custom parameters.

They are stored in the setting mg_biome_np_heat for all mapgens except v6 and mgv6_np_biome for v6.

Re: [Mod] Temperature Survive 0.5 [tempsurvive]

Posted: Wed Nov 21, 2018 02:13
by Lone_Wolf
Cool! And hot if you're in the right biome... +10

Re: [Mod] Temperature Survive 0.5 [tempsurvive]

Posted: Wed Nov 21, 2018 07:04
by AiTechEye
how do i using them?

Re: [Mod] Temperature Survive [tempsurvive]

Posted: Wed Nov 21, 2018 14:01
by voxelproof
AiTechEye wrote:Makes you feel temperatures
At last! Great. Combined with hunger mod, maybe also 'Beware the darkness' and 'Realistic survival' it'll make a truly engaging game. Thanks for your work.

Re: [Mod] Temperature Survive [tempsurvive]

Posted: Wed Nov 21, 2018 22:26
by puzzlecube
ooh cool! I cant wait to see the most frustratingly difficult survival game imaginable come out of it. Great mod! I have found one problem with it though. If you die your temperature doesn't reset so if you freeze to death that is the end of the road for your player and you are left dying and dying over and over, +1

Re: [Mod] Temperature Survive [tempsurvive]

Posted: Thu Nov 22, 2018 14:12
by voxelproof
puzzlecube wrote:ooh cool! I cant wait to see the most frustratingly difficult survival game imaginable come out of it. Great mod! I have found one problem with it though. If you die your temperature doesn't reset so if you freeze to death that is the end of the road for your player and you are left dying and dying over and over, +1
Is that so?! Great again. The first mod with real permadeath although unwittingly made so. Now it's going to be real hardcore gaming, the first of this kind in Minetest.

Re: [Mod] Temperature Survive [tempsurvive]

Posted: Thu Nov 22, 2018 20:21
by texmex
Finally! Good one. (But dang, you beat me to it :D )

Re: [Mod] Temperature Survive [tempsurvive]

Posted: Thu Nov 22, 2018 21:47
by AiTechEye
added / forgot to add the player/reset function

here is another new survival mod (or what else you call it, the modname is uptaken), that adds parkour ability / moves (like real parkour), im making a picture so you know how to use it.

you basiicly just hold place/right mouse button, and run into things, to wallrun, jump wallclimb etc...

viewtopic.php?f=9&t=21458&p=336141#p336141

Re: [Mod] Temperature Survive [tempsurvive]

Posted: Fri Nov 23, 2018 20:55
by Lord_Vlad
Can you make it so that holding some items will also keep you a bit from the cold/heat, it would be helpful. Like how I freeze to death too quick even with a torch in hand.

Re: [Mod] Temperature Survive [tempsurvive]

Posted: Fri Nov 23, 2018 21:57
by AiTechEye
good idea / added, it adds double value, eg snow (group:snowy) adds -1, in hand this will be -2
and group:igniter (lava,fire etc) +30 instead of +15...

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

Posted: Sat Nov 24, 2018 00:27
by DELTA_FORCE
Maybe make it so eating certain very rare foods would permanently increase your resistance to the cold or heat.

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

Posted: Sat Nov 24, 2018 11:20
by AiTechEye
i prefer clothes, so you can keep your skin & add clothes.

this function doent exist yet, but do someone want to contribute with textures and or values?
it can be in a separate mod, so you can keep your rights to them.

EDIT: the function tempsurvive.register_cloth will work difference


Image

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

Posted: Sat Nov 24, 2018 15:34
by DELTA_FORCE
I might be able to help with textures at a later time. I'm currently working on my/davidthecreator's mod.

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

Posted: Sun Nov 25, 2018 10:48
by Kroukuk
That's a really cool mod :D
How about adding support for the 3D armor mod as clothes?
Then you can have warmth and protection at the same time.

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

Posted: Mon Nov 26, 2018 05:24
by Diamond knight
maybe a possible way to dampen your clothes on purpose to survive in hot deserts if this is added?

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

Posted: Mon Nov 26, 2018 10:12
by Lord_Vlad
After more testing... it acts weird with me : I get a death message but I don't die. I just kind of jump on place repetittivly, with a death message each time.
Also would be nice to integrate with some campfire mods. Or get it's own campfire or some kind of heater. I haven't played in hot places yet, but a refresher that uses ice as fuel would be nice too.

EDIT : Actually 2 more things : my temperature bar just jumps from cold to hot, it doesn't progress smoothly at all... Anything to be done about this ?
Also, instant death is maybe a bit over the top... Why not just lots of damage ? also maybe it would fix my death messages problem.

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

Posted: Mon Nov 26, 2018 12:22
by DancingWombat
AiTechEye wrote:i prefer clothes, so you can keep your skin & add clothes.

this function doent exist yet, but do someone want to contribute with textures and or values?
it can be in a separate mod, so you can keep your rights to them.
This is an awesome idea, stu has a clothing mod that's WIP viewtopic.php?f=9&t=11362
it works with 3D armor too if you have multiskin. This mod could maybe be an incentive to use different types of armor too for different climates.

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

Posted: Mon Nov 26, 2018 12:44
by AiTechEye
the message seems to be a bug caused by something else becaouse the only message this mod gives is when you are using the thermometer.

do you have the newer version? cuz i forgot to add the player respawn function in the first one.
but keep an eye on when/how the bugs occurring, advanced bugs can be really hard to find :)

the mod needs a campfire, that you can keep alive, and another more advanced thing.
if you want list some block names camfire/fire/ice etc from other mods so we can list them,
It often happens that you spending time in the hope of profitability, but instead ends in distresses.

as default, players get hurted from -10 or 40, then it adds more damage the higher/lower the player temp is

as the pic i made, and in real life clothes can protect you from some heat, like this summer my thin neon-yellow t shirt rejected some light, it was way too hot to wear a common t shirt.

i dont think we should mix this mod with armor yet cuz it creates andvanced mess

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

Posted: Tue Nov 27, 2018 22:11
by AiTechEye
finnaly after hours of work is the clothes system added, but no clothes yet.

there are 4 previwe models, so you only need to enter the texure and name.

so now it's possible to add full skins or just parts, like shirts, shoes, gloves, hats, necklace ... the rest of the texture can be empty.

the layer is image layer / image priority, can be 0 9, 100, 998995 or somethig else, if you want to make sure your jacket always are over the other, 10 should be enough

just use/click the bag to change clothes

3d armor is hiding the clothes, but its still working without any conflicts

Code: Select all

tempsurvive.register_clothe(name,{
	texture="",	-- required
	description="",	-- optional
	part="",		-- optional (arm/leg, chested/head, head body) [item / preview only]
	layer=1,		-- optional (texture layer)
	warming=1,	-- optional
	cooling=1,	-- optional
	craft={}		-- optional but recommended
})
Image

Image

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

Posted: Tue Nov 27, 2018 23:05
by DancingWombat
Awesome, I'm loving this mod. I've tested in game works great, except you don't die if you are wearing armor with a heal factor.
I added cool/hot groups to the items from the home decor climate control so they'd actually have function and Nathan.s' more fire mod already had them. So now I have a working campfire, radiator, space heater, air conditioner, desk fan and ceiling fan. Also the fire plant from ethereal works as a heating unit.

here they are keeping me warm in my 'igloo' and cool in the desert.
Image

Re: [Mod] Temperature Survive 1.5 [tempsurvive]

Posted: Thu Nov 29, 2018 01:59
by Lord_Vlad
viewtopic.php?f=9&t=16611&hilit=campfire
This campfire is pretty good too, and also a standalone.

Now damage works properly.

I have got a ton of mods on my games so indeed the possibility for conflicts are aboundent. [death_message] is what causes the death message at each 'hit' by the mod. Also I sometimes don't really die when I die I just have the respawn button and I just click it and I can continue playing (and my heat is reset) Although, I haven't had that since I deactivated [damage_noise]

Another problem is that for some reason, whenever I get damage from your mod I make some kind of half jump... still can't find where the conflict is.

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

Posted: Sun Dec 02, 2018 07:02
by Diamond knight
DancingWombat wrote:Awesome, I'm loving this mod. I've tested in game works great, except you don't die if you are wearing armor with a heal factor.
I added cool/hot groups to the items from the home decor climate control so they'd actually have function and Nathan.s' more fire mod already had them. So now I have a working campfire, radiator, space heater, air conditioner, desk fan and ceiling fan. Also the fire plant from ethereal works as a heating unit.

here they are keeping me warm in my 'igloo' and cool in the desert.
Image
Maybe submit a pull request to add this as a node override to this mod that activates if the homedecor mod is detected? As that is amazing for immersion and ambience, actually cooling yourself with a fan on a sweltering ingame day.

Re: [Mod] Temperature Survive 2 [tempsurvive]

Posted: Sun Dec 02, 2018 19:14
by Lord_Vlad
Nailed it ! I found out why the damages in your mod act weirdly :

Code: Select all

			if ptemp.temp<cr then
				player:punch(player,1+math.floor((ptemp.temp-ptemp.coldness_resistance)*-0.1),{full_punch_interval=1,damage_groups={fleshy=1}})
			elseif ptemp.temp>hr then
				player:punch(player,1+math.floor((ptemp.temp-ptemp.heat_resistance)*0.5),{full_punch_interval=1,damage_groups={fleshy=1}})
			end
The heat or cold litterally punches players ? Weird. So my half a jump is actually knockback from playerplus and when it doesn't hurt its because I wear a good enough armor. Why not use this kind of damage (from [hbhunger] cause I needed an example)

Code: Select all

				-- or damage player by 1 hp if satiation is < 2 (of 30)
				elseif h <= 1 then
					if hp-1 >= 0 then player:set_hp(hp-1) end
				end
			end
See ? set_hp... works better I think.

I tried to do it myself but I can't get it not to crash when I take damage so I'm going to drop the mod until you change this.

Re: [Mod] Temperature Survive 2 [tempsurvive]

Posted: Sun Dec 02, 2018 19:33
by AiTechEye
the reason to i added punch instead of set_hp is that armor mods maybe causing mess, but ok


supported items or groups, that are changing your temp in hand can be found in the init.lua

nodes that are affecting you by the groups:
tempsurvive_add (add/lower temp)
tempsurvive_rad (radian, temperatures are pathfinding to you with this])

you can also change the node temp by using the group tempsurvive_temp_by_meta=1 and minetest.get_meta(pos):set_int("temp",-50)

try

Image