How to Restore Deleted Assets: Difference between revisions

From TrainzOnline
Jump to navigationJump to search
Pware (talk | contribs)
No edit summary
Pware (talk | contribs)
No edit summary
Line 322: Line 322:
<tr valign="top">
<tr valign="top">
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>The '''Backups''' folder where deleted assets are held is a subfolder of your '''User Data Folder'''</td>
<td>The '''Backups''' folder where deleted assets are held is a subfolder of your '''Local User Data Folder'''</td>
</tr>
</tr>
</table>
</table>
Line 339: Line 339:
<tr valign="top">
<tr valign="top">
<td>[[image:DotPoint2.JPG|link=]]</td>
<td>[[image:DotPoint2.JPG|link=]]</td>
<td>Select the <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Install&#160;</span> tab. The location of the '''User Data Folder''' will be shown.
<td>Select the <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Install&#160;</span> tab. The location of the '''Local User Data Folder''' will be shown.
<table>
<table>
<tr valign="top">
<tr valign="top">
<td width=400 align="center">[[image:UserDataFolderMoved.png|link=]]<br>
<td width=400 align="center">[[image:UserDataFolderMoved.png|link=]]<br>
'''This is an Example Address Only'''</td>
'''This is an Example Address Only'''</td>
<td>The '''User Data Folder''' is usually in the '''C:''' drive '''User''' folder that is normally identified as '''%LOCALAPPDATA%\N3V Games\trs22\build xxxxxxx''' (where "xxxxxxx" is a random sequence of characters) but it can be moved to any location (and given any name) as shown in the image left</td>
<td>The '''Local User Data Folder''' is usually in the '''C:''' drive '''User''' folder that is normally identified as '''%LOCALAPPDATA%\N3V Games\trs22\build xxxxxxx''' (where "xxxxxxx" is a random sequence of characters) but it can be moved to any location (and given any name) as shown in the image left<br>
Instructions on moving your '''Local User Data Folder''' can be found by clicking the button labelled <span style="font-weight: 700; font-size: 15px;">Instructions for moving your content...</span> below the address bar or on the '''Trainz Wiki Page''' at [[image:WikiLink.PNG|link=]]&#160;'''[[How_to_Move_Your_User_Data_Folder|How to Move Your User Data Folder]]'''</td>
</tr>
</tr>
</table>
</table>
Line 380: Line 381:
<tr valign="top">
<tr valign="top">
<td>[[image:DotPoint6.JPG|link=]]</td>
<td>[[image:DotPoint6.JPG|link=]]</td>
<td>Select all its contents (<span style="font-weight: 700; font-size: 15px;"><span style="color: white; background-color: black;">&#160;Ctrl&#160;</span>&#160;+&#160;<span style="color: white; background-color: black;">&#160;A&#160;</span></span>) and paste (<span style="font-weight: 700; font-size: 15px;"><span style="color: white; background-color: black;">&#160;Ctrl&#160;</span>&#160;+&#160;<span style="color: white; background-color: black;">&#160;V&#160;</span></span>) in the address from <span style="font-weight: 700; font-size: 15px;">Step&#160;<span style="color: white; background-color: red;">&#160;3&#160;</span></span> above.<br>
<td>
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>if the contents are not already highlighted then press (<span style="font-weight: 700; font-size: 15px;"><span style="color: white; background-color: black;">&#160;Ctrl&#160;</span>&#160;+&#160;<span style="color: white; background-color: black;">&#160;A&#160;</span></span>)</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>paste (<span style="font-weight: 700; font-size: 15px;"><span style="color: white; background-color: black;">&#160;Ctrl&#160;</span>&#160;+&#160;<span style="color: white; background-color: black;">&#160;V&#160;</span></span>) in the address from <span style="font-weight: 700; font-size: 15px;">Step&#160;<span style="color: white; background-color: red;">&#160;3&#160;</span></span> above</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>press the <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Enter&#160;</span> key</td>
</tr>
</table>
The end result, unless you have moved your data folder, will look something like the image show below.<br>
The end result, unless you have moved your data folder, will look something like the image show below.<br>
[[image:BackupsUserFolder.png|link=]]<br>
[[image:BackupsUserFolder.png|link=]]<br>
Line 386: Line 401:
<table>
<table>
<tr valign="top">
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td width=10>[[image:BlackDot10x10.png|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;idname&#160;</span> is your '''Windows User name''' (abbreviated), and</td>
<td><span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;idname&#160;</span> is your '''Windows User name''' (abbreviated), and</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>[[image:BlackDot10x10.png|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;random&#160;</span> is a sequence of random characters</td>
<td><span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;random&#160;</span> is a sequence of random characters</td>
</tr>
</tr>
</table>
</table>
</td>
</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint7.JPG|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">&#160;Double Left Click&#160;</span> on the last item in the address list - this will open your current '''Local User Data Folder'''. One of its folders will be the '''Backups''' folder<br>
[[image:UserDataFolderContents.png|link=]]</td>
</tr>
</tr>
</table>
</table>

Revision as of 02:28, 26 April 2025

The information in this Wiki Page applies to TRS19, Trainz Plus and TRS22 and describes the methods that can be used to restore assets deleted by Content Manager.
          Next Down Bottom
Notes:

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Base, Built-in, Packaged and Payware assets cannot be deleted using Content Manager. Not even those that have been made Obsolete by more recent updates.
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Packaged and Payware assets can only be deleted by Uninstalling the DLC Package that installed them. This is done from the Content Store option selected from the Trainz Launcher.


Restore Deleted DLS Assets

    Top   Next Down Bottom
Deleted assets that were originally Installed from DLS can be easily restored by installing them again from the DLS


Deleted assets that were installed from the DLS are the easiest of all to restore. Simply use Content Manager to locate the assets and download them again.
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Select the Download Station filter from the Filter drop down menu
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Optional: Type part of the asset name in the Search box to narrow the search
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127  Right Click  on the asset name in the displayed list and select the  Download  option


However, if for some reason you are unable to access the DLS and the deletion occurred during the last 7 days, then the assets can still be recovered from the automatic backups that Content Manager creates when assets are deleted. These backups are only held for 7 days. See  Restore Deleted Assets from the Backup for the details.


Restore Deleted .cdp File Assets

    Top Next Up Next Down Bottom
Deleted assets that were installed from .cdp files can be easily restored by reinstalling them from the same .cdp files


Deleted assets that were installed from .cdp files can be reinstalled from the same files.
Steps: To install an asset or assets from a .cdp file:-
From the Content Manager File menu select the  Import Content Files...  option
Navigate to the location of the .cdp file or files
Select ( Left Click  or  Ctrl  +  Left Click ) each file to be restored
Click ( Left Click ) the Open button


However, if for some reason you are unable to locate the .cdp files and the deletion occurred during the last 7 days, then the assets can still be recovered from the automatic backups that Content Manager creates when assets are deleted. These backups are only held for 7 days. See  Restore Deleted Assets from the Backup for the details.


Restore Deleted Payware and Packaged Assets

    Top Next Up Next Down Bottom
Payware and Packaged assets that were installed from a DLC package can be restored by reinstalling the same DLC Package
If the identical Packaged asset is also on the DLS then it can be restored from there


Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 DLC packages can be uninstalled and later reinstalled without any extra costs for an unlimited number of times. Each DLC package contains all the dependant assets in the one download even if those assets are already on the DLS.


Steps: To Reinstall a DLC Package:-
Open the Content Store from the Trainz Launcher. Make sure that the Purchased icon has been selected (is coloured blue).

This will show all the DLC Packages that you have purchased or can install for free.

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Items marked with the Uninstall button are currently installed in your copy of Trainz
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Items marked with the Install button have been purchased (or are available for free) but are not installed in your copy of Trainz
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 If you have Uninstalled a package then it will show the Install button


Scroll down the list to locate the package to be reinstalled. You can enter a partial name in the Search box to help narrow the search
 Left Click  on the Install button of the package. The install may take some time depending on the size of the package and the speed of your internet connection



Restore Deleted Assets from the Backup

    Top Next Up   Bottom
Assets deleted using Content Manager within the last 7 Days are stored in the Backup Folder for the date they were deleted
Deleted assets are stored using their <kuid> code(s) and the date(s) they were deleted. Knowing this information is very helpful but is not vital


Notes:

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Backups of assets deleted by Content Manager are only kept for 7 days from the day of their deletion. Beyond that date this method cannot be used
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Knowing the date that an asset was deleted and its <kuid> will help in finding its backup but they are not absolutely necessary
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 The asset backups are stored as .tzarc files and a Database Repair (DBR) is one of the steps needed to restore them


Locate the Backups Folder

The Backups folder where deleted assets are held is a subfolder of your Local User Data Folder


Steps: To Locate your Backup Folder:-
Open Trainz Settings from the Trainz Launcher
Select the  Install  tab. The location of the Local User Data Folder will be shown.

This is an Example Address Only
The Local User Data Folder is usually in the C: drive User folder that is normally identified as %LOCALAPPDATA%\N3V Games\trs22\build xxxxxxx (where "xxxxxxx" is a random sequence of characters) but it can be moved to any location (and given any name) as shown in the image left
Instructions on moving your Local User Data Folder can be found by clicking the button labelled Instructions for moving your content... below the address bar or on the Trainz Wiki Page at  How to Move Your User Data Folder
Highlight and copy the address shown:-
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127  Left Click  inside the address box
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 press  Ctrl  +  A  to select the entire address
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 press  Ctrl  +  C  to copy it to your OS clipboard
Open File Explorer. This can usually be found in your Windows 10/11 Task Bar
 Left Click  in the Explorer Address Bar - it is better to click in the empty space at the end of the displayed text
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 if the contents are not already highlighted then press ( Ctrl  +  A )
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 paste ( Ctrl  +  V ) in the address from Step  3  above
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 press the  Enter  key

The end result, unless you have moved your data folder, will look something like the image show below.

Where:-

 idname  is your Windows User name (abbreviated), and
 random  is a sequence of random characters
 Double Left Click  on the last item in the address list - this will open your current Local User Data Folder. One of its folders will be the Backups folder





  Top Next Up    


Trainz Wiki

More Tutorials and Guides to Using Trainz

Related Links


This page was created by Trainz user pware in April 2025 and was last updated as shown below.