Food Service

Forum for alternative clients, mods & discussions on the same.

Food Service

Postby APXEOLOG » Tue Mar 03, 2020 8:31 pm

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: https://www.havenandhearth.com/forum/vi ... 49&t=68530
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.
User avatar
APXEOLOG
 
Posts: 1267
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Food Service

Postby shubla » Wed Mar 04, 2020 9:17 am

Cool stuff, but does it send satiations?
Image
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
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Food Service

Postby APXEOLOG » Wed Mar 04, 2020 9:55 am

shubla wrote:Cool stuff, but does it send satiations?


But with new satiation system satiation is based on a Food Name, no?
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.
User avatar
APXEOLOG
 
Posts: 1267
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Food Service

Postby shubla » Wed Mar 04, 2020 11:18 am

APXEOLOG wrote:
shubla wrote:Cool stuff, but does it send satiations?


But with new satiation system satiation is based on a Food Name, no?

Oh woops, I may not have played for abit.
Image
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
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Food Service

Postby not_a_cat » Wed Mar 04, 2020 12:48 pm

AFAIK old Satiations still matter: they define what drink is used to "soft down" certain food satiation gain
not_a_cat
 
Posts: 158
Joined: Fri Nov 25, 2016 3:41 pm

Re: Food Service

Postby APXEOLOG » Thu Mar 05, 2020 9:11 pm

Created new frontend app using Angular. Added nice search. Check at https://food.havenandhearth.link/

Image

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.
User avatar
APXEOLOG
 
Posts: 1267
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Food Service

Postby shubla » Thu Mar 05, 2020 10:11 pm

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.
Image
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
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Food Service

Postby APXEOLOG » Thu Mar 05, 2020 10:36 pm

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

shubla 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.

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 backup
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.
User avatar
APXEOLOG
 
Posts: 1267
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Food Service

Postby sabinati » Fri Mar 06, 2020 8:54 pm

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.
User avatar
sabinati
 
Posts: 15497
Joined: Mon Jul 13, 2009 4:25 am
Location: View active topics

Re: Food Service

Postby shubla » Sat Mar 07, 2020 4:47 pm

Using arrow keys to switch pages would be ccool.
Image
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
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Next

Return to The Wizards' Tower

Who is online

Users browsing this forum: Naylok and 11 guests