Utilizing Game Maker for 2D Online Multiplayer

You can talk about almost anything that you want to on this board.

Moderator: Moderators

Pokun
Posts: 2681
Joined: Tue May 28, 2013 5:49 am
Location: Hokkaido, Japan

Re: Utilizing Game Maker for 2D Online Multiplayer

Post by Pokun »

Oh I see.
User avatar
nesrocks
Posts: 563
Joined: Thu Aug 13, 2015 4:40 pm
Location: Rio de Janeiro - Brazil
Contact:

Re: Utilizing Game Maker for 2D Online Multiplayer

Post by nesrocks »

NAW is made in GMS2 and has a chiptune player. Accepts nsf, spc, gbs. The name of the extension is GME (Game Music Emu) https://forum.yoyogames.com/index.php?t ... ree.25121/
https://twitter.com/bitinkstudios <- Follow me on twitter! Thanks!
https://www.patreon.com/bitinkstudios <- Support me on Patreon!
User avatar
Jedi QuestMaster
Posts: 688
Joined: Thu Sep 07, 2006 1:08 pm
Location: United States
Contact:

Re: Utilizing Game Maker for 2D Online Multiplayer

Post by Jedi QuestMaster »

That's the same one I couldn't get to work. Which version of GMS2 are you using? I'm on v2022.2.1.618
User avatar
nesrocks
Posts: 563
Joined: Thu Aug 13, 2015 4:40 pm
Location: Rio de Janeiro - Brazil
Contact:

Re: Utilizing Game Maker for 2D Online Multiplayer

Post by nesrocks »

I'm using the latest GMS2 (I have a perpetual desktop license). But it's been working for years now, so it definitely worked with that version you're using. What error are you getting? I thought you were only testing the MOD plugin, not the GME one. My bad.

You may want to edit GME the same way I did. Look in the thread: https://forum.yoyogames.com/index.php?t ... 121/page-2

Anyway, here's the minimal example to get that extension to work:
1 - have a persistent object in your first room. you need to mark it as persistent using the object editor.
2 - in this object's create event, call GMEInit()
3 - if your persistent object is named "mainobj" do this to load a nsf on any other object's event (make sure it only happens once)

Code: Select all

with mainobj
{
  GME_LoadSong("directory/mysong.nsf");
  currtrack = 0;
  maxtracks = GME_NumTracks();
  GME_StartTrack(currtrack);
  GME_Play();
}
Let me know if that worked. If not I can send you a working project. As I mentioned in that thread, I made some very small modifications to GME, I just can't remember what it was, but it would certainly be to fix some bug, not to add a feature or anything.

I must say that for my indie game SHL DX I ended up not using GME because the porting team was having trouble getting it to work on consoles. So we did long looping wav files. That's something to consider. I did not touch any console devkit so I don't know how feasible it is.
https://twitter.com/bitinkstudios <- Follow me on twitter! Thanks!
https://www.patreon.com/bitinkstudios <- Support me on Patreon!
User avatar
Jedi QuestMaster
Posts: 688
Joined: Thu Sep 07, 2006 1:08 pm
Location: United States
Contact:

Re: Utilizing Game Maker for 2D Online Multiplayer

Post by Jedi QuestMaster »

nesrocks wrote: Sat Jul 16, 2022 5:09 amI'm using the latest GMS2 (I have a perpetual desktop license).
How'd you get a perpetual license? I'm jealous.
nesrocks wrote: Sat Jul 16, 2022 5:09 amWhat error are you getting?
I wish you would have asked me this before I gave up on this asset and deleted my error text files.
nesrocks wrote: Sat Jul 16, 2022 5:09 amYou may want to edit GME the same way I did. Look in the thread: https://forum.yoyogames.com/index.php?t ... 121/page-2
Oh. I didn't even realize that was you. Small world.
nesrocks wrote: Sat Jul 16, 2022 5:09 am2 - in this object's create event, call GMEInit()
Wait, I don't have that script. Where'd you get it? Did you make it up?
nesrocks wrote: Sat Jul 16, 2022 5:09 am

Code: Select all

with mainobj
{
  GME_LoadSong("directory/mysong.nsf");
  currtrack = 0;
  maxtracks = GME_NumTracks();
  GME_StartTrack(currtrack);
  GME_Play();
}
My example has obj_gme. So it's that, right? Wait, is this the GMEInit() script I'm supposed to create?
nesrocks wrote: Sat Jul 16, 2022 5:09 amAs I mentioned in that thread, I made some very small modifications to GME, I just can't remember what it was, but it would certainly be to fix some bug, not to add a feature or anything.
You mean to the script files or the extension itself? I think you should just let Mick upload your example.
User avatar
nesrocks
Posts: 563
Joined: Thu Aug 13, 2015 4:40 pm
Location: Rio de Janeiro - Brazil
Contact:

Re: Utilizing Game Maker for 2D Online Multiplayer

Post by nesrocks »

Jedi QuestMaster wrote: Sun Jul 24, 2022 11:01 pmHow'd you get a perpetual license? I'm jealous.
4 years ago. They don't do that anymore, I'm afraid.
Jedi QuestMaster wrote: Sun Jul 24, 2022 11:01 pmWait, I don't have that script. Where'd you get it? Did you make it up?
It seems that he updated the extension and it doesn't have that script anymore. Hmm...
Jedi QuestMaster wrote: Sun Jul 24, 2022 11:01 pmYou mean to the script files or the extension itself? I think you should just let Mick upload your example.
I didn't edit the extension itself (dlls or whatever). I edited just the GML files. I could test his new version to see if it works for me.
https://twitter.com/bitinkstudios <- Follow me on twitter! Thanks!
https://www.patreon.com/bitinkstudios <- Support me on Patreon!
User avatar
Jedi QuestMaster
Posts: 688
Joined: Thu Sep 07, 2006 1:08 pm
Location: United States
Contact:

Re: Utilizing Game Maker for 2D Online Multiplayer

Post by Jedi QuestMaster »

nesrocks wrote: Wed Jul 27, 2022 9:45 am
Jedi QuestMaster wrote: Sun Jul 24, 2022 11:01 pmHow'd you get a perpetual license? I'm jealous.
4 years ago. They don't do that anymore, I'm afraid.
I thought they stopped letting you get updates.
nesrocks wrote: Wed Jul 27, 2022 9:45 am
Jedi QuestMaster wrote: Sun Jul 24, 2022 11:01 pmYou mean to the script files or the extension itself? I think you should just let Mick upload your example.
I didn't edit the extension itself (dlls or whatever). I edited just the GML files. I could test his new version to see if it works for me.
Okay, good to hear. Thanks for your help.
Catyak
Posts: 54
Joined: Mon Apr 25, 2022 4:33 pm

Re: Utilizing Game Maker for 2D Online Multiplayer

Post by Catyak »

Jedi QuestMaster wrote: Wed Jul 27, 2022 9:56 pm
nesrocks wrote: Wed Jul 27, 2022 9:45 am
Jedi QuestMaster wrote: Sun Jul 24, 2022 11:01 pmHow'd you get a perpetual license? I'm jealous.
4 years ago. They don't do that anymore, I'm afraid.
I thought they stopped letting you get updates.
They said they're going to stop updates, but they haven't done it yet.
Post Reply