Page 1 of 14

[Mod] Farming Plus [farming_plus]

PostPosted: 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_plus/archive/086599805b642662ba680e1f18c271a4a972c9e3.zip

An alterntive version by Xanthin with translation for intllib:
https://github.com/Xanthin/farming_plus/archive/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_plus/tree/90390ec83397e422b583f01a06ed27864f114a67

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

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

PostPosted: 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.

PostPosted: 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?

PostPosted: 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.

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

PostPosted: Tue Aug 14, 2012 15:49
by Spots

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

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

PostPosted: 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)

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

PostPosted: Tue Aug 14, 2012 18:38
by PilzAdam
Spots wrote:you rock !!

Thank you.

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

PostPosted: 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?

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

PostPosted: 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)

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

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

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

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

PostPosted: 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.

PostPosted: 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.

PostPosted: 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.

PostPosted: 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.