Page 1 of 14

[Mod] Farming Plus [farming_plus]

Posted: Tue Aug 14, 2012 13:42
by PilzAdam
Hello everyone!
This mods extents the default farming. This mod is useful when you use the food mod by rubenwardy.
Unfortunately there is currently no way to get the seeds of the new plants (due to the merge of farming to upstream). I need to think of a way to get them.

Depends:
default
farming (the one in minetest_game)

GitHub:
https://github.com/PilzAdam/farming_plus

Download:
https://github.com/PilzAdam/farming_plus/zipball/master
For Minetest 0.4.7 stable: https://github.com/PilzAdam/farming_plu ... 72c9e3.zip

An alterntive version by Xanthin with translation for intllib:
https://github.com/Xanthin/farming_plus ... master.zip

License:
WTFPL, see README.txt for more detailed information.

0.4.6 or previous:
0.4.6 and previous version dont have farming in minetest_game, so you need this: https://github.com/PilzAdam/farming and this version of farming_plus: https://github.com/PilzAdam/farming_plu ... 864f114a67

Posted: Tue Aug 14, 2012 13:52
by RealBadAngel
make cotton producing strings not wool directly. wool could be crafted out of strings
string could be usefull also for other stuff
btw i would love to see kinda rubber plant/tree

Posted: Tue Aug 14, 2012 14:50
by Spots
just a few things i found while testing it out
1. after hoeing a 40x40 area i got very few seeds
2. when planted the seeds mature very very very slowly
3. and like Angel suggested maybe a rubber tree/plant ,wheat,and a few others

Posted: Tue Aug 14, 2012 15:03
by PilzAdam
Spots wrote:just a few things i found while testing it out
1. after hoeing a 40x40 area i got very few seeds
2. when planted the seeds mature very very very slowly
3. and like Angel suggested maybe a rubber tree/plant ,wheat,and a few others
1+2 You have to start with a very small farm and with the time it goes bigger and bigger.
3. corn is actually wheat (my dictionary is not good) and i will add rubber in next version

EDIT: I forgott to mention: You also get more seeds with a better hoe.

Posted: Tue Aug 14, 2012 15:26
by Spots
ah okay then np all good ,testing everything out now and the farm is getting better but the pumpkins are only giving our 1 seed when you carve then i'm using stone sword does it give more with a better sword?

Posted: Tue Aug 14, 2012 15:38
by PilzAdam
Spots wrote:does it give more with a better sword?
Not yet. Maybe i will make it in the next version.

Posted: Tue Aug 14, 2012 15:40
by LolManKuba
New farming mod, nice

Posted: Tue Aug 14, 2012 15:49
by Spots
great +100 works like a charm so far
http://www.flickr.com/photos/9956253@N0 ... /lightbox/

Posted: Tue Aug 14, 2012 16:29
by Calinou
I like it. Added mod support in Misa pack. :)

Posted: Tue Aug 14, 2012 17:55
by Spots
hit an error
VERBOSE[main]: error_message = ServerError: LuaError: error: ...-d38b465-win32\bin\..\mods\minetest\farming\init.lua:50: bad argument #1 to 'get_node' (table expected, got nil)
13:50:41: VERBOSE[main]: stack traceback:

Posted: Tue Aug 14, 2012 17:57
by PilzAdam
Spots wrote:hit an error
VERBOSE[main]: error_message = ServerError: LuaError: error: ...-d38b465-win32\bin\..\mods\minetest\farming\init.lua:50: bad argument #1 to 'get_node' (table expected, got nil)
13:50:41: VERBOSE[main]: stack traceback:
Already fixed in veresion 2 (coming soon)

Posted: Tue Aug 14, 2012 18:01
by Spots
you rock !!

Posted: Tue Aug 14, 2012 18:38
by PilzAdam
Spots wrote:you rock !!
Thank you.

Posted: Tue Aug 14, 2012 19:19
by sfan5
Really nice!

Posted: Wed Aug 15, 2012 00:39
by cornernote
If you have not already seen it, there is an old farming mod here:
http://minetest.net/forum/viewtopic.php?id=607

Perhaps useful for some textures or crop ideas?

Posted: Wed Aug 15, 2012 01:10
by leo_rockway
I'm not sure what I'm doing wrong, so I decided to just ask: how do you harvest? I tried digging the node but the plant disappears and I get nothing...
EDIT: I thought I was mining at full grown, but I was mistaken. After waiting for full grown I can see it's working now.


