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!

[Stuck]Pluging

Hi,
You are right you could end up in an infinite loop.
Ther issue with this plugin is that depending on the scenario you are using it a different approach would be maybe needed.
And it will be nearly impossible to fit all. But I am currently developing the nex version which will try to take this stuff into account
 
so if it dosent get stuck in a loop will it continue with the profile that was loaded i think i read yes but i wanna be sure
 
Depends on the profile.
If the profile can handle a teleport to the nearest Arethyte then yes.
 
I have some suggestions for options to add to make it a bit more customizable to the situation:

Teleport after [x] stucks with less then [y] seconds between them: User can choose the time period before the stuck counter resets after not detecting a stuck, and the amount of consecutive stucks within that time period before attempting to teleport

Stop bot after [x] failed teleports: This is a user selectable backup if teleporting fails for any reason, such as combat of unable to dismount to stop the bot from infinitely running/jumping in stuck position

Stop bot after teleport [true/false]: To allow the user to decide if they want to shut down after a teleport or not

Stop bot after [x] teleports within [y] seconds: User selectable to prevent an infinite teleport loop

I can provide suedocode for these as well if you like
 
I see a number of "System.IO.File.AppendAllText(@"I:\reborn\stuck.txt", "Second indication that we are stuck now lets take actions");"

Are you using static file locations? These may not play well on systems with no 'I' drive. Try system defined variable names, like "<Documents>\reborn\stuck.txt" or similar with correct write permissions.
 
that was in a very old first version in. And removed about a month ago. Are you sure you have the right version?
 
Thanks for the input. I will add it to the next version. If you want to extend it yourself. Also fine. But plz pm me the your version that i can up it at the 1st page. Of course with credit to you.
 
that was in a very old first version in. And removed about a month ago. Are you sure you have the right version?

I'm not sure; looking at the naming convention, I thought the stuck.zip was the first (unversioned) attempt, with the next being stuckv0.1.2 and the most recent being stuckv0.1.4. Which one is actually stuckv1.0.0?

Thanks for the input. I will add it to the next version. If you want to extend it yourself. Also fine. But plz pm me the your version that i can up it at the 1st page. Of course with credit to you.

I'll start looking into expanding it; unfortunately, I don't have the resharper license yet, so my Visual Studio IDE isn't autolinking the class properties correctly, which is making manually searching every class and it's inheritance take a substantial amount of time.
 
Hi dark.
So i thought i can make your plugin workin by myself but it seems i cant :P.
I reinstalled your plugin. Old Version gone. 1.5v added.
Everytime it trys to take actions there is an error on Line 92 or Line 116 (mostly 92)
Log below.

Exception while pulsing plugin Stuck!: System.IO.IOException:
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
System.IO.File.WriteAllText(String path, String contents)
Stuck.Stuck.OnPulse() in c:\Users\Sebsen\Desktop\Rebornbuddy 1.0.271.0\Plugins\Stuck\stuck.cs:Line 92.
ff14bot.Managers.PluginManager.PulsePlugin(IBotPlugin plugin)

For me its obvious that (System.IO.File.AppendAllText(@"I:\reborn\stuck.txt) at Line 92 is the problem.

So i made a new txt file located at D:\reborn\stuck.txt and changed it.
The error above is gone but the plugin still dont want to take actions.
The log is below and its endless but i shortened a bit.
Same errors with eng client. so thats not the problem. (because its a non eng log)

Default (with I:\reborn\stuck.txt in stuck.cs)
View attachment 6860 2015-06-09 17.53.txt

Changed (with D:\reborn\stuck.txt in stuck.cs) (doesnt take actions)
View attachment 5520 2015-06-09 21.31.txt

So its just spamming
[19:22:57.435 N] First Indication for Stuck
[19:22:57.489 N] Reseting stuckwatch after 3
[19:22:57.489 N] Update location Stage 0

now/than. Maybe its just a settings problem but i tried so much. Iam out of ideas :)

Any help would be nice :)
 
Last edited:
Thanks
So the missing file was my bad. just uploaded a new version.
I used it for debugging. So this problem is gone.

The second part is a setting issue. You shoud set the reset counter to something like 60 seconds.
With a setting that low you will reset all stuck indications within 3 seconds. Giving that the stage 2 takes around 10 -15 seconds to verify that we are stuck three is too low.
I will soon update the first page adding this information.
 
Oh this sounds good :) Thank you for your fast help. English isnt my language so i didnt fully understood the stuck settings. It was set to "0" by default so i thought 0 = Default setting :)
If you update the first page and add some/these explaination/s about the settings would be great :P


Edit: Plugin working like a BOSS now!
Big thx again for this and Patrol :)
 
Last edited:
Back
Top