Skip to content

[v3.0.4.78s, Win10, 64bit] Whitespaces in path of ModLauncher installation directory #4

@marc-christian-schulze

Description

@marc-christian-schulze

When the ModLauncher is installed / copied into a directory containing whitespaces, e.g. "C:\Program Files\7D2DModLauncher-Windows-Installer", subsequent attempts to install modlets will fail to install with the message:

Searching for installed Modlets for Wanderinghordes in Staging Area...
Searching for installed Modlets for Wanderinghordes in Mods...
Clone Modlet: https://github.com/KhaineGB/KhaineA20ModletsXML/trunk/KHA20-ChickenCoops/
Git Filename: C:/Program Files/7D2DModLauncher-Windows-Installer/ModLauncher_Data/StreamingAssets\Tools\Windows\PortableGit\cmd\git
Running C:/Program Files/7D2DModLauncher-Windows-Installer/ModLauncher_Data/StreamingAssets\Tools\Windows\PortableGit\cmd\git config --global http.postBuffer 524288000  from 
Git Filename: C:/Program Files/7D2DModLauncher-Windows-Installer/ModLauncher_Data/StreamingAssets\Tools\Windows\PortableGit\cmd\git
Running C:/Program Files/7D2DModLauncher-Windows-Installer/ModLauncher_Data/StreamingAssets\Tools\Windows\PortableGit\cmd\git config --global core.compression 0 from 
Git Filename: C:/Program Files/7D2DModLauncher-Windows-Installer/ModLauncher_Data/StreamingAssets\Tools\Windows\PortableGit\cmd\git
Running C:/Program Files/7D2DModLauncher-Windows-Installer/ModLauncher_Data/StreamingAssets\Tools\Windows\PortableGit\cmd\git svn clone "https://github.com/KhaineGB/KhaineA20ModletsXML/trunk/KHA20-ChickenCoops/" C:\Program Files\7D2DModLauncher-Windows-Installer\Mods\Custom\MyMods\WanderingHordes\Mods\KHA20-ChickenCoops from 
Initialized empty Git repository in C:/Program/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint: 	git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint: 	git branch -m <name>
	A	Assets/Chickens.unity3d
	A	Config/Localization.txt
	A	Config/blocks.xml
	A	Config/items.xml
	A	Config/loot.xml
	A	Config/progression.xml
	A	Config/recipes.xml
	A	ModInfo.xml
	A	UIAtlases/ItemIconAtlas/animalFeed.png
	A	UIAtlases/ItemIconAtlas/chickenCoop.png
r7 = 97e70ef241ad1f9815558c01d8431ef1e1cf37e3 (refs/remotes/git-svn)
	M	Config/Localization.txt
r9 = 1b2845c832e680122d5909c28f6078b37b862df6 (refs/remotes/git-svn)
Checked out HEAD:
  https://github.com/KhaineGB/KhaineA20ModletsXML/trunk/KHA20-ChickenCoops r9
Error Reading: C:\Program Files\7D2DModLauncher-Windows-Installer\Mods\Custom\MyMods\WanderingHordes\Mods\KHA20-ChickenCoops\ModInfo.xml
	System.Net.WebException: Could not find a part of the path "C:\Program Files\7D2DModLauncher-Windows-Installer\Mods\Custom\MyMods\WanderingHordes\Mods\KHA20-ChickenCoops\ModInfo.xml". ---> System.Net.WebException: Could not find a part of the path "C:\Program Files\7D2DModLauncher-Windows-Installer\Mods\Custom\MyMods\WanderingHordes\Mods\KHA20-ChickenCoops\ModInfo.xml". ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\Program Files\7D2DModLauncher-Windows-Installer\Mods\Custom\MyMods\WanderingHordes\Mods\KHA20-ChickenCoops\ModInfo.xml".
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00164] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean useAsync) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Net.FileWebStream..ctor (System.Net.FileWebRequest request, System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare sharing, System.Int32 length, System.Boolean async) [0x00000] in <aa976c2104104b7ca9e1785715722c9d>:0 
  at (wrapper remoting-invoke-with-check) System.Net.FileWebStream..ctor(System.Net.FileWebRequest,string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
  at System.Net.FileWebResponse..ctor (System.Net.FileWebRequest request, System.Uri uri, System.IO.FileAccess access, System.Boolean asyncHint) [0x00026] in <aa976c2104104b7ca9e1785715722c9d>:0 
   --- End of inner exception stack trace ---
  at System.Net.FileWebResponse..ctor (System.Net.FileWebRequest request, System.Uri uri, System.IO.FileAccess access, System.Boolean asyncHint) [0x000a5] in <aa976c2104104b7ca9e1785715722c9d>:0 
  at (wrapper remoting-invoke-with-check) System.Net.FileWebResponse..ctor(System.Net.FileWebRequest,System.Uri,System.IO.FileAccess,bool)
  at System.Net.FileWebRequest.GetResponseCallback (System.Object state) [0x00074] in <aa976c2104104b7ca9e1785715722c9d>:0 
   --- End of inner exception stack trace ---
  at System.Net.WebClient.OpenRead (System.Uri address) [0x000a1] in <aa976c2104104b7ca9e1785715722c9d>:0 
  at System.Net.WebClient.OpenRead (System.String address) [0x00016] in <aa976c2104104b7ca9e1785715722c9d>:0 
  at (wrapper remoting-invoke-with-check) System.Net.WebClient.OpenRead(string)
  at Assets.Scripts.Utilities.ReadXml (System.String strUrl) [0x0003f] in <edc3132ce69c471a9233fc1c20e4d86c>:0 

ModInfo is not well formed: C:\Program Files\7D2DModLauncher-Windows-Installer\Mods\Custom\MyMods\WanderingHordes\Mods\KHA20-ChickenCoops\ModInfo.xml

Instead it created a new directory "C:\Program" containing "Assets", "Config", "UIAtlases" and "ModInfo.xml".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions