Jump to content

pk3DS: Pokémon 3DS ROM Editor and Randomizer


Recommended Posts

On 12/13/2023 at 1:31 PM, StinkySlinky1218 said:

Are there any plans to allow the OWSE actually save changes such as NPC data and scripts? Is pk3DS even being worked on anymore?

I really hope so, but the last commit on Github was a year ago (a minor fix), and that commit wasn't even built, it seems.

Before that, the last significant changes were those preceding the latest build (November 2021)...

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Hi,

i'm modifying USUM games with pk3s. Is there a method to make trainers smarter?

I've flagged all 3 AI bits (basic, strong,expert) but the ai doesn't make right choice sometime.

Is there a method to force AI to use stats move first (sword dance, nasty plot or other) before attack?

I noted that if the AI can 2 hit ko my pokemon never use stats move first; otherwise if would necessary 3 o plus turn to ko, use stats move first.

Also Poke change flag seems not work for some trainer. Works only for the trainer that have this flagged defalut programmed (important npc)

Someone can help me?

Thanks a lot

 

Edited by FabiuS_PRO
Link to comment
Share on other sites

HI, do you know why my 2023 pk3ds tool would have issues extracting a 2021 omegaruby.3ds file? here is my error log.

 

Exception Details:
System.ArgumentException: Bad IVFC Header
   at pk3DS.Core.CTR.RomFS.GetIVFCInfoFromBytes(Byte[] headerBytes)
   at pk3DS.Core.CTR.RomFS.ExtractRomFS(String outputDirectory, RichTextBox TB_Progress, ProgressBar PB_Show)
   at pk3DS.Core.CTR.NCCH.ExtractRomFS(String NCCH_PATH, String outputDirectory, RichTextBox TB_Progress, ProgressBar PB_Show)
   at pk3DS.Core.CTR.NCSD.ExtractFilesFromNCSD(String NCSD_PATH, String outputDirectory, RichTextBox TB_Progress, ProgressBar PB_Show)
   at pk3DS.Main.<>c__DisplayClass27_0.<ExtractNCSD>b__0() in D:\a\1\s\pk3DS\Main.cs:line 425
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

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

pk3DS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Program Files\pk3DS\pk3DS.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

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

pk3DS.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Program Files\pk3DS\pk3DS.Core.dll

--------------------
User Message:
An unhandled exception has occurred.
The program must now close.
 

Link to comment
Share on other sites

  • 1 month later...

hello i have a question, is there a way with pk3ds (or another tool)  to allow more than 32 pokemon box? it's fishing boring to have incomplete living dex cause of this limit

thanks for any people that can help me

Link to comment
Share on other sites

28 minutes ago, Kawhi said:

Whenever I randomize moves my pokemon always start off with moves like absord or leech life, is there any way to fix this or is it my rom or something?

Check the randomization settings. Low-powered moves are intended to be given instead of higher-powered moves, for a more balanced early level experience.

Link to comment
Share on other sites

I can't get the randomized Poke mart items to the markets, I've made the whole process many times from the beginning but nothing seems to work..
Any help or tips with that?

Link to comment
Share on other sites

