Mac OS game directory in Terminal

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

Mac OS game directory in Terminal

Postby BG213 » Wed Dec 15, 2021 6:49 pm

To start GZDoom on my mac the shortest directory is like this:

/ZDoom.app/Contents/MacOS/zdoom

I cannot start it like Windows users:

C:doom.exe

Is there a way to have a shorter path?
BG213
 
Joined: 18 Nov 2021
Operating System: Mac OS X 10.8 or later
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)

Re: Mac OS game directory in Terminal

Postby _mental_ » Thu Dec 16, 2021 1:19 am

Create an alias in your shell, zsh on recent versions of macOS, and bash on older ones. This has nothing to do with GZDoom itself because support of aliases is a common shell applications' feature.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Mac OS game directory in Terminal

Postby BG213 » Sat Dec 18, 2021 1:26 pm

Terminal seems to not like me creating aliases of commands! So for example this works:

alias doom="/ZDoom.app/Contents/MacOS/zdoom -iwad doom2.wad -skill 4"

Typing

doom

into terminal will bring up Entryway, but if I make this alias:

alias s0='-loadgame /Users/myimac/Documents/ZDoom/Savegames/save0.zds'

Which is a save game of the beginning of The Gantlet, then try this in terminal:

doom s0

It loads the beginning of Entryway again! Similarly:

alias w3='-warp 03'

And in terminal:

doom w3

Still brings me to Entryway!

Seems like I can't create an alias of commands? But the first alias (which starts off as a file path string) contains commands and they do work! I even checked the skill level in console and it is correct! I also use the "alias" command in terminal to check if all the above aliases are known to my system. Indeed they are, just not being recognized by ZDoom!? Argggghhhh!!
BG213
 
Joined: 18 Nov 2021
Operating System: Mac OS X 10.8 or later
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)


Return to General

Who is online

Users browsing this forum: phantombeta, sylandro and 2 guests