one error in LoadTextureFromFile with hge

All information about Magic Particles: news, question, comments, etc.

one error in LoadTextureFromFile with hge

Postby sofa120 » Wed Jan 02, 2013 2:58 am

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
sofa120
 
Posts: 3
Joined: Thu Dec 27, 2012 3:43 am

Re: one error in LoadTextureFromFile with hge

Postby Odin_KG » Wed Jan 02, 2013 4:39 pm

//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.
User avatar
Odin_KG
Administrator
Administrator
 
Posts: 249
Joined: Sat May 09, 2009 10:53 pm

Re: one error in LoadTextureFromFile with hge

Postby riya » Fri Aug 02, 2013 10:42 am

"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
Last edited by riya on Sat Aug 16, 2014 12:10 pm, edited 1 time in total.
riya
 
Posts: 1
Joined: Fri Aug 02, 2013 10:36 am

Re: one error in LoadTextureFromFile with hge

Postby Odin_KG » Fri Aug 02, 2013 1:51 pm

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.
User avatar
Odin_KG
Administrator
Administrator
 
Posts: 249
Joined: Sat May 09, 2009 10:53 pm


Return to Magic Particles

Who is online

Users browsing this forum: No registered users and 9 guests

cron