Dymerz / StarCitizen-Localization

Language File Installation Guide
Creative Commons Zero v1.0 Universal
44 stars 38 forks source link

Enhance localization script for RSI Launcher 2.0 compatibility #330

Closed ROBdk97 closed 2 months ago

ROBdk97 commented 2 months ago
ROBdk97 commented 2 months ago

I don´t have the old Launcher anymore so would be great if some people check if it still works

Dymerz commented 2 months ago

It's still possible to get the Legacy Launcher here, I'll try running the script with both the old and new launchers, thanks for the update!

Dymerz commented 2 months ago

Hey, I made few changes:

  1. The regex pattern now searches for the installation process. This makes it more user-friendly, as the user no longer needs to launch the game first to find the correct location:

    log file:

    Installing Star Citizen PTU 3.24.0-ptu.9294347 at S:\\Games\\Roberts Space Industries\\StarCitizen"

    regex:

    Installing Star Citizen (.*?) at ([^`")]+)
  2. There was a minor bug: the code was looking for the first match in the log.log file, but since new entries are added at the bottom, only the last entry is up-to-date.