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

[BUG] -autostart issues when Custom XML Tags are inside IF statement in profile

sinterlkaas

New Member
Joined
Jan 17, 2012
Messages
536
Reaction score
14
Start:
Demonbuddy.exe -autostart -profile="G:\New folder\Profiles\bugprofile.xml"

Bugged Example Profile:
<Profile>
<Name>example</Name>
<KillMonsters>True</KillMonsters>
<PickupLoot>True</PickupLoot>
<GameParams quest="101758" step="1" act="A3" difficulty="Inferno" resumeFromSave="True" isPrivate="True" numGames="-1" />
<Order>
<WriteReport />
<If condition="Me.IsInTown">
<Continue profile="Profile.xml" />
</If>
<Continue profile="profile"/>
</Order>
</Profile>

Log file:
[16:49:24.070 N] Demonbuddy v1.0.1162.284 started
[16:49:24.352 N] Logging in...
[16:49:25.668 N] Attached to Diablo III with pid: 8640
[16:49:25.672 N] Flashing window
[16:49:26.413 D] Executable Path: G:\New folder\Demonbuddy.exe
[16:49:26.413 D] OS Architecture: AMD64
[16:49:26.415 D] OS: Windows 7 Service Pack 1 64-bit
[16:49:26.415 D] OS Language: Dutch (Netherlands)
[16:49:26.487 D] Reloading AssemblyLoader<Zeta.CommonBot.ICombat> - Initializing
[16:49:30.816 N] Failed to load profile: Element Continue is not supported. Please check your XML and try again. (<Continue profile="Profile.xml" />) Line 9
[16:49:30.824 D] System.Exception: Element Continue is not supported. Please check your XML and try again. (<Continue profile="Profile.xml" />) Line 9

at ..(PropertyInfo , XElement , Object )
at Zeta.XmlEngine.XmlEngine.Load(Object obj, XElement element)
at ..(XElement , Type )
at ...(XElement )
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at ..(XElement , PropertyInfo )
at ..(PropertyInfo , XElement , Object )
at Zeta.XmlEngine.XmlEngine.Load(Object obj, XElement element)
at Zeta.CommonBot.Profile.Profile.Load(XElement element, String path)
at Zeta.CommonBot.Profile.Profile.Load(String path)
at Zeta.CommonBot.ProfileManager.Load(String profilePath, Boolean rememberPath)
 
I don't think the problem is with the <If> tag, it is because if you are not logged in to D3 when you start db, it won't load the character settings saved (because db doesn't know what character it is) and therefore does not load any plugins, which causes this error.

The work-around I've found is to make a starter profile that just has <LoadProfile profile="ActualProfileYouWant.xml" /> in the <Order> block so it doesn't encounter any custom tags until the plugins are loaded.

If any devs are listening what I would like is for db to not load the profile until the character is logged in and the plugins are loaded.
 
I don't think the problem is with the <If> tag, it is because if you are not logged in to D3 when you start db, it won't load the character settings saved (because db doesn't know what character it is) and therefore does not load any plugins, which causes this error.

The work-around I've found is to make a starter profile that just has <LoadProfile profile="ActualProfileYouWant.xml" /> in the <Order> block so it doesn't encounter any custom tags until the plugins are loaded.

If any devs are listening what I would like is for db to not load the profile until the character is logged in and the plugins are loaded.

Like you said this is a workaround not a fix for the problem cause when commenting the continue tag within the IF tag out will result in a working profile ** Note that there still is a continue tag below that if statement and that one does not cause any problems
 
Back
Top