GithubHelp home page GithubHelp logo

behaviorismanaged's Introduction

BehaviorIsManaged

Program simulating behaviors

Official IRC Channel

Join the irc channel to ask questions and share interets
Server : irc.epiknet.org:6667 (or 6662)
Channel : #bim

Or via the direct link (Miibbit) : Mibbit : #bim @ epiknet.org

"There is a plugin for that !" - Blackrush

behaviorismanaged's People

Contributors

djtrilogic avatar fastfrench avatar kesslerdev avatar scalexm avatar timorem avatar vendethiel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

behaviorismanaged's Issues

ShortcutBar

Does not work properly. No updates at all.

Spell not found after Cast

For some spells there is an exception after the spell cast in SpellsBook.AI.cs@68. The server replied another spell id than the casted spell (i.g "Rembobinage" Xelor's spell).

We must store the casted spell and then reuse the stored id on cast reply.

"System.Exception: Cannot dispatch GameActionFightSpellCastMessage ---> System.ArgumentException: Spell Id 3181 do not exists in the SpellsBook of XXXXX, with 4 entries
à BiM.Behaviors.Game.Spells.SpellsBook.CastAt(GameActionFightSpellCastMessage msg) dans C:\Users\Bouh2\Desktop\Programming\CSharp\BehaviorIsManaged\Behaviors\Game\Spells\SpellsBook.AI.cs:ligne 68
à BiM.Behaviors.Handlers.Spells.SpellHandler.HandleGameActionFightSpellCastMessage(Bot bot, GameActionFightSpellCastMessage message) dans C:\Users\Bouh2\Desktop\Programming\CSharp\BehaviorIsManaged\Behaviors\Handlers\Spells\SpellHandler.cs:ligne 50
à (Object , Object , Message )
à BiM.MITM.Network.NetworkMessageDispatcher.InternalDispatch(NetworkMessage message, Object token) dans C:\Users\Bouh2\Desktop\Programming\CSharp\BehaviorIsManaged\MITM\Network\NetworkMessageDispatcher.cs:ligne 108
à BiM.MITM.Network.NetworkMessageDispatcher.Dispatch(NetworkMessage message, Object token) dans C:\Users\Bouh2\Desktop\Programming\CSharp\BehaviorIsManaged\MITM\Network\NetworkMessageDispatcher.cs:ligne 68
--- Fin de la trace de la pile d'exception interne ---
à BiM.MITM.Network.NetworkMessageDispatcher.Dispatch(NetworkMessage message, Object token) dans C:\Users\Bouh2\Desktop\Programming\CSharp\BehaviorIsManaged\MITM\Network\NetworkMessageDispatcher.cs:ligne 86
à BiM.MITM.Network.NetworkMessageDispatcher.Dispatch(Message message, Object token) dans C:\Users\Bouh2\Desktop\Programming\CSharp\BehaviorIsManaged\MITM\Network\NetworkMessageDispatcher.cs:ligne 55
à BiM.Core.Messages.MessageDispatcher.ProcessDispatching(Object processor) dans C:\Users\Bouh2\Desktop\Programming\CSharp\BehaviorIsManaged\Core\Messages\MessageDispatcher.cs:ligne 469
à BiM.Behaviors.Bot.OnTick() dans C:\Users\Bouh2\Desktop\Programming\CSharp\BehaviorIsManaged\Behaviors\Bot.cs:ligne 185"

Un designer ?

Je cherche un graphiste ou un designer pour faire un design sympa d'UI car je suis vraiment mauvais là dedans.
Si vous ne manier pas WPF ce n'est pas grave j'ai juste besoin d'un psd avec les couleurs etc.

Did D change their IP for the server?

I tried connecting the mitm tonight but it wouldn't work and display this error:
cannot connect to 213.248.126.180...
Did Ankama change the ip to connect to their server?
I didn't make a backup of the config.xml and cannot revert to the original ip :/ So if anyone has the correct IP, I would appreciate it :)

Thanks!

Exception in inventory

With an old character, I've an exception while loading the inventory.

It doesn't happen with all characters.

[09:21:58] Bot.OnTick : System.Exception: Cannot dispatch InventoryContentMessage ---> System.AggregateException: Cannot retrieve BiM.Protocol.Data.Effect with these keys 209 ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary2.get_Item(TKey key) at BiM.Protocol.Tools.D2OReader.ReadObject[T](Int32 index, BigEndianReader reader) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\Protocol\Tools\D2o\D2OReader.cs:line 365 at BiM.Protocol.Tools.D2OReader.ReadObject[T](Int32 index) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\Protocol\Tools\D2o\D2OReader.cs:line 355 at BiM.Behaviors.Data.D2OSource.ReadObject[T](Object[] keys) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\Behaviors\Data\D2OSource.cs:line 88 at BiM.Behaviors.Data.DataProvider.Get[T](Object[] keys) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\Behaviors\Data\DataProvider.cs:line 63 --- End of inner exception stack trace --- at BiM.Behaviors.Data.DataProvider.Get[T](Object[] keys) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\Behaviors\Data\DataProvider.cs:line 73 at BiM.Behaviors.Game.Effects.EffectBase..ctor(ObjectEffect effect) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\Behaviors\Game\Effects\EffectBase.cs:line 98 at BiM.Behaviors.Game.Effects.EffectInteger..ctor(ObjectEffectInteger effect) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\Behaviors\Game\Effects\EffectInteger.cs:line 50 at BiM.Behaviors.Game.Effects.EffectBase.CreateInstance(ObjectEffect effect) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\Behaviors\Game\Effects\EffectBase.cs:line 258 at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()
at System.Collections.ObjectModel.ObservableCollection1.CopyFrom(IEnumerable1 collection)
at BiM.Core.Collections.ObservableCollectionMT1..ctor(IEnumerable1 collection) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\Core\Collections\ObservableCollectionMT.cs:line 35
at BiM.Behaviors.Game.Items.Item..ctor(ObjectItem item) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\Behaviors\Game\Items\Item.cs:line 39
at BiM.Behaviors.Game.Items.Inventory.b__13(ObjectItem entry) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\Behaviors\Game\Items\Inventory.cs:line 301
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at BiM.Behaviors.Game.Items.Inventory.Update(InventoryContentMessage msg) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\Behaviors\Game\Items\Inventory.cs:line 301
at BiM.Behaviors.Handlers.Inventory.InventoryHandler.HandleInventoryContentMessage(Bot bot, InventoryContentMessage message) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\Behaviors\Handlers\Inventory\InventoryHandler.cs:line 26
at (Object , Object , Message )
at BiM.MITM.Network.NetworkMessageDispatcher.InternalDispatch(NetworkMessage message, Object token) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\MITM\Network\NetworkMessageDispatcher.cs:line 108
at BiM.MITM.Network.NetworkMessageDispatcher.Dispatch(NetworkMessage message, Object token) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\MITM\Network\NetworkMessageDispatcher.cs:line 68
--- End of inner exception stack trace ---
at BiM.MITM.Network.NetworkMessageDispatcher.Dispatch(NetworkMessage message, Object token) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\MITM\Network\NetworkMessageDispatcher.cs:line 88
at BiM.MITM.Network.NetworkMessageDispatcher.Dispatch(Message message, Object token) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\MITM\Network\NetworkMessageDispatcher.cs:line 55
at BiM.Core.Messages.MessageDispatcher.ProcessDispatching(Object processor) in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\Core\Messages\MessageDispatcher.cs:line 490
at BiM.Behaviors.Bot.OnTick() in C:\Users\Admin\Desktop\BehaviourIsManaged\trunk\Behaviors\Bot.cs:line 173

Several bots running at same time

It looks like the first bot receives the proper messages. The second bot, the messages of 1st and 2nd bot. And the 3rd, the messages of bot 1, 2 and 3.

To make it simple, we can say it doesn't work well with several bots.

Also, for a single bot, starting and stopping the plugin works well. But when I have several bots active, the plugin remains active no matter how many times I try to stop it.

Organisation de l'UI ?

Je commencer à plancher sur la structure de l'UI.

Voici ma première idée:

  • une fenêtre MDI principale
  • à chaque nouvel instance Bot, une fenêtre est créer dont le parent est la fenêtre MDI. Possibilité aux plugins de fournir un FrameworkElement qui sera ajouté dans un onglet nouveau dans la fenêtre du bot -> un onglet par bot
  • les plugins ont un total contrôle sur l'UI, c'est à dire ils peuvent ajouter des fenêtres comme il le désire (risque de conflit ?)

Est-ce que la structure "fenêtre MDI et 1 onglet par plugin" est viable ?
D'autres idées ?

EDIT : Quand je parle de MDI je pense tout de suite au MDI style WinForms.
Mais il est aussi possible d'intégrer un MDI de ce style : http://avalondock.codeplex.com/

Chat proposal

Clean the text after the action on button "enter"
Automatic scroll down when new text

2.11 uncompilation

Hello,

do you also have some problem to uncompile Dofus 2.11 version ?

Dead locks

Hello,

juste pour info, il y a quelques problèmes de lock. Les plus sérieux étant dans ServerConnection, où censuré.

De plus, il est fortement déconseillé d'utiliser lock(this), surtout quand ce sont des objets publics.

Merci,

FF

Wrong move in fights

Even in fights, the truncation of the path to CurrentMP steps max doesn't work.
Will be fixed on my next commit/push

But we should also handle GameMapNoMovementMessage message, and avoid to update the position when GameMapNoMovementMessage is received (meaning that the path is refused for some reason).

Craft Craft Craft ...

I'd like to know if someone have started some serious craft stuff ... it would be nice to attack this part of the game... I can start it with someone... Let me know please ... 👍

2.11.4

Hello. With the new version 2.11.4 (may 8th.), my bot is not usable anymore. The clients freeze after a small and variable delay, like 1 to 10 minutes. It seems that no message have changed, neither data structures. My bot detects the client is frozen, then kill them restart it... but it needs to restart much too often, so it's not usable.

Do some other bots have the same problem?

How to know if a spell is available

I couldn't find how to track spells availability (when usage per turn is restricted). Do you have to control usage of each of them yourself, or is there some message I missed that tell you for each spell its current availibility ?

Documentation

Hi guys,

I would like to participate in this project not only from the plugin side but also with the core development. I think it will be a good way to better my C# skills and also be a nice start with open source development.
So I read all the wiki - readme and I started reading through the code but man, it is more huge than I thought! I am in fact completely lost between all these files. This brings me to my request/question :)

