kolton / d2bot-with-kolbot

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

Error pather.js line 570 #2483

Open Hatmud opened 4 years ago

Hatmud commented 4 years ago

could someone help me with this error. Thank you. Error in AutoSmurf (pather.js line 570 moveToPresent: Couldn´t find present unit -id 395

gtoilet commented 4 years ago

it couldnt find the monster that goes with that id

Hatmud commented 4 years ago

https://github.com/kolton/d2bot-with-kolbot/blob/master/d2bs/kolbot/sdk/monster%20classID's.txt

ID window2

DarkHorseDre commented 4 years ago

one of the reasons it does not find a monster is because another character killed it

Hatmud commented 4 years ago

No. The respect of characters does not follow me (one of the reasons it does not find a monster is because another character killed it) This is the Log [2020/05/12 11:21:30] Error in AutoSmurf (pather.js line 570): moveToPreset: Couldn't find preset unit - id 395 Stack: main@default.dbj:224, Loader.init@loader.js:17, Loader.loadScripts@loader.js:135, AutoSmurf@autosmurf.js:6155, @autosmurf.js:4776, @autosmurf.js:4480, @autosmurf.js:4392, Pather.moveToPreset@pather.js:570

[2020/05/12 11:37:57] Error in AutoSmurf (autosmurf.js line 5583): Baal: Couldn't find portal. Stack: main@default.dbj:224, Loader.init@loader.js:17, Loader.loadScripts@loader.js:135, AutoSmurf@autosmurf.js:6163, @autosmurf.js:5583

Hatmud commented 4 years ago
569 if (!presetUnit) {
570     throw new Error("moveToPreset: Couldn't find preset unit - id " + unitId);
571 }

The error happens when I use the TP and return to a city. I think you can't go back to the TP where you came from. It is always when there are many enemies.