UltraEd icon indicating copy to clipboard operation
UltraEd copied to clipboard

"Assets" folder does not get copied to build directory

Open Cowsaysmoo opened this issue 3 years ago • 4 comments

Editor.exe crashes upon a clean build, after copying 'Assets' folder to 'release' directory problem is solved. This folder should be copied over upon build.

Cowsaysmoo avatar Jun 07 '22 00:06 Cowsaysmoo

Hello! I haven't experienced this problem before so I'd like to know how you built and ran the editor? Did you clone the directory, open the solution in VS 2022 and then run from inside the development environment? Running the executable directly may be the cause of the issue. Once there's an official release someday it will be easier to run without the need of executing the editor through visual studio.

deadcast2 avatar Jun 08 '22 02:06 deadcast2

I was able to get the executable to run outside of Visual Studio after changing the location of a few directories. It seems like a lot of the file directories are relative to the solution file instead of the built .exe. I think refactoring your code to make it more directory agnostic would be a good step towards moving out of visual studio.

love the project btw, great work so far

Cowsaysmoo avatar Jun 08 '22 02:06 Cowsaysmoo

I should add, the error I am getting is identical to #130

Cowsaysmoo avatar Jun 08 '22 02:06 Cowsaysmoo

Thank you! Glad you like the project. I think I have some preprocessor commands that when built in Release mode it then looks for the Assets and other dependencies a bit differently. I'll have to check on that to make sure and then test out running the executable outside of VS since I never really do that.

deadcast2 avatar Jun 09 '22 00:06 deadcast2