I would like to ask if someone could explain the flow of the application from its start. I don't ask to write a full document (this could be one of my first contribution once I understood everything myself) but simply some key facts which could help me browse through the code and understand what is really happening.
For example it could be:

  1. app start loading file X, Y and Z.
  2. start MiTM behavior using class U, V
  3. connect to server using class M, N
  4. identifications using class Q, W
  5. loading the plugins, class R, T
    .
    .
    .
    n) ...

I am sure this won't take so much time for someone who worked on the project for months already compared to the time that will be needed for any random guy trying to really get into it.
I think this could also help any other potential future developers :).

You can answer me in English as well as in French, I don't mind.

Thanks a lot,

Shravan

Erreur choix du personnage

Bonjour Bouh2,
Je te poste une erreur que j'ai détecter. Je te la montre si sa peut t'aider.

Voila Bonne chance pour la suite.

Non traitement des messages ?

Ce la fait déjà 2 fois que le bot se bloque lors de la connexion au World, je n'arrive pas à diagnostiquer son état mais il doit surement être en état stoppé.

Un problème de concurrence surement à régler rapidement

Message Handlers

It seems that when I handle the same message in different files, only one of them really get the message.

Really a shame...

Choix du serveur impossible

Salut tout le monde,
Je vous poste un petit problème qui m'est survenue lors de la connexion au serveur.
Alors je m'explique, je me connecte sur Dof. arrivé au choix du serveur, le bot reste bloqué donc impossible de continué dans le jeux.
Je vous montre les log :
http://pastebin.fr/24483
Voila je vous laisse regarder.

