Whole project resets to default in Unreal - user-interface

Pretty much; i open a new premade project in Unreal, i modify simple things, such as : place new objects, create simple blueprint in Level Blueprint (so it affects the level) and then save and close.
Problem is, next time i open that project, EVERYTHING is reset to default, like i haven't touched anything and I'm forced to redo everything, thing that is annoying when you followed a course.
Any help on how to actually save my changes? This is severely impacting my studies.
I tried to save the project and set the map i used as default map when opening the project.
I tried to save layout (might not be useful at all, but I'm still green in Unreal)
Tried to save the blueprint of the level but still nothing, even compiling doesn't seem do do anything to lock it and save it.

Related

Recreate or recovering a VB6 project

I left VB6 and programming all together years ago, so pardon since I'm still dusting off what I remember.
I have an old program made for a friend in VB6 that he still runs in Windows Vista. He tried to update a label in the program and in trying to do the update, he has overwritten the project file where I used to see all forms and modules together.
Is there a way I can recover or recreate the project file as it was? All project files and modules are there, but when I open the VB6 project it shows only one form, that I can't compile or execute because it shows a "source not found"
I tried to go back to an old version of the project file with file recovery software but I couldn't find it.
Other way?
Practical steps to recover:
First and foremost: Back up what you have. Do this now.
Second, and only after the first, check (again) to see if you have a previous backup. Yes, this may seem pedantic, but, really, it's worth looking. Was that the only copy? Once you do all of this, consider creating a git repo for your code.
Third, in your empty project, simply right-click in the project explorer (Ctrl + R), and click "Add >" and then "Add Files...". Then, in the file input box, scroll down to the first file, hold down shift, and keep pressing the down arrow and all the files you want. Click "Open". Repeat if need be.
Finally, you need to re-add any dependencies. One way is simply to try to run the program with full compile (Ctrl + F5 or File | Run With Full Compile in the menus). If everything starts up, consider yourself fortunate. If not, you'll have to see each one that fails and add them back. This could be tedius, but just go through them one by one. In the Project menu, both "Components" and "References" can be gone through. Do this until the program successfully starts with full compile.
At this point, consider a making a backup. ;)

Mark a large number of files as Build Action "None" in Visual Studio

I have a folder containing 12000 images. When I add them to my project they get marked as Resources, but I want to set their Build Action to None. If I select them all and go to the Properties tab and set None, VS starts working and engulfes itself.
Is there another way to do that? Or a way to set the default Build Action for newly added files to None?
Thank you!
Make a backup of your project file (e.g. by committing it to a branch in source control locally) before making manual changes to the file.
Right click the project node in Solution Explorer and click Unload Project.
Right click the project node in Solution Explorer and click Edit yourproject.csproj.
Replace all instances of
<Resource Include="Resources\
with
<None Include="Resources\
Save and close the project file.
Right click the project node in Solution Explorer and click Reload Project.
Optionally you could also remove all instances of these lines and use the following single line instead. You'll definitely want to mark your place in source control so you could undo the change if it doesn't work out like you expect.
<None Include="Resources\**\*.jpg"/>
12,000 files is a good two orders of magnitude beyond what you can reasonably expect to be performant during a build. Just checking if files need to copied can easily take 5 minutes on a spindle drive. Still uncomfortable on a solid-state drive.
You'll need a drastically different approach to solve this. Key approach is that you don't wait for it so cannot get annoyed at the delay. Like spinning this off into a separate project that builds a resource DLL, not included in the solution. Preferably done on another machine, build servers are good for that. Or a completely different approach to packing the files, like sticking them in a ZIP archive. A "wad" in gaming speak of old. Or taking your program to the files instead of the other way around, keeping them stored on disk and telling your code where to find them with a configuration setting.

How to clear and reset Core Data data models

I have now >45 different versions of xcdatamodel in Xcode, of which 44 of them are no longer required, as I've eseentially gone for the drop/create approach of the entire database. How can I clear these out, without Xcode kicking up a fuss?
See the linked image:
https://www.dropbox.com/s/1bpdhf9bax6iicb/Screenshot%202014-05-23%2013.24.45.png
Note: this approach is waaaaayyyy simpler: https://stackoverflow.com/a/6712191/84783, but if you wanna get up to your elbows with project files, try my steps below.
I think they keep these around for current installations to do model migrations. Sadly I think you have some manual project file hacking.
Make sure you have the model you want set as the current model
Close Xcode
Right click on "Model.xcdatamodeld" in Finder
Choose Show Package Contents
Delete the models you no longer want
Right click on "MyProject.xcodeproj"
Choose Show Package Contents
Open project.pbxproj in a text editor
Search for ".xcdatamodel" and delete entries (Model.xcdatamodel and "Model X.xcdatamodel") no longer in use
Careful not to delete ".xcdatamodeld" files
Hope this helps, Rob

Why does Interface Builder constantly update its files (changes seem arbitrary)?

Everyday, I notice in Xcode 4.5 with source control, Interface Builder very frequently changes xib files.
For example, I could open a xib and click on one of the views on the left side and switch one of the inspectors on the right. And without actually doing any work, or modifying the file, the file is marked as unsaved. Okay so I save it.
Then the Version assistant editor will show changes that seem arbitrary, sometimes even destructive. In example: today I saw a long list of outlets that disappeared from the file, and a minute later they were back in the file, without me changing anything.
This seems a bit frustrating because it can lead to useless commits that have no useful changes. I've reverted some times, and other times committed with a message like "automatic system-generated changes to xib file".
Including automatic changes in commits could lead to confusion when reviewing historical changes. Genuine changes to a xib like creating a new object or changing the class name or autoresizing mask may get lost in the sea of unnecessary changes.
This is a duplicate of another SO question: How to disable Interface Builder document versioning from auto updating?
This issue was filed on radar by calvinBhai, that was later marked as a dupe of Bug ID# 11533872

Xcode: Tabbed workflow

In Xcode I use a task-based tabbed workflow (a separate tab for editing, UI/Modeling, building, debugging, etc.). I accomplish this using Behaviors (see the Custom section in the attached screen shot). When I create a new Project I use press ⌘+1, ⌘+2, etc. to quickly setup all of my task tabs.
My issue is that when I do this for a newly created Project all of the tabs display the source, storyboards, etc. from my most recently open Project. How often do you think this is useful or the desired behavior? I realize that one of the great things about tabs is that they remember their state and this is helpful. But as far as the source files that are initially displayed, this is a real pain. I do not want to see files from other (generally unrelated) projects.
Now what I just did as an experiment was open Project A and setup all of my tabs and ensured that each tab contained a source file from Project A. Then I quit Xcode and moved Project A a new location on the file system. When I opened Project B and created all of my tabs they were, as desired, empty.
I realize that I'm just going to receive the canonical "File a Radar" here but in the off chance that there is a workaround (NOT moving files) or a preference I could set, I figured I'd at least ask.
Thanks in advance,
CS

Resources