- 17
- Posts
- 4
- Years
- Seen Jul 5, 2022
I've been working on expanding the pokedex for my hack, and I've encountered an error I'm not quite sure how to fix.
Error:
It's giving me the error despite the new_names.bin file being in the same folder, so I'm not quite sure what to do. I've tried it with changing the names enabled and disabled, and it gives the same error each time. Do i maybe need to change the free space, or what should I do?
Edit: Figured out the problem, it was looking for a file named scripts//new_names.bin rather than just new_names.bin
Edit 2: How can I edit pokemon added through the expander? PGE crashes when attempting to load anything repointed by the expansion, and I get this error when I try to load then Pokemon editor.
Also, on the expanded rom, cries of pokemon that already exist don't play at all. That's the only other thing I've noticed.
Error:
Spoiler:
Finding free space...
Repointing base_stats to offset 0xe5633c
Repointing poke_front_img to offset 0xe5cb78
Repointing poke_back_img to offset 0xe5e940
Repointing poke_sprite_pal to offset 0xe60708
Repointing shiny_sprite_pal to offset 0xe624d0
Repointing icon_img to offset 0xe64298
Repointing icon_pal to offset 0xe6517c
Repointing poke_names to offset 0xe65535
Traceback (most recent call last):
File "C:\Users\devid\Desktop\Pokemon Romhack\PokeExpansion-master\PokeExpansion-master\scripts\expansion.py", line 314, in <module>
offset = repoint_table(rom, offset, i)
File "C:\Users\devid\Desktop\Pokemon Romhack\PokeExpansion-master\PokeExpansion-master\scripts\expansion.py", line 228, in repoint_table
genIV_V_VI_names = open("scripts//new_names.bin", 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'scripts//new_names.bin'
Repointing base_stats to offset 0xe5633c
Repointing poke_front_img to offset 0xe5cb78
Repointing poke_back_img to offset 0xe5e940
Repointing poke_sprite_pal to offset 0xe60708
Repointing shiny_sprite_pal to offset 0xe624d0
Repointing icon_img to offset 0xe64298
Repointing icon_pal to offset 0xe6517c
Repointing poke_names to offset 0xe65535
Traceback (most recent call last):
File "C:\Users\devid\Desktop\Pokemon Romhack\PokeExpansion-master\PokeExpansion-master\scripts\expansion.py", line 314, in <module>
offset = repoint_table(rom, offset, i)
File "C:\Users\devid\Desktop\Pokemon Romhack\PokeExpansion-master\PokeExpansion-master\scripts\expansion.py", line 228, in repoint_table
genIV_V_VI_names = open("scripts//new_names.bin", 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'scripts//new_names.bin'
It's giving me the error despite the new_names.bin file being in the same folder, so I'm not quite sure what to do. I've tried it with changing the names enabled and disabled, and it gives the same error each time. Do i maybe need to change the free space, or what should I do?
Edit: Figured out the problem, it was looking for a file named scripts//new_names.bin rather than just new_names.bin
Edit 2: How can I edit pokemon added through the expander? PGE crashes when attempting to load anything repointed by the expansion, and I get this error when I try to load then Pokemon editor.
Spoiler:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentOutOfRangeException: InvalidArgument=Value of '65535' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at PokemonGameEditor.Pokemonedit.Baseload()
at PokemonGameEditor.Pokemonedit.PKMNames_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at PokemonGameEditor.Pokemonedit.Pokemonedit_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
PokemonGameEditor
Assembly Version: 3.8.1.0
Win32 Version: 3.8.1.0
CodeBase: file:///C:/Users/devid/Desktop/Pokemon%20Romhack/PGE/PokemonGameEditor.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4300.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.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.
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentOutOfRangeException: InvalidArgument=Value of '65535' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at PokemonGameEditor.Pokemonedit.Baseload()
at PokemonGameEditor.Pokemonedit.PKMNames_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at PokemonGameEditor.Pokemonedit.Pokemonedit_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
PokemonGameEditor
Assembly Version: 3.8.1.0
Win32 Version: 3.8.1.0
CodeBase: file:///C:/Users/devid/Desktop/Pokemon%20Romhack/PGE/PokemonGameEditor.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4300.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.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.
Also, on the expanded rom, cries of pokemon that already exist don't play at all. That's the only other thing I've noticed.
Last edited: