Bot failed to run tribal wars

Hello i’ve just tried to run the bot but it says that it has failed to compile the bot program because it cannot find the entry point… seems like the file ‘Bot.elm’ file is missing.

Could anyone explain what the Bot.elm file is and how to get it?

running bot 8aa8bcf7be... using client v2021-08-23 failed with exception: System.Exception: Failed compiling the bot program code: Failed to find the file with the entry point. Seems like the 'Bot.elm' file is missing in this program code file tree.
   at BotLab.Client.RunBotSession.Run(TreeWithStringPath botCodeTree, Func`2 getFileFromHashSHA256, String appProcessRecordingDirectory, Action`1 logEntry, Action`1 addSessionLogEntry, String botSettings, String sessionCustomName, AppSourceStructure botSource, String keyToStartOnlineSession, IEnumerable`1 sessionLengthLimits, IImmutableList`1 pauseBotKeys, IImmutableList`1 statusDisplayAdditionLines, RunSimulation simulation, InterProcessCommunicationState interProcessCommunication, Action`2 updateDisplayText) in D:\a\dev-of-botlab\dev-of-botlab\implement\client\BotLab.Client\RunBotSession.cs:line 149
   at BotLab.Client.RunBotSession.RunWithDisplayInDotnetConsole(TreeWithStringPath botCodeTree, Func`2 getFileFromHashSHA256, String appProcessRecordingDirectory, Action`1 logEntry, Action`1 addSessionLogEntry, String botSettings, String sessionCustomName, AppSourceStructure botSource, String keyToStartOnlineSession, IEnumerable`1 sessionLengthLimits, IImmutableList`1 pauseBotKeys, IImmutableList`1 statusDisplayAdditionLines, RunSimulation simulation, InterProcessCommunicationState interProcessCommunication) in D:\a\dev-of-botlab\dev-of-botlab\implement\client\BotLab.Client\RunBotSession.cs:line 103
   at BotLab.Client.ClientProgram.runBotWithOptionsFromCommandLine(String botSourceInputAddress, String botSettings, String pauseBotKeysString, Boolean onlineSession, String keyToStartOnlineSession, String sessionLengthLimitArgumentString, RunSimulation simulation, Nullable`1 detailedSessionRecording) in D:\a\dev-of-botlab\dev-of-botlab\implement\client\BotLab.Client\Program.cs:line 755

It failed because bot 8aa8bcf7be does not work with the latest botlab client.

To avoid this error you can use bot 8881e86b0c from https://catalog.botlab.org/8881e86b0ce82d9da6b4a5f89234a6406cc0c067ca2666f4c31f0982029e25ee
(The Bot.elm file is included there)

I updated the guides to link to the new bot: bots/farm-manager-tribal-wars-2-farmbot.md at main · Viir/bots · GitHub

1 Like

Thanks!! thats awesome