Unofficial MFBot Update

Was auch immer an Tools für Shakes&Fidget aufkommen, hier können sie vorgestellt werden.
Reveant24
Beiträge: 16
Registriert: Mo 14. Okt 2019, 16:24
Hat sich bedankt: 5 Mal
Danksagung erhalten: 0

Re: Unofficial MFBot Update

Beitrag von Reveant24 »

Hi again, i received this error now BUT only in 1 of 2 accounts... i put my HWID if that help, its 6.33 version efef306a-2fde-4a4d-abce-9a0e305aea37

Bild
Marco2509
Beiträge: 9
Registriert: Sa 10. Mai 2025, 22:35
Hat sich bedankt: 6 Mal
Danksagung erhalten: 1 Mal

Re: Unofficial MFBot Update

Beitrag von Marco2509 »

Moin marenga,

der Bot verwendet ungewollt Pilze bei Arena-Fights. Sprich greift offenbar zu früh an.

Ich habe die starke Vermutung dass das Problem wie folgt entsteht:
Ich spiele manuell den Account und mache einen Arena-Fight.
Anschließend loggt sich der Bot ein.
Der Bot prüft nicht, ob ein Arena-Fight kostenlos ist sondern führt direkt einen Angriff durch und verwendet somit einen Pilz.

Danke & Gruß
Benutzeravatar
PygBag
Beiträge: 1
Registriert: Fr 28. Aug 2026, 01:15
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Unofficial MFBot Update

Beitrag von PygBag »

Betreff: Remoting: TargetInvocationException (Infinity in JSON) nach Neustart – 6.33.0.0 Konsole Linux

Hallo marenga,

ich habe einen reproduzierbaren Fehler in der Remoting-Schnittstelle der
Konsolenfassung.

Aufbau:
- MFBot_Konsole_Linux_x64, Version 6.33.0.0, Kanal Nightly
- Debian 13 (Trixie), als systemd-Dienst, WorkingDirectory gesetzt
- REMOTE=1, REMOTE.IP=127.0.0.1, REMOTE.PORT=1024,
Anmeldung ueber REMOTE.MASTER / REMOTE.MASTERPASSWORD
- Aufrufer: die node.js/Nuxt3-Oberflaeche aus der Gemeinde
(interfaceVersion 3). Derselbe Fehler kommt auch bei direktem
Aufruf mit curl, liegt also nicht an der Oberflaeche.

Was passiert:
Nach einem Neustart des Rechners liefert GET / auf der Remoting-
Schnittstelle keine Daten mehr, sondern eine Ausnahme. In der
Oberflaeche sieht das aus wie ein Anmeldeproblem, tatsaechlich
scheitert aber erst das Zusammenbauen der Antwort.

Antwort der Schnittstelle:

Code: Alles auswählen

{"responseMeta":{"interfaceVersion":3,"botVersion":"6.33.0.0","responseType":"TargetInvocationException"},
"requestMeta":{"requestMethod":"GET","requestUrl":"http://127.0.0.1:1024/"},
"response":{"message":"Exception has been thrown by the target of an invocation.",
"type":"TargetInvocationException","innerException":{"message":".NET number values such as
positive and negative infinity cannot be written as valid JSON. To make it work when using
'JsonSerializer', consider specifying 'JsonNumberHandling.AllowNamedFloatingPointLiterals'",
"type":"ArgumentException"}}}
Stapelabzug aus General.log:

Code: Alles auswählen

