Two projects using same data folder

Monkey Forums/Monkey Beginners/Two projects using same data folder

Hezkore(Posted 2014) [#1]
Is it possible for two, for example, HTML5 projects to use the same data folder?
For example, It's quite annoying having one folder for the editor and one for the actual game and both basically containing the same files.

MikeHart(Posted 2014) [#2]
No, not possible.

nikoniko(Posted 2014) [#3]
It's possible if to change transcc.monkey before or load data files from custom folders in the one of project

ziggy(Posted 2014) [#4]
Creating a symlink should do it

Hezkore(Posted 2014) [#5]
Ah yes, good idea ziggy!

therevills(Posted 2014) [#6]
As Nikolay stated, yes it is possible, but you need to alter MonkeyX's trans code.

ImmutableOctet(SKNG)(Posted 2014) [#7]
I've answered this question so many times, but here we go again:

Go look for a symbolic linking tool for your OS. (For Windows, there's 'Link Shell Extension')

That's the only nice way of doing it, otherwise you'll have to modify Monkey's compiler (Known as 'transcc' internally, and 'Trans' externally). I normally use symbolic-links for STDCPP (C++ Tool) projects which rely on the 'data' folder. This is useful when writing dedicated servers and the like, especially when you rely on the same code-base for the server and your normal game.

And in case you're looking for version control, click here.