[Mod] Temperature Survive 2 [tempsurvive]

User avatar
AiTechEye
Member
 
Posts: 606
Joined: Fri May 29, 2015 21:14
Location: Sweden
GitHub: AiTechEye

[Mod] Temperature Survive 2 [tempsurvive]

by AiTechEye » Tue Nov 20, 2018 22:55

Makes you feel temperatures

Source
Download
Depends: none
Licenses: code and media CC0

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]

+ Version stuff


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 Dec 02, 2018 11:02, edited 10 times in total.
 

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

Re: [Mod] Temperature Survive 0.5 [tempsurvive]

by Gael de Sailly » Tue Nov 20, 2018 23:26

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.
Contributor of Minetest and OpenStreetMap, on Ubuntu 16.04. ~ ~ ~ Meet me on MinetestForFun, VanessaE's Basic, Capture the Flag and Inside the Box.
 

User avatar
Lone_Wolf
Member
 
Posts: 1980
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf
 

User avatar
AiTechEye
Member
 
Posts: 606
Joined: Fri May 29, 2015 21:14
Location: Sweden
GitHub: AiTechEye
 

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

Re: [Mod] Temperature Survive [tempsurvive]

by voxelproof » Wed Nov 21, 2018 14:01

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.
>>>there is life beyond the Cube>>>
 

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

Re: [Mod] Temperature Survive [tempsurvive]

by puzzlecube » Wed Nov 21, 2018 22:26

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: 639
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: [Mod] Temperature Survive [tempsurvive]

by voxelproof » Thu Nov 22, 2018 14:12

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.
>>>there is life beyond the Cube>>>
 

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

User avatar
AiTechEye
Member
 
Posts: 606
Joined: Fri May 29, 2015 21:14
Location: Sweden
GitHub: AiTechEye

Re: [Mod] Temperature Survive [tempsurvive]

by AiTechEye » Thu Nov 22, 2018 21:47

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 » Fri Nov 23, 2018 20:55

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: 606
Joined: Fri May 29, 2015 21:14
Location: Sweden
GitHub: AiTechEye

Re: [Mod] Temperature Survive [tempsurvive]

by AiTechEye » Fri Nov 23, 2018 21:57

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: 66
Joined: Tue Oct 30, 2018 01:26
Location: Somewhere in the Atlantic
GitHub: minetestmodder
IRC: DELTA_FORCE
In-game: DELTA_FORCE

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by DELTA_FORCE » Sat Nov 24, 2018 00:27

Maybe make it so eating certain very rare foods would permanently increase your resistance to the cold or heat.
 

User avatar
AiTechEye
Member
 
Posts: 606
Joined: Fri May 29, 2015 21:14
Location: Sweden
GitHub: AiTechEye

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by AiTechEye » Sat Nov 24, 2018 11:20

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: 66
Joined: Tue Oct 30, 2018 01:26
Location: Somewhere in the Atlantic
GitHub: minetestmodder
IRC: DELTA_FORCE
In-game: DELTA_FORCE

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by DELTA_FORCE » Sat Nov 24, 2018 15:34

I might be able to help with textures at a later time. I'm currently working on my/davidthecreator's mod.
 

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

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by Kroukuk » Sun Nov 25, 2018 10:48

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: 442
Joined: Sun Apr 19, 2015 19:50
Location: stalker...
GitHub: Diamondknight
In-game: Ferrumprinceps

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by Diamond knight » Mon Nov 26, 2018 05:24

maybe a possible way to dampen your clothes on purpose to survive in hot deserts if this is added?
The IMPERIVM FERRVM shall once more blossom!
viewtopic.php?f=3&t=20851

My modding team:
https://github.com/Ferrumian-modding-team
https://discord.gg/FDjC2ah
 

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

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by Lord_Vlad » Mon Nov 26, 2018 10:12

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 » Mon Nov 26, 2018 12:22

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 https://forum.minetest.net/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: 606
Joined: Fri May 29, 2015 21:14
Location: Sweden
GitHub: AiTechEye

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by AiTechEye » Mon Nov 26, 2018 12:44

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: 606
Joined: Fri May 29, 2015 21:14
Location: Sweden
GitHub: AiTechEye

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by AiTechEye » Tue Nov 27, 2018 22:11

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 » Tue Nov 27, 2018 23:05

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 » Thu Nov 29, 2018 01:59

https://forum.minetest.net/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: 442
Joined: Sun Apr 19, 2015 19:50
Location: stalker...
GitHub: Diamondknight
In-game: Ferrumprinceps

Re: [Mod] Temperature Survive 1.1 [tempsurvive]

by Diamond knight » Sun Dec 02, 2018 07:02

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.
The IMPERIVM FERRVM shall once more blossom!
viewtopic.php?f=3&t=20851

My modding team:
https://github.com/Ferrumian-modding-team
https://discord.gg/FDjC2ah
 

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

Re: [Mod] Temperature Survive 2 [tempsurvive]

by Lord_Vlad » Sun Dec 02, 2018 19:14

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: 606
Joined: Fri May 29, 2015 21:14
Location: Sweden
GitHub: AiTechEye

Re: [Mod] Temperature Survive 2 [tempsurvive]

by AiTechEye » Sun Dec 02, 2018 19:33

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
 


Return to Mod Releases



Who is online

Users browsing this forum: Piezo_ and 5 guests