f1af
Hellow! I have
vehicle.xml and vehicle.as
It’s one vehicle for one million level locations.
I have level_00.xml, it have Node, Node have ScriptInstance component and this script:
class ProxyNode : ScriptObject
{
String sourceXML;
void DelayedStart()
{
log.Info("ProxyNode: sourceXML = " + sourceXML);
XMLFile@ xmlfile = cache.GetResource("XMLFile", sourceXML);
if ((xmlfile !is null) and (node.GetComponents().length == 1))
{
if (node.LoadXML(xmlfile.GetRoot(), true))
{
log.Warning("LoadXML!!!");
}
}
}
}
And I load scene like this:
scene_ = Scene("level_00");
scene_.LoadXML(cache.GetFile("Scenes/level_00.xml"));
And Urho is crashed =(
It’s bug or I do somthing wrong?