Hello guys, i've made another project. Now i want to present an automatic food information gathering service.
I know there are some good food-related services already exist for H&H, but as far as i know they all updated manually
The idea is pretty simple - client checks tooltip information for each item and sends anything containing FEPs.
Of course no excessive information sent, only food&resource name, ingredients, energy/hunger values and base FEP
The information then will be received by the service, stored and available for everyone to use without any limitations
You will be able to check food through the web app and also the data in json format can be used by other services if they'd like to
For now everything already running and you can check it here: https://food.havenandhearth.link/
Sadly the wev part is still missing a lot of functionality and i will appreciate if community would like to improve it
The data can be found here (check github for data format info): https://food.havenandhearth.link/data/food-info.json
You can find more information and source code on github: https://github.com/APXEOLOG/hnh-food-service
Sample integration with Amber's client: https://github.com/APXEOLOG/amber/pull/2
Deprecated. Find similar tool here: viewtopic.php?f=49&t=68530
-
APXEOLOG
- Posts: 1300
- Joined: Fri Apr 23, 2010 7:58 am
- Location: Somewhere on Earth
Food Service
Last edited by APXEOLOG on Fri Apr 02, 2021 3:16 pm, edited 1 time in total.
W10 Meme Plot | W9 Mantis Garden | W8 Core | W7 Ofir | W6 the City of Dis | W5 Vitterstad | W4 A.D. | W3 Mirniy
jorb wrote:All your characters will be deleted, and I will level every village any one of them were ever members of.
-
shubla
- Posts: 13041
- Joined: Sun Nov 03, 2013 11:26 am
- Location: Finland
Re: Food Service
Cool stuff, but does it send satiations?

I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
-
APXEOLOG
- Posts: 1300
- Joined: Fri Apr 23, 2010 7:58 am
- Location: Somewhere on Earth
Re: Food Service
But with new satiation system satiation is based on a Food Name, no?shubla wrote:Cool stuff, but does it send satiations?
W10 Meme Plot | W9 Mantis Garden | W8 Core | W7 Ofir | W6 the City of Dis | W5 Vitterstad | W4 A.D. | W3 Mirniy
jorb wrote:All your characters will be deleted, and I will level every village any one of them were ever members of.
-
shubla
- Posts: 13041
- Joined: Sun Nov 03, 2013 11:26 am
- Location: Finland
Re: Food Service
Oh woops, I may not have played for abit.APXEOLOG wrote:But with new satiation system satiation is based on a Food Name, no?shubla wrote:Cool stuff, but does it send satiations?

I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
-
not_a_cat
- Posts: 158
- Joined: Fri Nov 25, 2016 3:41 pm
Re: Food Service
AFAIK old Satiations still matter: they define what drink is used to "soft down" certain food satiation gain
-
APXEOLOG
- Posts: 1300
- Joined: Fri Apr 23, 2010 7:58 am
- Location: Somewhere on Earth
Re: Food Service
Created new frontend app using Angular. Added nice search. Check at https://food.havenandhearth.link/

You can click on help button to see that help again

You can click on help button to see that help again
W10 Meme Plot | W9 Mantis Garden | W8 Core | W7 Ofir | W6 the City of Dis | W5 Vitterstad | W4 A.D. | W3 Mirniy
jorb wrote:All your characters will be deleted, and I will level every village any one of them were ever members of.
-
shubla
- Posts: 13041
- Joined: Sun Nov 03, 2013 11:26 am
- Location: Finland
Re: Food Service
Very cool, but sadly there is a chance of abuse if you receive data from everyone I think!
I was thinking of integrating it to my client and sending all data to your API, but abuse is a risk that I fear may render the data useless.
Perhaps IP addresses could be included with submissions to make removing of faulty data easier, cannot come up with any other method to prevent it.
I was thinking of integrating it to my client and sending all data to your API, but abuse is a risk that I fear may render the data useless.
Perhaps IP addresses could be included with submissions to make removing of faulty data easier, cannot come up with any other method to prevent it.

I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
-
APXEOLOG
- Posts: 1300
- Joined: Fri Apr 23, 2010 7:58 am
- Location: Somewhere on Earth
Re: Food Service
Frontend
Added `% fep from total feps` search mod. Example: prc:100% will show food with only PRC feps. You can also combine it same way as any other terms and use comparison operators (i.e. int:>50%)
Integration
Fixed issue with hunger rounding and also disabled integration for localized clients (non-eng language brings a lot of problems, so i decided to disable it)
Commit: https://github.com/APXEOLOG/amber/pull/ ... 60da4ae10f
Added `% fep from total feps` search mod. Example: prc:100% will show food with only PRC feps. You can also combine it same way as any other terms and use comparison operators (i.e. int:>50%)
Integration
Fixed issue with hunger rounding and also disabled integration for localized clients (non-eng language brings a lot of problems, so i decided to disable it)
Commit: https://github.com/APXEOLOG/amber/pull/ ... 60da4ae10f
I don't really want to add IP logging or smth like that. Maybe we can try to trust into community. I'd like to roll it out into masses and see. If we'll spot that comeone intentionally harm the database then i can stop the receiving process and restore from backupshubla wrote:Very cool, but sadly there is a chance of abuse if you receive data from everyone I think!
I was thinking of integrating it to my client and sending all data to your API, but abuse is a risk that I fear may render the data useless.
Perhaps IP addresses could be included with submissions to make removing of faulty data easier, cannot come up with any other method to prevent it.
W10 Meme Plot | W9 Mantis Garden | W8 Core | W7 Ofir | W6 the City of Dis | W5 Vitterstad | W4 A.D. | W3 Mirniy
jorb wrote:All your characters will be deleted, and I will level every village any one of them were ever members of.
-
sabinati
- Posts: 15527
- Joined: Mon Jul 13, 2009 4:25 am
- Location: View active topics
Re: Food Service
interesting project. you probably already noticed a frontend issue when you select view for more than 10 or 15, the header is no longer visible.
-
shubla
- Posts: 13041
- Joined: Sun Nov 03, 2013 11:26 am
- Location: Finland
Re: Food Service
Using arrow keys to switch pages would be ccool.

I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client