Hi, hoping to get some help. I am attempting to remove legendary pokemon restrictions in ORAS battle maison (https://projectpokemon.org/home/forums/topic/39258-solved-some-progress-i-mightve-made-in-removing-battle-maisonbattle-tree-restrictions-banlist/)

 

Currently I have already used pk3ds to extract an Omega Ruby .3ds file, and subsequently have already edited the rom file a/1/7/0 with a hex editor as per above instructions. 

Not sure if it matters, but opening the folder that contains the exefs and romfs folder in pk3ds yields the error "failed to load game data from romfs. please double check your ROM dump is correct. Access to path 'backup' is denied."
I am now unable to rebuild the .3ds file after I open it in pk3ds. the option to do so is blanked out; only rebuilding it as a CRO is available. This is where I am stuck at at the moment. 

 

Any help is very much appreciated. thank you.

Link to comment
Share on other sites

Hello, I would like to know if it is possible to give an attack the map effect of an HM ? Like for exemple, giving to "Oblivion Wing" attack the effect to fly to other cities ?

To whom may answering, thank you.

Link to comment
Share on other sites

Exception Details:
System.OverflowException: La valeur était trop grande ou trop petite pour un UInt16.
   à System.Convert.ToUInt16(Int32 value)
   à pk3DS.XYWE.MakeSlotData(Int32 species, Int32 f, Int32 lo, Int32 hi) dans D:\a\1\s\pk3DS\Subforms\Gen6\XYWE.cs:ligne 445
   à pk3DS.XYWE.MakeEncounterData() dans D:\a\1\s\pk3DS\Subforms\Gen6\XYWE.cs:ligne 457
   à pk3DS.XYWE.B_Save_Click(Object sender, EventArgs e) dans D:\a\1\s\pk3DS\Subforms\Gen6\XYWE.cs:ligne 488
   à System.Windows.Forms.Control.OnClick(EventArgs e)
   à System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   à System.Windows.Forms.Control.WndProc(Message& m)
   à System.Windows.Forms.ButtonBase.WndProc(Message& m)
   à System.Windows.Forms.Button.WndProc(Message& m)
   à 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

pk3DS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\Megaport\Documents\Random Pokémon\RANDOMIZER ROM CITRA\PK3DS\pk3DS.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

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

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

pk3DS.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\Megaport\Documents\Random Pokémon\RANDOMIZER ROM CITRA\PK3DS\pk3DS.Core.dll

mscorlib.resources, Version=4.0.0.0, Culture=fr, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_fr_b77a5c561934e089\mscorlib.resources.dll

--------------------
User Message:
An unhandled exception has occurred.
You can continue running the program (albeit with potential side-effects), but please report this error.
 

Hi, I'm trying to change the Pokemon appearing in each zone but when I want to save this message appears

 

Link to comment
Share on other sites

Hi everyone,

I wanted to randomize Omega Ruby but even if I change the starters in pk3ds, my starters in game will be torchic, Treecko, and Mudkip. The only thing that works is the wild encounters after the starters choice. thanks for any people that can help me

(sorry i use google trad)

Link to comment
Share on other sites

  • 4 weeks later...

i havent seen anyone else mention this so it may just be a me problem but pk3ds refuses to let me rebuild my exeFS and romFS, in every way possible

 

it dosent even TRY to give me hope when i rebuild them as a patch, instead it just gives me this error - regardless of how many or how few options i have ticked on the left

 

its extremely annoying and im wondering what im meant to do to fix it? the error message isnt the most clear to say the least

 

this is ultra sun btw, and i havent randomised anything, but i have edited text and pokemon stats (and moves)

pk3ds hates me.png

Edited by drifted
forgot info teehee
Link to comment
Share on other sites

32 minutes ago, drifted said:

i havent seen anyone else mention this so it may just be a me problem but pk3ds refuses to let me rebuild my exeFS and romFS, in every way possible

it dosent even TRY to give me hope when i rebuild them as a patch, instead it just gives me this error - regardless of how many or how few options i have ticked on the left

its extremely annoying and im wondering what im meant to do to fix it? the error message isnt the most clear to say the least

this is ultra sun btw, and i havent randomised anything, but i have edited text and pokemon stats (and moves)

pk3ds hates me.png

The error message tells you why it was unable to continue, you did not give it a full ROM dump to work with. It is looking for a "rom2" path for the exefs, but no file was found, and it cannot patch the exefs for your modified files.

Current advice is to use layeredfs via custom firmware, instead of rebuilding ROM files.

Link to comment
Share on other sites

Just now, Kaphotics said:

The error message tells you why it was unable to continue, you did not give it a full ROM dump to work with. It is looking for a "rom2" path for the exefs, but no file was found, and it cannot patch the exefs for your modified files.

Current advice is to use layeredfs via custom firmware, instead of rebuilding ROM files.

ohhhhhh so i am just stupid then, thank you so much anyway!!!! ill try that

Link to comment
Share on other sites

  • 4 weeks later...
Posted (edited)

Hello!
I have a question. With PK3DS can I insert an NPC that gives Rare Candy to the player, or have them already appear in the backpack/PC by default? this in Pokemon Omega Ruby

Edited by Maikikii
Link to comment
Share on other sites

1 hour ago, Maikikii said:

Hello!
I have a question. With PK3DS can I insert an NPC that gives Rare Candy to the player, or have them already appear in the backpack/PC by default? this in Pokemon Omega Ruby

No, this program does not support adding NPC, nor does it support editing scripts.

Link to comment
Share on other sites

2 minutes ago, Kaphotics said:

No, this program does not support adding NPC, nor does it support editing scripts.

Oh, I understand u.u Do you know any program with which I can do something like that?

Link to comment
Share on other sites

On 5/3/2024 at 4:13 AM, Maikikii said:

Hello!, another question. Is it possible to include OR Version 1.4 in Pk3DS?

no, you have to use the base game version of your rom 💔

Link to comment
Share on other sites

Posted (edited)
On 4/7/2024 at 8:42 PM, Kaphotics said:

Current advice is to use layeredfs via custom firmware, instead of rebuilding ROM files.

so i tried that, i put both the exefs and romfs folders inside luma/titles/0004000000164800 (i switched to editing pokemon sun bc it would be easier) and whenever i enabled game patching with the latest version of layeredfs and tried to load pokemon sun, both of the games screens would turn grey after the game took abt a year to load.

 

not exactly sure why that happened, apparently it was an arm11 core (1) exception prefetch abort (svcBreak) but nowhere online seems to be having the same issue as me

im able to restore the game back to normal if i put the unmodified romfs and exefs (and everything else) into luma/titles/0004000000164800 and repatch pokemon sun so i know its just an issue with those files, but im too stupid to know what that issue is

 

i can send a photo of the arm 11 exception error message if need be obviously

edit: i didnt realise im meant to rebuild the romfs and exefs in pk3ds holy fish i need shot in the forehead ☠️ no wonder that never worked before, ill try the rebuilt romfs and exefs to see if they work instead, my bad for being such a moron

Edited by drifted
being moronic
Link to comment
Share on other sites

Posted (edited)

okay now i have an actual question to ask that isnt routed in me being fundamentally stupid

image.png.c2f0c9b358c9da741940c90a06f7227c.png

is this message telling me to NOT use layeredfs to get the CROs and CRR working on my 3ds otherwise it'll fail the RSA check? do i need to install smth else on my 3ds to get these files to work properly? or should i not bother and stfu

Edited by drifted
Link to comment
Share on other sites

14 minutes ago, drifted said:

okay now i have an actual question to ask that isnt routed in me being fundamentally stupid

image.png.c2f0c9b358c9da741940c90a06f7227c.png

is this message telling me to NOT use layeredfs to get the CROs and CRR working on my 3ds otherwise it'll fail the RSA check? do i need to install smth else on my 3ds to get these files to work properly? or should i not bother and stfu

Modern CFW (luma) has this patched by default.

  • Amazed 1
Link to comment
Share on other sites

somehow managed to fish up the evolution editor as well, crashes pk3ds entirely after i close the error message it give me whenever i try to open the evolution editor, stating that "item" cant be null

im assuming that means that ive changed a pokemon to evolve with an item being used, but never said what item, so that causes the crash? can i edit the romfs manually somehow to circumvent ts? 😥

error message:

Exception Details:
System.ArgumentNullException: Value cannot be null.
Parameter name: item
   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   at pk3DS.Main.<B_Evolution_Click>b__49_0() in D:\a\1\s\pk3DS\Main.cs:line 939
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

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

pk3DS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\iduh7\Downloads\pk3DS\pk3DS.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

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

pk3DS.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\iduh7\Downloads\pk3DS\pk3DS.Core.dll

--------------------
User Message:
An unhandled exception has occurred.
The program must now close.
 

Link to comment
Share on other sites

  • 2 weeks later...
On 5/13/2024 at 4:45 PM, drifted said:

somehow managed to fish up the evolution editor as well, crashes pk3ds entirely after i close the error message it give me whenever i try to open the evolution editor, stating that "item" cant be null

im assuming that means that ive changed a pokemon to evolve with an item being used, but never said what item, so that causes the crash? can i edit the romfs manually somehow to circumvent ts? 😥

 



If you open up the Personal Stats Editor and scroll through the dropdown menu, are there any lines where instead of a name it's just " - xxx" for some number xxx?

  • V-Wheeeeeel!!! 1
Link to comment
Share on other sites

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