Jump to content


Photo

Can GM4Mac use LIBs?


  • Please log in to reply
9 replies to this topic

#1 Superkittens

Superkittens

    GMC Member

  • New Member
  • 389 posts

Posted 05 December 2010 - 05:41 AM

If so, how?
  • 0

#2 mrme

mrme

    GM Pro

  • GMC Member
  • 222 posts
  • Version:Unknown

Posted 06 December 2010 - 02:49 AM

I don't know anything about Mac's, so I don't know how correct this answer is, however this is what I found out.
If you look at http://wiki.yoyogame...e_Maker_for_Mac it says GM4Mac can use

Extension mechanism to incorporate 3rd party libraries – (need to be Mac specific extensions, will not run Windows)

at the bottom of the page there is an example of a .dylib that will work on Mac's but I don't know about .lib's
  • 0

#3 ugriffin

ugriffin

    Idiot

  • Global Moderators
  • 1451 posts
  • Version:Mac

Posted 07 December 2010 - 03:14 AM

That's a good question!

You should probably load one yourself and see what happens. I know for a fact that GM4Mac can run Extensions based in GML or in C code (dylibs). I wrote two, check out the Mac forums.
  • 0

#4 Superkittens

Superkittens

    GMC Member

  • New Member
  • 389 posts

Posted 08 December 2010 - 06:11 AM

The normal place you are supposed to put it is not there.
  • 0

#5 ugriffin

ugriffin

    Idiot

  • Global Moderators
  • 1451 posts
  • Version:Mac

Posted 09 December 2010 - 04:38 AM

Hmmm. Do you have a Windows install? If so, you could try packaging the LIB in an extension, and then you can load that into GM4Mac.


I never really used libs. I went past D&D before I even knew they existed. :whistle:
  • 0

#6 Superkittens

Superkittens

    GMC Member

  • New Member
  • 389 posts

Posted 09 December 2010 - 05:31 AM

I just wanted to show my friend 3d without trying to teach him all the d3d stuff.
  • 0

#7 IsmAvatar

IsmAvatar

    Good Samaritan

  • GMC Member
  • 2411 posts
  • Version:GM8

Posted 09 December 2010 - 06:34 AM

In theory, it should work. LIBs are nothing but D&D actions converted into GML code, so there's nothing there that MAC wouldn't support.
However, then it becomes a simple question of whether YYG bothered to program support for them into GM4Mac, e.g. whether it checks the libs directory, and whether it reads in the same file format. The only way to know that is tias (try it and see)

Edited by IsmAvatar, 09 December 2010 - 06:34 AM.

  • 0

#8 Dangerous_Dave

Dangerous_Dave

    GMC Member

  • Global Moderators
  • 9276 posts
  • Version:Unknown

Posted 09 December 2010 - 09:22 AM

e.g. whether it checks the libs directory, and whether it reads in the same file format. The only way to know that is tias (try it and see)

I think a good question to ask is, where would the libs directory be found. As a Mac app, all the main content of the app is within the one "file". Searching through the package contents, I found nothing relating to libs. Maybe that means they just didn't bother, or maybe it's buried deep in a hidden folder somewhere in the Library of application details. I think how to test is the biggest problem at the moment.

Edited by Dangerous_Dave, 09 December 2010 - 09:23 AM.

  • 0

#9 makerofthegames

makerofthegames

    TV's busboy

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

Posted 09 December 2010 - 09:30 AM

Maybe they forgot. :snitch:
  • 0

#10 ugriffin

ugriffin

    Idiot

  • Global Moderators
  • 1451 posts
  • Version:Mac

Posted 09 December 2010 - 05:40 PM

Like dangerous_dave said, Mac apps have all their needed files inside the 'executable'. This is called an application bundle.


I checked the /home/Library/com.yoyogames.gamemaker folder and there is indeed a /lib/ folder there. Downloaded something random off the GMC (some Pause library), and put it in the folder.


I'm pleased to say it worked perfectly. :)
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users