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

CustomBehavior LoadProfile?

AutomaticCoding

New Member
Joined
Dec 20, 2011
Messages
1,091
Reaction score
1
After reading through kick's script's .xml (1-5 alliance for that matter) I see this:

Code:
CustomBehavior File="LoadProfile" ProfileName="[A - Quest] EK 5-12 [Kick]"

My question is: This is locating a file in the ".." folder (Not really sure what to call it, the higher directory. Meaning like the folder is: Profiles\Alliance\1-5\profile.xml" then it's calling the profile Profiles\Alliance\profile2.xml") so where does the bot scan for the next .xml? Same folder would be obvious, but, where else?

EDIT: The fucking code doesn't work, think it's blocking it out because it's in the same format as HTML tags. Removed the "<>" tags.
 
Last edited:
Code:
NewProfilePath { get { string directory = Path.GetDirectoryName(CurrentProfile);
                                         return (Path.Combine(directory, ProfileName));
}}
From LoadProfile.cs
A quick look at Path.GetDirectoryName makes me believe it searches downwards from the root (the directory where HB is being run from probably) to find the file matching CurrentProfile.
So I would think that is how it works, but you never know.
 
False.

If you leave the profiles in the same order they are in, in his SVN they will load perfectly.

The directory string is actually pulling the current directory of where the first profile you loaded is.
It then backtracks 1 folder, goes into the next folder, and selects the profile respectively.
 
False.

If you leave the profiles in the same order they are in, in his SVN they will load perfectly.

The directory string is actually pulling the current directory of where the first profile you loaded is.
It then backtracks 1 folder, goes into the next folder, and selects the profile respectively.

Then if it's not there, it goes up another folder and till it hits the drive directory?

If so, that's all I needed to know. Thanks.
 
If you don't fiddle with my SVN it will load everything correctly

if you fiddle, expect issues

and no, if you look in the folder - all of the files are clearly there

all of the 1-5's
the 5-12 (EK)
the 1-12 for worgen is not there because of mesh issues

and then 12-60 is the next folder up

Just leave it alone and it works great
 
If you don't fiddle with my SVN it will load everything correctly

if you fiddle, expect issues

I wasn't fiddling, I was reading how it works so I can make my own profile. Didn't modify it, just reading it. Well, I lie, I did modify it but that's for something else.
 
I stand corrected :)
Trying to decipher code after 20 hours without sleep is stupid :p
 
It does not keep searching.

..\ goes back 1 directory.
So if you wanna go back 2 folders "..\..\" *Gasp
If doesn't keep going until it finds it.
You have set a STATIC PATH for the profile.
No searching for it.

If it's not at that static position then it will fail to load, and HB will not load it, and will just stop.
 
Last edited:
i learned some DOS back in the day so it basically cd.. and take out the cd

so ../../Cata/profilename


it would go up 2 folders and then load a cata profile</profilename>
 
i learned some DOS back in the day so it basically cd.. and take out the cd

so ../../Cata/profilename


it would go up 2 folders and then load a cata profile</profilename>

Yes, I know DoS/CMD/Terminal/whateveryouwanttocallit. Thanks, that's all I really needed to know.

@No1knowsy, I use linux, didn't see the .cs for it and it didn't have a "..\" before it so I was slightly confused, but, I get it now.
 
Back
Top