Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KOTOR2: macOS: Mac App Store version of KotoR2 #583

Open
shinra-electric opened this issue Feb 17, 2022 · 8 comments
Open

KOTOR2: macOS: Mac App Store version of KotoR2 #583

shinra-electric opened this issue Feb 17, 2022 · 8 comments

Comments

@shinra-electric
Copy link

shinra-electric commented Feb 17, 2022

I am trying to get xoreos to detect the MAS version of Kotor2. It currently outputs ERROR: Unable to detect the game.

I was reading through the KotOR2Engine::initResources function here

I noticed that one of the required directories "lips" is not present in the MAS version of KotoR2. I tried creating an empty directory, but that did not help game detection.
edit: I copied over the "lips" dir from a windows install, it did not help.

Another point: in the function, the directory names are lower-case, whereas in the MAS version the have both upper and lower.

Another point: the name /GameData is added on to the path, and then later adds ../Resources/Cursors as a required dir. I have restructured my data folder to be kotor2_mac/GameData and added Resources/Cursors but it did not help game detection.

@DrMcCoy
Copy link
Member

DrMcCoy commented Feb 17, 2022

Ah, if it directly fails game detection, that is done in src/engines/kotor2/probes.cpp (likewise for kotor in src/engines/kotor/probes.cpp)

@shinra-electric
Copy link
Author

Screenshot 2022-02-17 at 10 49 22

@shinra-electric
Copy link
Author

shinra-electric commented Feb 17, 2022

Oh, ok. I'll have a look there.

@shinra-electric
Copy link
Author

shinra-electric commented Feb 17, 2022

Ok, I think I have an idea of what was going wrong.

So firstly regarding game detection, Kotor2 requires 3 folders from the MAS app: GameData, MacOS and Resources. I was missing the MacOS folder, so it was not detected.

Secondly, the MAS app contains a Localized folder with English, French, German, Italian and Spanish. These contains a lot of data files that xoreos will report as missing, because it can't find them. If I copy them to the GameData folder root, xoreos will run.

Screenshot 2022-02-17 at 11 16 50

Edit: Note they are not a 100% replacement for the files in GameData. For example the English Movies folder only has 4 items. The Movies folder in GameData has the rest, which I assume are shared between all languages.

@shinra-electric
Copy link
Author

After merging the English files with the GameData root ones, I was able to launch.
Screenshot 2022-02-17 at 11 27 19
Screenshot 2022-02-17 at 11 27 35

It even has an item for the Sith Lords Restored Content Mod (TSLRCM) on the menu. 👍🏼

(Doesn't go in game due to complaints about the models, but I assume that's a different issue)

@DrMcCoy
Copy link
Member

DrMcCoy commented Feb 17, 2022

Can you give me an output of tree of the unmodified root game folder? Just straight up everything that belongs to the game right after installing.

@DrMcCoy
Copy link
Member

DrMcCoy commented Feb 17, 2022

Oh, here best twice, once with TSLRCM and once without. Or is TSLRCM installed into a secondary location?

@shinra-electric
Copy link
Author

shinra-electric commented Feb 19, 2022

KotOR2_Tree.txt

The TSLRCM is a separate download from the Aspyr site. It's supposed to be placed somewhere, but I can't remember where. Probably in Application Support, but I'll need to check to confirm.

Edit: The TSLRCM from Aspyr is actually a .pkg installer, and there are different ones for each supported language. I have a copy of the 176MB TSLRCM_en.pkg file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants