scel5525pro2 Posted December 22, 2023 Share Posted December 22, 2023 Usually the files path is like: "Pc\Game\Ultra Engine\Game.exe" but AppPath() does it like "Pc/Game/Ultra Engine/Game.exe" Quote Link to comment Share on other sites More sharing options...
scel5525pro2 Posted December 22, 2023 Author Share Posted December 22, 2023 The same happens in the terminal Quote Link to comment Share on other sites More sharing options...
Solution Josh Posted December 22, 2023 Solution Share Posted December 22, 2023 Ultra uses backslashes in file names, for future consistency with Linux and Mac, and because it is easier to type "/" then to always remember to use a double forward slash in your code "\\". This normally works with no issues, but can cause a problem with some Win32 API commands, so you can just switch it to a Windows path like so: s = s.Replace("/", "\\") The Ultra API commands will treat back and forward slashes the same, so it's okay to mix them and it only matters for aesthetics. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
scel5525pro2 Posted December 22, 2023 Author Share Posted December 22, 2023 Just now, Josh said: Ultra uses backslashes in file names, for future consistency with Linux and Mac, and because it is easier to type "/" then to always remember to use a double forward slash in your code "\\". This normally works with no issues, but can cause a problem with some Win32 API commands, so you can just switch it to a Windows path like so: s = s.Replace("/", "\\") Does Ultra Engine’s LoadDir use / or \? If it uses / i could do something like LoadTable(LoadDir(NewPath)) Quote Link to comment Share on other sites More sharing options...
Josh Posted December 22, 2023 Share Posted December 22, 2023 Either is fine. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Canardia Posted December 22, 2023 Share Posted December 22, 2023 C/C++ and C# on Windows works fine with /, even outside of Ultra. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.