WebHaven

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

WebHaven

Postby Razikus » Sat Nov 09, 2024 12:38 am

Hello
I published version 0.3 of WebHaven - open source haven headless server/webclient.
Image

Image

SpotterBot - https://www.youtube.com/watch?v=bDBx5iaBo34

VisionerBot - https://www.youtube.com/watch?v=DGr18I_FPvI



Version 0.4 https://github.com/Razikus/WebHaven/releases/tag/0.4

Key features added in 0.3:
  • Map parser
  • Flower menu handler
  • Initial resource system loader
  • Visioner program can now handle click and right click and flower menu
  • Forked original haven to be able to easier integrate changes

Key-developed stuff so far:
  • Removed all render references, client runs fully headless - requires only connection
  • Client connector is nearly 1:1 with original - I hardcoded certs for now
  • Automated login
  • Multiple session handling
  • WebSocket connection
  • Session persistence
  • Runs on my Raspberry PI
  • Simple real time frontend
  • PseudoWidget system - system that mimics capabilities of normal Haven widgets
  • PseudoObject system - system that mimics capabilities of handling "world" objects, and deltas
  • Program automation framework with Groovy support
  • Advanced state tracking (astronomy, resources)
  • Discord integration for monitoring

User perspective features:
  • Player tracking (ability to see players around the logged char)
  • Multiple chat widgets with ability to see kind people + send messages
  • Ability to login multiple characters, stop sessions
  • Ability to auto login character (env variables)
  • Resource spotting automation with Discord notifications
  • Real-time astronomy information
  • Ability to create custom automation programs using Groovy

Unhandled:
- Equipment data and so on
- Some messages

Example of automation capabilities (Groovy script):
Code: Select all
import tech.razikus.headlesshaven.bot.AbstractProgram
import tech.razikus.headlesshaven.WebHavenSessionManager
import tech.razikus.headlesshaven.bot.Credential

class MyScript extends AbstractProgram {
    MyScript(String progname, WebHavenSessionManager manager, Credential credential, HashMap<String, String> runningArgs) {
        super(progname, manager, credential, runningArgs)
    }

    @Override
    void sessionHandler() {

    }

    @Override
    HashSet<String> getRunningSessions() {
        return new HashSet<String>()
    }

    @Override
    void run() {
        println "TEST"
    }
}


Feel free to suggest features and improvements

Source code:
https://github.com/Razikus/WebHaven

Run with docker (best if you first check the sources at least)
Code: Select all
docker run -p 7901:7901 -d razikus/webhaven:0.4
Last edited by Razikus on Wed Dec 11, 2024 8:02 pm, edited 6 times in total.
User avatar
Razikus
 
Posts: 27
Joined: Sun Apr 10, 2011 8:04 pm

Re: WebHaven

Postby Razikus » Sat Nov 09, 2024 10:14 am

0.4:

Done:
- AutoAltCreation https://www.youtube.com/watch?v=_gAkliGh4cw
- WidgetCallbacks

Todo:
- inventory management
- opening containers like cupboard
Last edited by Razikus on Fri Nov 15, 2024 7:51 pm, edited 6 times in total.
User avatar
Razikus
 
Posts: 27
Joined: Sun Apr 10, 2011 8:04 pm

Re: WebHaven

Postby Sevenless » Sat Nov 09, 2024 12:05 pm

Spotting bots:
logs in, checks for an animal/forageable on screen, pushes a message to discord if it sees one. Logs off when the target(s) leaves render or dies.

Useful for cave clay, mammoth and cave angler spawning. Don't currently have a client capable of it and am sad because of it.
Lucky: haven is so quirky
Lucky: can be so ugly, can be so heartwarming
Sevenless: it is life

The Art of Herding
W16 Casting Rod Cheatsheet
Explanation of the logic behind the cooking system
User avatar
Sevenless
 
Posts: 7609
Joined: Fri Mar 04, 2011 3:55 am
Location: Canada

Re: WebHaven

Postby Razikus » Sun Nov 10, 2024 11:22 pm

Hey I just added this bot
Actually I totally abstracted the "programs" idea

Check this video
https://www.youtube.com/watch?v=bDBx5iaBo34

Soon I will post a new release of WH


Released
https://github.com/Razikus/WebHaven/releases/tag/0.2
User avatar
Razikus
 
Posts: 27
Joined: Sun Apr 10, 2011 8:04 pm

Re: WebHaven

Postby Razikus » Mon Nov 11, 2024 2:25 pm

I just pushed a VisionerProgram - a program which allow to visualise what is there around you in simple 2D canvas

I also added ability to track coordinates of pseudoobjects

https://www.youtube.com/watch?v=DGr18I_FPvI
User avatar
Razikus
 
Posts: 27
Joined: Sun Apr 10, 2011 8:04 pm

Re: WebHaven

Postby gravesmerch » Mon Nov 11, 2024 2:55 pm

eventually this could become the holy grail of haven base maintenance... imagine using your phone's browser to check your farmer, collect, plant, restore curios..
gravesmerch
 
Posts: 340
Joined: Thu Sep 08, 2022 6:13 pm

Re: WebHaven

Postby Razikus » Mon Nov 11, 2024 7:38 pm

Maybe!

Pong just started to walk!

Image
User avatar
Razikus
 
Posts: 27
Joined: Sun Apr 10, 2011 8:04 pm

Re: WebHaven

Postby noindyfikator » Mon Nov 11, 2024 7:58 pm

Already looks better than default client, a lot of work there I can see ;p
User avatar
noindyfikator
 
Posts: 1452
Joined: Fri Jul 15, 2011 11:10 am

Re: WebHaven

Postby gravesmerch » Mon Nov 11, 2024 10:09 pm

i'm loving the little dots
gravesmerch
 
Posts: 340
Joined: Thu Sep 08, 2022 6:13 pm

Re: WebHaven

Postby rfxDarth » Tue Nov 12, 2024 1:40 am

Razikus wrote:Maybe!

Pong just started to walk!

Image


Nice! Looks just like what I had before moving over to 3D. Good lord, it's been 5 years and I haven't yet made the thing public...

Hit me up if you hit any barriers though, maybe I could be of help overcoming some things. Or let me know if you figure out the last byte in clicking gobs wdgmsgs... or if have any idea how to handle code in resource objects, as I still haven't.
User avatar
rfxDarth
 
Posts: 69
Joined: Tue Mar 09, 2010 4:13 pm

Next

Return to The Wizards' Tower

Who is online

Users browsing this forum: Claude [Bot] and 73 guests