[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: 1035
- 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.
Plus the following mods from minetest_game:
My game uses the creative mod from the Craftingpack modpack, and the bones mod was removed in favor of drop_on_die
Happy to oblige! :-)rubenwardy wrote:I do not have that error. Please post a debug log and a list of your mods installed.
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
Code: Select all
boats
bucket
default
doors
dye
farming
fire
flowers
give_initial_stuff
screwdriver
sethome
stairs
tnt
vessels
wool
xpanes
--
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?
[BitChute: https://www.bitchute.com/channel/fCcBQxrYQjNX/] [Rumble: https://rumble.com/user/HPoorHMagentaHChildH]
- 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
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: 1035
- 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: 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
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.
- 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
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: 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
Fixed. It was a dependency problem caused when I moved it into a mod pack.
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: 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
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...
- 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
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).
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?
- 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]
[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.
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.
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
- 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]
Food looks like appetizing and tasty!
- Wuzzy
- Member
- Posts: 4786
- Joined: Mon Sep 24, 2012 15:01
- GitHub: Wuzzy2
- IRC: Wuzzy
- In-game: Wuzzy
- Contact:
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.
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 2 guests