Jump to content


Photo

Jsme V2.2 - For Gm 8.1 And Down, Studio Is Coming


  • Please log in to reply
202 replies to this topic

#21 Blue Leader

Blue Leader

    GMC Member

  • New Member
  • 467 posts

Posted 21 October 2009 - 04:29 PM

Where does the .gex file have to be to make it work, and what must its filename be?

Currently I have it in the same directory as the .gmk under the filename Message System 1.2, but that's a completely different location to Game Maker if that means anything.

I would love to test it and give you feedback; if it does everything it says it does then it's exactly what I want, so I'm looking forward to it :)

Having it in the same location as the GMK only works for DLL files.
To install an extension, open Game Maker and click on Resources -> Select Extension Packages. From the Extension Packages window, click the "Install" button, then "Install" again on the next window. Navigate to where you saved the GEX, double-click the file (or click it once and click on "Open"), and then it will be installed.
You'll be taken back to the Install Extension Packages window. Scroll through the list to make sure the GEX is in there, and if it is click "OK". Click "OK" again on the next window, too.
Than, when you want to use the extension in your game, open the Extension Packages window again (Resources -> Select Extension Packages), click on the extension you want listed under Available Packages, and than click the blue arrow that appears to add said extension into your game.

And that's how you install an extension.

As for LIBs, they simply go into the LIB folder of your Game Maker install location.

Edited by Blue Leader, 21 October 2009 - 04:31 PM.

  • 0

#22 GMLismybeach

GMLismybeach

    GMC Member

  • New Member
  • 13 posts

Posted 24 October 2009 - 08:25 PM

Can anyone make this work with views? Cause i can't seem to!
  • 0

#23 Jazza4Lyf

Jazza4Lyf

    GMC Member

  • GMC Member
  • 240 posts
  • Version:GM:Studio

Posted 25 October 2009 - 04:16 AM

Can anyone make this work with views? Cause i can't seem to!

Make sure you change the settings so they suit the size of the view because it has an invisible bounding box to keep it on the screen. If the margin settings aren't set properly, it will look very VERY weird... ^_^

EDIT: Minor Bug Fix
The function 'js_msg_room()' displayed in the GM window 'js_msg_room(marg,pad...)' was executed as 'js_msg_room(pad,marg...)' and has now been fixed. Instead of changing the 'marg' with 'pad', I changed the code because I think it makes more sense with the margin first as opposed to the padding, so if you rely on padding and margin settings, download the fix or change the arguments in your code.
Thanks for pointing that out GMLismybeach

Edited by Jazza4Lyf, 25 October 2009 - 12:08 PM.

  • 0

#24 Diet Chugg

Diet Chugg

    GMC Member

  • New Member
  • 69 posts

Posted 27 October 2009 - 06:05 PM

For some reason the downloaded example .gmk won't run correctly... It gives me a long error code.
Is this supposed to happen?
  • 0

#25 Jazza4Lyf

Jazza4Lyf

    GMC Member

  • GMC Member
  • 240 posts
  • Version:GM:Studio

Posted 29 October 2009 - 12:19 PM

For some reason the downloaded example .gmk won't run correctly... It gives me a long error code.
Is this supposed to happen?

Noooo... that isn't supposed to happen... I'll check that now!

EDIT: It's fine for me. Is anyone else getting the same result?

Edited by Jazza4Lyf, 29 October 2009 - 12:23 PM.

  • 0

#26 Krisando

Krisando

    GMC Member

  • New Member
  • 1351 posts

Posted 04 November 2009 - 05:44 AM

For some reason the downloaded example .gmk won't run correctly... It gives me a long error code.
Is this supposed to happen?

Noooo... that isn't supposed to happen... I'll check that now!

EDIT: It's fine for me. Is anyone else getting the same result?

Yup.

___________________________________________
COMPILATION ERROR in extension package JS Message Engine
Error in code at line 1:
   {	// If the Message Buffer is empty, ignore and quit	if (js_msg_buf_size(1)) exit;	var _msg,_bufVal;	_msg="";	_bufVal=js_msg_buf_value(argument0);	// This script will determin if it is a Textbox, Question or a Message ------------------	// Locate the string '^BUT^' and, if found, it is either a textbox a question	if (string_count("^BUT^",_bufVal)>0) {		var list;		 // This is for drawing buttons		if (argument1) return 1;		_msQDefault=false;		if (_msQDefaultVal!=-1) _msQDefault=true;		/* ---------------		Determine if we are using a textbox or just a question		--------------- */		// Set the variable		var bufToString,extra;		bufToString=_bufVal;		extra="";		// Find the 'TBOX' tag		if( string_count("^TBOX^",_bufVal)==1) {			list=PARSE_the_STRING(_bufVal,"^TBOX^",false);			bufToString=ds_list_find_value(list,1);			_tbTyping=true;			keyboard_string="";			extra="###";		}		// Create a list with the Question and Button Texts		list=PARSE_the_STRING(bufToString,"^BUT^",false);		for (l=1; l<ds_list_size(list); l+=1) {			if (string_count("$DCODE",ds_list_find_value(list,l))==0) but[l-1]=PARSE_the_STRING(ds_list_find_value(list,l),"$CODE$",false);			else {				_msQDefault=true;				but[l-1]=PARSE_the_STRING(ds_list_find_value(list,l),"$DCODE$",false);			}		}		// Create the message to display on screen		var msg2Do;		msg2Do=ds_list_find_value(list,0);		if (string_count("^TBOX^",msg2Do)==0) {			msg2Do=string_replace(msg2Do,"^TBOX^","");		}		if (_msWrdWrp!=-1) msg2Do=WRAP_the_STRING(msg2Do,_msWrdWrp,"#",_msWrdFrc);		_msg=msg2Do+"#_____________#"+extra;		var size;		if (string_count("$DCODE$",bufToString)!=1) size=ds_list_size(list);		else size=ds_list_size(list)-1;		for (i=1; i<size; i+=1) _msg+="#"+ds_list_find_value(but[i-1],0)+"#";		for (i=1; i<ds_list_size(list); i+=1) js_msg_cbuf(ds_list_find_value(but[i-1],1));	} else {		if (argument1) return 0;		// Create the message to display on screen		var msg2Do;		msg2Do=_bufVal;		if (_msWrdWrp!=-1) msg2Do=WRAP_the_STRING(msg2Do,_msWrdWrp,"#",_msWrdFrc);		if (_msDsp==-1) _msg=msg2Do+_msConTxt;		else _msg=msg2Do;	}	return _msg;}

at position 2452: Symbol } expected.

  • 0

#27 Jazza4Lyf

Jazza4Lyf

    GMC Member

  • GMC Member
  • 240 posts
  • Version:GM:Studio

Posted 04 November 2009 - 10:29 AM

Ok, well, no, that is NOT supposed to happen, but it is so weird how it is working fine for me. I'll see if I can sort this out.
Thanks for confirming... I think...? :D
  • 0

#28 Drandula

Drandula

    Mister Pixel

  • GMC Member
  • 269 posts

Posted 04 November 2009 - 12:27 PM

Try fix fast and then put link again.
I wanna test this TT__TT But screens
look great :D

~Drandula~
  • 0

#29 Jazza4Lyf

Jazza4Lyf

    GMC Member

  • GMC Member
  • 240 posts
  • Version:GM:Studio

Posted 04 November 2009 - 01:06 PM

I wanna test this TT__TT

Fear not! It was really weird... the problem were the comments!
But it compiled fine in the previous versions, so I didn't even consider them.

It is NOT fun finding all your comments and turning them into blocks!

Anyway, I have fixed that but now something else has come up... working on that too!

[ WATCH THIS SPACE! ]

OMG! I cannot believe I just noticed that...
The second problem - IT WASN'T INITIALIZED! :D

OK, I shall re-upload now! New links inserted! Have fun with version 2.2!

Also, please note, while I was fixing this error, I noticed I nearly compiled it with a depreciated function!
'js_msg_colour()' is no more, instead, it has been broken up into 4 smaller scripts so you don't have to type 9 '-1's when you want to change 1 thing!

Edited by Jazza4Lyf, 04 November 2009 - 01:45 PM.

  • 0

#30 Blue Leader

Blue Leader

    GMC Member

  • New Member
  • 467 posts

Posted 04 November 2009 - 05:26 PM

I've got a question... Do you happen to have an example file that's a GMK instead of an executable? It would really help to understand the engine to have a working example where I could see the code in action...
  • 0

#31 Jazza4Lyf

Jazza4Lyf

    GMC Member

  • GMC Member
  • 240 posts
  • Version:GM:Studio

Posted 05 November 2009 - 12:09 AM

I've got a question... Do you happen to have an example file that's a GMK instead of an executable? It would really help to understand the engine to have a working example where I could see the code in action...

Ok, I'll include it in the upload again and edit this when done.
EDIT: Still not done, it's on my laptop, so I'm going to whip up another example soon (laptop screen is cracked... so need to wait for available comp screen)

Edited by Jazza4Lyf, 05 November 2009 - 09:48 AM.

  • 0

#32 Blue Leader

Blue Leader

    GMC Member

  • New Member
  • 467 posts

Posted 05 November 2009 - 02:28 AM

I've got a question... Do you happen to have an example file that's a GMK instead of an executable? It would really help to understand the engine to have a working example where I could see the code in action...

Ok, I'll include it in the upload again and edit this when done.

Awesome. :)
  • 0

#33 Krisando

Krisando

    GMC Member

  • New Member
  • 1351 posts

Posted 05 November 2009 - 03:31 AM

The error does not happen in the compiled executable but it does in the gmk. Interesting O.o maybe you should try r-upload the latest extension again?
  • 0

#34 Jazza4Lyf

Jazza4Lyf

    GMC Member

  • GMC Member
  • 240 posts
  • Version:GM:Studio

Posted 05 November 2009 - 09:35 AM

maybe you should try r-upload the latest extension again?

I did, the exe was compiled with the new extension.
Did you replace the old JSME with the new, because I haven't uploaded a gmk with the new extension yet?

Edited by Jazza4Lyf, 05 November 2009 - 09:49 AM.

  • 0

#35 Universal_X

Universal_X

    GMC Member

  • New Member
  • 126 posts

Posted 13 November 2009 - 11:45 PM

BEST IVE SEEN!! :lol:

Can you please add image options?
  • 0

#36 fishsicles

fishsicles

    GMC Member

  • New Member
  • 2 posts

Posted 14 November 2009 - 12:12 AM

Great .GEX! This will save me decades of codework, as well as eliminate the remaining grey boxes of doom. Made of Win.

Edited by fishsicles, 14 November 2009 - 12:15 AM.

  • 0

#37 Jazza4Lyf

Jazza4Lyf

    GMC Member

  • GMC Member
  • 240 posts
  • Version:GM:Studio

Posted 15 November 2009 - 12:55 PM

Can you please add image options?

As in images instead of text or along those lines?

grey boxes of doom

I call them Grey Death Boxes =P

And thanks for the high valued praises, makes it all worth while!
  • 0

#38 Keiferr

Keiferr

    iProgram

  • New Member
  • 378 posts

Posted 24 November 2009 - 10:21 PM

Thanks a bunch for your work on this man.

Helped me out a lot.
  • 0

#39 Jazza4Lyf

Jazza4Lyf

    GMC Member

  • GMC Member
  • 240 posts
  • Version:GM:Studio

Posted 25 November 2009 - 01:26 PM

Thanks a bunch for your work on this man.

Helped me out a lot.

No problem.
  • 0

#40 SarcaZmo

SarcaZmo

    GMC Member

  • New Member
  • 2 posts

Posted 25 November 2009 - 05:52 PM

dude could you give me some examples of code?, i do understand it, but, i cant get code to work ANY OF IT :D , so im guessin if you may post one example of a qblock, and another for a block with an input box ::lmao::
anyways, coolest extension ever!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users