Fix the warnings

Too many warnings here. Warning is bad. We miss potential important issues when you don't read warnings.

Sniffer : exception

When you receive a message while exporting a file in Sniffer, you've got an exception : Collection was modified; enumeration operation may not execute (SnifferViewModel, l206).
So you have no chance to export a large file.

Solution : pause the sniffer while exporting, or avoid to use a foreach here.

Problème de build

Salut,
j'ai un problème de build à cause de namespaces inconnus : Managers et ChatManager.

Map broken in 1.29

Looks like maps can't be read in 1.29. As a consequence, an exception is thrown when changing map.

On the first run, he started to update maps, but freezed around 2/10.

So I deleted map.dat file, but I always get an empty Map file each time I restart the bot (1Ko, no map inside).

Plugins System

Salut,
Je n'ai pas trouvé le moyen d'attacher un plugin a une connexion ( une classe non statique qui récupérerais les Messages de la connexion qui la instanciée, une instance par connexion)
Ex:
BotMITM => instancie gatheringManager du plugin GatheringPlugin
gatheringManager récupère uniquement les Messages transmis par le BotMITM qui l'a instanciée

je n'ai pas trouvé dans de méthode adéquate dans MessageDispatcher

on peux toujours bidouiller le plugin pour faire un genre d'instance manager mais se ne serait pas propre

Reconnexion en combat

Salut !

La reconnexion en combat ne fonctionne pas. J'imagine qu'elle n'est pas encore gérée..
Mais si ça peut t'aider, voici le log :

[11:15:23](Bot #10) Fatal : System.Exception: Cannot dispatch GameFightSynchronizeMessage ---> System.ArgumentOutOfRangeException: L'index était hors limites. Il ne doit pas être négatif et doit être inférieur à la taille de la collection.
Nom du paramètre : index
à System.Collections.Generic.List`1.get_Item(Int32 index)
à BiM.Behaviors.Game.Actors.Fighters.MonsterFighter.Update(GameFightMonsterInformations msg) dans BehaviorIsManaged\trunk\Behaviors\Game\Actors\Fighters\MonsterFighter.cs:ligne 68
à BiM.Behaviors.Game.Actors.Fighters.MonsterFighter.Update(GameFightFighterInformations informations) dans BehaviorIsManaged\trunk\Behaviors\Game\Actors\Fighters\MonsterFighter.cs:ligne 77
à BiM.Behaviors.Game.Fights.Fight.Update(GameFightSynchronizeMessage msg) dans BehaviorIsManaged\trunk\Behaviors\Game\Fights\Fight.cs:ligne 419
à BiM.Behaviors.Handlers.Context.FightHandler.HandleGameFightSynchronizeMessage(Bot bot, GameFightSynchronizeMessage message) dans BehaviorIsManaged\trunk\Behaviors\Handlers\Context\FightHandler.cs:ligne 100
à BiM.MITM.Network.NetworkMessageDispatcher.InternalDispatch(NetworkMessage message, Object token) dans BehaviorIsManaged\trunk\MITM\Network\NetworkMessageDispatcher.cs:ligne 93
à BiM.MITM.Network.NetworkMessageDispatcher.Dispatch(NetworkMessage message, Object token) dans BehaviorIsManaged\trunk\MITM\Network\NetworkMessageDispatcher.cs:ligne 53
--- Fin de la trace de la pile d'exception interne ---
à BiM.MITM.Network.NetworkMessageDispatcher.Dispatch(NetworkMessage message, Object token) dans BehaviorIsManaged\trunk\MITM\Network\NetworkMessageDispatcher.cs:ligne 73
à BiM.MITM.Network.NetworkMessageDispatcher.Dispatch(Message message, Object token) dans BehaviorIsManaged\trunk\MITM\Network\NetworkMessageDispatcher.cs:ligne 40
à BiM.Core.Messages.MessageDispatcher.ProcessDispatching(Object processor) dans BehaviorIsManaged\trunk\Core\Messages\MessageDispatcher.cs:ligne 475
à BiM.Behaviors.Bot.OnTick() dans E:\Projets\BehaviorIsManaged\trunk\Behaviors\Bot.cs:ligne 140

Authentification:CharactersListEntry not implemented

Salut,

Je viens de pull ton dernier commit (Ajout de selection/suppression/creation de character) et j'ai une exception lors de la sélection du personnage.
Dans CharacterSelectionView.xaml, Authentification:CharactersListEntry n'est pas implémenté.
Voici la trace :

System.Windows.Markup.XamlParseException occurred
Message=La méthode ou l'opération n'est pas implémentée.
Source=PresentationFramework
LineNumber=26
LinePosition=10
StackTrace:
à System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
à System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
à System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
à BasicPlugin.CharacterSelection.CharacterSelectionView.InitializeComponent()
à BasicPlugin.CharacterSelection.CharacterSelectionView..ctor()
InnerException: System.NotImplementedException
Message=La méthode ou l'opération n'est pas implémentée.
Source=PresentationFramework
StackTrace:
à System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlType(BamlType bamlType, Int16 typeId)
à System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType(Int16 typeId)
à System.Windows.Baml2006.Baml2006Reader.Process_PropertyTypeReference()
à System.Windows.Baml2006.Baml2006Reader.Process_OneBamlRecord()
à System.Windows.Baml2006.Baml2006Reader.Process_BamlRecords()
à System.Windows.Baml2006.Baml2006Reader.Read()
à System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack`1 stack, IStyleConnector styleConnector)
à System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
InnerException:

