Opening Doom with the Mac Terminal (Big Sur)

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE? Did your computer break? Ask here.

Moderator: GZDoom Developers

Opening Doom with the Mac Terminal (Big Sur)

Postby Captain Chops » Mon Mar 22, 2021 9:09 pm

Does anyone know how to start GZDoom 4.5 on MacOS Big Sur using the terminal app. I have been using the guide on here
https://zdoom.org/wiki/Installation_and ... ac_OS_X.29
where down the bottom it has the terminal entries, but it says to go to /GZDoom.app/Content/MacOS/, which i cannot find on my mac.
I have little knowledge about shell script, however I know how to navigate to /applications/ to find GZDoom.app, however using
Code: Select allExpand view
./GZDoom -file (doom.wad)
gives the response from the terminal "zsh : number expected".
Does anyone else here know how to open it from the command, or if there is any way to create a .sh (shell) file to run instead?
Captain Chops
 
Joined: 22 Mar 2021
Operating System: Mac OS X 10.8 or later

Re: Opening Doom with the Mac Terminal (Big Sur)

Postby _mental_ » Tue Mar 23, 2021 2:44 am

Relative path to executable including app bundle is GZDoom.app/Contents/MacOS/gzdoom.
Notice absence of slash before the path because it means the root directory, and so, an absolute aka full path.
If GZDoom app bundle is inside /Applications, the full path will be /Applications/GZDoom.app/Contents/MacOS/gzdoom.

I don't know what parentheses suppose to designate on that wiki page, although there is no need to use them.
Also, IWAD requires -iwad command line option while PWADs should be specified after -file.

Code: Select allExpand view
/Applications/GZDoom.app/Contents/MacOS/gzdoom -iwad doom -file foo.wad bar.wad

Paths to IWAD/PWADs can be absolute. IWAD extension can be omitted in most cases.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Opening Doom with the Mac Terminal (Big Sur)

Postby Captain Chops » Wed Mar 24, 2021 4:57 pm

Thanks mate, I worked it out. It wasn't too complicated, just
Code: Select allExpand view
#!/bin/bash
echo "DOOM TIME FUCKERS!"
open -a GZDoom

However, i still have a few questions, the main one is how would you do the command line parameters for multiplayer in the shell scripts.
if you do it the same way as in a windows batch file, like
Code: Select allExpand view
 gzdoom -join (ip)
it recognises -join as a parameter, but does not do the function intended for GZDoom, as
it gives
Code: Select allExpand view
the file /users/blahdeblah/(ip) does not exist
as if it was a file or directory. This also happens with parameters -deathmatch, -host, and others. Would there be any alternative parameters that I could use to start multiplayer or if there is something I am doing wrong?
But thanks for your previous help as well.
Captain Chops
 
Joined: 22 Mar 2021
Operating System: Mac OS X 10.8 or later

Re: Opening Doom with the Mac Terminal (Big Sur)

Postby _mental_ » Thu Mar 25, 2021 1:11 am

(ip) should be replaced with host’s IP address.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Opening Doom with the Mac Terminal (Big Sur)

Postby Captain Chops » Thu Mar 25, 2021 11:42 pm

I know that (ip) should be replaced with the host ip, but say if I put in
-join 21.248.26.03
The terminal gives an error that the file 21.248.26.03 was not found or does not exist.
This isn’t the actual ip I just made one up as an example.
Captain Chops
 
Joined: 22 Mar 2021
Operating System: Mac OS X 10.8 or later

Re: Opening Doom with the Mac Terminal (Big Sur)

Postby _mental_ » Fri Mar 26, 2021 1:14 am

Post exact command lines then. We cannot guess what the problem is without seeing a whole picture.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Opening Doom with the Mac Terminal (Big Sur)

Postby Captain Chops » Sat Mar 27, 2021 6:29 pm

Ok so this is what i wrote.
These are around the wrong way though.
You do not have the required permissions to view the files attached to this post.
Captain Chops
 
Joined: 22 Mar 2021
Operating System: Mac OS X 10.8 or later

Re: Opening Doom with the Mac Terminal (Big Sur)

Postby SanyaWaffles » Sat Mar 27, 2021 8:11 pm

You have to use this command line, not the open command.

Code: Select allExpand view
/Applications/GZDoom.app/Contents/MacOS/gzdoom -iwad doom2.wad -join 15.177.18.98
User avatar
SanyaWaffles
Now I've awoken, and I'm taking back control.
 
Joined: 25 Apr 2013
Location: Eastern Ohio
Discord: SanyaWaffles#5095
Twitch ID: sanyawaffles
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Opening Doom with the Mac Terminal (Big Sur)

Postby Captain Chops » Sat Mar 27, 2021 10:37 pm

OH MY GOD THANKS YOU SO MUCH MAN I HAVE BEEN TRYING TO WORK THIS OUT FOR AGES!
Captain Chops
 
Joined: 22 Mar 2021
Operating System: Mac OS X 10.8 or later

Re: Opening Doom with the Mac Terminal (Big Sur)

Postby _mental_ » Sat Mar 27, 2021 11:18 pm

open works as well if application’s arguments are passed to it properly, i.e. after --args switch.
_mental_
 
 
 
Joined: 07 Aug 2011


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 1 guest