[Mod] Temperature Survive 2.01 [tempsurvive]

User avatar
AiTechEye
Member
Posts: 917
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: ¯\_(ツ)_/¯

[Mod] Temperature Survive 2.01 [tempsurvive]

by AiTechEye » Post

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
Attachments
screenshot_20181128_141952.png
(176.45 KiB) Not downloaded yet
screenshot_20181121_142054.png
(313.3 KiB) Not downloaded yet
screenshot_20181120_213446.png
(366.87 KiB) Not downloaded yet
Last edited by AiTechEye on Sun Jan 17, 2021 07:59, edited 13 times in total.

User avatar
Gael de Sailly
Member
Posts: 794
Joined: Sun Jan 26, 2014 17:01
GitHub: Gael-de-Sailly
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly Ginkgoo
Location: France

Re: [Mod] Temperature Survive 0.5 [tempsurvive]

by Gael de Sailly » Post

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.
Just realize how bored we would be if the world was perfect.

User avatar
Lone_Wolf
Member
Posts: 2439
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

Re: [Mod] Temperature Survive 0.5 [tempsurvive]

by Lone_Wolf » Post

Cool! And hot if you're in the right biome... +10
My ContentDB -|- Working on Voxel Knights -|- Minetest Forums Dark Theme!! (You need it)

User avatar
AiTechEye
Member
Posts: 917
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: ¯\_(ツ)_/¯

Re: [Mod] Temperature Survive 0.5 [tempsurvive]

by AiTechEye » Post

how do i using them?

User avatar
voxelproof
Member
Posts: 1076
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: [Mod] Temperature Survive [tempsurvive]

by voxelproof » Post

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.
To miss the joy is to miss all. Robert Louis Stevenson

puzzlecube
Member
Posts: 24
Joined: Fri Oct 19, 2018 14:49
GitHub: puzzlecube
IRC: puzzlecube
In-game: puzzlecube KluppingOnion

Re: [Mod] Temperature Survive [tempsurvive]

by puzzlecube » Post

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
Would you believe this came from an autistic guy with low vision? Believe it.
Check this out![url]https:github.com/puzzlecube[/url]
I also make models for 3d printing!

User avatar
voxelproof
Member
Posts: 1076
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: [Mod] Temperature Survive [tempsurvive]

by voxelproof » Post

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.
To miss the joy is to miss all. Robert Louis Stevenson

User avatar
texmex
Member
Posts: 1752
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Temperature Survive [tempsurvive]

by texmex » Post

Finally! Good one. (But dang, you beat me to it :D )
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw

User avatar
AiTechEye
Member
Posts: 917
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: ¯\_(ツ)_/¯

Re: [Mod] Temperature Survive [tempsurvive]

by AiTechEye » Post

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

User avatar
Lord_Vlad
Member
Posts: 112
Joined: Thu Jul 20, 2017 07:58

Re: [Mod] Temperature Survive [tempsurvive]

by Lord_Vlad » Post

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.

User avatar
AiTechEye
Member
Posts: 917
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: ¯\_(ツ)_/¯

Re: [Mod] Temperature Survive [tempsurvive]

by AiTechEye » Post

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...

DELTA_FORCE
Member
Posts: 133
Joined: Tue Oct 30, 2018 01:26
IRC: DELTA_FORCE
In-game: DELTA_FORCE
Location: Central US

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by DELTA_FORCE » Post

Maybe make it so eating certain very rare foods would permanently increase your resistance to the cold or heat.
check me out nowhere because i never do anything

User avatar
AiTechEye
Member
Posts: 917
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: ¯\_(ツ)_/¯

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by AiTechEye » Post

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
Attachments
c.png
(13.15 KiB) Not downloaded yet
Last edited by AiTechEye on Mon Nov 26, 2018 15:20, edited 1 time in total.

DELTA_FORCE
Member
Posts: 133
Joined: Tue Oct 30, 2018 01:26
IRC: DELTA_FORCE
In-game: DELTA_FORCE
Location: Central US

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by DELTA_FORCE » Post

I might be able to help with textures at a later time. I'm currently working on my/davidthecreator's mod.
check me out nowhere because i never do anything

Kroukuk
Member
Posts: 52
Joined: Tue Feb 27, 2018 18:08
In-game: Kroukuk

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by Kroukuk » Post

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.

User avatar
Diamond knight
Member
Posts: 475
Joined: Sun Apr 19, 2015 19:50
GitHub: Diamondknight
In-game: Ferrumprinceps
Location: Chilling in Constantinople
Contact:

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by Diamond knight » Post

maybe a possible way to dampen your clothes on purpose to survive in hot deserts if this is added?

User avatar
Lord_Vlad
Member
Posts: 112
Joined: Thu Jul 20, 2017 07:58

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by Lord_Vlad » Post

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.

User avatar
DancingWombat
Member
Posts: 14
Joined: Tue Nov 14, 2017 12:53

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by DancingWombat » Post

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.

User avatar
AiTechEye
Member
Posts: 917
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: ¯\_(ツ)_/¯

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by AiTechEye » Post

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

User avatar
AiTechEye
Member
Posts: 917
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: ¯\_(ツ)_/¯

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by AiTechEye » Post

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
Attachments
screenshot_20181127_223626.png
(234.73 KiB) Not downloaded yet
screenshot_20181127_223644.png
(182.75 KiB) Not downloaded yet

User avatar
DancingWombat
Member
Posts: 14
Joined: Tue Nov 14, 2017 12:53

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by DancingWombat » Post

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
Attachments
climatecontrol2.jpg
(84.88 KiB) Not downloaded yet

User avatar
Lord_Vlad
Member
Posts: 112
Joined: Thu Jul 20, 2017 07:58

Re: [Mod] Temperature Survive 1.5 [tempsurvive]

by Lord_Vlad » Post

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.

User avatar
Diamond knight
Member
Posts: 475
Joined: Sun Apr 19, 2015 19:50
GitHub: Diamondknight
In-game: Ferrumprinceps
Location: Chilling in Constantinople
Contact:

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by Diamond knight » Post

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.

User avatar
Lord_Vlad
Member
Posts: 112
Joined: Thu Jul 20, 2017 07:58

Re: [Mod] Temperature Survive 2 [tempsurvive]

by Lord_Vlad » Post

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.

User avatar
AiTechEye
Member
Posts: 917
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: ¯\_(ツ)_/¯

Re: [Mod] Temperature Survive 2 [tempsurvive]

by AiTechEye » Post

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
Attachments
screenshot_20181202_200649.png
(699.56 KiB) Not downloaded yet

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 6 guests