Tool PBS Shape Appender

Started by Marin January 20th, 2018 10:47 AM
  • 7546 views
  • 10 replies

Marin

Age 19
Male
Seen June 27th, 2021
Posted June 27th, 2021
966 posts
5 Years
There's a very good chance you've seen an error like this one before.

This error indicates that you're using old Pokémon PBS.

Pokémon Essentials v17 adds a new property that all your Pokémon entries have to have; Shape. This is used as a "search option" by the Pokédex.

Since manually adding all these Shape fields is super tedious, and some people don't even know what this error means, I've written a very little program that adds an appropriate Shape fields to the appropriate Pokémon.

There's a file called template.txt which contains the internal names of the Pokémon and which Shape value they should get. This works for all species from generation 1 to generation 7, species 1 through 802. I have not made this closed-source as perhaps it could be useful to expand this. So yes, this does mean you can add, remove, or change values.

The program is a stand-alone. As long as you never separate it from template.txt, it can be run from anywhere and everywhere. You are prompted to pick a file manually, it does not detect it.


Download the program

p.claydon

Female
Seen February 25th, 2021
Posted February 25th, 2021
397 posts
10.9 Years
added the new ultrabeast from ultra sun and ultra moon for those who want them
Still learning how to sprite but if you want to look at my progress then here you go
http://pclaydon.deviantart.com/gallery/
Seen 1 Week Ago
Posted 1 Week Ago
158 posts
4.3 Years
When I use it, the Height and Weight changes.
From this:
Height=7.0
Weight=400.0
To this:
Height=7000.0
Weight=400000.0

For one or another reason, it adds three zero in that propieties.
Sorry my bad English, I talk Spanish.

WolfPP

Discord: Wolf#1235

Male
Brazil
Seen 15 Hours Ago
Posted July 14th, 2021
1,296 posts
3.3 Years
When I use it, the Height and Weight changes.
From this:
Height=7.0
Weight=400.0
To this:
Height=7000.0
Weight=400000.0

For one or another reason, it adds three zero in that propieties.
Sorry my bad English, I talk Spanish.
Same problem.

EDIT:
Well....
Done lol
Just change the position (or reposition) them. And i add in RegionalPokedex the seven region (so, add that too if you wanted or delete or config your pokedex from debug mode):
1-807 shapes and height/weight.
Seen July 5th, 2020
Posted May 30th, 2019
5 posts
2.6 Years
Same problem.

EDIT:
Well....
Done lol
Just change the position (or reposition) them. And i add in RegionalPokedex the seven region (so, add that too if you wanted or delete or config your pokedex from debug mode):
1-807 shapes and height/weight.
hi, do you know where can I find the file to import abilities and their effect? Because if i copy only this .txt it won't work, right?

WolfPP

Discord: Wolf#1235

Male
Brazil
Seen 15 Hours Ago
Posted July 14th, 2021
1,296 posts
3.3 Years
hi, do you know where can I find the file to import abilities and their effect? Because if i copy only this .txt it won't work, right?
You need to add them inside move and abilitiies.txt to the game recognize them. But you need to script their effects. Use google to find all moves and abilities code (all of them are here, into PC Forum):
https://www.pokecommunity.com/showthread.php?t=417343

Good luck.

WolfPP

Discord: Wolf#1235

Male
Brazil
Seen 15 Hours Ago
Posted July 14th, 2021
1,296 posts
3.3 Years
Sorry if this is a dumb question... how do i use this?
Did you read main post?
The program is a stand-alone. As long as you never separate it from template.txt, it can be run from anywhere and everywhere. You are prompted to pick a file manually, it does not detect it.
UK
Seen July 1st, 2019
Posted June 17th, 2019
8 posts
2.5 Years
Did you read main post?
The program is a stand-alone. As long as you never separate it from template.txt, it can be run from anywhere and everywhere. You are prompted to pick a file manually, it does not detect it.
Yeah, it wouldn't run. But it's ok i added them all in by typing nd it worked lol

Maq47

Male
Seen 2 Weeks Ago
Posted 4 Weeks Ago
26 posts
10.9 Years
Marin, I'm using .NET Framework 4.8, and get the following exception after selecting my custom pokemon.txt file:
Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

Index was outside the bounds of the array.


Details:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at PBSShapeFix.WorkForm.Form1_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.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4042.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
PBSShapeFix
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/INDATA/Downloads/PBS%20Shape%20Appender/PBS%20Shape%20Appender.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4042.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
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4001.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.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.3752.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4042.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.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
----------------------------------------

************** 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.
I have attached my custom 'pokemon.txt' file to this post. Note that it was made in Essentials v15.