[Modpack] Food [2.3] [food][food_basic]
Re: [Mod] Food [2.3] [food] – restructuring
You can, the above code simply checks for a Mobs mod and lets you know which one is running...
- 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
Napiophelios wrote:This mod wont load unless the "Enable Damage" option is checked....
Sorry I use Blockman's BetterHUD mod...its a feature not a glitch :)rubenwardy wrote:I do not have that error. Please post a debug log and a list of your mods installed.
Re: [Mod] Food [2.3] [food] – restructuring
Blockmen. He had insisted.
Re: [Mod] Food [2.3] [food] – restructuring
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.
Happy to oblige! :-)rubenwardy wrote:I do not have that error. Please post a debug log and a list of your mods installed.
+
Spoiler
+
Spoiler
--
This is NOT a sig.
This is NOT a sig.
Re: [Mod] Food [2.3] [food] – restructuring
viewtopic.php?f=9&t=10187&hilit=mtdad
Are you interested in adding support for this farming mod, Rubenwardy?
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/
- rubenwardy
- Moderator
- Posts: 6389
- 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
Sure.
Core Developer | Donate | Join the Matrix chat! | My Twitter | Mods | Minetest Modding Book
Hello profile reader
Hello profile reader
Re: [Mod] Food [2.3] [food] – restructuring
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....
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....
- 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
you renamed the mod folder and placed it inside another folder for some reasongumangel wrote: idk what i have done...but the mod is not working anymore...it used to....
- rubenwardy
- Moderator
- Posts: 6389
- 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
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.
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.
Core Developer | Donate | Join the Matrix chat! | My Twitter | Mods | Minetest Modding Book
Hello profile reader
Hello profile reader
- 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
oops sorry for the disinfo
I am still using 2.3
no mod pack..unless I changed something (probably)
I am still using 2.3
no mod pack..unless I changed something (probably)
Re: [Mod] Food [2.3] [food] – restructuring
thank you really much! :)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.
- rubenwardy
- Moderator
- Posts: 6389
- 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
Fixed. It was a dependency problem caused when I moved it into a mod pack.
Core Developer | Donate | Join the Matrix chat! | My Twitter | Mods | Minetest Modding Book
Hello profile reader
Hello profile reader
Re: [Mod] Food [2.3] [food] – restructuring
thank you really much! u are amazing! God bless you!rubenwardy wrote:Fixed. It was a dependency problem caused when I moved it into a mod pack.
- TheMCPenguin
- Member
- Posts: 13
- Joined: Sat May 30, 2015 13:38
- In-game: TheMCPenguin
Re: [Mod] Food [2.3] [food] – restructuring
Say... Does anyone know what "Rainbow Juice" does? I have rainbows, but I don't know if it's worth it...
- rubenwardy
- Moderator
- Posts: 6389
- 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
1 rainbow makes 99 rainbow juice. Each one cures all health.TheMCPenguin wrote:Say... Does anyone know what "Rainbow Juice" does? I have rainbows, but I don't know if it's worth it...
Core Developer | Donate | Join the Matrix chat! | My Twitter | Mods | Minetest Modding Book
Hello profile reader
Hello profile reader
- TheMCPenguin
- Member
- Posts: 13
- Joined: Sat May 30, 2015 13:38
- In-game: TheMCPenguin
Re: [Mod] Food [2.3] [food] – restructuring
OK, thanks! I guess it IS worth it! =D
- 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]
Ref the intro page:
The a.m. craft guide seems to unavailable and I get an ERROR 404 from dropbox.com.rubenwardy wrote: Create a new folder in mods/minetest called "food" and extract the .zip's contents in to it.
Documentation: Craft Guide (PDF).
Enjoying Minetest by MacPorts and/or Neoascetic's builds on Mac OS X with a local server and several modifications.
- 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]
Ref the intro page:
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:rubenwardy wrote:...
Mod Support
Supports (but does not require) the following mods, and you can use any of these at the same time:
...
- Farming: farming, farming_plus, DocFarming, Aeroponics (plantlib), JkFarming, Plant Life
, Farming Redo- Animals: Simple Mobs, modf, my_mobs, JkAnimals
- Cutlery: vessels, bucket
- Food: MtFoods*
- Others: better_hud, default (for inbuilt recipes when no other mods are installed)
Please feel free to suggest new foods. Bug reports are also appreciated.
- 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?
Enjoying Minetest by MacPorts and/or Neoascetic's builds on Mac OS X with a local server and several modifications.
- rubenwardy
- Moderator
- Posts: 6389
- 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]
[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.
It does support mobs redo, and worked last time I checked.
Core Developer | Donate | Join the Matrix chat! | My Twitter | Mods | Minetest Modding Book
Hello profile reader
Hello profile reader
- 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]
The mod seems to work pretty, however there is a general warning:
Loaded with flags load_mod_food = true and load_mod_food_basic = true and running.
Apart from the warning:
Thank you very much.
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.
Apart from the warning:
- Food 2.3 works nicely with the hud_hunger modpack as of 2016-01-08 master.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 mobs_redo (i.e. mobs, monster, animal, npc) mod compilation as of 2016-10-31 master.rubenwardy wrote:It does support mobs redo, and worked last time I checked.
Thank you very much.
Enjoying Minetest by MacPorts and/or Neoascetic's builds on Mac OS X with a local server and several modifications.
- 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]
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.
- Andrey01
- Member
- Posts: 2461
- Joined: Wed Oct 19, 2016 15:18
- GitHub: Andrey2470T
- In-game: Andrey01
- Location: Russia, Moscow
Re: [Modpack] Food [2.3] [food][food_basic]
Food looks like appetizing and tasty!
Critical error
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.
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
Re: [Modpack] Food [2.3] [food][food_basic]
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest