overlay:scriptCompiler problem

Problems building or running the engine, queries about how to use features etc.
Post Reply
OgreHunter
Gnoblar
Posts: 2
Joined: Sat Jun 15, 2019 2:46 am

overlay:scriptCompiler problem

Post by OgreHunter » Sat Jul 06, 2019 8:35 am

Ogre Version: :1.12.1:
Operating System: :win7:
Render System: :opengl3plus:

Code: Select all



void MyOverlays::setup()
{
	// do not forget to call the base first
	OgreBites::ApplicationContext::setup();

	// register for input events
	addInputListener(this);
	// get a pointer to the already created root
	Ogre::Root* root = getRoot();
	Ogre::SceneManager* scnMgr = root->createSceneManager();
	// register our scene with the RTSS
	Ogre::RTShader::ShaderGenerator* shadergen = Ogre::RTShader::ShaderGenerator::getSingletonPtr();
	shadergen->addSceneManager(scnMgr);
	// without light we would just get a black screen    
	Ogre::Light* light = scnMgr->createLight("MainLight");
	Ogre::SceneNode* lightNode = scnMgr->getRootSceneNode()->createChildSceneNode();
	lightNode->setPosition(0, 100, 15);
	lightNode->attachObject(light);
	// also need to tell where we are
	Ogre::SceneNode* camNode = scnMgr->getRootSceneNode()->createChildSceneNode();
	camNode->setPosition(20, 100, 100);
	camNode->lookAt(Ogre::Vector3(0, 0,0), Ogre::Node::TS_WORLD);
	// create the camera
	Ogre::Camera* cam = scnMgr->createCamera("myCam");
	cam->setNearClipDistance(5); // specific to this sample
	cam->setFarClipDistance(5000);
	cam->setAutoAspectRatio(true);
	camNode->attachObject(cam);
	// and tell it to render into the main window
	getRenderWindow()->addViewport(cam);
	// finally something to render
	
	Ogre::Overlay*pOverlay = OverlayManager::getSingleton().getByName("MyOverlayTest1");
	pOverlay->show();
	Ogre::Entity*ogreHead = scnMgr->createEntity("Head", "ogrehead.mesh");
	Ogre::SceneNode*headNode = scnMgr->getRootSceneNode()->createChildSceneNode();
	headNode->attachObject(ogreHead);
	headNode->setPosition(0, 0, 0);
}

//     MyOverlay.overlay
MyOverlayTest1
{
    zorder 500
    container Panel(MyOverlayTest1/ImagePanel)
    {
         metrics_mode pixels
         horz_align right
         vert_align bottom
         top -640
         left -650
         width 640
         height 640
         material MyOverlayMaterial1
    }
}


Ogre.log :

15:30:29: Parsing scripts for resource group Popular
15:30:29: Parsing script MyOverlay1.overlay
15:30:29: Error: ScriptCompiler - invalid parameters in MyOverlay1.overlay(1):       
15:30:29: Error: ScriptCompiler - invalid parameters in MyOverlay1.overlay(1):       
15:30:29: Error: ScriptCompiler - invalid parameters in MyOverlay1.overlay(1):       
15:30:29: Error: ScriptCompiler - invalid parameters in MyOverlay1.overlay(1):              
15:30:29: Error: ScriptCompiler - invalid parameters in MyOverlay1.overlay(1):              
15:30:29: Error: ScriptCompiler - invalid parameters in MyOverlay1.overlay(1):              
15:30:29: Error: ScriptCompiler - invalid parameters in MyOverlay1.overlay(1):              
15:30:29: Error: ScriptCompiler - invalid parameters in MyOverlay1.overlay(1):              
15:30:29: Error: ScriptCompiler - invalid parameters in MyOverlay1.overlay(1):              
15:30:29: Error: ScriptCompiler - invalid parameters in MyOverlay1.overlay(1):              
15:30:29: Error: ScriptCompiler - invalid parameters in MyOverlay1.overlay(1):              
15:30:29: Finished parsing scripts for resource group Popular

what should i do to fix this problem?
0 x

paroj
OGRE Team Member
OGRE Team Member
Posts: 878
Joined: Sun Mar 30, 2014 2:51 pm
x 177
Contact:

Re: overlay:scriptCompiler problem

Post by paroj » Sat Jul 06, 2019 12:10 pm

0 x

Post Reply