Desert Life [desert_life]

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

Desert Life [desert_life]

by Nathan.S » Post

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: 7494
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: Desert Life [desert_life]

by azekill_DIABLO » Post

I love meshes!

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

Re: Desert Life [desert_life]

by trainwrecktony » Post

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: 993
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: Desert Life [desert_life]

by Nathan.S » Post

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: 67
Joined: Sun Jun 08, 2014 05:24
In-game: trainwrecktony
Location: NJ USA
Contact:

Re: Desert Life [desert_life]

by trainwrecktony » Post

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
Contact:

Re: Desert Life [desert_life]

by TheReaperKing » Post

I love cool looking terrain mods like this that give more LIFE to the world! Great job Nathan!
Become A Real Life Superhero - http://SuperheroHill.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: 993
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: Desert Life [desert_life]

by Nathan.S » Post

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: 993
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: Desert Life [desert_life]

by Nathan.S » Post

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: 993
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: Desert Life [desert_life]

by Nathan.S » Post

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
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
Location: Madrid,Spain

Re: Desert Life [desert_life]

by ManElevation » Post

nice new models!
My Public Mods! Discord: Rottweiler Games#3368

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

Re: Desert Life [desert_life]

by Andrey01 » Post

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

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

Re: Desert Life [desert_life]

by Nathan.S » Post

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 » Post

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 » Post

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

Beverage

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

Re: Desert Life [desert_life]

by Nathan.S » Post

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

Re: Desert Life [desert_life]

by echosa » Post

Thanks!

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

Re: Desert Life [desert_life]

by Agura » Post

Can you please add prickly pears?

Chem871
Member
Posts: 947
Joined: Sat Aug 19, 2017 21:49
GitHub: Chemguy99
In-game: Chem Nyx
Location: My Basement's Attic

Re: Desert Life [desert_life]

by Chem871 » Post

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

Post Reply

Who is online

Users browsing this forum: Google [Bot], runs and 4 guests