Jump to content

Add ability to rename project in SDK browser


photo

Recommended Posts

At the moment, if you want to rename a project then it's quite a large amount of hassle and causes inevitable errors. It would be nice if there was a way in the SDK browser to rename a project and have it do the work to change file names and paths automatically.

  • Like 1
Link to comment
  • 3 years later...
31 minutes ago, Antoine said:

Hello,

Any news on that feature ? What is the right way to rename a project with the current status of the engine ? 

I'm using Unigine 2.10.

Thanks

Hello!

We are expected this kind of feature in some of following SDK's next year, most likely it will be available in 2.15.

This days If you need to rename your project it can be done manually.

If you have an urgent need to do this now - let us know and we will write you how to guide.

Thanks!

 

 

Link to comment
On 12/14/2020 at 6:01 PM, Antoine said:

Hi Bmyagkov,

Thanks for your answer.

It would be great if you could give some quick guidelines.

 

DISCLAIMER: Before we start, I would like to note that it may be much easier to simply create a new project in SDK with name you want and copy the /data folder from the old project. But if you feel brave enough, let's get started:

As a first thing, you should need some sort of text editor, something like "Notepad++" would be great.

We will edit every included file in a root of project folder. There was six of them by default - "launch_debug.bat", "launch_editor.bat", "launch_release.bat", "*.csproj" (for C# project), "*.project", "*.sln"

First of all - make a backup and close SDK browser. Backup the entire folder of your project, so if anything went wrong you can restore everything to its original form.

Locate project folder and rename it to a new name you want. Usually it is located at C:\Users\tester\Documents\UNIGINE Project\

The main file that you should pay attention to is ".project". Open it with text editor and search through using your current project name, then replace here each string for desired name you want to see.

изображение.png

After this part is done lets get back to projects root folder. We need to rename the rest files to a new name, except .bat ones.

изображение.png

Files like ".sln" and ".csproject" should be edited to.

".csproj" are contains the name of your app and to rename it change following lines:

изображение.png

Solution ".sln" are contains previous name too and should be edited as well as others to prevent further errors

изображение.png

Now we need to edit "*.bat" files to make SDK buttons usable again.

Open "launch_debug.bat" and "launch_release.bat" and change "unigine_project_x64.exe" to "%new_name_x64.exe" and if required enter valid world in the end of six line:

изображение.png

If you are running C++ project you also should edit "*.vcxproj" which is located at /data/source/*.vcxproj. Give it new name and then open with text editor.  Find there 5 line and give your project new name between those tags  <ProjectName>name</ProjectName>

After all the renaming is complete, please start the SDK Browser and delete the old project. Then go to the projects tab and click "add existing" where locate same folder where you recently done changes.

ezgif-4-1cb55a70be0f.gif

So that is all. The editor and application must have a new name and run as before!

Thanks!

  • Like 1
Link to comment
  • 1 month later...
×
×
  • Create New...