Also, I just got this:

22:21:24: ERROR[EmergeThread]: ERROR: An unhandled exception occurred: LuaError: error: /home/leo/.minetest/mods/minetest/farming/rubber.lua:136: attempt to perform arithmetic on global 'anz' (a nil value)
22:21:24: ERROR[EmergeThread]: stack traceback:

In thread 7f1ab6ad1700:
/pkgbuilds/minetest-git/src/minetest/src/server.cpp:404: virtual void* EmergeThread::Thread(): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD 7f1ab6ad1700:
#0 virtual void* EmergeThread::Thread()
(Leftover data: #1 virtual MapBlock* ServerMap::emergeBlock(v3s16, bool): p=(-22,3,13), allow_generate=0)
(Leftover data: #2 ServerMapSector* ServerMap::createSector(v2s16): p2d=(-24,13))
DEBUG STACK FOR THREAD 7f1acdee4700:
#0 virtual void* MeshUpdateThread::Thread()
DEBUG STACK FOR THREAD 7f1acfff0700:
#0 virtual void* ServerThread::Thread()
#1 void Server::AsyncRunStep()
#2 void Server::SendBlocks(float)
#3 void Server::SendBlockNoLock(irr::u16, MapBlock*, irr::u8)
(Leftover data: #4 void BlockEmergeQueue::addBlock(irr::u16, v3s16, irr::u8))
(Leftover data: #5 void ServerMap::loadBlock(std::string*, v3s16, MapSector*, bool))
DEBUG STACK FOR THREAD 7f1ad8022740:
#0 int main(int, char**)
#1 void ClientMap::renderMap(irr::video::IVideoDriver*, irr::s32)
(Leftover data: #2 virtual void ClientEnvironment::step(float))
(Leftover data: #3 void Client::Receive())
(Leftover data: #4 void Client::ProcessData(irr::u8*, irr::u32, irr::u16))
(Leftover data: #5 void MeshUpdateQueue::addBlock(v3s16, MeshMakeData*, bool, bool))
zsh: segmentation fault minetest
minetest 1768.03s user 323.63s system 125% cpu 27:50.54 total

Posted: Wed Aug 15, 2012 01:33
by Casimir
As I tried to pick up a sapling (as item) with the hoe I got this:

Code: Select all

... init.lua:50: bad argument #1 to 'get node' (table expected, got nil)

Posted: Wed Aug 15, 2012 01:43
by leo_rockway
Crafting the carved pumpkin seems to have completely repaired my sword. Can that be avoided?

Posted: Wed Aug 15, 2012 03:08
by Josh
Look's good! ill have to try it out.

Posted: Wed Aug 15, 2012 03:08
by Spots
okay so i've been playing with your mod for ..oh about the last 2 hours lol i've had no problems yet other then the pumpkins one seed per pumpkin just means that my crops dont get any bigger just the same amount at every harvest

Posted: Wed Aug 15, 2012 03:23
by Josh
It work's! Thanks PilzAdam!

Posted: Wed Aug 15, 2012 09:32
by PilzAdam
leo_rockway wrote: Also, I just got this:

22:21:24: ERROR[EmergeThread]: ERROR: An unhandled exception occurred: LuaError: error: /home/leo/.minetest/mods/minetest/farming/rubber.lua:136: attempt to perform arithmetic on global 'anz' (a nil value)
22:21:24: ERROR[EmergeThread]: stack traceback:
This is a bug. Ive updated the link of the second version.

Posted: Wed Aug 15, 2012 09:32
by PilzAdam
Casimir wrote:As I tried to pick up a sapling (as item) with the hoe I got this:

Code: Select all

... init.lua:50: bad argument #1 to 'get node' (table expected, got nil)
You have a old version.

Posted: Wed Aug 15, 2012 09:33
by PilzAdam
leo_rockway wrote:Crafting the carved pumpkin seems to have completely repaired my sword. Can that be avoided?
I change it to hit a placed pumpkin and not to craft it in the next version.

Posted: Wed Aug 15, 2012 09:35
by PilzAdam
Spots wrote:okay so i've been playing with your mod for ..oh about the last 2 hours lol i've had no problems yet other then the pumpkins one seed per pumpkin just means that my crops dont get any bigger just the same amount at every harvest
When I change the pumpkin creation in the next version (see post abvoe) i will make a small chance to get 2 seeds. But I want that pumpkins are very rarely.