The official "ZDoom on Mac OS X" thread.

Handy guides on how to do things, written by users for users.
Forum rules
Please don't start threads here asking for help. This forum is not for requesting guides, only for posting them. If you need help, the Editing forum is for you.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: The official "ZDoom on Mac OS X" thread.

Post by Gez »

Blzut3 wrote:I'm not aware of any significant problems with SDL on Windows.
Mostly issues with keyboard input and international keyboard layouts. In other words, the reason why ZDoom does not use SDL at all on Windows.
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: The official "ZDoom on Mac OS X" thread.

Post by Edward-san »

Gez wrote:SDL's fine for Linux.
Not for non-US keyboard layouts.
User avatar
printz
Posts: 2649
Joined: Thu Oct 26, 2006 12:08 pm
Location: Bucharest, Romania
Contact:

Re: The official "ZDoom on Mac OS X" thread.

Post by printz »

Gez wrote:In other words, the reason why ZDoom does not use SDL at all on Windows.
Why not FMOD elsewhere?
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: The official "ZDoom on Mac OS X" thread.

Post by Gez »

Huh? FMOD doesn't do mouse/keyboard/joystick input or video output.
zdoomer
Posts: 13
Joined: Fri Jun 22, 2012 3:11 am

Re: The official "ZDoom on Mac OS X" thread.

Post by zdoomer »

Hi, as a newcomer to mac, im now enjoying Doom with a custom compiled zdoom on my new macbook pro with the help of this useful information. One thing though, I´m seeing that Zdoom now writes zdoom.ini in Library/Preferences. . I purchase lots of apps on the mac appstore, and the apps there write files in the Library/Application Support/<appname> folder. I would like to modify Zdoom to write files to Library/Application Support/<anyname>. That way, I´d have Library/Application Support/Doom, Library/Application Support/Heretic, Library/Application Support/Hexen, and such. Also, is there a way to change the file zdoom.ini to anything else? macosxdoom.ini?

thank you!
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: The official "ZDoom on Mac OS X" thread.

Post by Gez »

zdoomer wrote:Hi, as a newcomer to mac, im now enjoying Doom with a custom compiled zdoom on my new macbook pro with the help of this useful information. One thing though, I´m seeing that Zdoom now writes zdoom.ini in Library/Preferences. . I purchase lots of apps on the mac appstore, and the apps there write files in the Library/Application Support/<appname> folder. I would like to modify Zdoom to write files to Library/Application Support/<anyname>. That way, I´d have Library/Application Support/Doom, Library/Application Support/Heretic, Library/Application Support/Hexen, and such. Also, is there a way to change the file zdoom.ini to anything else? macosxdoom.ini?

thank you!
Wouldn't that make it Library/Application Support/ZDoom ?

Anyway, the code responsible is this:

Code: Select all

#elif defined(__APPLE__)
	char cpath[PATH_MAX];
	FSRef folder;
	
	if (noErr == FSFindFolder(kUserDomain, kPreferencesFolderType, kCreateFolder, &folder) &&
		noErr == FSRefMakePath(&folder, (UInt8*)cpath, PATH_MAX))
	{
		path = cpath;
		path += "/zdoom.ini";
		return path;
	}
	// Ungh.
	return "zdoom.ini";
It's in src/gameconfigfile.cpp, in the function FString FGameConfigFile::GetConfigPath (bool tryProg), lines 608 to 620. Apparently you should replace kPreferencesFolderType wxith kApplicationSupportFolderType and path += "/zdoom.ini"; with path += "/ZDoom/zdoom.ini"; I guess.
Blzut3
 
 
Posts: 3219
Joined: Wed Nov 24, 2004 12:59 pm
Operating System Version (Optional): Kubuntu
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: The official "ZDoom on Mac OS X" thread.

Post by Blzut3 »

I've uploaded a new build earlier this morning: http://svn.drdteam.org/zdoom-mac/zdoom-r3709.dmg

This build has a shell script in it that picks a version of SDL based on your OS version so it should work for all 10.4-10.7 installations. If people could confirm that it works for them that would be great.
User avatar
printz
Posts: 2649
Joined: Thu Oct 26, 2006 12:08 pm
Location: Bucharest, Romania
Contact:

Re: The official "ZDoom on Mac OS X" thread.

Post by printz »

