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

User avatar
TenPlus1
Member
Posts: 2929
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Food [2.3] [food] – restructuring

by TenPlus1 » Post

You can, the above code simply checks for a Mobs mod and lets you know which one is running...

User avatar
Napiophelios
Member
Posts: 1025
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Food [2.3] [food] – restructuring

by Napiophelios » Post

Napiophelios wrote:This mod wont load unless the "Enable Damage" option is checked....
rubenwardy wrote:I do not have that error. Please post a debug log and a list of your mods installed.
Sorry I use Blockman's BetterHUD mod...its a feature not a glitch :)

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

Re: [Mod] Food [2.3] [food] – restructuring

by 4aiman » Post

Blockmen. He had insisted.

User avatar
Fritigern
Member
Posts: 43
Joined: Mon Sep 29, 2014 11:01
In-game: Fritigern
Location: Spokane, WA

Re: [Mod] Food [2.3] [food] – restructuring

by Fritigern » Post

I too get that if I turn off damage, that the food mod refuses to play nice. I don't think this was supposed to happen.
rubenwardy wrote:I do not have that error. Please post a debug log and a list of your mods installed.
Happy to oblige! :-)
+ Spoiler
+ Spoiler
--
This is NOT a sig.

User avatar
Inocudom
Member
Posts: 3098
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Food [2.3] [food] – restructuring

by Inocudom » Post

viewtopic.php?f=9&t=10187&hilit=mtdad
Are you interested in adding support for this farming mod, Rubenwardy?
You can now find my videos at BitChute: https://www.bitchute.com/channel/some_cheeky_jinuskian/

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

Re: [Mod] Food [2.3] [food] – restructuring

by rubenwardy » Post

Sure.

gumangel
Member
Posts: 23
Joined: Thu Jan 01, 2015 21:44
In-game: LaA

Re: [Mod] Food [2.3] [food] – restructuring

by gumangel » Post

12:51:10: ERROR[main]: ========== ERROR FROM LUA ===========
12:51:10: ERROR[main]: Failed to load and run script from
12:51:10: ERROR[main]: D:\Minetest\minetest-0.4.10-64bit\bin\..\mods\food\food_basic\init.lua:
12:51:10: ERROR[main]: ...est\minetest-0.4.10-64bit\bin\..\mods\food\food\init.lua:117: attempt to call field 'item_eat' (a nil value)
12:51:10: ERROR[main]: stack traceback:
12:51:10: ERROR[main]: ...est\minetest-0.4.10-64bit\bin\..\mods\food\food\init.lua:117: in function 'item_eat'
12:51:10: ERROR[main]: ...0.4.10-64bit\bin\..\mods\food\food_basic/ingredients.lua:99: in function 'func'
12:51:10: ERROR[main]: ...est\minetest-0.4.10-64bit\bin\..\mods\food\food\init.lua:109: in function 'module'
12:51:10: ERROR[main]: ...0.4.10-64bit\bin\..\mods\food\food_basic/ingredients.lua:94: in main chunk
12:51:10: ERROR[main]: [C]: in function 'dofile'
12:51:10: ERROR[main]: ...netest-0.4.10-64bit\bin\..\mods\food\food_basic\init.lua:12: in main chunk
12:51:10: ERROR[main]: ======= END OF ERROR FROM LUA ========
12:51:10: ERROR[main]: Server: Failed to load and run D:\Minetest\minetest-0.4.10-64bit\bin\..\mods\food\food_basic\init.lua
12:51:10: ERROR[main]: ModError: ModError: Failed to load and run D:\Minetest\minetest-0.4.10-64bit\bin\..\mods\food\food_basic\init.lua

idk what i have done...but the mod is not working anymore...it used to....

User avatar
Napiophelios
Member
Posts: 1025
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Food [2.3] [food] – restructuring

by Napiophelios » Post

gumangel wrote: idk what i have done...but the mod is not working anymore...it used to....
you renamed the mod folder and placed it inside another folder for some reason

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

Re: [Mod] Food [2.3] [food] – restructuring

by rubenwardy » Post

Looks like the better hud API has changed.

As of 2.3, the food API is in 'food' and basic foods are in 'food_basic'. They're both supplied in a mod pack.

I'll look into this this afternoon.

User avatar
Napiophelios
Member
Posts: 1025
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Food [2.3] [food] – restructuring

by Napiophelios » Post

oops sorry for the disinfo
I am still using 2.3
no mod pack..unless I changed something (probably)

gumangel
Member
Posts: 23
Joined: Thu Jan 01, 2015 21:44
In-game: LaA

Re: [Mod] Food [2.3] [food] – restructuring

by gumangel » Post

rubenwardy wrote:Looks like the better hud API has changed.

As of 2.3, the food API is in 'food' and basic foods are in 'food_basic'. They're both supplied in a mod pack.

I'll look into this this afternoon.
thank you really much! :)

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

Re: [Mod] Food [2.3] [food] – restructuring

by rubenwardy » Post

Fixed. It was a dependency problem caused when I moved it into a mod pack.

gumangel
Member
Posts: 23
Joined: Thu Jan 01, 2015 21:44
In-game: LaA

Re: [Mod] Food [2.3] [food] – restructuring

by gumangel » Post

rubenwardy wrote:Fixed. It was a dependency problem caused when I moved it into a mod pack.
thank you really much! u are amazing! God bless you!

User avatar
TheMCPenguin
Member
Posts: 13
Joined: Sat May 30, 2015 13:38
In-game: TheMCPenguin

Re: [Mod] Food [2.3] [food] – restructuring

by TheMCPenguin » Post

