Jump to content


Photo

39dylib Extension <39dll for Mac>


  • Please log in to reply
21 replies to this topic

#1 ugriffin

ugriffin

    Idiot

  • Global Moderators
  • 1583 posts
  • Version:Mac

Posted 12 December 2010 - 01:16 AM

-39dylib-


39dylib is a port of 39dll to UNIX platforms. 39dylib breaks many of Game Maker for Mac's barriers, giving you access to the internet. 39dylib can be used for virtually anything that uses the Internet, but here's a few examples:


  • Online Games
  • Interacting with PHP servers and anything that had to do with the web
  • Online HighScore Systems
  • Some achievement API’s (for example, Game Jolt’s)
  • Most (if not all) of Game Maker’s MMO games use 39dll.


Features:

  • Mac and PC support
  • TCP networking
  • UDP networking
  • Full access to OS X's BSD Sockets system
  • Fast and powerful networking
  • Being a port of 39dll, it is fully compatible with 39dll (both networking and code)

As of December 11th 2010, 39dylib is a Beta application. Since this is a port from a Windows .dll, some functions such as File I/O may not work, or like dygetmacaddress(). This list is not properly documented. It is highly recommended that you test your game thoroughly before releasing anything with 39dylib Beta, since unexpected behavior may pop up here and there!

Credits: Open Source extension. Credits not necessary, but it would be nice to support further extensions from me. ;)

Download | Source Code

Games that use 39dylib:

Shotgun FunFun (#1 free App in the Mac App Store for many, many months)

Edited by ugriffin, 09 November 2011 - 10:38 PM.

  • 0

#2 theg721

theg721

    G Dawg

  • GMC Member
  • 1959 posts
  • Version:GM8

Posted 12 December 2010 - 10:18 AM

Hey, good job on porting 39dll :).

Makes me want to get a Mac - Macs now have damn near everything..

Will I be able to have a game with Windows and Mac players playing at the same time?
  • 0

#3 sabriath

sabriath

    12013

  • GMC Member
  • 3174 posts

Posted 12 December 2010 - 12:26 PM

Good job...although I don't have a mac to test it -- I'm really just making this post to mark your page for easy access.
  • 0

#4 Mayhem Games

Mayhem Games

    Proud Kiwi

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

Posted 13 December 2010 - 01:29 AM

Why are you guys on the Mac part of the forum and not have a Mac? =D
Anyway sounds great. I was wanting to port my game to Mac and now i can! Thanks

EDIT: I open up 2 of the Pong example, and just used 127.0.0.1. The ball and the left stick doesn't update on the join window,

Edited by Mayhem Games, 13 December 2010 - 01:54 AM.

  • 0

#5 ugriffin

ugriffin

    Idiot

  • Global Moderators
  • 1583 posts
  • Version:Mac

Posted 13 December 2010 - 05:20 AM

Why are you guys on the Mac part of the forum and not have a Mac? =D
Anyway sounds great. I was wanting to port my game to Mac and now i can! Thanks

EDIT: I open up 2 of the Pong example, and just used 127.0.0.1. The ball and the left stick doesn't update on the join window,



That happens on the Windows version too (I tested myself). I don't know why. You should get a friend and each one should be on a separate computer. Test it out using this very extension, I also packaged 39dll.dll, so that there's "One Extension to rule them all". ::lmao::

Since 39dylib and 39dll are almost identical, they take in the same functions. The same extension can be used to run both 39dll and 39dylib, so not packaging 39dll in would have been silly of me. :snitch:

As for those who wonder if you can network both Macs and PC's together, they should get along just fine. I've never tried to do it, but I daresay there's a 99% chance that it works. :P
  • 0

#6 gnysek

gnysek

    GMC Member

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

Posted 22 December 2010 - 10:49 PM

Did source code will work also on Linux when it will be released? It can be very helpful to write C++ server and use linux dedicated hosting for games, instead of hosting them on own Windows.
  • 0

#7 ugriffin

ugriffin

    Idiot

  • Global Moderators
  • 1583 posts
  • Version:Mac

Posted 23 December 2010 - 02:05 AM

Did source code will work also on Linux when it will be released? It can be very helpful to write C++ server and use linux dedicated hosting for games, instead of hosting them on own Windows.


It probably does. I don't have the means of testing it, however.
  • 0

#8 gnysek

gnysek

    GMC Member

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

Posted 27 December 2010 - 10:03 AM

It probably does. I don't have the means of testing it, however.


Ok, so I'm waiting for source to try it.
  • 0

#9 orpheus123

orpheus123

    GMC Member

  • New Member
  • 1 posts

Posted 08 January 2011 - 09:54 AM

Hello, good work on the dylib port of 39dll.

I get the error:

ERROR in
action number 1
of  Step Event
for object objPlayer:

Error in code at line 3:
   argument1 = dyreadint(g0);

at position 23: Unknown variable g0

at line 3, it runs the dyrecievemessage() function.
  • 0

#10 ugriffin

ugriffin

    Idiot

  • Global Moderators
  • 1583 posts
  • Version:Mac

Posted 09 January 2011 - 04:54 AM

