Jump to content


Photo

: G M A X : -- : Updated! Now V3!


  • Please log in to reply
92 replies to this topic

#61 Razon

Razon

    GMC Member

  • GMC Member
  • 246 posts
  • Version:Unknown

Posted 06 August 2008 - 04:53 PM

Trying to create any ActiveX control besides flash will cause the game to unexpected error out when it starts, on xp and vista- this new version is basicly useless atm. ( tested with gm6.1 )

RazonEx where exactly is it faulting? Which of the 4 demos did you try?
I checked them on 3 windows xp computers and worked. The problem could be something with missing or different versions of ActiveX.

Demo_Browser and GMAX are the ones that wouldn't run.

Edited by RazonEX, 06 August 2008 - 04:54 PM.

  • 0

#62 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 06 August 2008 - 06:00 PM

Did others work?
  • 0

#63 Razon

Razon

    GMC Member

  • GMC Member
  • 246 posts
  • Version:Unknown

Posted 07 August 2008 - 02:03 AM

Did others work?

Yes, the 2 other ones worked.
  • 0

#64 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts

Posted 07 August 2008 - 09:42 AM

I found the problem. It's a bit weird one, which I can't fix at the moment. Here's a brief description:
An activex can be created from GM given it's GUID or filename and GUID. Because there are many flash versions with different file names, GAXC_Flash detects the correct filename and uses the second type of creating the activex (file and GUID).
The others (GAXC_Browser and Media Player) uses the GUID only.
For some reason, when the GUID is only used, for some strange reason the ActiveX destroys itself upon creation. Thus when you try calling it, it doesn't exist so results in an access violation (which GM shows as "game failed to run").
  • 0

#65 Razon

Razon

    GMC Member

  • GMC Member
  • 246 posts
  • Version:Unknown

Posted 07 August 2008 - 12:00 PM

All I needed to know was what the problem was, I came up with a fix for it right away. If it needs the filename then it's as simple as just checking the registry entry for it, this works for other ActiveX's as well.