Say... Does anyone know what "Rainbow Juice" does? I have rainbows, but I don't know if it's worth it...

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

Re: [Mod] Food [2.3] [food] – restructuring

by rubenwardy » Post

TheMCPenguin wrote:Say... Does anyone know what "Rainbow Juice" does? I have rainbows, but I don't know if it's worth it...
1 rainbow makes 99 rainbow juice. Each one cures all health.

User avatar
TheMCPenguin
Member
Posts: 13
Joined: Sat May 30, 2015 13:38
In-game: TheMCPenguin

Re: [Mod] Food [2.3] [food] – restructuring

by TheMCPenguin » Post

OK, thanks! I guess it IS worth it! =D

User avatar
snoopy
Member
Posts: 84
Joined: Thu Oct 20, 2016 16:49
GitHub: Zweihorn
Location: DE, European Union
Contact:

Re: [Modpack] Food [2.3] [food][food_basic]

by snoopy » Post

Ref the intro page:
rubenwardy wrote: Create a new folder in mods/minetest called "food" and extract the .zip's contents in to it.
Documentation: Craft Guide (PDF).
The a.m. craft guide seems to unavailable and I get an ERROR 404 from dropbox.com.
Enjoying Minetest by MacPorts and/or Neoascetic's builds on Mac OS X with a local server and several modifications.

User avatar
snoopy
Member
Posts: 84
Joined: Thu Oct 20, 2016 16:49
GitHub: Zweihorn
Location: DE, European Union
Contact:

Re: [Modpack] Food [2.3] [food][food_basic]

by snoopy » Post

Ref the intro page:
rubenwardy wrote:...

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

Please feel free to suggest new foods. Bug reports are also appreciated.
The intro looks nice and the active forum is promising. After using Minetest without food 2.3 for quite some time I wonder if this mod supports:
  • The hud_hunger modpack? The intro is referring better_hud and this may be "Better HUD and hunger [2.x.1] [hud][hunger]" but I want to avoid a misunderstanding.
  • The mobs_redo mods compilation?
I have a LAN multi-player world running with several mods and would like to try food 2.3 now. However, I certainly not like to change from the two a.m. mods.
Enjoying Minetest by MacPorts and/or Neoascetic's builds on Mac OS X with a local server and several modifications.

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

Re: [Modpack] Food [2.3] [food][food_basic]

by rubenwardy » Post

[hud][hunger] used to be one mod called [better_hud]. I think the food mod supports the new version, although I haven't checked

It does support mobs redo, and worked last time I checked.

User avatar
snoopy
Member
Posts: 84
Joined: Thu Oct 20, 2016 16:49
GitHub: Zweihorn
Location: DE, European Union
Contact:

Re: [Modpack] Food [2.3] [food][food_basic]

by snoopy » Post

The mod seems to work pretty, however there is a general warning:

Code: Select all

Food Mod - Version 2.3
2016-11-03 16:21:06: WARNING[Main]: Assignment to undeclared global "res" inside a function at ...ary/Application Support/minetest/mods/food/food/init.lua:101.
Loaded with flags load_mod_food = true and load_mod_food_basic = true and running.

Apart from the warning:
rubenwardy wrote:[hud][hunger] used to be one mod called [better_hud]. I think the food mod supports the new version, although I haven't checked
- Food 2.3 works nicely with the hud_hunger modpack as of 2016-01-08 master.
rubenwardy wrote:It does support mobs redo, and worked last time I checked.
- Food 2.3 works nicely with the mobs_redo (i.e. mobs, monster, animal, npc) mod compilation as of 2016-10-31 master.

Thank you very much.
Enjoying Minetest by MacPorts and/or Neoascetic's builds on Mac OS X with a local server and several modifications.

User avatar
snoopy
Member
Posts: 84
Joined: Thu Oct 20, 2016 16:49
GitHub: Zweihorn
Location: DE, European Union
Contact:

Re: [Modpack] Food [2.3] [food][food_basic]

by snoopy » Post

Presumably, just adding a "local" as local res = name:gsub('%"', '') in file "init.lua" line 101 should fix it?

Code: Select all

function food.strip_name(name)
	res = name:gsub('%"', '')
	if res:sub(1, 1) == ":" then
		res = res:sub(2, #res)
		--table.concat{res:sub(1, 1-1), "", res:sub(1+1)}
	end
	for str in string.gmatch(res, "([^ ]+)") do
		if str ~= " " and str ~= nil then
			res = str
			break
		end
	end
	if not res then
		res = ""
	end
	return res
end
Enjoying Minetest by MacPorts and/or Neoascetic's builds on Mac OS X with a local server and several modifications.

User avatar
Andrey01
Member
Posts: 2459
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: [Modpack] Food [2.3] [food][food_basic]

by Andrey01 » Post

Food looks like appetizing and tasty!

User avatar
Wuzzy
Member
Posts: 4128
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Critical error

by Wuzzy » Post

food_basic breaks down when both intllib and mod security are enabled. This is because of an outdated intllib boilerplate code, which has a dofile to a directory outside this mod.
See here for the new boilerplate code:
https://github.com/minetest-mods/intllib

You seem to use a very odd boilerplate code for intllib, by the way.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

Merak
Member
Posts: 106
Joined: Sat Nov 05, 2016 20:34

Re: [Modpack] Food [2.3] [food][food_basic]

by Merak » Post

I have cows in the game from mod mobs_animal, I think of Mobs Redo.
From food_basic, I have a recipe for milk made from sand and water bucket.
How about having food_basic disable that recipe, when there are cows in the game from mobs_animal?

From food_sweet, I have walnuts from sand, but I suppose I don't know another source for walnuts.

I still wish for satiety from the foods.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests