kolton / d2bot-with-kolbot

d2bot game manager by D3STROY3R with kolbot libs by kolton for d2bs
345 stars 332 forks source link

D2 follower not following, staying in town #1922

Open RJ1212 opened 5 years ago

RJ1212 commented 5 years ago

I'm trying to play manual with D2BotMap.dbj with a follower character, but it will just stay in town after auto joining my main character's game.

Follower character config, I set below

Config.Leader = "leadertest1"; // Config.PublicMode = 2; Scripts.Follower = true; // Script that follows a manually played leader around like a merc.

My follower will automatically join game and also join party, but it will stay in town even if i type

1 2 3 WP

etc..

mf022 commented 5 years ago

your leader key is muted? Do you see the leader messages in follower d2 window? Did you configure your follower file ...?

    Scripts.Follower = true; 

If your leader key is muted you should set Local Chat on mode 2 for both chars in the config files.

RJ1212 commented 5 years ago

On my follower file. Scripts.Follower = true;

I followed your post and realized local chat was not enabled. But even after setting it, the follower doesnt listen. https://i.imgur.com/5qULYAP.png

My leader doesnt show LocalChat.enabled Mode 2 for some reason even though I configured it. https://i.imgur.com/qXHwZLw.png

5noop commented 5 years ago

Set UserAddon to false on your follower.

LocalChat won't work with D2BotMap so set it to false too.

RJ1212 commented 5 years ago

Set UserAddon to false on your follower.

LocalChat won't work with D2BotMap so set it to false too.

OH IT WORKS NOW THANK YOU.

I changed the useraddon to false, then also changed config.leader from auto detection to actual name

mf022 commented 5 years ago

LocalChat won't work with D2BotMap so set it to false too.

in fact for me LocalChat mode 2 is working in both cases for leader: D2BotMap or D2BotBlank+Manual.js https://github.com/blizzhackers/documentation/blob/master/kolbot/ManualPlay.md

5noop commented 5 years ago

Then you modified some files, LocalChat.init() is not called by default when running D2BotMap.

mf022 commented 5 years ago

Then you modified some files, LocalChat.init() is not called by default when running D2BotMap.

I guess my mods aren't affecting this, cause I have LocalChat.init(); only in the default line 111 of default.dbj, which is loaded in any case by d2bs. edit: I didn't use the 3rd char in game to see if the chat communication is done through server or local chat.

5noop commented 5 years ago

A lot of stuff in default.dbj is not executed with D2BotMap as starter, check this part https://github.com/kolton/d2bot-with-kolbot/blob/master/d2bs/kolbot/default.dbj#L40-L47

mf022 commented 5 years ago

commands are working even I haven't the 3rd char to check if that was server chat or local one. Anyway, my preferences in manual playing goes to Manual.js (by Laz), in which case the whole config is loaded.

mf022 commented 4 years ago

D2BotMap I guess that can be used with LocalChat if you add some extra lines in default.dbj in the part related to d2botmap

    if (getScript("d2botmap.dbj")) {
        load("tools/mapthread.js");
        load("tools/ToolsThread.js");
        Config.init(true);
        LocalChat.init();

        while (true) {
            delay(1000);
        }
    }

otherwise in case of using Laz's Manual.js script the whole char configuration is loaded