Planetside Software Forums

Support => Terragen Support => Topic started by: Erwin0265 on November 02, 2014, 05:33:35 AM

Title: "There is no disk in the drive." Error message
Post by: Erwin0265 on November 02, 2014, 05:33:35 AM
Hi all, me again............
Sometimes, when I open an existing tgd file, I get the following message:
QuoteThere is no disk in the drive. Please insert a disk into drive\Device\Harddisk6\DR10.
.
I have the choice to cancel,try again or continue; when I choose to continue (I have to click on it twice as the same error message pops up again), all is fine and my file opens.
Any suggestions as to what may be causing this?
Title: Re: "There is no disk in the drive." Error message
Post by: jaf on November 02, 2014, 12:46:52 PM
Just a guess here..... did you possibly save the tgd to a drive with a file reference no longer present on your system.

Here's a line from one of my tgd's:
   filename = "E:\GRAPHICS\1_content\1_world machine\myTerrains\TER\11jun13a.ter"

If the path above no longer contains the file, I would likely get the error you got (I didn't test this.)

You could edit the tgd file (I would make a copy of the original first) and do a search for ":\" (without the quotes) and you might find the invalid reference.

[edit] I think I may have "talked" my way away from the problem you wrote about.  It may be you have a reference in the tgd file to a non-existent drive -- maybe a flash drive?  Editing the tgd file as described above should show you all the drive references and maybe you will spot the problem.  Editing the path to the correct drive should work.
Title: Re: "There is no disk in the drive." Error message
Post by: archonforest on November 02, 2014, 01:21:57 PM
Most probaly the change of the drive and location can do this. The handling of Jaf should do the trick ;)
Title: Re: "There is no disk in the drive." Error message
Post by: Erwin0265 on November 02, 2014, 02:12:30 PM
I may have put the tgd into another folder within the folder it was already in (ie. I had several tgd's in one folder and things were getting confusing so I organised them by putting them into separate folders accompanied by any associated files).
I have no idea as to how to edit a tgd, so I will definitely make a copy before making a mess of it.............
Thanks for the tips............
Title: Re: "There is no disk in the drive." Error message
Post by: archonforest on November 02, 2014, 02:17:30 PM
You right click on the tgd file and open it a text editor and then u can edit it
Title: Re: "There is no disk in the drive." Error message
Post by: Erwin0265 on November 03, 2014, 05:04:57 AM
QuoteYou right click on the tgd file and open it a text editor and then u can edit it
That bit I understood; it's changing the content to whatever that I am not sure about - hence, making a copy before mutilation of the tgd..............
Title: Re: "There is no disk in the drive." Error message
Post by: jaf on November 03, 2014, 11:05:14 AM
Quote from: Erwin0265 on November 03, 2014, 05:04:57 AM
QuoteYou right click on the tgd file and open it a text editor and then u can edit it
That bit I understood; it's changing the content to whatever that I am not sure about - hence, making a copy before mutilation of the tgd..............

When you do the search for ":\" on a Windows machine should show all the disk accesses.  You can step through each one and check to see if it's valid (Windows Explorer to check if the full drive/path/file exists.

If you post the tgd I could respond with a list of all disk/path/file references.  :)
Title: Re: "There is no disk in the drive." Error message
Post by: Erwin0265 on November 04, 2014, 04:32:33 AM
QuoteWhen you do the search for ":\"

Perhaps I am being too literal, but when I try to do a search for ":\", all I get is ":\ is not a valid folder name"...................

Although I am still curious to learn, the tgd appears to have corrected itself - probably due to several more saves and the fact that I haven't been moving stuff around in the meantime......... :D
Title: Re: "There is no disk in the drive." Error message
Post by: jaf on November 04, 2014, 12:20:53 PM
It should work for you (remember, don't include the quotes in your search criteria.)

Attached is a section of code from a tdg opened in Notepad.  The search criteria was :\ and you can see what line it highlighted.  If I changed the drive letter on my system from D to E, I would get the error message you see.  So what I could do is a search and replace all references like D:\ to E:\ and it should fix the problem.

Title: Re: "There is no disk in the drive." Error message
Post by: Erwin0265 on November 04, 2014, 03:33:57 PM
To give you an idea of how far off the mark I was in understanding what you meant re "do the search for ":\" "; I did the search using Windows Explorer!
Oh crap! Do I feel stupid!
Ya gotta laugh............ ;D
I get what you mean now, thanks.............. :o