Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (FreeBSD)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 550 - File: global.php PHP 8.1.27 (FreeBSD)
File Line Function
/global.php 550 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.27 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.27 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 26 - File: global.php(872) : eval()'d code PHP 8.1.27 (FreeBSD)
File Line Function
/global.php(872) : eval()'d code 26 errorHandler->error
/global.php 872 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (FreeBSD)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (FreeBSD)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (FreeBSD)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (FreeBSD)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (FreeBSD)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (FreeBSD)
File Line Function
/printthread.php 165 errorHandler->error

Failed to init atlas resource target - Printable Version
The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (FreeBSD)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 550 - File: global.php PHP 8.1.27 (FreeBSD)
File Line Function
/global.php 550 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.27 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.27 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 26 - File: global.php(872) : eval()'d code PHP 8.1.27 (FreeBSD)
File Line Function
/global.php(872) : eval()'d code 26 errorHandler->error
/global.php 872 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (FreeBSD)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (FreeBSD)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (FreeBSD)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (FreeBSD)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (FreeBSD)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (FreeBSD)
File Line Function
/printthread.php 165 errorHandler->error



Official Murl Engine Forum
Failed to init atlas resource target - Printable Version

+- Official Murl Engine Forum (https://murlengine.com/forum)
+-- Forum: Murl Engine (https://murlengine.com/forum/forumdisplay.php?fid=5)
+--- Forum: General (https://murlengine.com/forum/forumdisplay.php?fid=8)
+--- Thread: Failed to init atlas resource target (/showthread.php?tid=44)



Failed to init atlas resource target - Stefan - 06 Sep 2013

Hi!

The code below generates the following console output while failing:

Graph::SingleResourceTarget::Init(): Need exactly 1 object
Graph::PlaneSequenceGeometry::InitSelf(): Failed to init atlas resource target


Graph::INode* parameters = root->CreateNode("FixedParameters");
Graph::IPlaneSequenceGeometry* geometry = 
    dynamic_cast<Graph::IPlaneSequenceGeometry*>(root->CreateNode("PlaneSequenceGeometry"));
            
if (parameters != 0 && geometry != 0)
{
    AddChild(parameters);
    parameters->AddChild(geometry->GetNodeInterface());
                
    geometry->GetAtlasResourceTarget()->SetResourceId("particles:atlas_particles", 0);

    return true;
}
else
{
    Debug::Trace("InitSelf(): Failed to create subnodes.");
    return false;
}


However, achieving the same with XML does work.

Any ideas?

I found a similar issue with the SingleNodeTargets:

Graph::INode* node = GetCurrentNamespace()->FindNode(nodeIdToFind);
mNodeTarget.SetNode(node, 0);
if (!mNodeTarget.Init(tracker))
{
    return false;
}


Debugging the Init() method of SingleNodeTarget told me that mNumberOfNodes was still set to zero.

if ((mMinNumberOfNodes != 0) && (mNumberOfNodes == 0))
{
    Debug::Error("Graph::SingleNodeTarget::Init(): Need exactly 1 node");
    return false;
}



RE: Failed to init atlas resource target - dizzy - 09 Sep 2013

Hi!

You need to explicitly define the actual number of resources/nodes you want to attach, before the node gets initialized:
...
if (parameters != 0 && geometry != 0)
{
    AddChild(parameters);
    parameters->AddChild(geometry->GetNodeInterface());
                
    geometry->GetAtlasResourceTarget()->SetNumberOfResources(1);
    geometry->GetAtlasResourceTarget()->SetResourceId("particles:atlas_particles", 0);

    return true;
}
...

and
...
Graph::INode* node = GetCurrentNamespace()->FindNode(nodeIdToFind);
mNodeTarget.SetNumberOfNodes(1);
mNodeTarget.SetNode(node, 0);
if (!mNodeTarget.Init(tracker))
{
    return false;
}
...

The documentation for the index parameter in SetResourceId()/SetNode() etc. already hints in that direction, however we will update the documentation for both Graph::IGenericResourceTarget and Graph::IGenericNodeTarget to more clearly state this behavior.


RE: Failed to init atlas resource target - Stefan - 09 Sep 2013

That's it, thx!

Quote:The documentation for the index parameter in SetResourceId()/SetNode() etc. already hints in that direction, however we will update the documentation for both Graph::IGenericResourceTarget and Graph::IGenericNodeTarget to more clearly state this behavior.

I found out, that the node target of Graph::IReference requires the same property to be set when configuring it manually.