Viewing Dependencies

stouthm

Get over it
Forum member froobie gave me some info that I thought others might be interested in. In CM, highlight a route, in my case Port Tillamook RR, right click, view dependencies. View in main list, select all and copy to clipboard. Launch Notepad, paste and save as whatever.txt. All the dependencies with kuids are now listed. Thanks Michael (froobie).
 
I've been using the free version of Evernote. It's active on the menu bar with my browser. I highlight the text, etc. and then right click to paste it into Evernote where I have a folder called Trainz.
 
I done this and taken it an additional step by creating a text file, running a PowerShell script to remove the superfluous junk, then importing the file into Excel where I can sort, group, and do other things which help me search for dependencies.

import-csv .\base.csv | select KUID | Export-Csv clean_kuidlst.csv


copy this, save to a .ps1 file. To run open the file with Powershell with Admin rights.

Copy a list of dependencies and paste it to a text file; call it whatever you want.
Run the script on this file and you'll get a nice clean list of KUIDs which can then be copied individually and pasted into search engines, and Content Manager easily for searching.
John
 
All that would be nice if "View Dependencies" wasn't greyed out on everything in my CM, Still!!! Is there an option I may have clicked to disable that??? This is the 4ttime Ive posted this issue with no resolutions as of yet.

Any assistance will be deeply appreciated.

Thank you in advance,

Bill
 
John, I'm not familiar with Powershell. Is it a separate program or does it come with Windows7? I'm okay with Excel, been using it for a long time. Would be nice to put the kuids in numerical order. Thanks.
 
Powershell is included in Windows 7 in the 'Administrator Tools' folder. I took an online class that involved Powershell in college. That online class was my downfall in getting a certificate in computers.
 
Powershell is included in Windows 7 in the 'Administrator Tools' folder. I took an online class that involved Powershell in college. That online class was my downfall in getting a certificate in computers.

It can be a bit tricky, however, very powerful. You might want to try some of those online, as in free, Microsoft-offered PS seminars through their TechNet MVA training series. They are really great and they supply sample code too for you to play with.

John
 
All that would be nice if "View Dependencies" wasn't greyed out on everything in my CM, Still!!! Is there an option I may have clicked to disable that??? This is the 4ttime Ive posted this issue with no resolutions as of yet.

Any assistance will be deeply appreciated.

Thank you in advance,

Bill
Hey, Bill, I tried to get help with this same issue several weeks ago...with no luck/response. I eventually reinstalled TS 12, patched up to 61388 again and loaded the content that I wanted back into the new install. Kind of a pain, but it was the only thing I could figure out. Still don't know why my other version of TS12 still has "View Dependencies" grayed out.

Good luck.
 
Thanks Cowan, I was afraid of that. Looks like I get to kill a weekend.

Thanks for taking the time to reply. At least I'm on an SSD and saved the patch files.

Be safe
 
Well that didn't work. 9 hours re-installing and 'View Dependencies' is still greyed out.

Any other ideas?

Are you definitely viewing dependencies of assets that are installed. These are local assets. The filter is location = installed. If you try to view dependencies of assets that are not installed. i.e. local, then you will get the message your are receiving.

I'm not trying to question your abilities, but trying to get the exact details of the problem.

John
 
Yes JC, all of the 'Installed" assets have 'View Dependencies' greyed out.

I just un-installed again and looked in the NV3 Games folder and the un-install left several 1000 files. I will delete everything and start over.

See ya tomorrow.
 
Last edited:
Well, that worked. All is well now. Thank you to all who assisted. It appears the Windows 7 un-install doesn't un-install everything.
Now I just wish I knew what happened to cause the original problem.

See U all on the Shoo-Fly
Bill
 
Well, that worked. All is well now. Thank you to all who assisted. It appears the Windows 7 un-install doesn't un-install everything.
Now I just wish I knew what happened to cause the original problem.

See U all on the Shoo-Fly
Bill

I'm glad you got things sorted out finally. :)

It isn't a Windows 7 problem, it's related to the installer program used to pack up all the Trainz installation files. I worked for a company that used the same installer, and field service received a ton of calls regarding the same issue.

What happened is rather stupid. The installer builds a list of files called unininst.dat or something like it. The file contains a list of all the files that need to be removed when the uninstaller is run from the Control Panel using the Programs and Features, or Add and Remove Programs, depending upon the Windows version. This sounds all cool and wonderful, but there's a problem. The patch installer doesn't update this file to include any changed files, so if you go to run the uninstall.exe, the process fails.

John
 
Back
Top