Jump to content
Kaphotics

tool pk3DS: 3DS ROM Editor & Randomizer

Recommended Posts

Anyone know how to make Mega Evolution possible outside of battle? I'm trying to have like charizard evolve into Char X at certain level at night and Char Y in day. But I cant seem to get it working, I can get evolve into Mega Char X/Y from charmeleon using the smae method, but cant do it from Charizard itself.

Image 5.png

Share this post


Link to post
Share on other sites
24 minutes ago, Anelrush said:

Anyone know how to make Mega Evolution possible outside of battle? I'm trying to have like charizard evolve into Char X at certain level at night and Char Y in day. But I cant seem to get it working, I can get evolve into Mega Char X/Y from charmeleon using the smae method, but cant do it from Charizard itself.

Image 5.png

The game possibly disallows same species evolutions. Keep in mind that the game will clear mega forms when you reload your party.

Share this post


Link to post
Share on other sites
2 minutes ago, Kaphotics said:

The game possibly disallows same species evolutions. Keep in mind that the game will clear mega forms when you reload your party.

Thank you, I am aware of the form resetting when game. But is there a allow this "same species evolution"? or is there a way to go around it to make the transition to mega more fluid? I rather not go from charmeleon to Mega Charizard.

Share this post


Link to post
Share on other sites
17 minutes ago, Anelrush said:

Thank you, I am aware of the form resetting when game. But is there a allow this "same species evolution"? or is there a way to go around it to make the transition to mega more fluid? I rather not go from charmeleon to Mega Charizard.

You'd have to dig through the game code and figure out how to disable that check, assuming the problem exists in that way. Game code modification is pretty much outside the scope of pk3DS; you'd have to use other tools like IDA.

There's always a way to do things, but the amount of effort and wisdom required usually isn't worth it.

Share this post


Link to post
Share on other sites

I'm trying to randomize my Pokemon Y (Digital Copy) but when I click on any option in the randomizer I get this error:

Exception Details:
System.FormatException: Invalid GARC Version: 0xFFFF
   em pk3DS.Core.CTR.GARC.unpackGARC(Stream stream)
   em pk3DS.Core.CTR.GARC.unpackGARC(Byte[] data)
   em pk3DS.Core.GameConfig.GetMemGARC(String file)
   em pk3DS.Core.GameConfig.GetGARCByReference(GARCReference gr)
   em pk3DS.Main.<B_StoryText_Click>b__31_0() na C:\BuildAgent\work\ccf72a59f9911202\pk3DS\Main.cs:linha 474
   em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   em 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.396, Culture=neutral, PublicKeyToken=null
C:\Users\Matheus\Desktop\3DS Randomizer Pack\3DS Randomizer Pack\Step 2 - Randomize\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=pt-BR, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_pt-BR_b77a5c561934e089\System.Windows.Forms.resources.dll

pk3DS.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\Matheus\Desktop\3DS Randomizer Pack\3DS Randomizer Pack\Step 2 - Randomize\pk3DS.Core.dll

mscorlib.resources, Version=4.0.0.0, Culture=pt-BR, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_pt-BR_b77a5c561934e089\mscorlib.resources.dll

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

What should I do? I can't find anything about this
 

Share this post


Link to post
Share on other sites
Posted (edited)

hello, so im trying to randomize my copy of X and when I use anything in the exeFS tab it says .code.bin not decompressed, abort. was wondering if I could get some help here.

this line of code pops up too

 

Exception Details:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.BitConverter.ToUInt16(Byte[] value, Int32 startIndex)
   at pk3DS.MartEditor6.getList() in C:\BuildAgent\work\ccf72a59f9911202\pk3DS\Subforms\Gen6\MartEditor6.cs:line 155
   at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
   at pk3DS.Main.B_Mart_Click(Object sender, EventArgs e) in C:\BuildAgent\work\ccf72a59f9911202\pk3DS\Main.cs:line 989
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.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.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.397, Culture=neutral, PublicKeyToken=null
C:\Users\sam bostick\Desktop\pk3DS Build 397\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\sam bostick\Desktop\pk3DS Build 397\pk3DS.Core.dll

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

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

Edited by Maskedtime64
Color of font

Share this post


Link to post
Share on other sites

Hi, how's it going? So i'm having a certain issue with my randomized version of pokémon Moon. The game bugs whenever a trainer uses a mega form. I allowed random megas to appear in the wild as well as allow trainers to have them, but when i beat a trainer whose last pokémon is a mega, the game says that the trainer is about to send the same pokémon i just defeated... but it sends the mon with no sprite, hp in the red, and i can't damage it, thus getting stuck in a loop.

Weird thing is that Hau sent me an Ampharos, mega-evolved it and i could finish the battle (it was the starter battle, 1st in the game) but then sent me a Beedrill on the 2nd battle, mega-evolved it, and i got stuck. Same with another trainer in other version of the randomized game, sending an Aerodactyl and mega-evolving it. I could just turn off mega-evos, but, is there a way to fix this? Thanx in advance

Share this post


Link to post
Share on other sites
1 minute ago, omimic said:

Hi, how's it going? So i'm having a certain issue with my randomized version of pokémon Moon. The game bugs whenever a trainer uses a mega form. I allowed random megas to appear in the wild as well as allow trainers to have them, but when i beat a trainer whose last pokémon is a mega, the game says that the trainer is about to send the same pokémon i just defeated... but it sends the mon with no sprite, hp in the red, and i can't damage it, thus getting stuck in a loop.

Weird thing is that Hau sent me an Ampharos, mega-evolved it and i could finish the battle (it was the starter battle, 1st in the game) but then sent me a Beedrill on the 2nd battle, mega-evolved it, and i got stuck. Same with another trainer in other version of the randomized game, sending an Aerodactyl and mega-evolving it. I could just turn off mega-evos, but, is there a way to fix this? Thanx in advance

Restore backups and randomize only once.

Share this post


Link to post
Share on other sites
2 minutes ago, Kaphotics said:

Restore backups and randomize only once.

Thanks, will do. Also, is there a way in Sun/Moon to get the randomized starters to show as a 3d model? When i get to pick the starter, the models stay the originals, and same as the names. It only changes the text referring to the types of the mons, and i don't get to know in-game what pokémon i get as a starter until i get to nickname it.

Share this post


Link to post
Share on other sites
5 minutes ago, omimic said:

Thanks, will do. Also, is there a way in Sun/Moon to get the randomized starters to show as a 3d model? When i get to pick the starter, the models stay the originals, and same as the names. It only changes the text referring to the types of the mons, and i don't get to know in-game what pokémon i get as a starter until i get to nickname it.

You have to have your console load CROs and exefs in order for the game to be in sync. One file determines what is shown, the other determines what is picked out.

Share this post


Link to post
Share on other sites
2 minutes ago, Kaphotics said:

You have to have your console load CROs and exefs in order for the game to be in sync. One file determines what is shown, the other determines what is picked out.

Hmm, then it must've been some problem with the CRO's. It's because i'm not playing the game with patches, but rather rebuilding the entire rom as a cia. And i must've missed something regarding CRO's... but i didn't have a starter option in the CRO section of pk3ds. For Moon, at least. It was included in static encounters and it didn't give an option to change the models, now that i think about it. It must've been that, probably. Still, the text for the names didn't update too.

Share this post


Link to post
Share on other sites

Hey man. So I've been tinkering with a rom for Pokemon Y that has been decompressed by HackingToolKit3ds for use on Citra.

So it randomizes well, but misses a few options? ground items, move sets and shop stock didn't randomize when I chose them to.
This has been an ongoing occurrence as the same happens with Pokemon ORAS. Any idea's?

I also get the "Detected Compressed code binary. Decompress? Files will be replaced." every so often..

Share this post


Link to post
Share on other sites
Posted (edited)
On 5/10/2019 at 5:26 PM, Jefferz19 said:

Hey man. So I've been tinkering with a rom for Pokemon Y that has been decompressed by HackingToolKit3ds for use on Citra.

So it randomizes well, but misses a few options? ground items, move sets and shop stock didn't randomize when I chose them to.
This has been an ongoing occurrence as the same happens with Pokemon ORAS. Any idea's?

I also get the "Detected Compressed code binary. Decompress? Files will be replaced." every so often..

copy the ExtractedExeFS folder file back to your decompressed game files, then delete the "code.bin" file there and rename the ".code.bin" by removing the "." (dot). Then rebuilt your game. Remember to keep a ".code.bin" file (file with the "." (dot)) PK3ds cant modified shop item without the (dot).

Image 1.png

Edited by Anelrush
correction

Share this post


Link to post
Share on other sites

hey there, my rom is fine and i decrypted it fine but no matter what i do my exefs wont change, saying .code.bin is not decompressed AFTER decompressing it when it gives me the pop up. how do i fix?

Exception Details:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at pk3DS.ShinyRate..ctor() in C:\BuildAgent\work\ccf72a59f9911202\pk3DS\Subforms\ShinyRate.cs:line 59
   at pk3DS.Main.B_ShinyRate_Click(Object sender, EventArgs e) in C:\BuildAgent\work\ccf72a59f9911202\pk3DS\Main.cs:line 1029
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.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.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.396, Culture=neutral, PublicKeyToken=null
C:\Users\Lampy\Desktop\frick\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\Lampy\Desktop\frick\pk3DS.Core.dll

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

Share this post


Link to post
Share on other sites
On 5/13/2019 at 3:29 AM, Anelrush said:

copy the ExtractedExeFS folder file back to your decompressed game files, then delete the "code.bin" file there and rename the ".code.bin" by removing the "." (dot). Then rebuilt your game. Remember to keep a ".code.bin" file (file with the "." (dot)) PK3ds cant modified shop item without the (dot).

Image 1.png

So does this also fix the ground items + the TMs?

Share this post


Link to post
Share on other sites

Ok, back here again. I need some advice. So, i was randomizing pokemon moon. I manage to randomize moves, starters, abilities, wild encounters all this is ok. Managed to change the text for the starters since there is no DLLPoke3Select.CRO, so i believe only the text can be changed in this games. But the problem comes with the shop and TM randomization. So, for the TM's i heard that it only works if you don't have the game updated, is this true? And the shops... the CRO should be modified, but still the shops will stay vanilla. Is it because the game is updated, or it might be some other issue?

For extra references, as i said, i'm not patching the game with Luma, i'm just extracting the whole rom, randomizing things, then pick up the whole rom again (all the files from the folder i use to randomize) and rebuild the rom as a .cia, then install it.

Share this post


Link to post
Share on other sites
On 2/10/2015 at 6:40 AM, Kaphotics said:

Edited ROMs can only be played on exploited consoles.

Please do not ask (nor private message me) how to obtain/dump/decrypt/unpack/repack ROMs as that is unrelated to the functionality of this program.

 


Download Link At Bottom of Post

687474703a2f2f692e696d6775722e636f6d2f44rQd9Kxr.png

pk3DS is a ROM editor for 3DS games with tools from various contributors.

All editors displayed are fully functional.

Simply feed it a folder (drag/drop or by File->Open) which contains the game romfs & exefs extracted content folders.

iEsoudA.png

Randomizers available:

  • Trainer Battles (Pokemon / Items / Moves / Abilities / Difficulty / Classes)
  • Wild Encounters (Species, Level, Gen/Legend Specific, ORAS DexNav won't crash!)
  • Personal Data (Pokemon Types / Stats / Abilities / TM Learnset)
  • Move Randomizer (Type / Damage Category)
  • Move Learnset (Level Up / Egg Move)
  • Evolutions
  • TM Moves
  • Special Mart Inventory
  • etc

Download the latest version here (log in as guest, zip is under Artifacts tab)

Source code is available on my GitHub.

I have a problem with the ranodmizer. It keeps randomizing my opponents movesets to ridiculous things like Fusion flare for a Blaziken and i dont know why? I have not touched anything that should be able to randomize such things. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...