ShadowTheAge/yafc

I can't figure out how to run YAFC on Mac

Opened this issue · 4 comments

Im pretty sure I have installed SDL2 brew and dotnet.
When I run dotnet YAFC.dll in the terminal I get this error:

Could not execute because the specified command or file was not found.
Possible reasons for this include:

  • You misspelled a built-in dotnet command.
  • You intended to execute a .NET program, but dotnet-YAFC.dll does not exist.
  • You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

Hello, unfortunately I am not at home rn and can't check, but just to be sure - are you running dotnet from the directory where you have unpacked yafc? (YAFC.dll is in that directory)

You can also try another way - mark YAFC (that is the file name, without dll) as an executable and run it.

Hello.
I do not know how to do either of those things. I have the OSX folder of YAFC and it's in my downloads folder. I don't know where I am running dotnet from and I don't know how to change it.

For the second option, I have a file in the folder called YAFC.dll and another just called YAFC, I don't know how to mark either as an executable.

change the directory to the directory where yafc is located in the terminal:
cd /path/to/yafc/folder
then run dotnet YAFC.dll
I don't have mac, but this should work the same as on any unix-like system including mac

I too just had problems yafc and everything required on mac. For me the latest versions (v6+) of dotnet didn't work, so I had to install the deprecated 3.1. I downloaded: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-3.1.426-macos-x64-binaries

and then followed the microsoft install guide - https://learn.microsoft.com/en-us/dotnet/core/install/macos

so step by step:

DOTNET_FILE=dotnet-sdk-3.1.426-osx-x64.tar.gz
export DOTNET_ROOT=~/Downloads/dotnet
mkdir -p "$DOTNET_ROOT" && tar zxf "$DOTNET_FILE" -C "$DOTNET_ROOT"
export PATH=$PATH:$DOTNET_ROOT

( change ~/Downloads/dotnet to whatever you want)

and then you can run:

dotnet /path/to/yafc/YAFC.dll

hope this helps