Jump to content


Photo

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


  • Please log in to reply
199 replies to this topic

#61 Jazza4Lyf

Jazza4Lyf

    GMC Member

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

Posted 10 January 2010 - 09:09 AM

...which look far worse than these.

I know, that's why I made this! Enjoy. ;)
  • 0

#62 sargunster

sargunster

    GMC Member

  • New Member
  • 449 posts

Posted 10 January 2010 - 03:26 PM

You could just use gamemaker_version to check what version it is. That way you can keep them in one file and updates will be easier because you don't have to do them twice.

gamemaker_version /*The version of Game Maker. This is an integer. For version 8.0 this can be anything between 800 and 809. For version 8.1 this will be something between 810 and 819, etc. So never check a particular version but better check for a range. This variable is not available in version before 800.*/

//both code
if(variable_local_exists("gamemaker_version"))
{
//gm8 code
}
else
{
//gm7 code
}
//both code _linenums:0'>//both code<strong class='bbc'>if</strong>(variable_local_exists("gamemaker_version")){ //gm8 code}<strong class='bbc'>else</strong>{ //gm7 code}//both code

Yeah, I love quoting from the manual then making it fancy colored ;)
EDIT: or not. That doesn't work.
EDIT: fixed: now it does :P

Edited by sargunster, 10 January 2010 - 03:45 PM.

  • 0

#63 Jazza4Lyf

Jazza4Lyf

    GMC Member

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

Posted 16 January 2010 - 01:36 AM

gamemaker_version

Hmm... a new version check? Sound's like a good idea, it didn't even occur to me to check the version in the same extension! :P

Edited by Jazza4Lyf, 16 January 2010 - 01:36 AM.

  • 0

#64 sargunster

sargunster

    GMC Member

  • New Member
  • 449 posts

Posted 17 January 2010 - 11:31 PM

Yeah but for some reason its a local variable... variable_local_exists works but variable_global_exists doesn't. And I checked if it exists instead of using the value because its not in earlier versions of GM.
  • 0

#65 Jazza4Lyf

Jazza4Lyf

    GMC Member

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

Posted 20 January 2010 - 03:41 AM

Yeah, I realized that. Funny the way inbuilt variables are sometimes.

I'm currently focusing all my attention on my game for Competition 5, once that's over, Uni starts! :( If all goes smoothly, expect some sort of update around late March/June

Edited by Jazza4Lyf, 20 January 2010 - 03:44 AM.

  • 0

#66 aviv502

aviv502

    GMC Member

  • New Member
  • 15 posts

Posted 26 January 2010 - 08:32 PM

:) You're Extension is brilliant!
but i'm getting stuck in one thing...
when you want to start a code like:
js_msg_add("rondom message")
it's just dont work... well i trayed to do it like you did on the example:
globalvar _id;    _id = id;    stage = 0;    js_msg_init();    js_msg_wordwrap(400,false); js_msg_add("rondom message")js_msg_display(room_width/2,room_height/2);
and then it worked but only in create event...
please help me...
oh and another thing, you'r help file isen't working.
ty.
  • 0

#67 Jazza4Lyf

Jazza4Lyf

    GMC Member

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

Posted 28 January 2010 - 05:50 AM

and then it worked but only in create event...

What do you mean 'only in the create event'? PM me the details or the gmk so I can see the full problem.

oh and another thing, you'r help file isen't working.
ty.

If you tried to open it in GM, it won't because it isn't a .chm or .txt file, its a PDF, so you have to get it from the .rar file that had the extension and open it from there. Or do you mean the .pdf isn't opening at all?
  • 0

#68 aviv502

aviv502

    GMC Member

  • New Member
  • 15 posts

Posted 31 January 2010 - 12:14 PM

well now the help file opened becuse i downloaded adobe reader, (befor i didn't have it).
ill try to solve the problem by viewing the help file, i'll PM you if i get stuck.
and another thing, in you're example you said you're working on a new ver of this extention, so i think i can help you with the voice text.
just go to this address and you can write text and download people saying it.
http://www2.research...eb/tts/demo.php or http://www.databases...om/psivrttv.htm

Edited by aviv502, 31 January 2010 - 12:18 PM.

  • 0

#69 Dylan93

Dylan93

    GMC Member

  • GMC Member
  • 866 posts
  • Version:GM8

Posted 31 January 2010 - 03:37 PM

well now the help file opened becuse i downloaded adobe reader, (befor i didn't have it).
ill try to solve the problem by viewing the help file, i'll PM you if i get stuck.
and another thing, in you're example you said you're working on a new ver of this extention, so i think i can help you with the voice text.
just go to this address and you can write text and download people saying it.
http://www2.research...eb/tts/demo.php or http://www.databases...om/psivrttv.htm


I think he ment people speaking through this message system not voice speaking
  • 0

#70 aviv502

aviv502

    GMC Member

  • New Member
  • 15 posts

Posted 31 January 2010 - 06:27 PM

I think he ment people speaking through this message system not voice speaking

i know i ment he can download and use the voices trough game maker.
  • 0

#71 C.Zorg

C.Zorg

    GMC Member

  • New Member
  • 381 posts

Posted 01 February 2010 - 05:02 AM

There are some message engines out there that look good and play well, but nearly all of them have flaws. This engine tries to succeed where these fail: customization, fluidity and looks. This engine contains some of the following features:
So the engine only has some of those features xD, that's good to know...
  • 0

#72 Jazza4Lyf

Jazza4Lyf

    GMC Member

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

Posted 02 February 2010 - 01:43 AM

There are some message engines out there that look good and play well, but nearly all of them have flaws. This engine tries to succeed where these fail: customization, fluidity and looks. This engine contains some of the following features:
So the engine only has some of those features xD, that's good to know...

Ok, just for you, I'll change it. :)
  • 0

#73 anselm

anselm

    GMC Member

  • GMC Member
  • 239 posts

Posted 03 February 2010 - 10:53 PM

Hmm. I tried adding a question box (To make sure I knew how to do it right) And it came up with this error

___________________________________________
ERROR in
action number 1
of Mouse Event for Left Button
for object Load character button:

In extension function js_qbutton:
Error in code at line 1:
{ _msgQuestionAdd+="^BUT^"+argument0+"$CODE$"+argument1;}
^
at position 50: Wrong type of arguments to +.


The code I was using was

js_msg_init()
js_msg_wordwrap(400,false)

ini_open("slot_info.ini")
js_qstart("Which character would you like to load?")
js_qbutton(string(ini_read_string("slots","slot_one","Empty")),test=true)
js_qend()
ini_close()


Any idea what I'm doing wrong?

Edit: I realized that in the manual you said I could only use strings. Not real values. But after I changed the code to a string. It still doesn't work

Edit 2: Ah. I finally figured it out. There were multiple things I was doing wrong. Well at least now I know.

Edit 3: Urk. I seem to be running in to problem after problem (most likely my fault) I Had the question block initiate a script. That script displays a message. After you press space though a smaller text box opens that says "0". But if you press space it just goes away then comes back. And keeps repeating this

Edited by anselm, 04 February 2010 - 05:13 AM.

  • 0

#74 Jazza4Lyf

Jazza4Lyf

    GMC Member

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

Posted 04 February 2010 - 07:45 AM

js_qbutton(string(ini_read_string("slots","slot_one","Empty")),test=true)


js_qbutton(string(ini_read_string("slots","slot_one","Empty")),"test=true")
It must be a string to work.
  • 0

#75 anselm

anselm

    GMC Member

  • GMC Member
  • 239 posts

Posted 04 February 2010 - 05:06 PM

Mhmm. I realized that. and changed it to a string
  • 0

#76 aaronrandall

aaronrandall

    GMC Member

  • New Member
  • 51 posts

Posted 05 February 2010 - 06:32 PM

js_pause(); doesnt seem to work? i cant still move

oh and how do i take the dimness off.

Edited by aaronrandall, 05 February 2010 - 10:43 PM.

  • 0

#77 anselm

anselm

    GMC Member

  • GMC Member
  • 239 posts

Posted 05 February 2010 - 11:21 PM

So this is the code I'm using now

{
js_msg_init();
js_msg_wordwrap(400,false);

ini_open("slot_info.ini");
js_qstart("Select a character profile");
js_qbutton(string(ini_read_string("slots","slot_one","Empty")),"script_execute(scr_slot_one)");
ini_close();
js_qend();
js_msg_display(room_width/2,room_height/2);
}


And then in the script scr_slot_one

{
js_msg_init()
js_msg_wordwrap(400,false)

js_msg_add("Text here!")
js_msg_display(room_width/2,room_height/2)
}


The question works. And it shows the message. But when I hit space the box changes to a small box and shows a 0. And won't go away. I've tried everything I can think of. But can't seem to figure out where the problem is coming from

Edited by anselm, 05 February 2010 - 11:22 PM.

  • 0

#78 Jazza4Lyf

Jazza4Lyf

    GMC Member

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

Posted 08 February 2010 - 07:46 AM

But when I hit space the box changes to a small box and shows a 0. And won't go away.

The only thing I can think of is the message you are trying to add is either an integer or empty, that is why you get a 0. So check your script 'scr_slot_one' and see what you are trying to add. If it evaluates to an integer, then thats the problem, otherwise pm me the script so I can see for myself. I'm sorta guessing right now.
  • 0

#79 youknowwho

youknowwho

    GMC Member

  • New Member
  • 54 posts

Posted 10 February 2010 - 04:17 AM

don't call me a stooge!!!! :P
  • 0

#80 vanquish

vanquish

    GMC Member

  • New Member
  • 71 posts

Posted 14 February 2010 - 11:00 PM

Wow. Not bad. That was worth the download.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users