Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
PointLight2D?
Author Message
Synecdoche Offline
Junior Member

Posts: 2
Joined: Jul 2010
Reputation: 0
Post: #1
PointLight2D?
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.
07-22-2010 07:56 PM
Find all posts by this user Quote this message in a reply
Urkle Offline
FG - Associate

Posts: 922
Joined: Jul 2006
Reputation: 5
Post: #2
RE: PointLight2D?
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).

Developing away on one of
Mac Pro Dual 2Ghz, 7GB RAM, Snow Leopard, nVidia 8800 512MB.
Linux, 3-core AMD, 4GB RAM, Fedora 15, nVidia 450 1GB
07-22-2010 11:37 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Synecdoche Offline
Junior Member

Posts: 2
Joined: Jul 2010
Reputation: 0
Post: #3
RE: PointLight2D?
Got it working. Awesome! Thanks!
07-23-2010 12:23 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)