Works for me, and I might be one having an old SDL, just so that Eternity and Wolf4SDL work too. ZDoom also works in full screen. I hope it won't crash.

It would be so cool if the Command key gets supported...
zdoomer
Posts: 13
Joined: Fri Jun 22, 2012 3:11 am

Re: The official "ZDoom on Mac OS X" thread.

Post by zdoomer »

Gez wrote:
zdoomer wrote:Hi, as a newcomer to mac, im now enjoying Doom with a custom compiled zdoom on my new macbook pro with the help of this useful information. One thing though, I´m seeing that Zdoom now writes zdoom.ini in Library/Preferences. . I purchase lots of apps on the mac appstore, and the apps there write files in the Library/Application Support/<appname> folder. I would like to modify Zdoom to write files to Library/Application Support/<anyname>. That way, I´d have Library/Application Support/Doom, Library/Application Support/Heretic, Library/Application Support/Hexen, and such. Also, is there a way to change the file zdoom.ini to anything else? macosxdoom.ini?

thank you!
Wouldn't that make it Library/Application Support/ZDoom ?

Anyway, the code responsible is this:

Code: Select all

#elif defined(__APPLE__)
	char cpath[PATH_MAX];
	FSRef folder;
	
	if (noErr == FSFindFolder(kUserDomain, kPreferencesFolderType, kCreateFolder, &folder) &&
		noErr == FSRefMakePath(&folder, (UInt8*)cpath, PATH_MAX))
	{
		path = cpath;
		path += "/zdoom.ini";
		return path;
	}
	// Ungh.
	return "zdoom.ini";
It's in src/gameconfigfile.cpp, in the function FString FGameConfigFile::GetConfigPath (bool tryProg), lines 608 to 620. Apparently you should replace kPreferencesFolderType wxith kApplicationSupportFolderType and path += "/zdoom.ini"; with path += "/ZDoom/zdoom.ini"; I guess.
It worked! thank you again!
zdoomer
Posts: 13
Joined: Fri Jun 22, 2012 3:11 am

Re: The official "ZDoom on Mac OS X" thread.

Post by zdoomer »

printz wrote:Works for me, and I might be one having an old SDL, just so that Eternity and Wolf4SDL work too. ZDoom also works in full screen. I hope it won't crash.

It would be so cool if the Command key gets supported...
There´s a way to enable command-key support, i´ve seen at least command-q added in some ports.
zdoomer
Posts: 13
Joined: Fri Jun 22, 2012 3:11 am

Re: The official "ZDoom on Mac OS X" thread.

Post by zdoomer »

I´m not getting sound on zdoom on the new mac book pro with HD graphics 4000. Could anyone with a current macbookpro/air post whether they're getting sound on zdoom?
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: The official "ZDoom on Mac OS X" thread.

Post by _mental_ »

zdoomer wrote:I´m not getting sound on zdoom on the new mac book pro with HD graphics 4000. Could anyone with a current macbookpro/air post whether they're getting sound on zdoom?
I asked a friend to check this and sound is OK on newest Retina MBP with 10.8 as well as on previous generation MBPs with 10.7/10.8.
Have no idea why this could happen. Take a look into console right after game start-up for some warning messages or errors.
monty8761

Re: The official "ZDoom on Mac OS X" thread.

Post by monty8761 »

Hi. I also have a mac and was wondering if it would be any trouble for someone to post the command line parameters that will allow me to play ZDoom multiplayer with other Mac users
Blzut3
 
 
Posts: 3219
Joined: Wed Nov 24, 2004 12:59 pm
Operating System Version (Optional): Kubuntu
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: The official "ZDoom on Mac OS X" thread.

Post by Blzut3 »

Just run the binary from the command line with the same options as any other version of ZDoom:

Code: Select all

/Applications/ZDoom.app/Contents/MacOS/zdoom -host ...
There's a way to pass arugments with open -a, but I don't know it off hand. I believe it's:

Code: Select all

open -a /Applications/ZDoom.app --args -host ...
zdoomer
Posts: 13
Joined: Fri Jun 22, 2012 3:11 am

Re: The official "ZDoom on Mac OS X" thread.

Post by zdoomer »

Does zdoom on mac osx support retina display? If it does support it, is it enabled with menu options? retina display's resolution is 2880x1800.
Post Reply

Return to “Tutorials”