Unofficial MFBot Update

Was auch immer an Tools für Shakes&Fidget aufkommen, hier können sie vorgestellt werden.
denamon
Beiträge: 64
Registriert: Mi 6. Mär 2024, 16:15
Hat sich bedankt: 41 Mal
Danksagung erhalten: 12 Mal

Re: Unofficial MFBot Update

Beitrag von denamon »

xnestix hat geschrieben: Fr 30. Okt 2026, 18:54 Just downloaded .36 and was surprised to not see the class world dungeons included, can I somehow add them manually ?
You cannot add them manually, they should be out in .37
Daddy Good
Beiträge: 29
Registriert: Sa 22. Jul 2023, 18:30
Hat sich bedankt: 45 Mal
Danksagung erhalten: 4 Mal

Re: Unofficial MFBot Update

Beitrag von Daddy Good »

Character > enable skilling
I enabled it, but the skill development still doesn't work for me.
Morenaowo
Beiträge: 29
Registriert: Mi 26. Nov 2025, 18:07
Hat sich bedankt: 2 Mal
Danksagung erhalten: 1 Mal

Re: Unofficial MFBot Update

Beitrag von Morenaowo »

Daddy Good hat geschrieben: Sa 31. Okt 2026, 07:01 Character > enable skilling
I enabled it, but the skill development still doesn't work for me.
You had “skill after each quest” selected in the screenshot. Change to each cityguard and let bot send your character on cityguard then that should works
Daddy Good
Beiträge: 29
Registriert: Sa 22. Jul 2023, 18:30
Hat sich bedankt: 45 Mal
Danksagung erhalten: 4 Mal

Re: Unofficial MFBot Update

Beitrag von Daddy Good »

I usually start the cityguard manually.
Benutzeravatar
PygBag
Beiträge: 4
Registriert: Fr 28. Aug 2026, 01:15
Hat sich bedankt: 3 Mal
Danksagung erhalten: 3 Mal

MFBot 6.36 (Linux-Konsole x64): Aufruf von GET / mit unbekannter Session-Id macht GET / bis zum Neustart kaputt

Beitrag von PygBag »

MFBot 6.36 (Linux-Konsole x64): Aufruf von GET / mit unbekannter Session-Id macht GET / bis zum Neustart kaputt

Hallo marenga,

seit 6.36 (Selbstupdate am 31.10.2026, ~15:00) komme ich mit der Weboberfläche (sfbot-web) nicht mehr in den Bot. Sie meldet nur noch "Invalid credentials". Ich habe mir die Remote-Schnittstelle (REMOTE.PORT 1024) deshalb genauer angesehen:

Ablauf laut General.log
1. Die Weboberfläche ruft GET / mit dem Header "Session-Id: <ID>" auf. Die ID ist dem Bot unbekannt, z. B. weil er seit dem Login neu gestartet wurde.
Log: "Die IP 127.0.0.1 versuchte sich mit einer falschen Sessionid anzumelden." + "Error Remoting Unknown Sessionid" (MyCustomUserNameValidator.Validate)
2. Statt die Anfrage nur abzulehnen, ist GET / ab diesem Moment kaputt.
Auch mit korrektem Basic-Auth (REMOTE.MASTER / MASTERPASSWORD) kommt jetzt nur noch HTTP 500: responseType "TargetInvocationException", innen NullReferenceException (RemoteExecutor.Execute)
3. Das bleibt so bis zum Neustart des Bots.

Folge: Die Weboberfläche ist praktisch nicht mehr benutzbar.
Ihr Login braucht GET /, und ihr Session-Check zerschießt GET / gleich wieder.
Neu anmelden geht dann nicht mehr ("Invalid credentials").

Was weiter funktioniert
- GET /bot/accounts und /bot/accounts/<Konto>!Start bzw. !Stop gehen die ganze Zeit normal.
- Der Bot selbst spielt ungestört weiter.
- Ohne solche Session-Aufrufe läuft GET / stabil. Meine eigene Überwachung fragt alle 3 Minuten per Basic-Auth an, und vom 31.10. 15:00 bis 01.11. 09:37 gab es keinen einzigen Fehler.

Belege aus General.log (01.11.2026)
- 09:37:25 GET / (Basic-Auth) ok
- 09:37:53 GET / mit Session-Id -> Unknown Sessionid
- 09:37:59 GET / (Basic-Auth) -> TargetInvocationException, ab da jedes Mal
- dasselbe nach jedem Neustart: 09:43:37 -> 09:43:44, 09:52:46 -> 09:52:51, 10:40:27 -> 10:43:26

Vermutung: Der Fehlschlag in Validate() hinterlässt einen halb angelegten (null-)Eintrag, über den der Aufbau von RemoteRoot danach stolpert. Mit 6.35 kam ich über die Weboberfläche noch rein.

Umgebung: Debian 13, .NET-Runtime, Bot als systemd-Dienst, Abfragen nur von 127.0.0.1.

Danke für deine Arbeit am Bot!
Folgende Benutzer bedankten sich beim Autor PygBag für den Beitrag (Insgesamt 2):
marenga (So 1. Nov 2026, 13:23) • brdsteinschwalbe (So 1. Nov 2026, 13:27)
Benutzeravatar
marenga
Beiträge: 471
Registriert: Mi 15. Nov 2023, 09:37
Hat sich bedankt: 153 Mal
Danksagung erhalten: 763 Mal

Re: Unofficial MFBot Update

Beitrag von marenga »

Version 6.37 (nightly)

Fixes API issues introduced in 6.36.

Downloads: Changelog:
Fixes:
  • Log: Keep the lines of log entries with suppressed error reporting (@brdsteinschwalbe)
Zuletzt geändert von marenga am Mo 2. Nov 2026, 14:02, insgesamt 1-mal geändert.
Folgende Benutzer bedankten sich beim Autor marenga für den Beitrag:
PygBag (Mo 2. Nov 2026, 12:33)
xnestix
Beiträge: 24
Registriert: Di 19. Aug 2025, 06:42
Hat sich bedankt: 17 Mal
Danksagung erhalten: 5 Mal

Re: Unofficial MFBot Update

Beitrag von xnestix »

Not sure where the problem is/was but on an low level account I activated the option to attack players for scrapbook items, but the bot kept attacking the same player over and over again (the opponent was level 10 and I oneshot him) so I tested the web extension and there is the same problem, that the list doesnt get updated
Benutzeravatar
marenga
Beiträge: 471
Registriert: Mi 15. Nov 2023, 09:37
Hat sich bedankt: 153 Mal
Danksagung erhalten: 763 Mal

Re: Unofficial MFBot Update

Beitrag von marenga »

xnestix hat geschrieben: So 1. Nov 2026, 19:58 Not sure where the problem is/was but on an low level account I activated the option to attack players for scrapbook items, but the bot kept attacking the same player over and over again (the opponent was level 10 and I oneshot him) so I tested the web extension and there is the same problem, that the list doesnt get updated
I am updating the data for players on servers 24/7, but I can not refresh every player every few minutes (I tried that and I got my server IP banned). I currently scale the update frequency per player, depending on how active they are (time since last active) and the amount that they change by (new server start == faster). That scales anywhere between 1hour and 8 days (the latter is only for accounts that have been dead for months) and puts most relevant players in the "check every few hours" bucket. That is the best compromise between trying not to annoy Playa Games and providing up-to-date information.

My best guess is that your issue will resolve itself in a few hours, or at most a few days if you are very unlucky, once the player updates.

When it comes to exclusively the functionality of the bot though, you are right, it should not attack in a loop. It shoul revalidate that the player actually has new items instead of trusting my possibly outdated server exclusively. In theory the bot could also report the account as outdated directly. Will work on that
Folgende Benutzer bedankten sich beim Autor marenga für den Beitrag:
xnestix (So 1. Nov 2026, 20:48)
Benutzeravatar
PygBag
Beiträge: 4
Registriert: Fr 28. Aug 2026, 01:15
Hat sich bedankt: 3 Mal
Danksagung erhalten: 3 Mal

Re: Unofficial MFBot Update

Beitrag von PygBag »

@marenga Yes, the testing build fixes it - thank you!

Tested today on Linux Console x64 (Debian 13), as a separate install with a copy of my Acc.ini and bot.sqlite:

- GET / with an unknown Session-Id (old cookie, exactly what the web UI sends) now returns a clean 401. Before, GET / was broken afterwards with a 500 (TargetInvocationException / NullReferenceException) until the bot was restarted.
- Plain GET / with Basic auth afterwards: 200 RemoteRoot every 30 s for several minutes, no NullReference in the log anymore.
- Login with a valid Session-Id: GET / and /bot/accounts both 200.
- The web interface (sfbot-web by wxclxr) logs in and shows the overview again.

Only a small cosmetic thing: an unknown Session-Id still writes "Error Remoting Unknown Sessionid" with a full stack trace to General.log. A single warning line would be enough there.

Happy to see this as 6.37 via auto-update.
Folgende Benutzer bedankten sich beim Autor PygBag für den Beitrag:
brdsteinschwalbe (Mo 2. Nov 2026, 13:49)
brdsteinschwalbe
Beiträge: 23
Registriert: Mi 30. Apr 2025, 09:47
Hat sich bedankt: 5 Mal
Danksagung erhalten: 9 Mal

Re: Unofficial MFBot Update

Beitrag von brdsteinschwalbe »

PygBag hat geschrieben: Mo 2. Nov 2026, 12:49 @marenga Yes, the testing build fixes it - thank you!

Tested today on Linux Console x64 (Debian 13), as a separate install with a copy of my Acc.ini and bot.sqlite:

- GET / with an unknown Session-Id (old cookie, exactly what the web UI sends) now returns a clean 401. Before, GET / was broken afterwards with a 500 (TargetInvocationException / NullReferenceException) until the bot was restarted.
- Plain GET / with Basic auth afterwards: 200 RemoteRoot every 30 s for several minutes, no NullReference in the log anymore.
- Login with a valid Session-Id: GET / and /bot/accounts both 200.
- The web interface (sfbot-web by wxclxr) logs in and shows the overview again.

Only a small cosmetic thing: an unknown Session-Id still writes "Error Remoting Unknown Sessionid" with a full stack trace to General.log. A single warning line would be enough there.

Happy to see this as 6.37 via auto-update.
Thanks for the Information, i will adress the Stacktrace on unknown Sessionid soon.
Antworten

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 9 Gäste