Hello, good work on the dylib port of 39dll.

I get the error:

ERROR in
action number 1
of  Step Event
for object objPlayer:

Error in code at line 3:
   argument1 = dyreadint(g0);

at position 23: Unknown variable g0

at line 3, it runs the dyrecievemessage() function.


Gah. Not nice.

I'm going to code my own example tailored specifically for 39dylib, porting stuff for Windows doesn't work well in these cases. I'm also working on version 0.2 of the dylib before I release the source, I plan on fixing some bugs and stuff.

I've been busy, though. I will push an update soon.
  • 0

#11 alirazaq

alirazaq

    GMC Member

  • New Member
  • 37 posts
  • Version:Unknown

Posted 27 February 2011 - 11:21 PM

Thanks OP, I was looking all over the place for this!
  • 0

#12 vmlweb

vmlweb

    GMC Member

  • New Member
  • 117 posts

Posted 25 April 2011 - 11:12 AM

Shotgun FunFun V1.1 uses 39dylib for the new online highscore feature
This update will be released soon
  • 0

#13 MitchGMeyer

MitchGMeyer

    GMC Member

  • New Member
  • 4 posts

Posted 01 September 2011 - 09:24 PM

I cant get the dylib to load into gamemaker... right upon opening it says it loaded it unsuccessfully. any suggestions?

edit: got it, noob mistake. but now its not recognizing some of the scripts or functions.... and there are only two in the scripts folder. i have used 39dll for windows and it had much more than 2, on a mac are they hidden away somewhere?

Edited by MitchGMeyer, 04 September 2011 - 08:18 PM.

  • 0

#14 Pokefab

Pokefab

    GMC Member

  • GMC Member
  • 234 posts

Posted 05 November 2011 - 01:54 AM

Any way for this to work from Mac to PC?

Edited by Pokefab, 05 November 2011 - 02:17 AM.

  • 0

#15 ugriffin

ugriffin

    Idiot

  • Global Moderators
  • 1583 posts
  • Version:Mac

Posted 09 November 2011 - 10:38 PM

39dylib supports Windows networking too. I've been thinking of adding the open source 39js to 39dylib, however, it depends on how compatible 39js is.
  • 0

#16 secondstomarz

secondstomarz

    GMC Member

  • New Member
  • 10 posts
  • Version:GM7

Posted 10 December 2011 - 10:09 PM

I tried this but I'm getting an error message:

COMPILATION ERROR in Script: downloadfile
Error in code at line 54:
dyrecievemessage(tcp,0,0); //receive one line

at position 5: Unknown function or script: dyrecievemessage :: CreateFunctionToken
  • 0

#17 josuanbn

josuanbn

    GMC Member

  • New Member
  • 1 posts
  • Version:Mac

Posted 24 August 2012 - 10:48 AM

I tried this but I'm getting an error message:

COMPILATION ERROR in Script: downloadfile
Error in code at line 54:
dyrecievemessage(tcp,0,0); //receive one line

at position 5: Unknown function or script: dyrecievemessage :: CreateFunctionToken


Try to change dyrecievemessage by dyreceivemessage (is misstyped in 5 o 6 pieces of code at example.gmk)
  • 0

#18 Snoutmol

Snoutmol

    GMC Member

  • New Member
  • 17 posts
  • Version:Mac

Posted 30 September 2012 - 02:33 PM


I tried this but I'm getting an error message:

COMPILATION ERROR in Script: downloadfile
Error in code at line 54:
dyrecievemessage(tcp,0,0); //receive one line

at position 5: Unknown function or script: dyrecievemessage :: CreateFunctionToken


Try to change dyrecievemessage by dyreceivemessage (is misstyped in 5 o 6 pieces of code at example.gmk)


I went through and fixed all of those but now I keep getting this message when I try to run example.gmk:

File "/tmp/gm_ttt_20086/example.gmk42467.app/Contents/MacOS/../Resources/text_edit.bmp" does NOT Exist!

  • 0

#19 JRA

JRA

    GMC Member

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

Posted 10 October 2012 - 02:09 AM

I wish this worked with GM:Studio...
  • 0

#20 cjburkey01

cjburkey01

    GMC Member

  • GMC Member
  • 60 posts
  • Version:Mac

Posted 10 January 2013 - 02:02 AM

Hey, good job on porting 39dll :)/>.

Makes me want to get a Mac - Macs now have damn near everything..

Will I be able to have a game with Windows and Mac players playing at the same time?

If it is the exact same game you sould be able to. I'm not sur.
  • 0

#21 Canuckles

Canuckles

    GMC Member

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

Posted 18 January 2013 - 05:32 PM

Is this still being worked on / does it work in studio?

This would certainly save time on having to write my own conversions if I ever want to port my game to mac :)
  • 0

#22 ugriffin

ugriffin

    Idiot

  • Global Moderators
  • 1583 posts
  • Version:Mac

Posted 01 March 2013 - 11:48 PM

This doesn't work on Studio. Not because the extension itself doesn't work, rather, because YoYo doesn't support dylib extensions on GM Studio's Mac runner.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users