Looks like I messed up

Advanced Tactics is a versatile turn-based strategy system that gives gamers the chance to wage almost any battle in any time period. The initial release focuses on World War II and includes a number of historical scenarios as well as a full editor! This forum supports both the original Advanced Tactics and the new and improved Advanced Tactics: Gold Edition.

Moderator: Vic

Post Reply
elmerlee
Posts: 300
Joined: Tue Jul 20, 2004 2:07 am

Looks like I messed up

Post 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.
User avatar
Vic
Posts: 9798
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: Looks like I messed up

Post by Vic »

generic.ptmaster
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
elmerlee
Posts: 300
Joined: Tue Jul 20, 2004 2:07 am

RE: Looks like I messed up

Post 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.
elmerlee
Posts: 300
Joined: Tue Jul 20, 2004 2:07 am

RE: Looks like I messed up

Post 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.


Willburn
Posts: 74
Joined: Sat Oct 28, 2006 11:39 pm

RE: Looks like I messed up

Post by Willburn »

If a reinstall is an option I suggest that. Usually just as quick as finding the problem and solving it :)
EricSilver_MatrixForum
Posts: 61
Joined: Thu Apr 20, 2006 11:15 am

RE: Looks like I messed up

Post 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\"
elmerlee
Posts: 300
Joined: Tue Jul 20, 2004 2:07 am

RE: Looks like I messed up

Post 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.
User avatar
leastonh1
Posts: 879
Joined: Sat Feb 12, 2005 1:18 pm
Location: West Yorkshire, England

RE: Looks like I messed up

Post by leastonh1 »

elmerlee - As you've said that the files don't have an extension,&nbsp;you must&nbsp;have displaying of file extensions turned off. This is&nbsp;an&nbsp;option in Windows (default iirc).&nbsp;If you open Windows Explorer and&nbsp;see:&nbsp;"generic" as the file name, then chances are this is the case. If this is&nbsp;how it looks&nbsp;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&nbsp;hidden from view, Windows now would see it as "generic.ptmaster.ptmaster". The original .ptmaster was hidden from you.
&nbsp;
Is that what happened? [:)]
&nbsp;
Regards,
Jim
2nd Lt. George Rice: Looks like you guys are going to be surrounded.
Richard Winters: We're paratroopers, Lieutenant, we're supposed to be surrounded.
elmerlee
Posts: 300
Joined: Tue Jul 20, 2004 2:07 am

RE: Looks like I messed up

Post 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?
EricSilver_MatrixForum
Posts: 61
Joined: Thu Apr 20, 2006 11:15 am

RE: Looks like I messed up

Post 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.

;)
User avatar
leastonh1
Posts: 879
Joined: Sat Feb 12, 2005 1:18 pm
Location: West Yorkshire, England

RE: Looks like I messed up

Post 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.
&nbsp;
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&nbsp;are shown&nbsp;it.
&nbsp;
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.
&nbsp;
The game won't run as it's looking for a file called "generic.ptmaster" (as Windows sees it!).
&nbsp;
Why MS did this is beyond me! I hate Windows.
&nbsp;
Does that help? [:D]
&nbsp;
Regards,
Jim
2nd Lt. George Rice: Looks like you guys are going to be surrounded.
Richard Winters: We're paratroopers, Lieutenant, we're supposed to be surrounded.
elmerlee
Posts: 300
Joined: Tue Jul 20, 2004 2:07 am

RE: Looks like I messed up

Post 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.



elmerlee
Posts: 300
Joined: Tue Jul 20, 2004 2:07 am

RE: Looks like I messed up

Post 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.
User avatar
leastonh1
Posts: 879
Joined: Sat Feb 12, 2005 1:18 pm
Location: West Yorkshire, England

RE: Looks like I messed up

Post 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
2nd Lt. George Rice: Looks like you guys are going to be surrounded.
Richard Winters: We're paratroopers, Lieutenant, we're supposed to be surrounded.
Post Reply

Return to “Advanced Tactics Series”