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

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

It uses a fairly complicated registering mechanism, which may take a while to load on older computers.

I will try to optimize it.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Silent-Hunter
Member
Posts: 30
Joined: Wed Nov 06, 2013 20:06

by Silent-Hunter » Post

Can I comment out all the stuff that's for mods I don't have to make it faster?

EDIT: Looking at the code, I don't really understand why it's so slow to load. It looks simple enough to me. My computer's not really old, it's got 4 2.0 gigahertz dual core CPUs, and 12 gigabytes of RAM.
Last edited by Silent-Hunter on Tue Nov 12, 2013 07:23, edited 1 time in total.

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

It should be fine with your specs.

The loading mechanism looks for a mod, and if it exists, it edits its ingredients to have a group in them, ie: group:food_milk

Try setting debug = false in the init.lua file (as it should be when it is released)
https://github.com/rubenwardy/food/blob ... it.lua#L14
Last edited by rubenwardy on Tue Nov 12, 2013 14:52, edited 1 time in total.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Jouster27
Member
Posts: 117
Joined: Fri Mar 29, 2013 14:16

by Jouster27 » Post

I tried this mod and I like the extra content it added but the crafting recipes are crazy. There are a LOT of alternate recipes for everything it adds and the recipes don't make any sense. Example: cocoa is made from ivory tusks and just about two of anything else.
Last edited by Jouster27 on Tue Nov 12, 2013 14:14, edited 1 time in total.

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

Cocoa is made like this:
-- apple --
apple -- apple
-- apple --
Or if you have farming plus, you can use that.

A craft recipe document is on the way.

The recipes are quite simple. If you have a mod that adds an ingredient, use that ingredient. If not, use the default inbuilt version.

For example with chicken soup, you can either get the meat from simplemobs, mobf or jkanimals. If you have none of those installed, use the inbuilt version crafted like this:

apple
dirt

and then cooked.

No idea where you got the ivory tusks from.
Last edited by rubenwardy on Tue Nov 12, 2013 14:51, edited 1 time in total.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

by Sokomine » Post

Perhaps you ought to add a replicator for those that don't have any real food sources installed. You could add apples/plants/leaves/wood or whatever is available and let the machine turn it into the desired food. Would also save people from having to remember strange receipes.
A list of my mods can be found here.

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

I am not sure what you mean. The mod already has default items if no food sources are available.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

by Sokomine » Post

Instead of crafting the food with all those receipes, I want to place protein sources into a machine, select the desired food item, and get it out of the machine. In Star Trek, those are called replicators. Machines that create food from other food by i.e. adding aroma and giving the mixture a certain shape might be a bit more realistic.
A list of my mods can be found here.

Azuna
Member
Posts: 89
Joined: Fri Sep 27, 2013 22:50

by Azuna » Post

Cooked egg = baked potato...
cooked tomato = baked potato....
unknown node = baked POTATO!
do you leik potatoes?

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

Looks like a bug in the system. Strange that cook tomatoes do that, as i have never heard of them. Same with egg.

Are you sure they are what.you think they are? Sometimes the inventory images get mixed up.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Azuna
Member
Posts: 89
Joined: Fri Sep 27, 2013 22:50

by Azuna » Post

rubenwardy wrote:Looks like a bug in the system. Strange that cook tomatoes do that, as i have never heard of them. Same with egg.

Are you sure they are what.you think they are? Sometimes the inventory images get mixed up.
I think so, the images look like that, but when we (my sister Num-Num and I) play with each other, we try to cook the eggs and get boiled eggs (we are very slow...) and it keeps turning into a potato (cooked) we eat it and it heals about the same as a potato... same with the tomatoes..... it confuses me.
Edit: i tried to cook the tomatoe to get tomatoe soup.. (IM SLOW!)
Last edited by Azuna on Fri Jan 03, 2014 15:59, edited 1 time in total.

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

What other mods are you using?
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Azuna
Member
Posts: 89
Joined: Fri Sep 27, 2013 22:50

by Azuna » Post

rubenwardy wrote:What other mods are you using?
nothing special, mtfoods, achievements, mobf, Vanessa's plant mod, and beekeeping.
other stuff too, but shouldnt affect the game, just fixes up some textures.

Azuna
Member
Posts: 89
Joined: Fri Sep 27, 2013 22:50

by Azuna » Post

I used apple cider from a different food mod and it gave me pasta... O_o

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

It sounds like you have a corrupted inventory image. If you hover over the apparent pasta, does it say something else? (See the mixed up inventory images bug)

Does it still happen when you disable this mod.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Azuna
Member
Posts: 89
Joined: Fri Sep 27, 2013 22:50

by Azuna » Post

rubenwardy wrote:
Does it still happen when you disable this mod.
Nope, and it says Apple Cider in a bottle...
And every node that does not have a recipe, from this mod or no, comes out as a baked potato.
Last edited by Azuna on Tue Feb 04, 2014 21:21, edited 1 time in total.

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

I have tried replicating your bug, but I can not.

1) Get the latest version of Minetest

2) Download the latest version of Food

3) Disable all mods apart from food (Click a world, then hit configure, then disable all),
(enable food of course)

4) Run Minetest

5) Try replicating the bug

If the bug happens: Post here the craft recipe you used, and stop.

If it doesn't: Go to 6

6) Enable all your mods

7) Try replicating the bug

If the bug happens: Post here your full mod list (manually type, or take screenshot showing all mods in mods/),
and the craft recipe you used.

If it doesn't: My fixed appeared to work! Post here saying so.
Last edited by rubenwardy on Wed Feb 05, 2014 09:34, edited 1 time in total.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

CitroPotter
Member
Posts: 50
Joined: Fri Jan 24, 2014 09:58

by CitroPotter » Post

[Request]
Really nice mod!
I love pizza and burger so if they get added,cool
Recipes:
Raw Pizza
A A A
x x x
B B B
A=Apple,x=nil,B=Bread.
Cooking it will give you Pizza!
Raw Burger:
B B B
L K L
B B B
B=bread,L=leaves,K=ketchup
Ketchup:
x T x
x T x
x x x
T=Tomato
x=nilness!
So if this request has been asked before, sorry but i have not read the whole topic.
Hi!

User avatar
Achilles
Member
Posts: 247
Joined: Sun Dec 15, 2013 11:55
In-game: Achilles
Location: Excuse Me???? -_-

by Achilles » Post

Pizza would be a great addition, as would burgers. If they are included, would there be any chance of including a wider variety of pizzas not just the one. Others could include:
Margarita
Pepperoni
etc...
The Ironic Thing About Common Sense Is That It Isn't Very Common

Jouster27
Member
Posts: 117
Joined: Fri Mar 29, 2013 14:16

by Jouster27 » Post

rubenwardy wrote:I have tried replicating your bug, but I can not.

1) Get the latest version of Minetest

2) Download the latest version of Food

3) Disable all mods apart from food (Click a world, then hit configure, then disable all),
(enable food of course)

4) Run Minetest

5) Try replicating the bug

If the bug happens: Post here the craft recipe you used, and stop.

If it doesn't: Go to 6

6) Enable all your mods

7) Try replicating the bug

If the bug happens: Post here your full mod list (manually type, or take screenshot showing all mods in mods/),
and the craft recipe you used.

If it doesn't: My fixed appeared to work! Post here saying so.
I'm sorry, the fix didn't work. I just went to GitHub and downloaded the latest master version of the food mod but when I view the crafting recipes for baked potato, Zeg's Crafting Guide shows there are a lot of alternate crafting recipes and most of them don't make any sense. Just the first five in the list, for example: ivory, gold lump, raw blackberry pie, coal lump and ostrich (f). The actual list of alternate crafting recipes is over 140 (I got tired of counting).

I'm running 4.9-dev and my current list of mods is:
3d_armor
animals_modpack
awards
bags
beds
boats
calinou_mods
campfire
castle
charcoal
darkage
doors
farming_plus
fences
ferns
fishing
glow
habitat
home_gui
inventory_plus
itemframes
moretrees
nether
prehistoric
quartz
random_buildings (just the cottages mod in the pack)
riesenpilz
ruins
scaffolding
specialties
stoneage
sumpf
throwing
titanium
unifieddyes
vines
zcg

I tried to review the code in the food mod's init.lua but I just don't understand the coding conventions well-enough to identify any possible causes.

Now, just in case it was Zeg's Crafting Guide displaying faulty information, I unloaded it and added craft_guide instead. When I did that and looked-up baked potato, it showed an unknown block that needed to be baked.

Obviously, I don't know why I'm getting odd effects with the baked potato but I suspect there is some issue with the food_potato group. Hopefully, all of this will help folks who actually understand modding to narrow-down the cause. I like having the extra foods and I'd miss being able to use this mod.
Last edited by Jouster27 on Sat Feb 22, 2014 00:27, edited 1 time in total.

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

It may be that craft recipe mods can not display groups as ingredients.

Have you tried actually making it in the crafting box?
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Jouster27
Member
Posts: 117
Joined: Fri Mar 29, 2013 14:16

by Jouster27 » Post

rubenwardy wrote:It may be that craft recipe mods can not display groups as ingredients.

Have you tried actually making it in the crafting box?
Yes, but it's been ages ago. You might be right but potatoes are the only recipe where I've noticed an issue like this. I'm fairly sure they're handling the wood groups ok, though.

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

Crafting Guide

A long time over due.

Food Recipes (PDF)
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
maier.nathan
Member
Posts: 40
Joined: Wed Dec 04, 2013 02:07
GitHub: npmaier
In-game: Bikemare EdgarLinton
Location: Myrtle Beach, South Carolina
Contact:

by maier.nathan » Post

I installed the latest food mod from git and I still get a baked potato from a carrot in the furnace and not a potato in the furnace. I looked over the code alot and I can't find the reason why.
A pivotal mod,
-Bikemare

User avatar
JPRuehmann
Member
Posts: 334
Joined: Fri Mar 21, 2014 21:40
Location: Germany
Contact:

by JPRuehmann » Post

Hello

There is an error in your code.
food/init.lua references in row 123 to animalmaterials:glas
that is not existing.

Thanks,
JPR

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests