Repository navigation
Conversation
The Crimson King deck, executor and dialogs added... Note: This is a different executor which has some technical differences approaches from the other bots, I advise reading everything before deciding to use it. This executor diverges from the traditional ones, instead of coding rules to follow scripted actions, I decided to make a decision engine to calculate plays and results based on guided routes, card value and endboard, which makes this bot adapt on each interaction and recalculate the routes to reach the best results trying as much as possible to outplay the player. There is the Mode=logic that makes the bot calculates even more plays and finding better endboards but usually takes +15s and that's not ideal, so by default it uses the Mode=fast where the ceiling is reduced and it will reach almost the same results as the logic one but it will take no more than +5s for that, which is pretty acceptable (Mode=turbo exists but barely changes the time and reduces a lot of the quality of the endboard, so ignore it). It was thought to work with MDPro3 and due to the lack of information the bot can "see" from the card, like floodgates and other small things like "destroy" that it cannot tell when it's a thread or just not, I implemented an alternative to the default behavior for it to look reliably for the scripts from the game if the folder is closer to it, doing that the bot can "see" the effect more accurate to try to manage the thread, with that in mind and thinking on how to implement a better interaction I deliberated made it collect data over hundreds of duels and over a couple weeks of testing, then I made some logs which you will be able to see, it will find the card ID/name and log the effects, also it will search for card achetypes and cards that mentions it, then it will gather information and calculates risks of reaching threads (just like we do during a match), then I made it generates a log file to register games and try to learn from them, I noticed some behavior change but after all testing I was already tired and I'm not sure anymore if it will or not work, but I made sure to leave a switch in the code to turn it off since this is too ambicious and it would require more precise info that windbot can provide now and to work adding cards to lists of threads or whatever, I personally don't think it is practical due to how it will increase over time, anyway, to disable it just create a "thecrimsonking.pt-BR.json.off" inside the Dialogs folder. All the comments are in portuguese as these are my notes for better understanding since it's my native language, anyone trying to read it should translate on their own since I never planned to translate them. There are lines of logging that does not exist in the current Windbot and where made for my local version for testing my engine and checking all decisions made, feel free to implement them on your own. Also but not least, Claude helped me to make this faster and analyze thousands of data and running tests for a couple of weeks, I'm also not that good at coding and usually I leave broken or useless code behing since I either forget or don't know exactly what fixed what, so it could be my code or Claude code, so it might not be pretty (the reason for so many comments), but I can assure the quality of this work, anyway, use it or don't, it's your choice.
|
Thank you for the contribution. However, I'm not yet sure whether I can merge this PR. Automatically searching for and reading files outside the project directory seems risky. Storing a persistent memory file in the Would it be possible to evaluate the deck's strength using WindBot Arena? An automated AI review also identified the following issues. These findings are based on static analysis and have not been verified through runtime testing.
|
Improved how it reads scripts, now it will ignore if the file is too big based on individual script file size and also added a key in the App.config so the user can set their script file path here instead of making another config file just for this bot (I still dislike the idea of changing something in windbot only for this bot). Improved shared reading from the dictionary to decrease memory usage. Improved how it checks on other cards that's not on the bot and added a reset so the attributes of the cards are not carried over after the duel. Improved memory-file writes to avoid conflicts between multiple instances and fixing the issue it could have. Improved the background searches since it was silently continuing in some cases.
|
Thank you for the concern and reporting all of them, I went up ahead and tried to improve them a bit more, I'm not sure if it would be enough to prevent all of them from happening, but it should work fine. I deliberated choose to have the knowledge file inside the Dialog folder so users wouldn't just see a random log file and delete it, if I added it to my Log folder I would accidentally delete it, so instead I just moved it to a more suitable folder which will be created called "WindBot_knowledge" and inside it the knowledge file will be generated with the name of the bot + _knowledge suffix, the ".off" option to turn it off still existis and all that's necessary to do is add that after the .json extension. As for testing with WindBot Arena... I must say that I'm not exactly very patient with setting a lot of apps just to never use them, even more when they require multiple settings and other tools outside of its own, so I tried and after failing a few times I gave up, so I'm not providing any feedback about that but feel free to test it on your own if you like. If you have any more concerns, let me know and I'll see what I can do, I do not recommend merging the PR until you're satisfied with the results since this executor is different from the others. |
Duel ends = closed connection.
The Crimson King deck, executor and dialogs added...
Note: This is a different executor which has some technical differences approaches from the other bots, I advise reading everything before deciding to use it.
This executor diverges from the traditional ones, instead of coding rules to follow scripted actions, I decided to make a decision engine to calculate plays and results based on guided routes, card value and endboard, which makes this bot adapt on each interaction and recalculate the routes to reach the best results trying as much as possible to outplay the player. There is the Mode=logic that makes the bot calculates even more plays and finding better endboards but usually takes +15s and that's not ideal, so by default it uses the Mode=fast where the ceiling is reduced and it will reach almost the same results as the logic one but it will take no more than +5s for that, which is pretty acceptable (Mode=turbo exists but barely changes the time and reduces a lot of the quality of the endboard, so ignore it).
It was thought to work with MDPro3 and due to the lack of information the bot can "see" from the card, like floodgates and other small things like "destroy" that it cannot tell when it's a thread or just not, I implemented an alternative to the default behavior for it to look reliably for the scripts from the game if the folder is closer to it, doing that the bot can "see" the effect more accurate to try to manage the thread, with that in mind and thinking on how to implement a better interaction I deliberated made it collect data over hundreds of duels and over a couple weeks of testing, then I made some logs which you will be able to see, it will find the card ID/name and log the effects, also it will search for card achetypes and cards that mentions it, then it will gather information and calculates risks of reaching threads (just like we do during a match), then I made it generates a log file to register games and try to learn from them, I noticed some behavior change but after all testing I was already tired and I'm not sure anymore if it will or not work, but I made sure to leave a switch in the code to turn it off since this is too ambicious and it would require more precise info that windbot can provide now and to work adding cards to lists of threads or whatever, I personally don't think it is practical due to how it will increase over time, anyway, to disable it just create a "thecrimsonking.pt-BR.json.off" inside the Dialogs folder.
This is the real log that my Windbot generates and you should see in cmd for the before mentioned systems:
All the comments are in portuguese as these are my notes for better understanding since it's my native language, anyone trying to read it should translate on their own since I never planned to translate them.
There are lines of logging that does not exist in the current Windbot and where made for my local version for testing my engine and checking all decisions made, feel free to implement them on your own.
Also but not least, Claude helped me to make this faster and analyze thousands of data and running tests for a couple of weeks, I'm also not that good at coding and usually I leave broken or useless code behing since I either forget or don't know exactly what fixed what, so it could be my code or Claude code, so it might not be pretty (the reason for so many comments), but I can assure the quality of this work, anyway, use it or don't, it's your choice.
Dialogs for adding an extra personality care... GPT translated for everything that's not PT or EN, it's not made to sound like Jack Atlas, I know the deck is famous because of the anime, but I'm not him and this is my deck, if he wants theirs in the game, he can code his executor and add his list (jk).