Jump to content


Photo

39dylib


  • Please log in to reply
17 replies to this topic

#1 ugriffin

ugriffin

    Idiot

  • Global Moderators
  • 1583 posts
  • Version:Mac

Posted 10 November 2011 - 08:51 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. iOS static library is packed in the extension, but it's up to YoYo to support extensions on their iOS runner.
  • 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)
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)
  • 2

#2 AndrewBGM

AndrewBGM

    GMC Member

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

Posted 10 November 2011 - 09:08 AM

Oh wow, this sounds pretty cool.

I like the fact that the functionality for iOS is avaliable... well, to an extent. I'm in college at the moment, but I'll definitely check it out when I get home.

Edited by AndrewBGM, 10 November 2011 - 09:08 AM.

  • 0

#3 Debels

Debels

    GMC Member

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

Posted 17 November 2011 - 09:21 PM

this looks really good! going to download it =D

going to +1 this topic :P

edit:

im having a problem with this code:

dyclearbuffer(0);
dywritebyte(4,0);
dywritestring(string(name),0);
dywritestring(string(text),0);
dysendmessage(socket,ip,global.server_port,0);

that is the server code to send back the chat to the clients the problem is:

the client send it to server its all ok the server receives it perfect and reads it perfect but when i want to send it the client only gets "" nothing! can you help me please :P

Edited by BlueDebel, 19 November 2011 - 01:40 AM.

  • 0

#4 ugriffin

ugriffin

    Idiot

  • Global Moderators
  • 1583 posts
  • Version:Mac

Posted 21 November 2011 - 10:44 PM

Are you using Windows or Mac?

Additionally, you should use the comscripts, much easier to code that way.
  • 1

#5 Debels

Debels

    GMC Member

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

Posted 22 November 2011 - 12:19 AM

found an error on the example:

objPongBat1/Step Event/code: you wrote dyrecievemessage and its dyreceivemessage its not a big problem but..... (1 time)
objPongBat2/Step Event/code: you wrote dyrecievemessage and its dyreceivemessage its not a big problem but..... (1 time)
downloadfile: you wrote dyrecievemessage and its dyreceivemessage its not a big problem but..... (2 times)
getip: you wrote dyrecievemessage and its dyreceivemessage its not a big problem but..... (2 times)
  • 0

#6 Debels

Debels

    GMC Member

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

Posted 15 December 2011 - 08:57 PM

You should add this for HTML5 2 =D
  • 0

#7 SlipknLov

SlipknLov

    GMC Member

  • GMC:Member
  • 246 posts
  • Version:GM8

Posted 18 December 2011 - 04:17 AM

___________________________________________
COMPILATION ERROR in Script: downloadfile
Error in code at line 54:
dyrecievemessage(tcp,0,0); //receive one line
^
at position 6: Unknown function or script: dyrecievemessage

EDIT: sorry i didnt realize this error was already pointed out. i'll come back if it doesn't work.. or if it's awesome

Edited by SlipknLov, 18 December 2011 - 04:19 AM.


#8 Debels

Debels

    GMC Member

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

Posted 18 December 2011 - 12:31 PM

___________________________________________
COMPILATION ERROR in Script: downloadfile
Error in code at line 54:
dyrecievemessage(tcp,0,0); //receive one line
^
at position 6: Unknown function or script: dyrecievemessage

EDIT: sorry i didnt realize this error was already pointed out. i'll come back if it doesn't work.. or if it's awesome

just change the code above
dyrecievemessage<-- before
dyreceivemessage<-- after
i would recommend you to use the comscript that lets you program in 39dll, but your really programming in 39dylib =D
  • 0

#9 Debels

Debels

    GMC Member

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

Posted 06 February 2012 - 10:43 PM

You should add a HTML5 thing to :thumbsup:
  • 0

#10 Debels

Debels

    GMC Member

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

Posted 04 March 2012 - 05:10 PM

you should add the Android to 39dylib =D
  • 0

#11 Debels

Debels

    GMC Member

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

Posted 08 June 2012 - 10:56 PM

Still think you should add the Android and HTML5 Support xD.
  • 0

#12 Drara

Drara

    GMC Member

  • GMC Member
  • 320 posts

Posted 09 June 2012 - 12:25 AM

Still think you should add the Android and HTML5 Support xD.

Both of those systems are not able to use such things as DLLs (in Html5 there is some sort of Jave stuff for that, however).
Anyways, to export for those platforms, you need the GM Studio which contains already nearly everything what the 39dll is capable of and that probably faster than any dll could be.
So where would be the sense?
  • 0

#13 Debels

Debels

    GMC Member

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

Posted 09 June 2012 - 12:32 AM


Still think you should add the Android and HTML5 Support xD.

Both of those systems are not able to use such things as DLLs (in Html5 there is some sort of Jave stuff for that, however).
Anyways, to export for those platforms, you need the GM Studio which contains already nearly everything what the 39dll is capable of and that probably faster than any dll could be.
So where would be the sense?

GM:Studios doesn't have that :P, I have GM:Studios Full Version.

This extension was made based for GM:Studios since it searches what your using and executes the code depending on what your using :P, Mac and IOS don't accept dll's >.> he made a special code for them using a specific export type :P
  • 0

#14 Drara

Drara

    GMC Member

  • GMC Member
  • 320 posts

Posted 10 June 2012 - 02:41 PM



Still think you should add the Android and HTML5 Support xD.

Both of those systems are not able to use such things as DLLs (in Html5 there is some sort of Jave stuff for that, however).
Anyways, to export for those platforms, you need the GM Studio which contains already nearly everything what the 39dll is capable of and that probably faster than any dll could be.
So where would be the sense?

GM:Studios doesn't have that :P, I have GM:Studios Full Version.

This extension was made based for GM:Studios since it searches what your using and executes the code depending on what your using :P, Mac and IOS don't accept dll's >.> he made a special code for them using a specific export type :P

Oh I didn't see this was for iOS too. That's interesting.
However Android is a completly different thing, so.. it would most likely need a complete recoding, I guess..

But, about GM:S huh? Really, it doesn't have proper multiplayer functions? They said it would have them o-o
  • 0

#15 Debels

Debels

    GMC Member

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

Posted 10 June 2012 - 02:47 PM




Still think you should add the Android and HTML5 Support xD.

Both of those systems are not able to use such things as DLLs (in Html5 there is some sort of Jave stuff for that, however).
Anyways, to export for those platforms, you need the GM Studio which contains already nearly everything what the 39dll is capable of and that probably faster than any dll could be.
So where would be the sense?

GM:Studios doesn't have that :P, I have GM:Studios Full Version.

This extension was made based for GM:Studios since it searches what your using and executes the code depending on what your using :P, Mac and IOS don't accept dll's >.> he made a special code for them using a specific export type :P

Oh I didn't see this was for iOS too. That's interesting.
However Android is a completly different thing, so.. it would most likely need a complete recoding, I guess..

But, about GM:S huh? Really, it doesn't have proper multiplayer functions? They said it would have them o-o

Yeah, Soon.

Android and HTML5 use Java, while IOS uses XCode (i think), but i really think this can be done :)
  • 0

#16 ugriffin

ugriffin

    Idiot

  • Global Moderators
  • 1583 posts
  • Version:Mac

Posted 30 June 2012 - 09:47 PM

It is 90% likely that 39dylib can be ported to Android with minimal changes. However, I am not an Android developer, so I cannot do this myself.

All the bugs mentioned here arise from the example gmk and not from the actual C++ code in the extension itself.
  • 0

#17 Debels

Debels

    GMC Member

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

Posted 01 July 2012 - 03:32 AM

It is 90% likely that 39dylib can be ported to Android with minimal changes. However, I am not an Android developer, so I cannot do this myself.

All the bugs mentioned here arise from the example gmk and not from the actual C++ code in the extension itself.


Oh :/, Then i think i have to learn JavaScript to make the HTML5 and Android one, since i have no idea of how to make those changes :S
  • 0

#18 DanilaTheWalrus

DanilaTheWalrus

    GMC Member

  • New Member
  • 5 posts
  • Version:Mac

Posted 08 August 2013 - 01:17 AM

Hi there!

I'm not sure if this thread is still running but... 

So I got the .gex . It works amazing, already tested with my friend. But then it seems like when you use server and client, the server closes when the client closes. I do not know why that happens, could someone explain it to me? 


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users