Desert Life [desert_life]

User avatar
Nathan.S
Member
 
Posts: 896
Joined: Wed Sep 24, 2014 17:47
Location: Bigsby Texas
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Desert Life [desert_life]

by Nathan.S » Fri Dec 16, 2016 17:05

This mod adds a little more life to the otherwise relatively plain deserts. Currently it includes a prickly pear and barrel cacti, but I do plan on adding more flora as I have time.

If you are playing with tenplus1's mob api you will also see ostriches popping up in the deserts. Again, I plan to add more animals as I get time.

Image
yes, I know this isn't a desert, I manually placed the cacti and ostriches, as after flying around for 15 minutes I couldn't find a desert.

Browse source on Github: https://github.com/NathanSalapat/desert_life
Download: https://github.com/NathanSalapat/desert ... master.zip

License on models and graphics CC by SA 4
Attachments
desert_life.png
(750.63 KiB) Not downloaded yet
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course
 

User avatar
azekill_DIABLO
Member
 
Posts: 7489
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

trainwrecktony
Member
 
Posts: 65
Joined: Sun Jun 08, 2014 05:24
Location: NJ USA
In-game: trainwrecktony

Re: Desert Life [desert_life]

by trainwrecktony » Sat Dec 24, 2016 01:20

nice mod been using it for a while before ostrich added. Even before ostrich had to strip some code to avoid crash.
Here is crash i get with unedited code

Code: Select all
016-12-23 19:51:48: ERROR[Main]: ServerError: Lua: Runtime error from mod 'desert_life' in callback LuaABM::trigger(): C:\test\bin\..\games\twt\mods\desert_life/functions.lua:35: attempt to index local 'under_name' (a nil value)
2016-12-23 19:51:48: ERROR[Main]: stack traceback:
2016-12-23 19:51:48: ERROR[Main]:    C:\test\bin\..\games\twt\mods\desert_life/functions.lua:35: in function 'spread'
2016-12-23 19:51:48: ERROR[Main]:    C:\test\bin\..\games\twt\mods\desert_life/prickly_pear.lua:176: in function <C:\test\bin\..\games\twt\mods\desert_life/prickly_pear.lua:155>


features i'd like to see:
reduced spread
pads can only be dug using shears from mobs mod, support if vines shears or multitest shears used too
barrel cacti only dug by axe
grinding/dye crafts
cactus fruit can see old cactus mod viewtopic.php?id=4311
Server Owner trainwrecktony.serveminecraft.net:30000 irc.freenode.net ##minetest-trainwrecktony
 

User avatar
Nathan.S
Member
 
Posts: 896
Joined: Wed Sep 24, 2014 17:47
Location: Bigsby Texas
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: Desert Life [desert_life]

by Nathan.S » Sat Dec 24, 2016 01:44

Hmmm, that error doesn't make sense, it would appear as if a cacti is trying to spread into a location where there is no node. I added some code that should catch the problem, and just print an error message to the debug.txt I ran a test and did see that message popping up a few times, will have to try to figure out what it causing it.

By reduced spread do you mean slower spreading, or that they only spread if there is less than a certain amount in the area?

I could probably add recipes to turn the cacti into dye, should be easy to do.

I'm not entirely pleased with how the pad harvesting works right now anyway, so I do need to work on that. Not sure if I can make it need the tools, as I think the tools would need to have the code, but will look into it.

I thought about adding fruit to the prickly pear, but that would require new meshes, and a bunch of new models, which wouldn't be hard to do, but I didn't feel like it was worth it. I do have support added for mymonths, and they flower during certain parts of the year, I could make it so if they are harvested while flowering you have a chance to get cacti fruit.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course
 

trainwrecktony
Member
 
Posts: 65
Joined: Sun Jun 08, 2014 05:24
Location: NJ USA
In-game: trainwrecktony

Re: Desert Life [desert_life]

by trainwrecktony » Sat Dec 24, 2016 02:20

Reduce spread like less in certain area. I like the extra desert foliage but think should still be sparse like dry shrub distribution
Server Owner trainwrecktony.serveminecraft.net:30000 irc.freenode.net ##minetest-trainwrecktony
 

User avatar
TheReaperKing
Member
 
Posts: 531
Joined: Sun Nov 22, 2015 21:36

Re: Desert Life [desert_life]

by TheReaperKing » Sat Dec 24, 2016 02:33

I love cool looking terrain mods like this that give more LIFE to the world! Great job Nathan!
Resources on happiness and life management - http://MikesHappyPlace.com
Project Lead of the Doom 3 Mod Last Man Standing - http://Doom3Coop.com
Project Lead of Platinum Arts Sandbox Free 3D Game Maker - http://SandboxGameMaker.com
Youtube Channel - https://www.youtube.com/user/PlatinumArtsKids
 

User avatar
Nathan.S
Member
 