20260828 00:50:54 Info  Remoting mfbot@127.0.0.1:38376 ruft / auf
20260828 00:50:54 Error Remoting Exception has been thrown by the target of an invocation.
Message: Exception has been thrown by the target of an invocation.
HResult: -2146232828
Source: System.Private.CoreLib
StackTrace:    at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at MFBot.Remote.RemoteExecutor.Execute()
   at MFBot.Remote.ServiceImplementation.ProcessRequest(HttpListenerContext ctx)
     === INNER EXCEPTION ===
     Message: .NET number values such as positive and negative infinity cannot be written as valid JSON. To make it work when using 'JsonSerializer', consider specifying 'JsonNumberHandling.AllowNamedFloatingPointLiterals' (see https://learn.microsoft.com/dotnet/api/system.text.json.serialization.jsonnumberhandling).
     HResult: -2147024809
     Source: System.Text.Json
Verlauf ueber mehrere Minuten. Jeder Aufruf von / endet gleich, egal
mit welchem Abstand:

Code: Alles auswählen

20260828 00:50:54 Info  Remoting mfbot@127.0.0.1:38376 ruft / auf
20260828 00:50:54 Error Remoting Exception has been thrown by the target of an invocation.
20260828 00:51:04 Info  Remoting mfbot@127.0.0.1:46272 ruft / auf
20260828 00:51:04 Error Remoting Exception has been thrown by the target of an invocation.
20260828 00:51:21 Info  Remoting mfbot@127.0.0.1:50884 ruft / auf
20260828 00:51:21 Error Remoting Exception has been thrown by the target of an invocation.
20260828 00:55:50 Info  Remoting mfbot@127.0.0.1:44840 ruft / auf
20260828 00:55:50 Error Remoting Exception has been thrown by the target of an invocation.
20260828 00:56:00 Info  Remoting mfbot@127.0.0.1:59570 ruft / auf
20260828 00:56:00 Error Remoting Exception has been thrown by the target of an invocation.
20260828 00:57:17 Info  Remoting mfbot@127.0.0.1:34222 ruft / auf
20260828 00:57:17 Error Remoting Exception has been thrown by the target of an invocation.
20260828 00:58:00 Info  Remoting mfbot@127.0.0.1:59596 ruft / auf
20260828 00:58:00 Error Remoting Exception has been thrown by the target of an invocation.
Um 00:58:34 habe ich den Bot neu gestartet. Danach ist es sofort weg,
derselbe Aufruf laeuft ohne Ausnahme durch:

Code: Alles auswählen

20260828 00:59:40 Info  Remoting mfbot@127.0.0.1:36048 ruft / auf
20260828 00:59:48 Info  Remoting mfbot@127.0.0.1:59012 ruft / auf
20260828 00:59:48 Info  Remoting @127.0.0.1:59012 ruft / auf
20260828 00:59:48 Info  Remoting @127.0.0.1:59012 ruft /?head=1 auf
(Die Zeilen "Unknown Sessionid" und "falsches Passwort" in meinem
Protokoll stammen aus dem Browser bzw. von meinen eigenen
Anmeldeversuchen und gehoeren nicht zum Fehler.)

Meine Vermutung: In den Daten der Uebersicht steckt ein Wert, der durch
eine Division durch Null zu Infinity wird – vermutlich eine Rate wie
"pro Stunde" oder "pro Kampf", deren Nenner direkt nach dem Start noch
Null ist. Dazu passt, dass es vorher tagelang lief, nach dem Neustart
des Rechners sofort kaputt war und nach einem Neustart des Bots wieder
ging. Beweisen kann ich das nicht, es ist nur die naheliegendste
Erklaerung fuer ein Infinity.

Behelf fuer alle, die darueber stolpern: Bot einmal neu starten.

Zwei Bitten:

1. Infinity/NaN vor dem Serialisieren abfangen, oder
JsonNumberHandling.AllowNamedFloatingPointLiterals setzen.

2. Wichtiger noch aus meiner Sicht: die Protokollierung dieses Falls
begrenzen. Der volle Stapelabzug wird bei jeder Abfrage neu
geschrieben. Bei mir sind dadurch zwei komplette Protokolldateien
mit je 10 MB in fuenf Sekunden entstanden:

Code: Alles auswählen

-rw-r--r-- 1 pygbag pygbag 10487443 27. Aug 14:50 General_20260827145035.log
-rw-r--r-- 1 pygbag pygbag 10487443 27. Aug 14:50 General_20260827145040.log
Wer die Oberflaeche dauerhaft offen hat, fragt im Sekundentakt ab.
Da laeuft eine kleine Platte zu, bevor es jemand merkt. Ein
"derselbe Fehler wird nur einmal pro Minute vollstaendig
protokolliert" wuerde reichen.

Gerne teste ich einen Vorabbau, der Rechner laeuft ohnehin durch.
ferryx
Beiträge: 34
Registriert: Mi 18. Sep 2013, 17:42
Hat sich bedankt: 0
Danksagung erhalten: 1 Mal

Wars launch problem

Beitrag von ferryx »

Hello, the bot isn't launching wars. Can you fix this? Thanks.
Benutzeravatar
DasAoD
Beiträge: 367
Registriert: Do 14. Mai 2020, 00:14
Hat sich bedankt: 184 Mal
Danksagung erhalten: 119 Mal

Re: Unofficial MFBot Update

Beitrag von DasAoD »

Marenga would find the logs and the bot’s version number useful.

I can’t say for certain that no battles are starting. For me, all battles start as scheduled.
ferryx
Beiträge: 34
Registriert: Mi 18. Sep 2013, 17:42
Hat sich bedankt: 0
Danksagung erhalten: 1 Mal

Re: Wars launch problem

Beitrag von ferryx »

ferryx hat geschrieben: Fr 28. Aug 2026, 09:56 Hello, the bot isn't launching wars. Can you fix this? Thanks.
dbee8de8-04a6-496e-8103-5ec1944c09db 6.33 (nightly)
Hi, I apologize for the incomplete two previous messages regarding the war launch issue. I set the times and entered the guilds to attack, but the bot doesn't launch the wars. The error list doesn't show any errors, but the account log says "Attention, guild battle couldn't be started! Warning Guild." Version 6.33Bild
Dateianhänge
Bot wars.png
Bot wars.png (14.14 KiB) 795 mal betrachtet
bot war 2.png
bot war 2.png (38.03 KiB) 795 mal betrachtet
Zuletzt geändert von ferryx am Mi 2. Sep 2026, 10:55, insgesamt 2-mal geändert.
macpod
Beiträge: 77
Registriert: Fr 28. Feb 2020, 21:17
Hat sich bedankt: 31 Mal
Danksagung erhalten: 7 Mal

Re: Unofficial MFBot Update

Beitrag von macpod »

Hm...

suddenly the Bot logs into each accoutn but does nothing after.

Log says "Account has been logged in." and thats it.

Error log also empty.

Happening on both my accounts.

Restarting the bot doesnt work, same problem.
CinExPL
Beiträge: 16
Registriert: Mo 16. Jul 2018, 11:52
Hat sich bedankt: 16 Mal
Danksagung erhalten: 2 Mal

Re: Unofficial MFBot Update

Beitrag von CinExPL »

Hello!
I have an issue with Hellevator - bot sometimes doesn't enter Hellevator fights (only happened on a few random accounts); stopping the bot (Stop button) + starting it back (Start/Pause button) fixes the issue (no logs for that).

Another small issues I've encountered/proposed changes:
- bot can't skip expeditions,
- if there is a Witch event, in account details window, the "Witch requests" correctly shows as "Any" (or All?), but in Character section it shows a one random(?) type of item,
- in logs, upgading goblins/troll/keeper shows 600lvl (it's a max unit level; https://imgur.com/a/7A29AHs), although the units can be upgraded over 600 times (not a level, just upgrade count) - is it possible to change the value in logs from the unit lvl to how many times it was upgraded?
- Hellevator entry coupons amount in main table view?

Thank you for doing an amazing work!
hello :D
have a nice day!
Marcin97
Beiträge: 25
Registriert: Do 5. Jan 2023, 17:11
Hat sich bedankt: 14 Mal
Danksagung erhalten: 2 Mal

Re: Unofficial MFBot Update

Beitrag von Marcin97 »

I confirm that the bot does not trigger guild battles
denamon
Beiträge: 53
Registriert: Mi 6. Mär 2024, 16:15
Hat sich bedankt: 31 Mal
Danksagung erhalten: 6 Mal

Re: Unofficial MFBot Update

Beitrag von denamon »

marenga hat geschrieben: Do 13. Aug 2026, 11:35 Any idea or estimate (if the range is days/weeks/more than a month) when we will get the next Beta/Stable release? I wonder if beta/stable are on hold until the big 7.0...
(7.0 consequences) It would be nice to have the rest of the forum available, so that we can actually divide it in topics and look for things in its category, instead of everything (releases, bugs, feature requests) to be in a single long thread)
> Any idea or estimate (if the range is days/weeks/more than a month) when we will get the next Beta/Stable release?
Those are just the nightly release delayed until I am sure they have no new issues. Since the last one had a regression, I am extra cautious here, but probably just in the next few days.
> It would be nice to have the rest of the forum available, so that we can actually divide it in topics and look for things in its category, instead of everything (releases, bugs, feature requests) to be in a single long thread)
You can already post in the rest of the forum. I will read and answer there as well : viewtopic.php?p=21134
I even adjusted the initial post in this thread here to say:
> If you have any issues, or feature requests, please let me know. You can post them either in this thread, or somewhere in the rest of this forum.
Most people just default to posting here.



Hey, any news on when the next version might be released, or how can I get access to the GitHub repo to contribute? I've been running MFBot for a while and noticed a few things that could be improved:

- Orange gem replacement: No way to set a minimum value threshold — gems in inventory sit there even when they're better than socketed ones
- Potion selling: Bot buys all potions but can't auto-sell class-irrelevant ones (e.g., Mage shouldn't keep Strength/Luck potions)
- Skill window: The skills popup stays on top of everything — very intrusive when multitasking
- Amongst other possible updates

If you're open to it, I'd be happy to submit PRs for these. Let me know how to get access.
Antworten

Wer ist online?

Mitglieder in diesem Forum: Joe Mamah und 4 Gäste