kiooeht / ModTheSpire

External mod loader for Slay The Spire
MIT License
414 stars 87 forks source link

Can't install on mac #61

Closed gabriel-dehan closed 6 years ago

gabriel-dehan commented 6 years ago

Hello, I can't seem to install on mac, I am pretty sure I have followed the instructions properly though:

$ cd ~/Applications/Slay the Spire.app/Contents/Resources
$ java -jar ModTheSpire.jar

Gives me back:

ERROR: Failed to find Steam installation.
Exception in thread "main" java.lang.NullPointerException
    at com.evacipated.cardcrawl.modthespire.SteamSearch.containsAcfFile(SteamSearch.java:94)
    at com.evacipated.cardcrawl.modthespire.SteamSearch.prepare(SteamSearch.java:39)
    at com.evacipated.cardcrawl.modthespire.SteamSearch.findDesktopJar(SteamSearch.java:19)
    at com.evacipated.cardcrawl.modthespire.Loader.main(Loader.java:91)

I have java 8 installed and my structure is like that:

.
└── Contents
    ├── Info.plist
    ├── MacOS
    │   └── run.sh
    └── Resources
        ├── MTS.sh
        ├── ModTheSpire.jar
        ├── mods
        └── shortcut.icns

Thanks :)

kiooeht commented 6 years ago

I don't have a mac, so it's hard to test anything myself.

Slay the Spire.app/Contents/Resources/ should contain a file desktop-1.0.jar that ModTheSpire looks for. Apparently it might be hidden. Hopefully https://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/ has proper instructions for you to see hidden files.

Just being able to see hidden files probably won't fix the issue, but I'd like to see the layout of the hidden files.

gabriel-dehan commented 6 years ago

Hey thanks for the quick answer! There is no desktop-1.0.jar inside no, it doesn't seem to be hidden either, I just checked.

If you need anymore info or for me to do some thing for you to debug please ask, I am a developer (just not java) I may be able to help. Cheers

kiooeht commented 6 years ago

Are you sure it's not there? The one person I know who found it said it was hidden and they had to use a terminal command and relaunch Finder, but after that they could see it.

gabriel-dehan commented 6 years ago

Okay I found the answer!

It was actually not in ~/Applications/Slay The Spire.app/Contents/Ressources but instead inside ~/Library/Application\ Support/Steam/steamapps/common/SlayTheSpire/SlayTheSpire.app/Contents/Resources.

Might depend on the installation or a few things but it might be nice to add that to the readme/wiki :)

kiooeht commented 6 years ago

Alright, thanks for the info.