lisa wrote:Works fine for me, just remember the profile onload isn't done if you use path:commandline
I did think of that. I did my testing wil my logarcraft waypoint file.
I'm not sure what I did wrong yesterday but today all my tests worked. That includes using the userdefault profile. I added
Code: Select all
tester = 5
print("profile tester",tester)
to my profile onLoad and
to one of the waypoints in my waypoint file. It printed both lines with the value of 5.
Thing to note is the profile onLoad happens after the waypoint onLoad. So if you never leave the waypoint onLoad, then the profile onLoad will never run, as n the case of the commandline.xml file.
I'm not sure why it's done like that. There's probably a reason. Maybe the waypoint file needs to be loaded first so if there is code in the profile onLoad that deals with waypoint file, it'll work. Maybe we could change the order things run. Something like; load profile and load profile onLoad, load waypoint file and load waypointfile onLoad, run profile onLoad, run waypointfile onLoad. Does that make sense?