Skip to content

Package names contain invalid characters when using Turkish regional settings in Windows

Users with Turkish regional settings in Windows have reported that the launcher is unable to install packages because it generates invalid package names

https://w3dhub.com/forum/topic/416324-about-apb/#comment-637351

This is specifically caused by the capital I in RA_CoastalInfluence, which is NOT the upper case of i in Turkish, thus causing problems with the regex which validates the package properties.

This can be fixed by ensuring that all regex matches use RegexOptions.CultureInvariant in addition to RegexOptions.IgnoreCase (where appropriate). More information on problems unique to Turkish: http://www.moserware.com/2008/02/does-your-code-pass-turkey-test.html

--------------------------------------------------
2018/03/16 23:52:10
Application version: 0.8.6.0 W3D Hub Launcher.exe
--------------------------------------------------
 
An exception of type System.Exception occurred
    Message An error occurred whilst determining the required game packages for 3.2.0.2. Install type: INSTALL
 
    Stack Trace;
 
    Inner Exception (System.ArgumentException) The name must only contain alphanumerics, spaces, brackets, square brackets, dashes and periods. Found 'RA_CoastalInfluence.zip'
Parametre adı: Name
    Stack Trace;
   konum: W3DHub.Backend.Package.set_Name(String value)
   konum: W3DHub.Backend.Package..ctor(String name, String category, String subCategory, Version version)
   konum: W3DHub.Launcher.GamePackage..ctor(String name, Application application, Version version, List`1 requiredFiles, Version patchesFrom)
   konum: W3DHub.Launcher.GameVersionInstaller.AddFileToRequiredPackages(GameManifestFile file, Version sourceVersion)
   konum: W3DHub.Launcher.GameVersionInstaller.DetermineRequiredPackages()
Edited by danpaul88