Frictional Games Forum (read-only)
It just crashes! - 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: Overture (https://www.frictionalgames.com/forum/forum-29.html)
+--- Thread: It just crashes! (/thread-3425.html)

Pages: 1 2


It just crashes! - alfie - 05-23-2010

I got the project to compile, but it just crashes.
I debugged it and it crashes on

> Penumbra.exe!BuildLogFilename(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & asFilename="òÿ‹„ýÿÿÿ%¨‘i") Line 108 + 0x3b bytes C++


Which refers to

wstring BuildLogFilename ( const string& asFilename )
{
wstring wsName;
wstring wsTemp;
wsName = String2WString(asFilename);

in oal_loggerobject.cpp

it may be worth mentioning that the OAL_wrapper did not compile first time, I had to copy a load of files and set the includes to local.


RE: It just crashes! - nckomodo - 05-23-2010

(05-23-2010, 09:11 PM)alfie Wrote: I got the project to compile, but it just crashes.
I debugged it and it crashes on

> Penumbra.exe!BuildLogFilename(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & asFilename="òÿ‹„ýÿÿÿ%¨‘i") Line 108 + 0x3b bytes C++


Which refers to

wstring BuildLogFilename ( const string& asFilename )
{
wstring wsName;
wstring wsTemp;
wsName = String2WString(asFilename);

in oal_loggerobject.cpp

it may be worth mentioning that the OAL_wrapper did not compile first time, I had to copy a load of files and set the includes to local.

try adding WIN32 to the preprocessor defines for OALWrapper (its the preprocessor selection under C/C++ in the properties page, atleast thats where it is in vs 2010) and see if that fixes it any.


RE: It just crashes! - MulleDK19 - 05-24-2010

(05-23-2010, 09:11 PM)alfie Wrote: I got the project to compile, but it just crashes.
I debugged it and it crashes on

> Penumbra.exe!BuildLogFilename(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & asFilename="òÿ‹„ýÿÿÿ%¨‘i") Line 108 + 0x3b bytes C++


Which refers to

wstring BuildLogFilename ( const string& asFilename )
{
wstring wsName;
wstring wsTemp;
wsName = String2WString(asFilename);

in oal_loggerobject.cpp

it may be worth mentioning that the OAL_wrapper did not compile first time, I had to copy a load of files and set the includes to local.

Copy all the source files and header files from OALWrapper into HPL1Engine, and compile it.


RE: It just crashes! - ricky - 05-24-2010

You shouldn't be copying includes anywhere!

HPL1Engine needs $(ProjectDir)..\OALWrapper\includes added to the include path and OALWrapper needs WIN32 added to the defines.


RE: It just crashes! - MulleDK19 - 05-24-2010

(05-24-2010, 05:08 PM)ricky Wrote: You shouldn't be copying includes anywhere!

HPL1Engine needs $(ProjectDir)..\OALWrapper\includes added to the include path and OALWrapper needs WIN32 added to the defines.

I included all header files and source files and removed the OALWrapper project completely...


RE: It just crashes! - alfie - 05-24-2010

Ok, it gets to loading, then crashes, but when I debug it says error couldn't load PointLight2D.


RE: It just crashes! - MulleDK19 - 05-24-2010

(05-24-2010, 08:40 PM)alfie Wrote: Ok, it gets to loading, then crashes, but when I debug it says error couldn't load PointLight2D.

Start the executable, then attach the debugger.


RE: It just crashes! - alfie - 05-24-2010

I can't, it goes fullscreen and wont let me view any other windows.


RE: It just crashes! - MulleDK19 - 05-24-2010

(05-24-2010, 08:49 PM)alfie Wrote: I can't, it goes fullscreen and wont let me view any other windows.

Display a messagebox in the entry function.


RE: It just crashes! - alfie - 05-24-2010

I believe it is on this line

cString::FloatStringToArray(&vRawData[0],pVecText->Value(),lSize * 3);

That the problem is

This is in the

static void LoadGeometryVec(TiXmlElement *apRootElem, tColladaGeometryVec *apColladaGeometryVec)
{

in MeshLoaderColladaLoader in HPL engine project.
OMG IT WORKS, THANKYOU RICKY26!!!!!