Jump to content

Recommended Posts

Posted

Exception Details:
System.UnauthorizedAccessException: Access to the path 'D:\User\Documents\Citra 3DS\PKHeX\bak\main [May (OR) - 2020-03-06 15ː46].bak' 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, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at PKHeX.WinForms.Main.TryBackupExportCheck(SaveFile sav, String path)
   at PKHeX.WinForms.Main.OpenSAV(SaveFile sav, String path)
   at PKHeX.WinForms.Main.OpenFile(Byte[] input, String path, String ext)
   at PKHeX.WinForms.Main.OpenFromPath(String path)

Loaded Assemblies:
--------------------
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

PKHeX, Version=20.2.14.0, Culture=neutral, PublicKeyToken=null
D:\User\Documents\Citra 3DS\PKHeX\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null


System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

PKHeX.Drawing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null


--------------------
User Message:
Unable to load file.
Path: D:\User\Documents\Citra 3DS\0011c400\data\00000001\main
 

Posted
13 minutes ago, Happy1342 said:

Unable to load file.

Path: D:\User\Documents\Citra 3DS\0011c400\data\00000001\main
 

Are you sure the save has been initialized, that there's save data.

13 minutes ago, Happy1342 said:

Exception Details:
System.UnauthorizedAccessException: Access to the path 'D:\User\Documents\Citra 3DS\PKHeX\bak\main [May (OR) - 2020-03-06 15ː46].bak' is denied.

Is this file a backup? Is PKHeX trying to access a backup? Does the file exist?

  • Like 1
Posted
3 minutes ago, theSLAYER said:

Are you sure the save has been initialized, that there's save data.

Is this file a backup? Is PKHeX trying to access a backup? Does the file exist?

what do you mean? by the way is the backup you mean is the PKheX 'bak' file? If it is it is empty....

Posted
4 minutes ago, Happy1342 said:

no.....i try to open alpha sapphire but it also end up like this

Can you try opening a save that you download from the internet, as opposed to any save from Citra?

Also, maybe remove this and try again (on your Citra save), and see if it helpsimage.png
 

  • Like 1
Posted

i follow your instruction and i successfully able to edit pokemon again but somehow i cannot save......what is the permission the system is talking about?

Capture1.PNG

Posted

......if i am not wrong, i am not familiar with the save format of '025 - Pikachu - CE6000000000', i remember previously i only need to replace the 'main' file with the new edit one but now when i try to do that this thing appear

 

Exception Details:
System.UnauthorizedAccessException: Access to the path 'D:\User\Documents\Citra 3DS\PKHeX\sdmc\Nintendo 3DS\00000000000000000000000000000000\00000000000000000000000000000000\title\00040000\0011c400\data\00000001\main.pk6' 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, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at PKHeX.WinForms.WinFormsUtil.SavePKMDialog(PKM pk)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Loaded Assemblies:
--------------------
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

PKHeX, Version=20.2.14.0, Culture=neutral, PublicKeyToken=null
D:\User\Documents\Citra 3DS\PKHeX\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null


System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

PKHeX.Drawing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null


--------------------
User Message:
An unhandled exception has occurred.
You can continue running PKHeX, but please report this error.
 

 

is it possible that the type of file have problem?

 

is it possible that the type of file have problem?because i could not recognize this format

025 - Pikachu - CE6000000000.pk6

Posted
8 minutes ago, Happy1342 said:

is it possible that the type of file have problem?

the way I see it, not the files problem.

PK6 is a format for .pkm in generation 6, nothing wrong with it.

I think you don't have rights to save in that location.
Are you able to export save or save Pokemon in any other directory?


Are you able to run as administrator?
image.png


Also, please answer all above questions. AND, stop multiposting. I merged your posts.

  • Like 1
Posted (edited)

Ok, i can run PKheX as administrator, i can edit now due to unclick the 'automatic saved file backup enabled', i cannot save the file i edit to the file of '00000001' in every type of file and the system will suggest me to save to 'user'. Even when i try to replaced the 'main', the system will warn me and this thing will appear

 

Exception Details:
System.UnauthorizedAccessException: Access to the path 'D:\User\Documents\Citra 3DS\PKHeX\sdmc\Nintendo 3DS\00000000000000000000000000000000\00000000000000000000000000000000\title\00040000\0011c400\data\00000001\main.pk6' 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, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at PKHeX.WinForms.WinFormsUtil.SavePKMDialog(PKM pk)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Loaded Assemblies:
--------------------
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

PKHeX, Version=20.2.14.0, Culture=neutral, PublicKeyToken=null
D:\User\Documents\Citra 3DS\PKHeX\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null


System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

PKHeX.Drawing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null


--------------------
User Message:
An unhandled exception has occurred.
You can continue running PKHeX, but please report this error.

Edited by Happy1342
Posted

1. Can you copy the main from the citra folder to your desktop? (nothing to do with PKHeX)
2. can you then use PKHeX to edit the save on your desktop?
3. Can you then use PKHeX to save over and overwrite the save on your desktop?
4. Can you copy the save from your Desktop and overwrite the save in the Citra folder? (nothing to do with PKHeX)

Note: this is what is looks like to save the progress of your save editing.
It's the export sav and export main option.
image.png

  • Like 1
Posted

 and i can save the edit file to any other place other than '00000001'. and it seems like i cannot export other ‘main’ file

1.PNG

 

This will appear if i try to export backup

Exception Details:
System.UnauthorizedAccessException: Access to the path 'D:\User\Documents\Citra 3DS\PKHeX\0011c400\data\00000001\main' 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, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at PKHeX.WinForms.Controls.SAVEditor.ExportBackup()
   at PKHeX.WinForms.Main.ClickExportSAVBAK(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Loaded Assemblies:
--------------------
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

PKHeX, Version=20.2.14.0, Culture=neutral, PublicKeyToken=null
D:\User\Documents\Citra 3DS\PKHeX\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null


System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

PKHeX.Drawing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null


--------------------
User Message:
An unhandled exception has occurred.
You can continue running PKHeX, but please report this error.
 

 

4 minutes ago, theSLAYER said:

1. Can you copy the main from the citra folder to your desktop? (nothing to do with PKHeX)
2. can you then use PKHeX to edit the save on your desktop?
3. Can you then use PKHeX to save over and overwrite the save on your desktop?
4. Can you copy the save from your Desktop and overwrite the save in the Citra folder? (nothing to do with PKHeX)

Note: this is what is looks like to save the progress of your save editing.
It's the export sav and export main option.image.png

Ok, i will try

Posted

1. Can you copy the main from the citra folder to your desktop? (nothing to do with PKHeX)

Yes
2. can you then use PKHeX to edit the save on your desktop?

Yes
3. Can you then use PKHeX to save over and overwrite the save on your desktop?

Yes
4. Can you copy the save from your Desktop and overwrite the save in the Citra folder? (nothing to do with PKHeX)

Yes

 

It turn out that if i do all of this outside the folder of '00000001', i can use PKheX to save and overwrite the 'main' file at the desktop, Thank you very much for your help😄

Posted
3 minutes ago, Happy1342 said:

1. Can you copy the main from the citra folder to your desktop? (nothing to do with PKHeX)

Yes
2. can you then use PKHeX to edit the save on your desktop?

Yes
3. Can you then use PKHeX to save over and overwrite the save on your desktop?

Yes
4. Can you copy the save from your Desktop and overwrite the save in the Citra folder? (nothing to do with PKHeX)

Yes

 

It turn out that if i do all of this outside the folder of '00000001', i can use PKheX to save and overwrite the 'main' file at the desktop, Thank you very much for your help😄

Given it's all yes, it is possible that your account for your PC don't have permissions to use PKHeX to write into the Citra folder. (I'm surprised that loading PKHeX as Administrator didn't solve that problem)

Which is also why the error regarding "System.UnauthorizedAccessException: Access to the path 'D:\User\Documents\Citra 3DS\PKHeX\bak\main [May (OR) - 2020-03-06 15ː46].bak' is denied." occurred as well.

 

Thus from this point onward, you gotta edit the main somewhere else, then copy it manually to overwrite the save in the Citra folder.

  • Amazed 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...