Deconnexion lors du deuxieme combat

Salut.

J'ai eu une déconnexion assez étrange.
J'ai lancé un combat (.fight on). Celui-ci s'est bien déroulé, fini en un tour.
Une fois le combat fini, mon personnage est allé attaquer un autre monstre et la j'ai été déconnecté.
Voici les dernier logs :

[13:22:04] GameMapMovementConfirmMessage FROM Client
[13:22:04] GameContextRemoveElementMessage FROM Server
[13:22:04] GameContextDestroyMessage FROM Server
[13:22:04] GameContextCreateMessage FROM Server
[13:22:04] CharacterStatsListMessage FROM Server
[13:22:04] GameFightStartingMessage FROM Server
[13:22:04] GameFightJoinMessage FROM Server
[13:22:04] GameFightPlacementPossiblePositionsMessage FROM Server
[13:22:04] GameFightOptionStateUpdateMessage FROM Server
[13:22:04] LifePointsRegenEndMessage FROM Server
[13:22:04] GameEntitiesDispositionMessage FROM Server
[13:22:04](Bot #18) Fatal : System.Exception: Cannot dispatch GameFightJoinMessage ---> System.Exception: Player already fighting !
à BiM.Behaviors.Game.Actors.RolePlay.PlayedCharacter.EnterFight(GameFightJoinMessage message) dans BehaviorIsManaged\trunk\Behaviors\Game\Actors\RolePlay\PlayedCharacter.cs:ligne 482
à BiM.Behaviors.Handlers.Context.FightHandler.HandleGameFightJoinMessage(Bot bot, GameFightJoinMessage message) dans BehaviorIsManaged\trunk\Behaviors\Handlers\Context\FightHandler.cs:ligne 30
à (Object , Object , Message )
à BiM.MITM.Network.NetworkMessageDispatcher.InternalDispatch(NetworkMessage message, Object token) dans BehaviorIsManaged\trunk\MITM\Network\NetworkMessageDispatcher.cs:ligne 93
à BiM.MITM.Network.NetworkMessageDispatcher.Dispatch(NetworkMessage message, Object token) dans BehaviorIsManaged\trunk\MITM\Network\NetworkMessageDispatcher.cs:ligne 53
--- Fin de la trace de la pile d'exception interne ---
à BiM.MITM.Network.NetworkMessageDispatcher.Dispatch(NetworkMessage message, Object token) dans BehaviorIsManaged\trunk\MITM\Network\NetworkMessageDispatcher.cs:ligne 73
à BiM.MITM.Network.NetworkMessageDispatcher.Dispatch(Message message, Object token) dans BehaviorIsManaged\trunk\MITM\Network\NetworkMessageDispatcher.cs:ligne 40
à BiM.Core.Messages.MessageDispatcher.ProcessDispatching(Object processor) dans BehaviorIsManaged\trunk\Core\Messages\MessageDispatcher.cs:ligne 475
à BiM.Behaviors.Bot.OnTick() dans BehaviorIsManaged\trunk\Behaviors\Bot.cs:ligne 151

Si ça peut aider...

Pathfinder through maps

Voilà le prochain challenge, réaliser un algorithme capable de trouver le chemin du bot pour aller d'une map à une autre et cela peut importe les moyens à emprunter.
C'est un algorithme de taille qui doit prendre en compte un tas de possibilités

Voici les critères :

  • être capable de trouver un chemin depuis n'importe quelle map, vers n'importe quelle map accessible par le joueur.
  • le trouver en un temps honorable (quelques secondes pas plus)
  • pouvoir utiliser
    • les soleils (cell trigger)
    • les interactives objects téléporteurs
    • les npcs téléporteurs
    • les zaaps
    • les potions de téléportations
  • et bien sûr ne pas se bloquer contre un mur :D

J'ai quelques idées pour le réaliser.

Tout d'abord il faudrait faire une sorte de map géante qui regrouperait les 5 600 000 cellules avec leur propriété (ça fait un truc assez lourd :p). Bien entendu on ne peut pas le charger directement dans le bot, ce serait beaucoup trop long et inutile.

L'idée serait alors de faire un outil qui calculerai des tas de chemins possibles qui relieraient les différentes subareas à l'aide du mappage géant (environ 1000 chemins). Avec ces chemins le bot pourrait passer d'une subarea à une autre en suivant le chemin. Ce qui sera plus compliqué à gérer ce sera les interactives objects et les cell triggers (quoique ce dernier peut être +/- deviné)

Reste à voir comment se déplacer dans les subareas. Et bien c'est beaucoup plus simple, on charge les maps de la subarea (il y a en a rarement plus d'une vingtaine) quand on change de subarea et on fait comme pour le mappage géant mais à plus petite échelle. Cela nous fait un pathfinding dans environ 10 000 cellules ce qui avec un pathfinding optimisé est honorable.

Maintenant ce qui est plus compliqué à gérer ce sont les "raccourcis", càd les zaaps, les potions, ...

Mais voilà en tout cas l'idée de départ.

[AutoFight] /sit

The order /sit comes to the client, but it doesn't work. Also, the character keep saying "/sit" even when fully healed.

ID to Name converter

Bonsoir,

Tout d'abord je souhaite commencer par remercier les devs (particulièrement Timorem pour son immense travail) du projet. J'apprécie la qualité du travail accompli.
J'ai passé les derniers jours à étudier le code avec l'aide de Shravan1804 (mon cousin) et j'ai maintenant une petite question. Je cherche à convertir certains ID d'objets en leurs équivalent String de sorte à ce que ça soit plus lisible lorsque je les manipule. J'ai vu qu'il existait des classes pour lire les archive D. mais je n'ai pas trouvé la classe (si elle existe) qui permettait une fois les données chargés en mémoire au lancement de BiM de faire cette conversion ID-String.
D'où ma question: Cette conversion est elle déjà implémentée? Si ce n'est pas le cas, pouvez vous me donner une direction dans laquelle je dois chercher pour l' implémenter moi même?

Merci d'avance,

Jean22

Instancier les handlers du core

J'ai remarqué ça recemment, il est indispensable d'instancier les containeur de handler (tel que RolePlayHandler) pour éviter d'handle un message qui ne devrait pas l'être, de la même façon que procède le client.

Aide!

quelqu'un pourrais m'aider je ne suis pas capable d'ouvrir le programme est-ce que quel'un pourrais me dire ou trouver le programme dans les dossiers ou me rediriger vers un tuto merci a l'avance

Config Initiale

Bonsoir,

Tout d'abord, une bonne année 2013 à tous :)
J'ai découvert BIM il y a deux-trois semaines; merci aux devs ! J'aimerais maintenant essayer de le faire tourner et d'utiliser le plugin sniffer qui est déjà codé avant de me lancer dans le développement de mes propres plugins.
Dans mon visual studio, j'ai "build" toutes les assembly sans problèmes; tous les voyants sont aux verts. Par contre je suis perdu quand j'essaie de lancer l'application. J'ai essayé de lancer tous les .exe créés dans certains ordres logiques mais sans succès. Si j'essaie de le lancer via Visual Studio, celui ci refuse.
Pouvez vous donc m'indiquer comment je peux faire fonctionner tout ça?

Merci d'avance,

Jean22

Problème de connexion

J'ai un problème de connexion avec le MITM.
Au lancement, j'avais une exception "There is more that one IP address to the specified host.". En effet, dans hostname, j'avais mon adresse en IPv6 et en IPv4 (::1 et 127.0.0.1). Est-ce normal ?
Apres une petite modification, j'ai finalement pu le lancer correctement.
Néanmoins, je rencontre encore un problème lors de la connexion et ce en mode "Connexion rapide" ou non.
C'est lors du switch sur le serveur de jeu qu'il ne se passe plus rien.
Je reste bloqué sur le "HelloGameMessage FROM Server" après réception du ticket et connexion au serveur de jeu.
Une idée ?

Redis not working

RedisServerHost.Instance.StartOrFindProcess(); is blocking forever (well, over 5 minutes). Even if I start redis-server.exe manually.
redis-cli.exe and redis-benchmark.exe work fine.

(Could not load file or assembly ServiceStack.Redis Version 3.9.29.0)

It works in x86 mode.

[AutoFight] End of fight

