phr00t / FocusEngine

Focus Game Engine. This is Stride/Xenko fast-tracked for Phr00t's Software games. Improvements over the original Focus on Vulkan support, PC platforms, VR, performance & ease. Cherry-picks commits from other forks as needed.
MIT License
97 stars 11 forks source link

Error:Platform Windows isn't supported for execution. #110

Closed richard14110 closed 2 years ago

richard14110 commented 2 years ago

Release Type: Official Release/GitHub (please choose appropriate option) Latest official release.

Version: Version number and/or git branch 3.8.5

Platform(s): Does the problem occur on Windows, Android...? Windows 10

Describe the bug Both building and starting a project give me the same error.

To Reproduce I'm uncertain if the issue can be reproduced on someone else's computer. I have the Visual Studio 2022 with the .NET desktop development, Desktop development with C++, Windows 10 SDK (latest), VC++ 2022 latest v143 tools workloads and the .NET Framework 4.8 Developer Pack and Targeting Pack installed.

Expected behavior Before I expected the compilation to begin.

Screenshots Error Platform Windows isn't supported for execution

Log and callstacks N/A

Additional context Fortunately, I am able to load the third-person platformer sample and the other editor functions work.

phr00t commented 2 years ago

Building and running from the editor doesn't work correctly. Visual Studio does that far better, so that's where you should go. Open the project in Visual Studio and run there and it should work fine. I do use editor building to display shader errors, though. Frankly, I should just remove that run option from the editor.

phr00t commented 2 years ago

Also, I should remove that official release or update it. 3.8.5 is horribly out of date.

richard14110 commented 2 years ago

A long time ago, starting and building the project did work for me from within the editor but I don't know what settings I need to get it to be the same as before. Instead of removing the run option, can you make it a simulate feature that skips compiling the files? That saves time for people with a low end processor (including myself). The last time I remember, it took many minutes to build the sample on my computer so I would prefer if it only takes seconds to start testing a scene. It might be the best of both worlds if someone can quickly play a scene inside the editor and compile with Visual Studio.

phr00t commented 2 years ago

Looking at my latest version, 4.5.3, I did actually remove the "Run" thing a long time ago to avoid this confusion. You can't really run the scene without running (and checking to see if it needs compilation) the code alongside it. In the latest version, I do skip asset recompilation if none of the assets changed, which saves time (but if you changed the scene, assets do need to be recompiled). Anyway, the bottom line is, I don't want to maintain a feature in GameStudio that Visual Studio already maintains and does better. GameStudio might do something a little faster, probably because it isn't doing everything it really needs to.