map creator cant access c:/temp.cmd
read the forums and a lot of other people have the same problem.
tried running it with administrator access and tried changing the java heap file size. I also tried changing the permission settings and turning off the firewall but it still doesnt work.
Please clarify which map creator, which version of the game and/or map creator are you running?
Second, which forums are you referring to, there are multiple
The version of the map creator I tried was 1.0.1.5. I dont think the version the game matters for the map creator, but im using 1.8.0.9. And im referring to the forums on sourceforge as well as the nabble forums.
The guy in this thread has the same exact problem as me:
http://tripleadev.1671093.n2.nabble.com/Assistance-with-Map-Creator-td7588658.html#a7588661
Also im windows 10. The map creator works fine on my older computer with Vista. But I cant get it to work at all on windows 10.
Likely any future efforts are going to be put into the new map creator. We might be able to debug this one issue, I'm concerned that there will be a number more. I'm afraid the map creators do not work terribly well at the moment.. We should track this a bit more to discuss further how broken they are, and perhaps to get some fixes in place.
This would be closed if we choose to drop the 'old' map creators: https://github.com/triplea-game/triplea/issues/1860
I suspect we will leave this unfixed in favor of focusing on the latest 'new' map creator, and trying to make that as good as possible.
Stack trace from the linked forum post:
ystem.UnauthorizedAccessException: Access to the path 'C:\temp.cmd' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path)
at TripleA_Game_Creator.Form1.button13_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(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)
I'm not aware of temp file creation having trouble, I wonder if the 'cmd' suffix is causing the file to be flagged. I'm also curious how widespread this problem would be on win10. Is it all win10, or is there a firewall or anti-virus configuration or software needed to hit the error?
Another question, where in the map creator can we see/hit this error, which actions should we perform?
@DanVanAtta I believe the issue is related to permissions. The C:\ directory can only be modified with administrative privileges, that's probably where the error comes from
IF we can reproduce this, would give us a lot more to work from. I think we have two potential options to fix this:
The above stack trace appears to be from a .NET application, not a Java application. That implies the map creator the OP is using is the standalone TripleA Map Creator version 1 written by Wisconsin et al. several years ago (i.e. item (1) from this table).
In light of that, is there any reason we would attempt to fix this problem? Based on the discussion in #1860 and elsewhere, I thought we decided we would only support the in-game (non-beta) map creator going forward?
If it's the standalone map creator, it should be sufficient to launch it as administrator, as a workaround
Most helpful comment
If it's the standalone map creator, it should be sufficient to launch it as administrator, as a workaround