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

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

Code: Select all

balaam@Sophie:~/Documents/git/Minetest/bin$ ./minetest --version
Minetest 0.4.10-127-g173beee-dirty
Using Irrlicht 1.8.1
Build info: VER=0.4.10-127-g173beee-dirty BUILD_TYPE=Release RUN_IN_PLACE=1 USE_GETTEXT=0 USE_SOUND=1 USE_CURL=1 USE_FREETYPE=1 USE_LUAJIT=0 STATIC_SHAREDIR=.

balaam@Sophie:~/Documents/git/Minetest/bin$ ./minetest
Irrlicht log: Irrlicht Engine version 1.8.1
Irrlicht log: Linux 3.16.0-20-generic #27-Ubuntu SMP Wed Oct 1 17:35:12 UTC 2014 x86_64
Irrlicht log: Using renderer: OpenGL 4.4.0
Irrlicht log: GeForce GTS 450/PCIe/SSE2: NVIDIA Corporation
Irrlicht log: OpenGL driver version is 1.2 or better.
Irrlicht log: GLSL version: 4.4
[TNT] Loaded!
06:09:35: ACTION[main]: signs loaded
06:09:35: ACTION[main]: [playereffects] playereffects.mt opened.
[playereffects] playereffects.mt successfully read.
[playereffects] inactive_effects = {

}
[playereffects] last_effect_id = 0
06:09:35: ACTION[main]: [playereffects] Effect type pepspeedplus registered!
06:09:35: ACTION[main]: [playereffects] Effect type pepspeedminus registered!
06:09:35: ACTION[main]: [playereffects] Effect type pepspeedreset registered!
06:09:35: ACTION[main]: [playereffects] Effect type pepjumpplus registered!
06:09:35: ACTION[main]: [playereffects] Effect type pepjumpminus registered!
06:09:35: ACTION[main]: [playereffects] Effect type pepjumpreset registered!
06:09:35: ACTION[main]: [playereffects] Effect type pepgrav0 registered!
06:09:35: ACTION[main]: [playereffects] Effect type pepgravreset registered!
06:09:35: ACTION[main]: [playereffects] Effect type pepregen registered!
06:09:35: ACTION[main]: [playereffects] Effect type pepregen2 registered!
06:09:35: ACTION[main]: [playereffects] Effect type pepbreath registered!
[Plantlife Library] Loaded
[Moretrees] Loaded (2013-02-11)
Food Mod - Version 2.3
06:09:35: ERROR[main]: ========== ERROR FROM LUA ===========
06:09:35: ERROR[main]: Failed to load and run script from 
06:09:35: ERROR[main]: /home/balaam/Documents/git/Minetest/bin/../games/minetestcraft/mods/1_minetestcraft_pack/food/init.lua:
06:09:35: ERROR[main]: ...minetestcraft/mods/1_minetestcraft_pack/food/api.lua:117: attempt to call field 'item_eat' (a nil value)
06:09:35: ERROR[main]: stack traceback:
06:09:35: ERROR[main]:  ...minetestcraft/mods/1_minetestcraft_pack/food/api.lua:117: in function 'item_eat'
06:09:35: ERROR[main]:  ...craft/mods/1_minetestcraft_pack/food/ingredients.lua:83: in function 'func'
06:09:35: ERROR[main]:  ...minetestcraft/mods/1_minetestcraft_pack/food/api.lua:109: in function 'module'
06:09:35: ERROR[main]:  ...craft/mods/1_minetestcraft_pack/food/ingredients.lua:78: in main chunk
06:09:35: ERROR[main]:  [C]: in function 'dofile'
06:09:35: ERROR[main]:  ...inetestcraft/mods/1_minetestcraft_pack/food/init.lua:13: in main chunk
06:09:35: ERROR[main]: ======= END OF ERROR FROM LUA ========
06:09:35: ERROR[main]: Server: Failed to load and run /home/balaam/Documents/git/Minetest/bin/../games/minetestcraft/mods/1_minetestcraft_pack/food/init.lua
06:09:35: ERROR[main]: ModError: ModError: Failed to load and run /home/balaam/Documents/git/Minetest/bin/../games/minetestcraft/mods/1_minetestcraft_pack/food/init.lua
balaam@Sophie:~/Documents/git/Minetest/bin$
Spoiler

Code: Select all

3D Armor
3D Torches
4mcac
Craftingpack
Better HUD
mg
RailCorridors
Drop on Die
Item Drop
Beds
Plants and Trees		(a selection of mods from plantlife)
  |_ Flowers Plus
  |_ Junglegrass
  |_ More trees
  |_ plants_lib
Stackable buckets
Ambience
Signs
Plus the following mods from minetest_game:

Code: Select all

boats
bucket
default
doors
dye
farming
fire
flowers
give_initial_stuff
screwdriver
sethome
stairs
tnt
vessels
wool
xpanes
My game uses the creative mod from the Craftingpack modpack, and the bones mod was removed in favor of drop_on_die
--
This is NOT a sig.

User avatar
Inocudom
Member
Posts: 3121
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?

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:

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

by rubenwardy » Post

Sure.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

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: 1035
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: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, 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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Napiophelios
Member
Posts: 1035
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: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, 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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

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: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, 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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

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: 263
Joined: Thu Oct 20, 2016 16:49
Location: DE, European Union

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.

User avatar
snoopy
Member
Posts: 263
Joined: Thu Oct 20, 2016 16:49
Location: DE, European Union

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.

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:

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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
snoopy
Member
Posts: 263
Joined: Thu Oct 20, 2016 16:49
Location: DE, European Union

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.

User avatar
snoopy
Member
Posts: 263
Joined: Thu Oct 20, 2016 16:49
Location: DE, European Union

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

User avatar
Andrey01
Member
Posts: 2574
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: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

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.

Merak
Member
Posts: 116
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 0 guests