Can someone compile for Mac OSX ?

Linux geeks and Mac OS hipsters unite! A board for discussion of Supermodel on non-Windows platforms.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

Re: Can someone compile for Mac OSX ?

Postby Arbee » Wed Sep 28, 2011 7:56 am

The root of the SDL/Lion incompatibility is that you can go fullscreen if you don't draw to the SDL surface at all, you must only do OpenGL operations (so e.g. don't try to clear it by getting surface->pixels and writing zeroes). MAME in -video opengl mode (the default on OS X) follows that; MAME in -video soft obviously doesn't and shows a similar error on Lion.

I'm a little annoyed because the SDL guys have known about this since August and have a fix in their repo but haven't made a release yet.

Will take a look at this after work :)
Arbee
 
Posts: 69
Joined: Sun Sep 25, 2011 6:41 pm

Re: Can someone compile for Mac OSX ?

Postby Bart » Wed Sep 28, 2011 9:58 am

Arbee wrote:Will take a look at this after work :)


Thanks a lot, I'll be interested to hear your findings. Supermodel doesn't attempt to access the frame buffer directly at all. After the mode is set, the screen is cleared using OpenGL (clearing the color buffer) -- no further SDL calls are made to manipulate the video setting and there are none at all that would manipulate the frame buffer.

The code to set the video mode is just a one-liner:

Code: Select all
if (SDL_SetVideoMode(*xResPtr,*yResPtr,0,SDL_OPENGL|(fullScreen?SDL_FULLSCREEN|SDL_HWSURFACE:0)) == NULL)
{
    ErrorLog("Unable to create an OpenGL display: %s\n", SDL_GetError());
    return FAIL;
}
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Can someone compile for Mac OSX ?

Postby kuran » Wed Sep 28, 2011 12:41 pm

Thank's for looking into it RB and Bart. It isn't such a big issue since we can just have the window run at the screen's max resolution and have a little border at the top.. in any case let's hope the SDL people fix the problem.

PS. Is there a way to set the default window resolution in the config file? I could not find it in the config file. Thanks!
User avatar
kuran
 
Posts: 69
Joined: Mon Sep 26, 2011 11:24 pm

Re: Can someone compile for Mac OSX ?

Postby Bart » Wed Sep 28, 2011 3:28 pm

kuran wrote:PS. Is there a way to set the default window resolution in the config file? I could not find it in the config file. Thanks!

[/quote]

See the README or here for config file options.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Can someone compile for Mac OSX ?

Postby kuran » Wed Sep 28, 2011 3:39 pm

Bart wrote:
kuran wrote:PS. Is there a way to set the default window resolution in the config file? I could not find it in the config file. Thanks!



See the README or here for config file options.[/quote]

Apologies, it seems when I copy pasted the lines from the ReadMe I put them on top of the ini, not the global section. Will RTFM properly from now on.
User avatar
kuran
 
Posts: 69
Joined: Mon Sep 26, 2011 11:24 pm

Re: Can someone compile for Mac OSX ?

Postby Bart » Wed Sep 28, 2011 3:56 pm

kuran wrote:Apologies, it seems when I copy pasted the lines from the ReadMe I put them on top of the ini, not the global section.


That should be fine. It didn't work? Supermodel is supposed to interpret anything at the top as part of [Global] itself. Could you try as you were doing before and then please paste error.log and Supermodel.ini here in code blocks ([ code ] [ /code ])?
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Can someone compile for Mac OSX ?

Postby kuran » Wed Sep 28, 2011 4:11 pm

Bart wrote:
kuran wrote:Apologies, it seems when I copy pasted the lines from the ReadMe I put them on top of the ini, not the global section.


That should be fine. It didn't work? Supermodel is supposed to interpret anything at the top as part of [Global] itself. Could you try as you were doing before and then please paste error.log and Supermodel.ini here in code blocks ([ code ] [ /code ])?


It works now, last time I simply tried to put '-res=1920,1080' in the config file, thinking that would be correct. So that was the problem, not that I put it in the global section.
I just tried putting the correct code above Global, and it works as well.
User avatar
kuran
 
Posts: 69
Joined: Mon Sep 26, 2011 11:24 pm

Re: Can someone compile for Mac OSX ?

Postby Bart » Wed Sep 28, 2011 4:16 pm

Ah okay. Makes sense. By the way, are you able to configure inputs using -config-inputs and have the results successfully saved to Supermodel.ini when you then exit with 'q' to commit changes? Another user (see his thread) cannot. I'm pretty sure this should work fine on Mac unless I'm doing something exceedingly dumb with iostreams.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Can someone compile for Mac OSX ?

Postby kuran » Wed Sep 28, 2011 4:29 pm

Bart wrote:Ah okay. Makes sense. By the way, are you able to configure inputs using -config-inputs and have the results successfully saved to Supermodel.ini when you then exit with 'q' to commit changes? Another user (see his thread) cannot. I'm pretty sure this should work fine on Mac unless I'm doing something exceedingly dumb with iostreams.


I just tried this for Daytona2, to test I assigned the P1 Start key to W. It correctly told me the settings were saved once I pressed Q, and the settings were saved properly.
I restarted the same game afterwards and the W key was still assigned to P1 Start.

So it works fine for me!

PS. Am I doing something wrong? My attract screens seem to have disappeared from Daytona 2 and SCUD.
User avatar
kuran
 
Posts: 69
Joined: Mon Sep 26, 2011 11:24 pm

Re: Can someone compile for Mac OSX ?

Postby Bart » Wed Sep 28, 2011 7:51 pm

kuran wrote:PS. Am I doing something wrong? My attract screens seem to have disappeared from Daytona 2 and SCUD.


Is it going straight to selection? It shouldn't do that, even with coins logged in the machine, but try clearing NVRAM (ALT-N) and then restarting. Does it help?
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

PreviousNext

Return to Alternative Fashion

Who is online

Users browsing this forum: No registered users and 1 guest

cron