Desert Life [desert_life]

User avatar
Nathan.S
Member
 
Posts: 679
Joined: Wed Sep 24, 2014 17:47
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
desert_life.png (750.63 KiB) Viewed 2683 times
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website.
 

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

Re: Desert Life [desert_life]

by azekill_DIABLO » Sat Dec 17, 2016 17:03

I love meshes!
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

trainwrecktony
Member
 
Posts: 44
Joined: Sun Jun 08, 2014 05:24
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

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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
Server Specs: i5-3570, 16gb, 1tb 7200rpm 64mb cache, Win 2012 r2 x64, Dev mingw x64 minetest build, redis db
Gaming: Clevo W150HNQ, i7-2820, 16gb 1866 hyperx, 256gb Samsung 840 PRO SSD, Nvidia GT 540M, Win 7 Pro x64, Dev mingw x64 minetest build
 

User avatar
Nathan.S
Member
 
Posts: 679
Joined: Wed Sep 24, 2014 17:47
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.
 

trainwrecktony
Member
 
Posts: 44
Joined: Sun Jun 08, 2014 05:24
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
Server Specs: i5-3570, 16gb, 1tb 7200rpm 64mb cache, Win 2012 r2 x64, Dev mingw x64 minetest build, redis db
Gaming: Clevo W150HNQ, i7-2820, 16gb 1866 hyperx, 256gb Samsung 840 PRO SSD, Nvidia GT 540M, Win 7 Pro x64, Dev mingw x64 minetest build
 

User avatar
TheReaperKing
Member
 
Posts: 493
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!
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: 679
Joined: Wed Sep 24, 2014 17:47
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.
 

User avatar
Nathan.S
Member
 
Posts: 679
Joined: Wed Sep 24, 2014 17:47
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
desert_life.jpg (910.51 KiB) Viewed 2683 times
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website.
 

User avatar
Nathan.S
Member
 
Posts: 679
Joined: Wed Sep 24, 2014 17:47
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.
 

ManElevation
Member
 
Posts: 213
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation

Re: Desert Life [desert_life]

by ManElevation » Sun Jan 01, 2017 12:22

nice new models!
Hey there im going to be off minetest for a while because my company has been deleloping a game called Ground Conflict, if you wish to see some screenshots or have some info, than please join our discord server https://discord.gg/C9ygXJn
 

User avatar
Andrey01
Member
 
Posts: 431
Joined: Wed Oct 19, 2016 15:18
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: 679
Joined: Wed Sep 24, 2014 17:47
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.
 

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

Re: Desert Life [desert_life]

by echosa » Sun Jan 01, 2017 20:02

Warnings in debug.txt:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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: 355
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: 679
Joined: Wed Sep 24, 2014 17:47
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.
 

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

Re: Desert Life [desert_life]

by echosa » Sun Jan 01, 2017 21:22

Thanks!
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 9 guests

cron