@Xmoto said in How can fix this error (about Compile)?:
Please help me!
Thanks !
80dcd0e6-0090-4c86-b734-1ec5e2e7d817-изображение.png
So I compiled a script, and I am using "Path to project directory". This gives me a long path nested in folders from the original .exe, ie:
C:/Users/Administrator/Desktop/CP/appsremote/{ProjectName}/SIDa5fbb57a/engine/project.xml
Are there any baked-in functions to get the root: C:/Users/Administrator/Desktop/CP/?
@ev0 said in How to get root of a compiled script?:
Are there any baked-in functions to get the root: C:/Users/Administrator/Desktop/CP/?
Yes -

@sir-ydroidrrr said in How to get root of a compiled script?:
@ev0 said in How to get root of a compiled script?:
Are there any baked-in functions to get the root: C:/Users/Administrator/Desktop/CP/?
Yes -
Thank you for your response. This function only gives me the path to that xml file, however, when compiled I'm looking for a way to output to the .exe main folder that's generated.
@ev0, everything works, the screenshots of the compiled script are attached above
@GhostZ said in How to get root of a compiled script?:
@GhostZ said in How to get root of a compiled script?:
@ev0, everything works, the screenshots of the compiled script are attached above
@GhostZ said in How to get root of a compiled script?:
So strange, I can't replicate this. Thank you for verifying. I'll continue to try and break things.