Frictional Games Forum (read-only)
PointLight2D? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Open Source Collaboration (https://www.frictionalgames.com/forum/forum-27.html)
+--- Forum: HPL1 Engine (https://www.frictionalgames.com/forum/forum-28.html)
+--- Thread: PointLight2D? (/thread-3590.html)



PointLight2D? - Synecdoche - 07-22-2010

I compiled everything and the game starts up, but crashes with the error "couldn't load PointLight2D." I ran a search and a PointLight2D.bmp came up in my assets\core\textures folder.

I also found this:

mpLightMap[0] = mpResources->GetTextureManager()->Create2D("PointLight2D.bmp",false);

if(mpLightMap[0] == NULL)FatalError("Couldn't load PointLight2D");

and I found these two lines in here C:\Program Files (x86)\Penumbra Overture\redist\FrictionalGames-HPL1Engine-ba1b02b\sources\graphics\Renderer2D.cpp

If anyone could help me figure out how to fix this that would be great.


RE: PointLight2D? - Urkle - 07-22-2010

Basic Engine flow (with respect to resource locations)
You create then engine and then add search paths (from the resources.cfg)
when a resource is requested (ie.. via that Create2D call) the resource manager is queried to locate that asset.

Since all of the resource paths are provided to the engine as "Relative", the working directory of the program MUST be in the same directory. So if you are running one of the tests in the hpl1engine, they must be run from the "assets" folder to be able to locate the resources.

Now, for running the Penumbra Overture game, you need to run the executable within the redist folder from a purchased copy of Penumbra Overture. This is because the assets provided in the HPL1Engine are only the common and sample assets used by the opensourced engine directly (licensed under the CC license).


RE: PointLight2D? - Synecdoche - 07-23-2010

Got it working. Awesome! Thanks!


RE: PointLight2D? - Steffano - 02-13-2012

Hi, i have the same problem but I dont really get exactly what that reply means.