xenko
xenko copied to clipboard
Game Studio Deletes ALL Script components from scene after build.
Hi, I have been having a problem where if I build in Visual Studio than go back to Game Studio and sync (Reload assemblies) it deletes all the script components from all entities at least in the open scene.
Much sadness.
Cheers, dfkeenan
Hi,
Sorry for the trouble. I couldn't manage to reproduce the issue, could you provide us more information about it?
- Are you using the version 1.9.3?
- Is the project compiling successfully with Visual Studio?
- Does it happen all the time?
- Does it happen on all scripts?
- Does it happen if you modify a
cs
file, but do not recompile with Visual Studio? - Do you have a single
Game
assembly or are you using multiple ones (beside platform-specific executable assemblies)
Are you using the version 1.9.3?
Yes.
Is the project compiling successfully with Visual Studio?
I can't say for certain I didn't have a failed build but I wouldn't have gone back to Game Studio till I fixed the problems.
Does it happen all the time?
No, but I haven't figured out exactly what starts the problems. But once something goes wrong things really start to go wrong. The only way I have been able to get things working again is to close Game Studio and delete the Bin folder.
Does it happen on all scripts?
It removes all scripts from entities even if I haven't changed any of the actual scripts.
Does it happen if you modify a cs file, but do not recompile with Visual Studio?
I find things to be a lot more stable if I never build in Visual Studio. Just edit code and save, then go back to Game Studio to build/run.
Do you have a single Game assembly or are you using multiple ones (beside platform-specific executable assemblies)
I am mostly editing a class library project that the Game
project is referencing.
Thanks for the answer!
One last question:
Did you enable the automatic reloading of assembly in the Game Studio? (By checking the checkbox in the dialog message that pops when you switch back to the Game Studio)
Your welcome. Not sure I helped very much....
Did you enable the automatic reloading of assembly in the Game Studio? (By checking the checkbox in the dialog message that pops when you switch back to the Game Studio)
No, I have never checked that box.
Here are some other symptoms I have ended up with:
- I built/ran quite a few times in Visual Studio and I go back to Game Studio and have 15-20 dialog messages open.
- Build/run from within Game Studio and still get prompted to reload assembly.
- Game Studio thinks assemblies need to be reloaded no mater how many times I press the reload button on the toolbar.
- I have also had Game Studio add non existing CS files back to the Solution/Project (after I have renamed/deleted files) after saying yes to a dialog message. I can't remember what the message was at the moment.
Feel free to hit me up for more info.