MustD / a3al

arma3 alternative launcher
MIT License
9 stars 1 forks source link

Mod Scanner import fails silently #3

Open elpasmo opened 7 years ago

elpasmo commented 7 years ago

Steps to reproduce:

My system:

I can add MODs manually without issue, using symlinks. i.e: /home/elpasmo/.steam/steam/steamapps/common/Arma 3/@CBA_A3 -> /home/elpasmo/.steam/steam/steamapps/workshop/content/107410/450814997

I go to MOD POOL -> Type @CBA_A3 -> Click ADD -> Works like a charm.

MustD commented 7 years ago

Hello, can you try to set Arma3 folder as /home/elpasmo/.local/share/Steam/steamapps/common/Arma 3 this path should be valid. There is some symlinks created by steam in ~/.steam maybe root of this issue there. I will try to reproduce your case as soon as I can. Thank you for feedback.

elpasmo commented 7 years ago

Yes, I tried with: /home/elpasmo/.local/share/Steam/steamapps/common/Arma 3

with same results. Path is valid.

MustD commented 7 years ago

Can you provide contents of /home/elpasmo/.config/A3AL/a3al_data.json ? This file is used for saving your sets and mods.

elpasmo commented 7 years ago

Of course!

{"main":{},"sets":{"active":"2vx912","sets":{"2vx912":{"id":"2vx912","name":"[Campagne] Navy Seals Blood Brothers","command":" -mod=\"@CBA_A3\\;@CUP_Units\\;@CUP_Terrains_Core\\;@CUP_Terrains_Maps\\;@CUP_Weapons\\;@CUP_Vehicles\\;\"","modList":["xj294c","jl1e6f","d6k9a0","np7820","0oanbk","soibfq"]}}},"mods":{"mods":{"xj294c":{"id":"xj294c","name":"@CBA_A3"},"d6k9a0":{"id":"d6k9a0","name":"@CUP_Terrains_Core"},"np7820":{"id":"np7820","name":"@CUP_Terrains_Maps"},"jl1e6f":{"id":"jl1e6f","name":"@CUP_Units"},"soibfq":{"id":"soibfq","name":"@CUP_Vehicles"},"0oanbk":{"id":"0oanbk","name":"@CUP_Weapons"}}},"scanner":{"armaRoot":{"path":"/home/elpasmo/.steam/steam/steamapps/common/Arma 3","isValid":true},"importedMods":{}}}

MustD commented 7 years ago

Please try https://github.com/MustD/a3al/releases/tag/1.0.0-RC2 I did some work to display log info to discover what going on.

elpasmo commented 7 years ago

Yes, now the path is invalid: /home/elpasmo/.local/share/Steam/steamapps/common/Arma 3

Scanner logs output:

  1. ENOENT: no such file or directory, lstat '/home/elpasmo/.steam/steam/steamapps/common/Arma 3/Bonus'
  2. ENOENT: no such file or directory, lstat '/home/elpasmo/.steam/steam/steamapps/common/Arma 3/Curator'
  3. ENOENT: no such file or directory, lstat '/home/elpasmo/.steam/steam/steamapps/common/Arma 3/Dta'
  4. ENOENT: no such file or directory, lstat '/home/elpasmo/.steam/steam/steamapps/common/Arma 3/Heli'
  5. ENOENT: no such file or directory, lstat '/home/elpasmo/.steam/steam/steamapps/common/Arma 3/Kart'
  6. ENOENT: no such file or directory, lstat '/home/elpasmo/.steam/steam/steamapps/common/Arma 3/Mark'

Maybe the problem is the application is not handling properly the space at the path?

Another suggestion, maybe throw the output at the terminal?

MustD commented 7 years ago

Your scanner log mean that several standard folders is absent, it is weird, but it is not an issue. Can you provide log after pressing scan button?

  1. Put valid arma path and click validate.
  2. Click import button. Import output is most important.

Space in path is not a problem, app was tested with same standard path. Terminal output is thing what I need to check.

elpasmo commented 7 years ago

All those subfolders are already there. That's not the issue.

RC1.0 validated OK the same path. The path is valid. But with RC2.0 I'm unable to validate it.

MustD commented 7 years ago

Issue can be related with symlinks what u already have in Arma3 directory (especially broken ones). Please try to remove them and launch scanner (You can cut them somewhere and paste them back if this workaround have no effect). In next version I will add some code to ignore such symlinks.

Also I need to put some changes in arma root validation:

  1. Remove "Bonus" directory from standard arma3 directories list.
  2. Add check for all directories in arma3 root what can be named with capital letter at begin or lowercase.

In any case arma3 root validation is not required to attempt mod scan.

elpasmo commented 7 years ago

I tried removing all symlinks in Arma3 folder with same result. Validate throw this:

  1. ENOENT: no such file or directory, lstat '/home/elpasmo/.steam/steam/steamapps/common/Arma 3/Bonus'
  2. ENOENT: no such file or directory, lstat '/home/elpasmo/.steam/steam/steamapps/common/Arma 3/Curator'
  3. ENOENT: no such file or directory, lstat '/home/elpasmo/.steam/steam/steamapps/common/Arma 3/Dta'
  4. ENOENT: no such file or directory, lstat '/home/elpasmo/.steam/steam/steamapps/common/Arma 3/Heli'
  5. ENOENT: no such file or directory, lstat '/home/elpasmo/.steam/steam/steamapps/common/Arma 3/Kart'
  6. ENOENT: no such file or directory, lstat '/home/elpasmo/.steam/steam/steamapps/common/Arma 3/Mark'

While Import:

  1. ENOENT: no such file or directory, stat '/home/elpasmo/.steam/steam/steamapps/common/Arma 3/795706713'