kolton / d2bot-with-kolbot

d2bot game manager by D3STROY3R with kolbot libs by kolton for d2bs
346 stars 334 forks source link

10:29:40 (Hutber_Mule) MainLoopException: info.realm.toLowerCase is not a function (d2botmule.dbj #677) #2559

Open hutber opened 4 years ago

hutber commented 4 years ago

WHen my bot trys to Mule I get the following error: 10:29:40 (Hutber_Mule) MainLoopException: info.realm.toLowerCase is not a function (d2botmule.dbj #677)

image

Config

    Mules: {
        "Mule1": {
            muleProfile: "<profile>", // The name of mule profile in d2bot#. It will be started and stopped when needed.
            accountPrefix: "hutberm_", // Account prefix. Numbers added automatically when making accounts.
            accountPassword: "<password>", // Account password.
            charPrefix: "hutberm_", // Character prefix. Suffix added automatically when making characters.
            realm: 3, // Available options: "useast", "uswest", "europe", "asia"
            expansion: true,
            ladder: true,
            hardcore: false,
            charsPerAcc: 8, // Maximum number of mules to create per account (between 1 to 18)

            // Game name and password of the mule game. Never use the same game name as for mule logger.
            muleGameName: ["hutbermule", "jadwiga"], // ["gamename", "password"]

            // List of profiles that will mule items. Example: enabledProfiles: ["profile 1", "profile 2"],
            enabledProfiles: ["eoyn_N","eoyn NM","eoyn H", "Leech", "Hutber_pal"],

            // Stop a profile prior to muling. Useful when running 8 bots without proxies.
            stopProfile: "",
            stopProfileKeyRelease: false, // true = stopProfile key will get released on stop. useful when using 100% of your keys for botting.

            // Trigger muling at the end of a game if used space in stash and inventory is equal to or more than given percent.
            usedStashTrigger: 80,
            usedInventoryTrigger: 80,

            // Mule items that have been stashed at some point but are no longer in pickit.
            muleOrphans: true
        }
    },
gtoilet commented 4 years ago

try

realm: "europe", // Available options: "useast", "uswest", "europe", "asia"

hutber commented 4 years ago

Ah yes, the problem with this was seen here

MuleLogger: Login account:account
[Strict Warning (162)] File(kolbot\libs\oog.js:762) reference to undefined property
realms[info.realm]

So the work around here was to use the number directly, and that fixed the problem.