The summary window at the end of the fight remains on the screen, so /sit order is not processed and the bot is stuck. No idea how to remove this screen in a clean way, as it seems that no message is triggered when we manually remove it by pushing the button.
[Edit] : 1/ anyway /sit doesn't work even when this window is closed.
2/ A dirty way to close this "end of fight" window would be to send proper keys to the client. Any idea of a better way to do it ?

Erreur: ... no IPlugin entry point

Bonsoir,

J'ai ajouté dans l'après midi un nouveau dossier (TestPlugin) parmi les plugins pour pouvoir commencer à faire quelques essais.
J'ai bien fait attention à ce que toutes les options depuis Visual Studio et les fichiers soient parfaitement équivalents à un plugin en état de marche. Aucun problème lors de la compilation. Par contre lorsque je lance BiM, j'ai des messages d'erreur du type "no IPlugin entry point" mais il est quand même écrit Plugin 'TestPlugin' loaded. Le message d'erreur vient de PluginManager.cs.
J'ai passé une bonne demi heure à lire le code sans réussir pour l'instant à trouver comment faire pour résoudre ce problème. Je continuerai demain mais si entre temps vous pouvez me dire directement ce que j'ai loupé dans la procédure pour rajouter un dossier Plugin sa ira plus vite :)

Voici les logs:
[19:10:40] Loading ./maps.dat...
[19:10:40] Loading maps positions ...
[19:10:40] Loading submaps ...
[19:10:41](PluginManager #3) Error : Plugin AvalonDock has no IPlugin entry point
[19:10:41] Plugin 'Basic Plugin' loaded
[19:10:41](PluginManager #3) Error : Plugin BiM.Behaviors has no IPlugin entry point
[19:10:41](PluginManager #3) Error : Plugin BiM.Core has no IPlugin entry point
[19:10:41](PluginManager #3) Error : Plugin BiM.MITM has no IPlugin entry point
[19:10:41](PluginManager #3) Error : Plugin BiM.Protocol has no IPlugin entry point
[19:10:41] Plugin 'TestPlugin' loaded
[19:10:41] Plugin 'FF Fight Plugin' loaded
[19:10:41] Plugin 'Fight Plugin' loaded
[19:10:41](PluginManager #3) Error : Plugin NLog has no IPlugin entry point
[19:10:41](PluginManager #3) Error : Plugin protobuf-net has no IPlugin entry point
[19:10:41](PluginManager #3) Error : Plugin ServiceStack.Common has no IPlugin entry point
[19:10:41](PluginManager #3) Error : Plugin ServiceStack.Interfaces has no IPlugin entry point
[19:10:41](PluginManager #3) Error : Plugin ServiceStack.Redis has no IPlugin entry point
[19:10:41](PluginManager #3) Error : Plugin ServiceStack.Text has no IPlugin entry point
[19:10:41] Plugin 'Simple Plugin' loaded
[19:10:41] Plugin 'Sniffer Plugin' loaded
[19:10:41] Plugin 'Window Manager' loaded
[19:10:41](PluginManager #3) Error : Plugin zlib.net has no IPlugin entry point
[19:10:41] MITM started

Merci d'avance,

Shravan

Edit: Les propriétés 'Copy Local' des références sont à False ...

Login and scheduler

It would be nice to have automatic login and some simple scheduling, to let the bot run like 1 hour, then stop for 2 hours, and restart alone...

If one need to have admin rights to do it, maybe it's not really a big deal.

Wrong move outside fights

There are still lot of bad-formed moves (outside fights). I often get "GameMapNoMovementMessage" as a reply, and the character stay in place forever.
Note that the path if surely false : there is only one keyMovements (550 quite often), despite the target to attack is half the map away.
Even when the target moves, the path send remains unchanged (one step = 550 in my case).

Can't read QuestObjective D2O

Hi,

it seems that the D2OReader do not like Point fields. It crashes on this field when reading QuestObjective, in CreateObjectBuilder (instruction ilGenerator.Emit(OpCodes.Newobj, classType.GetConstructor(Type.EmptyTypes));)

Question

Bonjour à tous!
Je suis BiM depuis quelques mois.
Mais aujourd'hui je suis vraiment à la recherche d'un bot pour Dofus!
Alors je voudrais savoir, quand serait disponible un .exe pour le bot, même si tout n'est pas encore fini. J'aimerais le tester!

Voila ! Merci à tous ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.