The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Strange behavior with examples
draxd Offline
Junior Member

Posts: 4
Threads: 2
Joined: May 2010
Reputation: 0
#1
Strange behavior with examples

I'm trying to use Video Test from tests folder. I compiled it with Visual Studio 2010 but it crashes , and after little of debugging I found that Video Manager is missing. This also says in hpl.log ,
ERROR: Could not find a loader for 'test_video2.ogm'.
and in void cResources::Init where mpVideoManager is created it looks that it for some reason gets null value.
Anyone get some idea about this. I tried to find reason for this but whos not able to.

Also I wish to add this, in sources/resources/Resources.cpp line 133:
mpParticleManager = hplNew( cParticleManager,(apGraphics, this) );
mlstManagers.push_back(mpParticleManager);
mpSoundManager = hplNew( cSoundManager,(apSound, this) );
mlstManagers.push_back(mpParticleManager);

This looks like copy paste bug to me , I presume that line number 4 should be:
mlstManagers.push_back(mpSoundManager );
Is this ok ?

Update :
I managed to fix this problem by commenting out INCLUDE_THEORA in lowlevelresourcessdl.cpp
line 27:
//#ifdef INCLUDE_THEORA
#include "impl/VideoStreamTheora.h"
//#endif

and

line 143:
//#ifdef INCLUDE_THORA
apManager->AddVideoLoader(hplNew( cVideoStreamTheora_Loader,()));
//#endif
05-19-2010, 10:04 PM
Find


Messages In This Thread
Strange behavior with examples - by draxd - 05-19-2010, 10:04 PM
RE: Strange behavior with examples - by Thomas - 05-20-2010, 08:26 AM
RE: Strange behavior with examples - by draxd - 05-20-2010, 08:58 AM
RE: Strange behavior with examples - by Thomas - 05-20-2010, 10:15 AM
RE: Strange behavior with examples - by draxd - 05-20-2010, 10:45 AM



Users browsing this thread: 1 Guest(s)