Posts: 896
Joined: Wed Sep 24, 2014 17:47
Location: Bigsby Texas
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: Desert Life [desert_life]

by Nathan.S » Sat Dec 24, 2016 02:44

I thought that is what you meant trainwrecktony, so I started work on a change to the spread function that will keep them from being so dense, should have more open areas now, well once I update. I got that error you mentioned a few times, but for the life of me can't figure out what is causing it, trying to debug it now.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course
 

User avatar
Nathan.S
Member
 
Posts: 896
Joined: Wed Sep 24, 2014 17:47
Location: Bigsby Texas
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: Desert Life [desert_life]

by Nathan.S » Sat Dec 24, 2016 15:56

Okay, so still no idea why that error exists, but I added some code to catch the error so no more crashes. :)

As mentioned previously I added code to keep the plants from spreading so much, the attached picture is an area that had some cacti naturally spawn, and they were spreading for about twenty minutes, with the ABM rate and chance set to 1 rather than 40 and 30 so it was WAY faster than you'll ever see in game. Seems to work pretty well in my opinion, still paths that can be walked through. I'll work on the harvesting in the next update.

Code has been pushed to Git so pull/clone and have fun!
Attachments
desert_life.jpg
(910.51 KiB) Not downloaded yet
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course
 

User avatar
Nathan.S
Member
 
Posts: 896
Joined: Wed Sep 24, 2014 17:47
Location: Bigsby Texas
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: Desert Life [desert_life]

by Nathan.S » Mon Dec 26, 2016 17:32

Pushed another update, not too much of a change to game play, the barrel cacti now spread a two nodes away from the parent plant, so you won't get solid walls of them, well shouldn't anyway.

On the backend I made the plant_spread function a little more customizable, plants can now define how far the children should be placed from their parent, and they can vary how much air is needed for the child to be placed. This is useful if you want to allow a plant to completely take over an area, or if you want it to be more sparse on the landscape.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course
 

User avatar
ManElevation
Member
 
Posts: 896
Joined: Tue Aug 02, 2016 22:04
Location: Madrid,Spain
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
 

User avatar
Andrey01
Member
 
Posts: 2302
Joined: Wed Oct 19, 2016 15:18
Location: Russia, Moscow
GitHub: Andrey2470T
In-game: Andrey01

Re: Desert Life [desert_life]

by Andrey01 » Sun Jan 01, 2017 16:20

Nathan, you should add camels, rats and snakes.I think these animals are better suits for deserts
 

User avatar
Nathan.S
Member
 
Posts: 896
Joined: Wed Sep 24, 2014 17:47
Location: Bigsby Texas
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: Desert Life [desert_life]

by Nathan.S » Sun Jan 01, 2017 19:07

Rats already exist in the mobs_animals mod, but camels and snakes are good ideas, will see about adding those in the next few weeks.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course
 

echosa
Member
 
Posts: 107
Joined: Tue Aug 30, 2016 04:01

Re: Desert Life [desert_life]

by echosa » Sun Jan 01, 2017 20:02

Warnings in debug.txt:

Code: Select all
2017-01-01 13:58:20: WARNING[Main]: Undeclared global variable "desert_life_bloom" accessed at ...netest/mods/desert_life/prickly_pear.lua:77
2017-01-01 13:58:20: WARNING[Main]: Undeclared global variable "desert_life_bloom" accessed at ...netest/mods/desert_life/prickly_pear.lua:181
 

User avatar
mahmutelmas06
Member
 
Posts: 367
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

Re: Desert Life [desert_life]

by mahmutelmas06 » Sun Jan 01, 2017 20:13

There is a snake in nssm as i remember.
My Mods:

Beverage
 

User avatar
Nathan.S
Member
 
Posts: 896
Joined: Wed Sep 24, 2014 17:47
Location: Bigsby Texas
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: Desert Life [desert_life]

by Nathan.S » Sun Jan 01, 2017 20:40

Fixed those errors echosa, feel free to pull or download a fresh copy to resolve them.

mahumutelmas06 nssm does have a giant sandworm, not sure if there is a normal viper type snake that isn't giant.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course
 

echosa
Member
 
Posts: 107
Joined: Tue Aug 30, 2016 04:01
 

Agura
New member
 
Posts: 1
Joined: Sun Jul 07, 2019 15:18
GitHub: Agura
IRC: Agura
In-game: Agura
 

Chem871
Member
 
Posts: 930
Joined: Sat Aug 19, 2017 21:49
Location: SCP-2935
GitHub: Chemguy99
In-game: Dwaba_Kukai

Re: Desert Life [desert_life]

by Chem871 » Tue Aug 13, 2019 18:30

This already has prickly pears.
What is SCP-055 again? I forgot.
 


Return to WIP Mods



Who is online

Users browsing this forum: Google [Bot] and 7 guests