[Custom-Splash-Script-for-ReiNX] - Problem for macOS

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by azoreseuropa, Dec 6, 2018 at 3:13 PM.

  1. azoreseuropa
    OP

    azoreseuropa GBAtemp Guru

    Member
    9
    Nov 6, 2002
    Portugal
    Proud to be Portuguese 100%!
    Can you kindly to help me out ? The Windows version is so easy to use but I want to learn how to use it on macOS. Following your instruction you mentioned doesn't worked. CustomSplash folder is in the Finder..

    I do this by drag and drop CustomSplash folder along with splash1.png: myname-MBP:~ myname$ CD

    and I got this: myname-MBP:CustomSplash myname$

    Now.. I have this: myname-MBP:CustomSplash myname$ python3 ReiNX_splash.py splash1.png

    and press return and I got this:

    /Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'ReiNX_splash.py': [Errno 2] No such file or directory

    THEN

    If I do my way.. I got this:

    I use terminal and type cd and drag and drop CustomSplash folder from
    Finder like this:

    cd /Users/myname/Downloads/CustomSplash python3 ReiNX_splash.py splash1.png

    myname-MacBook-Pro:CustomSplash myname$

    Nothing

    And check CustomSplash folder.. nothing. Yes, splash1.png is in
    CustomSplash folder at Finder as well.

    Nothing. I don't understand.
     
    Last edited by azoreseuropa, Dec 6, 2018 at 3:21 PM
  2. Sciguy429

    Sciguy429 Member

    Newcomer
    1
    Dec 3, 2018
    United States
    I'm not entirely sure what you were trying to do there, that's not how terminals work. You don't drag and drop, you need to tell it where the file is.

    Code:
    python3 splash.py your.png
    That should be the command format you follow, make sure your picture is in the same folder as the python script and change the names accordingly (if you press tab the console will try and autocompleate for you).
     
  3. azoreseuropa
    OP

    azoreseuropa GBAtemp Guru

    Member
    9
    Nov 6, 2002
    Portugal
    Proud to be Portuguese 100%!
    Hello. As I said CustomSplay folder is in Finder and splash.bin are in the same folder.

    I did that too.. I got an error:

    /Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'splash.py': [Errno 2] No such file or directory

    in CustomSplash folder.. There is no splash.py at all. Only CustomSplash.pyw
     
  4. Sciguy429

    Sciguy429 Member

    Newcomer
    1
    Dec 3, 2018
    United States

    That error means that python can't find the script file. Are you sure your typing the exact name? Its not gonna be script.py that was just a guess you will have to look for there names using finder.

    Also make sure you are in the right directory. the console executes commands from the current working directory witch by default is your home folder. Going from the info you have in your post you should be able to just execute these two commands and be done with it.
    Code:
    cd ~/Downloads/CustomSplash/
    
    python3 ./ReiNX_splash.py ./splash1.png
    Quick bit of unix info:
    • The ~ means your home folder (IE /home/sciguy429/)
    • The ./ denotes that the file is in the current directory
     
    Last edited by Sciguy429, Dec 6, 2018 at 9:04 PM
  5. azoreseuropa
    OP

    azoreseuropa GBAtemp Guru

    Member
    9
    Nov 6, 2002
    Portugal
    Proud to be Portuguese 100%!
    Thanks for helping me out. I do this:

    username-MBP:~ username$ cd ~/Downloads/CustomSplash/

    username-MBP:CustomSplash username$ python3 ./ReiNX_splash.py ./splash1.png

    /Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: can't open file './ReiNX_splash.py': [Errno 2] No such file or directory

    username-MBP:CustomSplash username$

    See? Something to do with ReiNX_splash.py -- No such file or directory
     
  6. Sciguy429

    Sciguy429 Member

    Newcomer
    1
    Dec 3, 2018
    United States
    Like i said before that means python cant find the script file, are you sure that's the correct name? Open up finder and check, if its different replace the name in the command, leaving the ./ before it
     
  7. azoreseuropa
    OP

    azoreseuropa GBAtemp Guru

    Member
    9
    Nov 6, 2002
    Portugal
    Proud to be Portuguese 100%!
    From Finder.. There is Downloads>CustomSplash folder>CustomSplash.pyw, resourcesfolder, splash1.png.
     
  8. Sciguy429

    Sciguy429 Member

    Newcomer
    1
    Dec 3, 2018
    United States

    Well there's your problem, That tool is for windows only! Do you have a windows pc? Because if so you can grab the .exe from the github releases and it has a full GUI and everything.
     
  9. azoreseuropa
    OP

    azoreseuropa GBAtemp Guru

    Member
    9
    Nov 6, 2002
    Portugal
    Proud to be Portuguese 100%!
    The developer at GitHub said it can be done on macOS but he don't know how to use it.

    Yes, I have a PC but I want to learn how to use it on macOS.
     
  10. Sciguy429

    Sciguy429 Member

    Newcomer
    1
    Dec 3, 2018
    United States

    Ok well then please go ask the developer, I didn't make the tool and I have no clue how to compile it for macOs.

    Here's the relevant thread: https://gbatemp.net/threads/custom-splash-script-for-reinx-gui.520442/
     
  11. azoreseuropa
    OP

    azoreseuropa GBAtemp Guru

    Member
    9
    Nov 6, 2002
    Portugal
    Proud to be Portuguese 100%!
    I know about the link. Thanks.

    He suggested me to come here since he don't know how either, lol I guess I can use PC instead. Too bad that I cannot learn how to use it on macOS. Much appreciated.
     
  12. nando

    nando GBAtemp Addict

    Member
    6
    Jan 1, 2008
    United States
    i read your thread and just tried it and it worked. i did it by drag and dropping because screw typing in directories and file names.

    downloaded py script.
    installed python3 via brew
    installed Pillow
    then i typed "python3" dragged the script into the terminal window, then i dragged a png file. the script ran and made a "splash.bin" in my home directory
     
    Last edited by nando, Dec 6, 2018 at 10:11 PM
  13. azoreseuropa
    OP

    azoreseuropa GBAtemp Guru

    Member
    9
    Nov 6, 2002
    Portugal
    Proud to be Portuguese 100%!
    I have those and I got this:

    usernames-MBP:~ username$ python3 /Users/username/Downloads/CustomSplash/CustomSplash.pyw /Users/username/Downloads/CustomSplash/splash1.png

    Traceback (most recent call last):

    File "/Users/username/Downloads/CustomSplash/CustomSplash.pyw", line 3, in <module>

    import winsound

    ModuleNotFoundError: No module named 'winsound'

    username-MBP:~ username$
     
  14. nando

    nando GBAtemp Addict

    Member
    6
    Jan 1, 2008
    United States
    why is there a w at the end of .py?
     
  15. azoreseuropa
    OP

    azoreseuropa GBAtemp Guru

    Member
    9
    Nov 6, 2002
    Portugal
    Proud to be Portuguese 100%!
    Thats what I downloaded from GitHub version. :/
     
  16. nando

    nando GBAtemp Addict

    Member
    6
    Jan 1, 2008
    United States
    i understand now.

    i'm just running the "ReiNX_splash.py" script not the gui.
    there is no winsound module for mac. you can comment it out in the script, but then the next issue you will run into is the directories. you need to change them to mac directories with the forward slash "/"
     
  17. azoreseuropa
    OP

    azoreseuropa GBAtemp Guru

    Member
    9
    Nov 6, 2002
    Portugal
    Proud to be Portuguese 100%!
    How ? I want to learn how.. Teach me, please ?
     
  18. nando

    nando GBAtemp Addict

    Member
    6
    Jan 1, 2008
    United States
    just tried it and it works

    open "CustomSplash.pyw" in a text editor of your choice

    comment out or delete the line that reads "import winsound" (you can comment out by adding "#" in front of it)

    do the same for line 47 "winsound.PlaySound('resources/dl.wav', winsound.SND_ASYNC)"

    find all Image.open() instances and change the back slashes to single forward slashes. for example on line 68

    "load = Image.open(os.getcwd() + '\\resources\\done.png')" change it to
    "load = Image.open(os.getcwd() + '/resources/done.png')"

    "os.getcwd()" is the current folder. if you don't set the script folder as current, this will throw an error

    so now in terminal set the script folder as current with "cd " + folder directory

    then run the script

    "python3 CustomSplash.pyw"

    (no quotation marks ofcourse)
     
  19. azoreseuropa
    OP

    azoreseuropa GBAtemp Guru

    Member
    9
    Nov 6, 2002
    Portugal
    Proud to be Portuguese 100%!
    Mine is not the same as yours. Can I uploading it here for you to download and take a look at?
     
  20. nando

    nando GBAtemp Addict

    Member
    6
    Jan 1, 2008
    United States
    sure. didn't you just download the master from github? it's what i did.
     
Loading...