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

mklink - command (alias folder), unable to "Building Phaser documentation model" #97

Closed
weekendkoder opened this issue Jan 16, 2019 · 3 comments
Labels

Comments

@weekendkoder
Copy link

Version

  • Phaser Editor Version: 2.0
  • Operating system: Windows 8.1

Description

I encountered a small-problem. It comes up,

when i start PhaserEditor. I think it happens, because i made PhaserEditor more-"portable" and or i like to have my windows-partition clean. Therefore i used the "very usefull" command: "mklink" (makes aliases of folders)

my command for PhaserEditor:
Mklink /d "C:\Users%USERNAME%.phasereditor" "%cd%_phasereditor_CURRENT-USER"
(in my case, it stores a file there, named: "phaser.json.1546967567000.binary")

Everything what would be stored onto C: will be redirected to my defined folder. Thats it. Pretty simple, to keep a clean OS disk. My method works with many many Apps i have installed (99% everything works with this method). So my question is, is that file "phaser.json.1546967567000.binary" nescecary ? Could it be stored in a subfolder of the PE2Dv2.0 install? Or maybe somebody could try my method out with its PE2Dv2.0 install. And if you got the same error, maybe you found a solution you can post here. Would be great !

Possible solution

@PhaserEditor2D
Copy link
Owner

I can reproduce the error. The problem is the routine Files.createDirectories() does not recognize the link as a directory, so first I should check if it exists.

However, there is something you can do.

Open the PhaserEditor2D.ini file and add this line at the end:

-Duser.home=x:/path/to/the/new/home

It is working for me. To write the path, use the "/" instead of the "\".

Please test it and if it works, close this.

@PhaserEditor2D PhaserEditor2D added this to In development in General Development Jan 16, 2019
@PhaserEditor2D PhaserEditor2D moved this from In development to Ready for release in General Development Jan 16, 2019
@weekendkoder
Copy link
Author

weekendkoder commented Jan 17, 2019

Cool ! Your method works ! Can confirm it ! This is, how my path looks like:
-Duser.home=./_phasereditor_CURRENT-USER

"./_phasereditor_CURRENT-USER" means, it will be placed inside the root where the "PhaserEditor2D.ini" is stored. Thats it ! Simple as that. Thank you for this solution !

@PhaserEditor2D
Copy link
Owner

Then I close this. You are welcome!

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

No branches or pull requests

2 participants