What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

SH31

New Member
Joined
Oct 3, 2014
Messages
409
출처 : https://www.thebuddyforum.com/demonbuddy-forum/plugins/adventurer/238079-automatic-unstucker.html


번역 :

'Adventurer(플러그인)'를 사용함에있어 최근들어 유달리 새 맵뿐아니라 이전 맵에서도 낑김현상이 잦아졌습니다.
그래서 파고들어보니 Adventurer에 낑김현상을 풀어줄 어떠한 코드도 없더군요.
Trinity쪽 낑김현상푸는 코드를 살짝 가져와서 Adventurer에 수정시켜 적용했습니다.
한시간쯤 돌려보니 낑김현상해결시도를 한다는 디버그 로그가 수없이 올라온것으로 보아 아직까지는 결과가 훌륭해 보입니다.




Plugins/Adventurer/Coroutines/NavigationCoroutine.cs 경로 파일의 아래부분을 찾아서:


Code:

private NavigationCoroutine(Vector3 destination, int distance)
{
_destination = destination;
_distance = distance;
if (_distance < 2)
{
_distance = 2;
}
}





아래와 같이 수정하시면됩니다.:


Code:

private NavigationCoroutine(Vector3 destination, int distance)
{
_destination = destination;
_distance = distance;
if (_distance < 2)
{
_distance = 2;
}
if (LastResult == CoroutineResult.Failure)
{
Logger.Debug("Trying RANDOM unstuck point!");

Random random = new Random();
_distance = random.Next(5, 30);
float direction = (float)random.NextDouble();
Vector3 myPos = AdvDia.MyPosition;

_destination = MathEx.GetPointAt(myPos, _distance, direction);
}
}





추신 :

해당 수정사항은 어디에 한참동안 낑겼을때 근처 랜덤한 지점으로 한번이동하라는 내용입니다.
현상금사냥, 균열, 대균열등 Adeventur가 작동하는 상황 전부에 적용되며
일균의 나무있는 눈내리는 신규맵의 문제는 낑김현상이 아니라 봇이 어디로 가야할지 경로지정을 못해주는 문제라서
이 수정으로도 해결되지 않습니다.

캐릭이 자주 어디에 낑겨서 부들부들 대면 수정해보시는걸 권유드립니다.

- 수정전 백업은 필수
- 수정후 저장하고 데몬버디를 완전히 껐다가 다시켜야 적용됩니다
- 일반 유저가 작성한 코드이며 공식적인것이 아닙니다
- 전 그저 퍼왔을뿐 무능력자이니 저에게 질문은 큰 의미가 없습니다. 문의사항은 출처로 가셔서 영어로!
 
Last edited:
변경 전 후로 비교를 했보니 잘 작동 하네요. 추천드립니다. ^^
 
감사합니다 좋은정보네요 근데 업데이트 될때마다 추가 해야되는거죠
 
Compiler Error: c:\Users\mr.100\Desktop\Demonbuddy 1.1.2892.445\Plugins\Adventurer\Coroutines\NavigationCoroutine.cs(18,25) : error CS0101: 'Adventurer.Coroutines' 네임스페이스에 이미 'NavigationCoroutine'에 대한 정의가 들어 있습니다.
Compiler Error: c:\Users\mr.100\Desktop\Demonbuddy 1.1.2892.445\Plugins\Adventurer\Coroutines\NavigationCoroutine.cs(47,22) : error CS0102: 'Adventurer.Coroutines.NavigationCoroutine' 형식에 이미 'States'에 대한 정의가 포함되어 있습니다.
Compiler Error: c:\Users\mr.100\Desktop\Demonbuddy 1.1.2892.445\Plugins\Adventurer\Coroutines\NavigationCoroutine.cs(352,22) : error CS0102: 'Adventurer.Coroutines.NavigationCoroutine' 형식에 이미 'Mover'에 대한 정의가 포함되어 있습니다.

데몬버디 실행시에 이렇게 메세지가 뜨면 소스 수정을 잘못한건가요?
 
같은 폴더에 NavigationCoroutine - 복사본.cs 이 있으면 안되나 보네요...
백업파일을 다른폴더로 옮기니깐 에러가 안뜹니다.
 
Back
Top