var axfn; var axid; axfn=''; axid='{8856F961-340A-11D0-A96B-00C04FD705A2}'; registry_set_root(2);
axfn=registry_read_string_ext('CLSID\'+axid+'\InProcServer32\',''); registry_set_root(0);
if axfn!='' and file_exists(axfn) { var i; i=gmax_create(argument0,axfn,axid);
gmax_setdims(i,argument1,argument2,argument3,argument4); return i; } else return 0;
That's what I use for my 'ie_create' script, just replace the 'axid' for it to use it with another ActiveX. I didn't include the IE Go script because it's not required that you run that code, and I also added a check to see if the registry entry exists for it- and that the file for it exists so that it doesn't freeze the game trying to create the ActiveX when it can't find the file or because it didn't return anything from the registry check. I've only tested this on XP and haven't had someone test this on vista yet, but it should work fine with it. I'll run checks later to see if the newer version fixes any of the problems that I reported before. The only thing is that the coding changes the person's registry set root, so people should just change the second set to the default that they use- or run this code first if they only use it at the very start. On a side note, for the GMAX example, you can use this for the room start code. You're going to have to fix the dll yourself, if it was working in the last version then just keep testing what you think may be causing it until you find what you did wrong.

var axfn; var axid; axid=''; registry_set_root(2); 

//Microsoft Internet Explorer
axid='{8856F961-340A-11D0-A96B-00C04FD705A2}';
axfn=registry_read_string_ext('CLSID\'+axid+'\InProcServer32\','');
axfn=string_replace(axfn,'%SystemRoot%',environment_get_variable("windir"));

if axfn!='' and file_exists(axfn) { ax_MSIE=gmax_create(window_handle(),axfn,axid);
//resize/move Internet Explorer control
gmax_setdims(ax_MSIE,0,20,room_width/2,150);
// navigate to test document
gmax_execute(ax_MSIE,"Navigate",gmax_util_mkprm("",environment_get_variable("windir")+"\Web\tip.htm")); }


//Windows System Monitor Control
axid='{C4D2D8E0-D1DD-11CE-940F-008029004347}';
axfn=registry_read_string_ext('CLSID\'+axid+'\InProcServer32\','');
axfn=string_replace(axfn,'%SystemRoot%',environment_get_variable("windir"));

if axfn!='' and file_exists(axfn) { ax_WSMC=gmax_create(window_handle(),axfn,axid);
//resize system monitor control
gmax_setdims(ax_WSMC,room_width/2,20,room_width/2,room_height-20); }


//Microsoft Windows Media Player
axid='{6BF52A52-394A-11d3-B153-00C04F79FAA6}';
axfn=registry_read_string_ext('CLSID\'+axid+'\InProcServer32\','');
axfn=string_replace(axfn,'%SystemRoot%',environment_get_variable("windir"));

if axfn!='' and file_exists(axfn) { ax_MWMP=gmax_create(window_handle(),axfn,axid);
//resize/move WMP control
gmax_setdims(ax_MWMP,0,190,room_width/2,room_height-190); }

registry_set_root(0);
You can get an idea enough from both of these on how to make it for the other ActiveX controls.

Edit: tested and not working on vista unfortunately, it will need seperate coding for that or an alternate solution then. Only flash and wmp worked on vista, wmp with my most recent update of the coding and flash worked before- ie just froze. You're just going to have to fix the dll yourself, it was working the last version so just keep checking things that you think may be causing the problem that you changed from the last version and take care of it. I chose this dll because I wanted the program window active set back to it without minimizing and restoring it after ie was clicked on, but the crashing and freezing and not loading is too troublesome. All of the other browser dll's lacked that feature, and mixing your dll wth it didn't fix it- so I had to use the ie feature from your's which came with the activex problems.

Edited by RazonEX, 07 August 2008 - 09:24 PM.

  • 0

#66 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts

Posted 09 August 2008 - 09:20 AM

Unfortunately, I can't test this on Vista, and at the moment there are enough troubles with the delphi part of the code.
A friend of mine will be helping in this project to fix these weird issues (I'd like to hint that he is a Delphi expert :D ).

Thanks for trusting this. We will at some point make it work efficiently without these troubles.

Kindly,
Christian
  • 0

#67 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 19 November 2008 - 09:16 PM

doesn't work on vista.
I guess I will have to live without it...
  • 0

#68 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts

Posted 23 November 2008 - 10:33 PM

Don't worry, GMRA is quickly progressing! :P :P
  • 0

#69 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 23 November 2008 - 10:42 PM

Oh no, no, no, keep that for yourself, Uuf6429! Haha, but then you'll need to teach everyone.

Edited by GMREC1111, 23 November 2008 - 10:42 PM.

  • 0

#70 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 24 November 2008 - 01:15 AM

Oh no, no, no, keep that for yourself, Uuf6429! Haha, but then you'll need to teach everyone.


GMRA?

@GMREC1111,
?
NM

Edited by Caniac, 24 November 2008 - 01:34 AM.

  • 0

#71 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts

Posted 26 November 2008 - 10:30 AM

Caniac, it's a top secret project called GMRA depicting sunlight (Egyptian god Ra).
Sure is sunlight GMREC don't you think? :P

Well, you'll have to wait a tidbit more though.

Chris.
  • 0

#72 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 26 November 2008 - 02:17 PM

hmmmm, thatsr sure a lot to go on :P (Not XD
I assume its a competition game, or a dll, and you two are doing it togeather?
  • 0

#73 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts

Posted 27 November 2008 - 02:10 PM

It's a super-dll :) and he just knows the secret (and got to try it :( ).

Chris.
  • 0

#74 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 27 November 2008 - 03:14 PM

awww. can I try it?
XD, ok.
  • 0

#75 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 27 November 2008 - 09:14 PM

I'm pretty sure it would work on 32 Bit Vista.
  • 0

#76 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1417 posts
  • Version:Unknown

Posted 08 March 2009 - 12:09 AM

can i download and use gmax3 now. is it ready or complete??
  • 0

#77 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1417 posts
  • Version:Unknown

Posted 08 March 2009 - 12:48 AM

i tried this to play a video stream in a wmp activex control

// Microsoft Windows Media Player
 ax_MWMP=gmax_create(window_handle(),"{6BF52A52-394A-11d3-B153-00C04F79FAA6}")
 
 // resize/move WMP control
 gmax_setdims(ax_MWMP,0,room_height/2,160,280)
 
 //set the uimode and url to start playing?
 gmax_setvalue(ax_MWMP,"uiMode","None")
 gmax_setvalue(ax_MWMP,"URL","http://mystramingmovie.link.wmv")

but it doesnt work!!
  • 0

#78 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts

Posted 08 March 2009 - 11:37 AM

Try to do it with the included program, "RTView". If you get it working in RTView, just grab the gml from RTView and use it in your GM game.
  • 0

#79 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1417 posts
  • Version:Unknown

Posted 08 March 2009 - 01:02 PM

can i download and use gmax3 now. is it ready or complete??
  • 0

#80 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1417 posts
  • Version:Unknown

Posted 08 March 2009 - 11:00 PM

two errors...hopefully you can fix these up...or maybe laready have...

but in GMAX 2

the set_value funtion doesnt work because it hasnt been initialized correctly, it has 3 arguments 1 reall and two strings but in you init script you specify only two, so this needs correcting.

also in the rtview.exe when you get the gml for creating the activex it doesnt have the window_handle(),

also it tried copying and pasting the gml into gm, but it creates the window, and now i can get the the URL in windows media player to load up and play, but the thing is when the wmp plays the file/stream it automatically repositions itself to 0,0 and the size changes to the new video size, rather than stretching the video to fit the media player size.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users