Page 1 of 5

[Modpack] Food [2.3] [food][food_basic]

PostPosted: Wed Sep 05, 2012 18:22
by rubenwardy
Image

Satisfy your hunger with this mod that adds: Cakes, baked potato, pasta bakes, juices, soups, and more!

The food mod has been rewritten, with new textures being added. The new version of the food mod supports multiple mods at the same time.

Available in 5 languages using intllib: English, French, German, Spanish, and Turkish.

This modpack contains: food (a library for multi-support of ingredients) and food_basic (a collection of minimal foods).

Also recommended: Diet, Sweet Foods [food_sweet]

Mod Support



Supports (but does not require) the following mods, and you can use any of these at the same time:


Download


Current version: 2.3
License for code:
- food mod (just the api): CC0
- list of ingredients in food_basic/support: CC0
- food_basic mod (definitions of basic foods and recipes for them): GPL 3.0 or later.
License for textures: CC-BY-SA.
Some exceptions, see in readme.

Create a new folder in mods/minetest called "food" and extract the .zip's contents in to it.
Please use an ingame craft guide for the moment.

Download
... browse the code

Please feel free to suggest new foods. Bug reports are also appreciated.

PostPosted: Wed Sep 05, 2012 18:51
by tonyka
fun: D
if you feel that I can help ... tell me

PostPosted: Wed Sep 05, 2012 19:18
by Mito551
that is totally amazing. thanks!

PostPosted: Thu Sep 06, 2012 19:04
by rubenwardy
I have done some of the recipes, see the link "my website" in the post

PostPosted: Sun Sep 09, 2012 22:42
by prowseed
Hey, it looks awesome, but seems like I am doing something wrong, because I can not load it: http://upload.maciejkwas.pl/plik4/2-food.jpg
Some quick reference about where the problem could be?

PostPosted: Mon Sep 10, 2012 00:48
by Gambit
Beer... nuff said.

PostPosted: Mon Sep 10, 2012 04:51
by SegFault22
What if wheat drops ''wheat grains'' when broken? I don't know if this mod relies on another mod for wheat, as I have not downloaded it, but wouldn't it make sense if wheat grains are dropped, then planted or ground with a brick to make flour, which is crafted with a bucket of water to make bread dough, then cooked to make bread?
And using the recipe:
_ B _
B _ B
_ B _
Where:

_ = nil
B = bread dough

Would craft 4 raw doughnuts...?
Eh?

