Page 1 of 1

one error in LoadTextureFromFile with hge

PostPosted: Wed Jan 02, 2013 2:58 am
by sofa120
magic particles with hge

VS2010 Build solution has one error in mp_wrap.cpp

mp_wrap.cpp(263): error C2664: '_wfopen' : cannot convert parameter 1 from 'const unsigned short *' to 'const wchar_t *'

in the fun

HTEXTURE MP_Device_WRAP::LoadTextureFromFile(const char* file_name)

FILE* file=_wfopen(texture_file_utf16, mode);

so i change it in

//const unsigned short* texture_file_utf16=(const unsigned short*)Magic_UTF8to16(texture_file.c_str());
const wchar_t* texture_file_utf16=(const wchar_t*)Magic_UTF8to16(texture_file.c_str());

and then it's ok no error

project character is [use multi-Byte character set]


another question:

Magic Particles 2.17 - 23.10.2011
Magic Particles 2.0 - 11.11.2010
Magic Particles 1.72 - 24.10.2009

the history version where can i download it

Re: one error in LoadTextureFromFile with hge

PostPosted: Wed Jan 02, 2013 4:39 pm
by Odin_KG
//const unsigned short* texture_file_utf16=(const unsigned short*)Magic_UTF8to16(texture_file.c_str());
const wchar_t* texture_file_utf16=(const wchar_t*)Magic_UTF8to16(texture_file.c_str());

and then it's ok no error

Thanks for info!

the history version where can i download it

I delete old versions from my site.

Re: one error in LoadTextureFromFile with hge

PostPosted: Fri Aug 02, 2013 10:42 am
by riya
"i used one png image to generated windfall(Congrats) particles..and after that i inserted that ptc in our game..but that particles appeared in Transparent way..so we are not getting that feel..tell me how how it would be reduce transpareny..and make it real png particle fall..?"


__________________
http://www.braindumps.net/C4120-782.htm
http://icma.org/
http://www.u-tokyo.ac.jp/en/
http://en.wikipedia.org/wiki/University ... ittle_Rock

Re: one error in LoadTextureFromFile with hge

PostPosted: Fri Aug 02, 2013 1:51 pm
by Odin_KG
riya
The transparency of the particles is set up by diagrams "Visibility, %" and "Visibility over life (factor), %"
Also you may put the screenshot of your game on the scene of Magic Particles (use drag & drop or CTRL+B). It will allow to see the special effect like in the game.