Page 1 of 1
Looks like I messed up
Posted: Fri Nov 09, 2007 9:12 pm
by elmerlee
I have been messing with the editor and in the settings menu I tried to change the master file in a senario I was in.
Not sure how this happened but it seems like the file has gone away. I'm not dumb enough to not have a backup but it seems when I copied the original master file and renamed it I did not include a file extension.
Can someone tell me the full name of the file including the extension. Probably somewhere in the manual but I couldn't find it on the latest trip through.
RE: Looks like I messed up
Posted: Fri Nov 09, 2007 9:16 pm
by Vic
generic.ptmaster
RE: Looks like I messed up
Posted: Fri Nov 09, 2007 9:41 pm
by elmerlee
Thanks for the quick answer Vic but the program gets an exception error "can't find file at "so & so". I've got the file in the in proper place according to what is being ask.
I've also got a copy in a couple other places just to make sure.
RE: Looks like I messed up
Posted: Fri Nov 09, 2007 9:44 pm
by elmerlee
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.FileNotFoundException: Could not find file 'C:\Matrix Games\Advanced Tactics\bin\scenarios\generic.ptmaster'.
File name: 'C:\Matrix Games\Advanced Tactics\bin\scenarios\generic.ptmaster'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite)
at WindowsApplication1.HandyFunctionsclass.Unzip(String ZipFile)
at WindowsApplication1.HandyFunctionsclass.LoadMasterFile(String filename, Boolean onlyrulevar)
at WindowsApplication1.InitialMenuWindowClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
at WindowsApplication1.FirstScreenClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
at WindowsApplication1.Form1.Form1_Mousedown(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at WindowsApplication1.ImmoveableForm.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
WindowsApplication1
Assembly Version: 1.0.2869.24025
Win32 Version: 1.0.2869.24025
CodeBase: file:///C:/Matrix%20Games/Advanced%20Tactics/bin/AdvancedTactics.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 0.84.0.0
Win32 Version: 0.84.0.0
CodeBase: file:///C:/Matrix%20Games/Advanced%20Tactics/bin/ICSharpCode.SharpZipLib.DLL
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
RE: Looks like I messed up
Posted: Fri Nov 09, 2007 9:50 pm
by Willburn
If a reinstall is an option I suggest that. Usually just as quick as finding the problem and solving it

RE: Looks like I messed up
Posted: Fri Nov 09, 2007 9:56 pm
by EricSilver_MatrixForum
Are you sure the extension of that file is ".ptmaster", elmerlee?
That debug text is clearly asking for the file "generic.ptmaster" that should be in your folder
"C:\Matrix Games\Advanced Tactics\bin\scenarios\"
RE: Looks like I messed up
Posted: Fri Nov 09, 2007 10:49 pm
by elmerlee
Thanks for the attention guys.
I think it is working now. The file does not want an extension at all. Guess I should have assumed this looking at the other files in the game. I thought the first file I tried was with no extension but there must have been something wrong elsewhere.
RE: Looks like I messed up
Posted: Fri Nov 09, 2007 11:00 pm
by leastonh1
elmerlee - As you've said that the files don't have an extension, you must have displaying of file extensions turned off. This is an option in Windows (default iirc). If you open Windows Explorer and see: "generic" as the file name, then chances are this is the case. If this is how it looks in Explorer and you then manually rename the file so that it displays as "generic.ptmaster", what you've actually done is added a new suffix. So because the file extension (e.g. .doc, .mp3, .txt etc.) is normally hidden from view, Windows now would see it as "generic.ptmaster.ptmaster". The original .ptmaster was hidden from you.
Is that what happened? [:)]
Regards,
Jim
RE: Looks like I messed up
Posted: Fri Nov 09, 2007 11:28 pm
by elmerlee
Jim H.
Thanks for the reply.
That looks like what happened to start with but I do have some files in other folders that are showing extensions. Darned if I know when I turned "show extensions" off.
Not many though; now that I go back and look.
At the same time,I simply renamed the file with no extension and it worked ok. Are you saying that'
explorer somehow new what to add for an extension?
RE: Looks like I messed up
Posted: Fri Nov 09, 2007 11:29 pm
by EricSilver_MatrixForum
ORIGINAL: Jim_H
elmerlee - As you've said that the files don't have an extension, you must have displaying of file extensions turned off. This is an option in Windows (default iirc). If you open Windows Explorer and see: "generic" as the file name, then chances are this is the case. If this is how it looks in Explorer and you then manually rename the file so that it displays as "generic.ptmaster", what you've actually done is added a new suffix. So because the file extension (e.g. .doc, .mp3, .txt etc.) is normally hidden from view, Windows now would see it as "generic.ptmaster.ptmaster". The original .ptmaster was hidden from you.
Is that what happened? [:)]
Regards,
Jim
That's exactly what I smelled, he must have the file extensions off by default in windows.

RE: Looks like I messed up
Posted: Fri Nov 09, 2007 11:36 pm
by leastonh1
Yes, that makes sense. If you removed the extension so that it didn't look to have one, then what you really did is changed the file from generic.ptmaster.ptmaster to generic.ptmaster. That's what Windows sees. As it hides the file types (suffix) by default, you only ever see generic as the file name.
Windows has extensions hidden by default. You install the game and it includes a file called:
generic.ptmaster - As Windows sees it.
generic - As you are shown it.
You go and change the file name by adding .ptmaster and so you now have:
generic.ptmaster.ptmaster - As Windows sees it.
generic.ptmaster - As you see it.
The game won't run as it's looking for a file called "generic.ptmaster" (as Windows sees it!).
Why MS did this is beyond me! I hate Windows.
Does that help? [:D]
Regards,
Jim
RE: Looks like I messed up
Posted: Fri Nov 09, 2007 11:43 pm
by elmerlee
Jim H. --
I did have the extension setting off and did not realize the extension would still show for unknown files. Just had no reason to care about extensions I guess.
But still don't no how a file I renamed "generic" with no extension ended up with a "ptmaster" extension.
RE: Looks like I messed up
Posted: Fri Nov 09, 2007 11:47 pm
by elmerlee
Sorry Jim H.
I didn't see your last post when I did my above one. Thanks very much for your time and I learned something today.
RE: Looks like I messed up
Posted: Fri Nov 09, 2007 11:49 pm
by leastonh1
[EDIT] Doh, I didn't see your post when I posted this!!!! Hehe. I really do need to go to bed soon.[/EDIT]
Yes, this is a setting in Windows called "hide extensions for known file types" or something close. I'm tired, so it's probably completely different! [:'(]
The file "generic" already had a file type as per the game installation. It's not something you normally need to change. The reason is because the file already had the extension. You added a second one, then deleted it. So you ended up back where you started. I think [;)]
I've gone past tired now, so may not be making sense any more. Need beauty sleep (desperately!).
Regards,
Jim