PostPosted: Mon Sep 10, 2012 05:56
by wowiamdiamonds
I found this mod, decided to make a glass of apple juice, and all of a sudden, four glasses of apple juice were magically warped into existence out of the one glass I had beforehand! I figured this was fine, because I love apple juice, so I make 88 glasses of it. Anyway, I fell off a cliff, and it hurt a little bit, so I clicked to drink the apple juice, but woe is me! I used the right mouse button! All of a sudden, this Unknown Block plops down right in front of me and I get all scared so I start right clicking some more in a frantic rush to save my life and all of a sudden there are all of these blocks everywhere and I can't stop placing them because I had written a script beforehand (which I now regret) that rapidly clicks the right mouse button and moves it a little to the side if I click it five times within 1 second. So my mouse is sending hundreds of simulated right clicks per second and all of these unknown blocks are appearing everywhere and my character is inside a block I think (at this point a demon has probably possessed my computer) and I can't stop it and then all of a sudden my computer freezes up and then the (neighborhood's) power goes out.

TL;DR apple juice everywhere

So yeah, that's my bug report. Apple juice is placeable. Bread isn't placeable but it is edible in the same way. Perhaps apple juice should be a clone of bread but with a different recipe?

Also, two more suggestions: cups should be from the vessels mod, and (I'm not sure how this would be done) you should get your empty cups back from drinking apple juice. Maybe even dirty cups so you have to clean them?

Either way, thank you for providing me this beautiful experience, and I'd love to see further work on this mod, particularly foods like Sauerkraut.

PostPosted: Mon Sep 10, 2012 16:57
by rubenwardy
wowiamdiamonds wrote:I found this mod, decided to make a glass of apple juice, and all of a sudden, four glasses of apple juice were magically warped into existence out of the one glass I had beforehand! I figured this was fine, because I love apple juice, so I make 88 glasses of it. Anyway, I fell off a cliff, and it hurt a little bit, so I clicked to drink the apple juice, but woe is me! I used the right mouse button! All of a sudden, this Unknown Block plops down right in front of me and I get all scared so I start right clicking some more in a frantic rush to save my life and all of a sudden there are all of these blocks everywhere and I can't stop placing them because I had written a script beforehand (which I now regret) that rapidly clicks the right mouse button and moves it a little to the side if I click it five times within 1 second. So my mouse is sending hundreds of simulated right clicks per second and all of these unknown blocks are appearing everywhere and my character is inside a block I think [...]

So yeah, that's my bug report. Apple juice is placeable. Bread isn't placeable but it is edible in the same way. Perhaps apple juice should be a clone of bread but with a different recipe?

Also, two more suggestions: cups should be from the vessels mod, and (I'm not sure how this would be done) you should get your empty cups back from drinking apple juice. Maybe even dirty cups so you have to clean them?

Either way, thank you for providing me this beautiful experience, and I'd love to see further work on this mod, particularly foods like Sauerkraut.


Good ideas. The apple thingy has been fixed

The vessels was offically supported after i released this mod.
I only need to add a paragraph to support it.

I like the dirty cups idea, goes well with dirty plates. Maybe in a post 1 version.

PostPosted: Mon Sep 10, 2012 17:36
by GloopMaster
why is apple juice a node at all?

PostPosted: Mon Sep 10, 2012 17:47
by rubenwardy
GloopMaster wrote:why is apple juice a node at all?


Woops, that is why is no worky...

I have added support for vessels mod

PostPosted: Mon Sep 10, 2012 19:12
by rubenwardy
I have added Hot Chocolate, Milk Chocolate, Dark Chocolate.

Milkshakes coming soon

Food is now 0.73

PostPosted: Fri Sep 14, 2012 16:26
by rubenwardy
prowseed wrote:Hey, it looks awesome, but seems like I am doing something wrong, because I can not load it: http://upload.maciejkwas.pl/plik4/2-food.jpg
Some quick reference about where the problem could be?


You need to rename the folder "rubenfood" to "food" and it will work

PostPosted: Fri Sep 14, 2012 16:29
by rubenwardy
SegFault22 wrote:What if wheat drops ''wheat grains'' when broken? I don't know if this mod relies on another mod for wheat, as I have not downloaded it, but wouldn't it make sense if wheat grains are dropped, then planted or ground with a brick to make flour, which is crafted with a bucket of water to make bread dough, then cooked to make bread?
And using the recipe:
_ B _
B _ B
_ B _
Where:

_ = nil
B = bread dough

Would craft 4 raw doughnuts...?
Eh?


This mod does not have wheat in it, but does have flour in it.
If you have PilzAdam's farming mod, then you turn wheat grains into flour

PostPosted: Thu Sep 20, 2012 05:18
by cornernote
the image food_chocolate_powder.png should be renamed to food_choco_powder.png

there are also some farming images missing:

farming_bread.png
farming_carrot.png
farming_cocoa_bean.png
farming_rhubarb.png

PostPosted: Thu Sep 20, 2012 16:23
by rubenwardy
cornernote wrote:the image food_chocolate_powder.png should be renamed to food_choco_powder.png

there are also some farming images missing:

farming_bread.png
farming_carrot.png
farming_cocoa_bean.png
farming_rhubarb.png


Fixed.
I did actually fix those things, just did not push it to github.

PostPosted: Tue Oct 02, 2012 13:23
by cornernote
[request]

for all the things you can eat, can you add groups={food=[1|2|3]}, where 1 is the best food and 3 is the worst.

using this, i can detect food given to the NPC in towntest to make him work faster. better food keeps him working fast for a longer period

PostPosted: Tue Oct 02, 2012 16:04
by rubenwardy
cornernote wrote:[request]

for all the things you can eat, can you add groups={food=[1|2|3]}, where 1 is the best food and 3 is the worst.

using this, i can detect food given to the NPC in towntest to make him work faster. better food keeps him working fast for a longer period


Ok, i will.

1 = Cake, Meals, etc
2 = Bread
3 = Snacks, Coffee

PostPosted: Tue Oct 02, 2012 18:16
by Mito551

PostPosted: Tue Oct 02, 2012 18:31
by rubenwardy


I can not see anything in that screenshot. Please post the whole line (not just part of it) and the:

===== ERROR FROM LUA ======

section.



The mod works perfectly for me, reply with that information above and your minetest version

PostPosted: Tue Oct 02, 2012 18:50
by Mito551
sorry.
22:14:14: ERROR[main]: ========== ERROR FROM LUA ===========
22:14:14: ERROR[main]: Failed to load and run script from
22:14:14: ERROR[main]: E:\Dropbox\minetest-0.4.3-25cf375-win32\bin\..\games\dwarves\mods\food\init.lua:
22:14:14: ERROR[main]: ...0.4.3-25cf375-win32\bin\..\builtin/misc_register.lua:62: Name farming:carrot_item does not follow naming conventions: "modname:" or ":" prefix required
22:14:14: ERROR[main]: stack traceback:
22:14:14: ERROR[main]: [C]: in function 'error'
22:14:14: ERROR[main]: ...0.4.3-25cf375-win32\bin\..\builtin/misc_register.lua:62: in function 'check_modname_prefix'
22:14:14: ERROR[main]: ...0.4.3-25cf375-win32\bin\..\builtin/misc_register.lua:98: in function 'register_item'
22:14:14: ERROR[main]: ...0.4.3-25cf375-win32\bin\..\builtin/misc_register.lua:166: in function 'register_craftitem'
22:14:14: ERROR[main]: ...375-win32\bin\..\games\dwarves\mods\food/support.lua:83: in function 'resultfunc'
22:14:14: ERROR[main]: ...375-win32\bin\..\games\dwarves\mods\food/support.lua:14: in function 'node_implement'
22:14:14: ERROR[main]: ...375-win32\bin\..\games\dwarves\mods\food/support.lua:82: in main chunk
22:14:14: ERROR[main]: [C]: in function 'dofile'
22:14:14: ERROR[main]: ...5cf375-win32\bin\..\games\dwarves\mods\food\init.lua:16: in main chunk
22:14:14: ERROR[main]: =======END OF ERROR FROM LUA ========

PostPosted: Tue Oct 02, 2012 19:11
by rubenwardy
Bug Fixed.

PostPosted: Tue Oct 02, 2012 19:40
by Mito551
thank you.:)

PostPosted: Wed Oct 03, 2012 03:49
by Mito551
well.. i didn't check yesterday, so i didn't know that the problem remained. i installed new github version and it still crashes minetest with exactly same message

PostPosted: Wed Oct 03, 2012 12:32
by rubenwardy
Are you sure it is the same message? The bug was caused because PilzAdam's mod was not avaliable, so it was making a built in carrot, which i accidently named wrong.

I will try to see what the problem is later today. If you can, i recommend you download the farming mod as well, because the built in stuff like carrots and flour do not have craft recipes.

PostPosted: Wed Oct 03, 2012 12:40
by Mito551
i have faming, but not farming_plus. i 100% sure it's the same message.

PostPosted: Wed Oct 03, 2012 15:55
by rubenwardy
farming_plus would be good.

I think you must have not download the new version properly

Try and find this

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
node_implement("farming_plus","farming_plus:carrot_item","food:carrot",function()
minetest.register_craftitem([b]"food:carrot"[/b], {
description = "Carrot",
inventory_image = "farming_carrot.png",
on_use = minetest.item_eat(3),
})
end)


In support.lua, and make sure that the thing in bold is the same in the version you have got.

As I said, i will check this bug when i get home

PostPosted: Wed Oct 03, 2012 17:48
by Mito551
i found the typo

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
...food:banana",function()
mminetest.register_node("food:...


after i fixed it, everything works :)

PostPosted: Tue Dec 04, 2012 18:07
by rubenwardy
Food Mod 0.8 has been released!

New foods including, but not limited to:

  • Milkshakes
  • Soups
  • Chocolate
  • Hot Chocolate

PostPosted: Thu Dec 13, 2012 20:02
by rubenwardy
Food Mod 0.81 Stable has been released!

I have released the food_modern extension

The food mod is now in stable release