• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Tool✓] Random PGE Failure

Trev

[span="font-size: 8px; color: white;"][font="Monts
1,505
Posts
11
Years
    • Age 27
    • Seen Nov 15, 2023
    For some reason, PGE decides to randomly bug out and stop working on my ROM file. It works fine on my backup - I can open the editors - but when I open my main file, I get this error when I open an editor:

    Code:
    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.
    
    ************** Exception Text **************
    System.InvalidCastException: Conversion from string "" to type 'Double' is not valid. ---> System.FormatException: Input string was not in a correct format.
       at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
       at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
       --- End of inner exception stack trace ---
       at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
       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.6.1648.0 built by: NETFXREL3STAGE
        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/treve/Desktop/Storage%20Bin/Hacking%20Stuff/PGE/PokemonGameEditor.exe
    ----------------------------------------
    Microsoft.VisualBasic
        Assembly Version: 10.0.0.0
        Win32 Version: 14.6.1586.0 built by: NETFXREL2
        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.6.1647.0 built by: NETFXREL3STAGE
        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.6.1647.0 built by: NETFXREL3STAGE
        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.6.1586.0 built by: NETFXREL2
        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.6.1586.0 built by: NETFXREL2
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Runtime.Remoting
        Assembly Version: 4.0.0.0
        Win32 Version: 4.6.1586.0 built by: NETFXREL2
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ----------------------------------------
    Accessibility
        Assembly Version: 4.0.0.0
        Win32 Version: 4.6.1586.0 built by: NETFXREL2
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    ----------------------------------------
    System.Configuration
        Assembly Version: 4.0.0.0
        Win32 Version: 4.6.1586.0 built by: NETFXREL2
        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.6.1586.0 built by: NETFXREL2
        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.
    Not really sure what the problem is. I also noticed this when I have my main file open:

    CGEUM0S.png


    As you can see, where the program would normally display "Pokemon FireRed" it now displays nothing. So I don't know if that's relevant to the problem, but I assume it is. Any help is appreciated! Thanks.

    Spoiler: tagging Gamer2020
    Gamer2020 said:
     
    Last edited:

    Joexv

    ManMadeOfGouda joexv.github.io
    1,037
    Posts
    11
    Years
  • Post your ini and an ips patch, looks like you just have a value that's incorrect in your ini
     

    Trev

    [span="font-size: 8px; color: white;"][font="Monts
    1,505
    Posts
    11
    Years
    • Age 27
    • Seen Nov 15, 2023
    Code:
    [BPRE]
    ROMName=Pok?mon Fire Red (English)
    ItemData=3DB028
    AttackNames=901800
    TMData=45A80C
    TotalTMsPlusHMs=58
    TotalTMs=50
    ItemIMGData=3D4294
    NumberOfItems=375
    NumberOfAttacks=511
    MoveTutorAttacks=459B60
    NumberOfMoveTutorAttacks=16
    PokemonNames=245EE0
    NumberOfPokemon=412
    NationalDexTable=251FEE
    SecondDexTable=251CB8
    PokedexData=44E850
    NumberOfDexEntries=387
    PokemonData=254784
    AbilityNames=950000
    NumberOfAbilities=156
    Pointer2PointersToMapBanks=5524C
    OriginalBankPointer0=352004
    OriginalBankPointer1=352018
    OriginalBankPointer2=352204
    OriginalBankPointer3=3522F4
    OriginalBankPointer4=3523FC
    OriginalBankPointer5=35240C
    OriginalBankPointer6=352424
    OriginalBankPointer7=352444
    OriginalBankPointer8=35246C
    OriginalBankPointer9=352484
    OriginalBankPointer10=3524A4
    OriginalBankPointer11=3524F4
    OriginalBankPointer12=35251C
    OriginalBankPointer13=35253C
    OriginalBankPointer14=352544
    OriginalBankPointer15=35256C
    OriginalBankPointer16=35257C
    OriginalBankPointer17=352584
    OriginalBankPointer18=35258C
    OriginalBankPointer19=352594
    OriginalBankPointer20=352598
    OriginalBankPointer21=35259C
    OriginalBankPointer22=3525A4
    OriginalBankPointer23=3525AC
    OriginalBankPointer24=3525B8
    OriginalBankPointer25=3525C0
    OriginalBankPointer26=3525CC
    OriginalBankPointer27=3525D4
    OriginalBankPointer28=3525D8
    OriginalBankPointer29=3525DC
    OriginalBankPointer30=3525E0
    OriginalBankPointer31=3525E4
    OriginalBankPointer32=352600
    OriginalBankPointer33=352614
    OriginalBankPointer34=352628
    OriginalBankPointer35=352648
    OriginalBankPointer36=352668
    OriginalBankPointer37=35267C
    OriginalBankPointer38=352690
    OriginalBankPointer39=352694
    OriginalBankPointer40=352698
    OriginalBankPointer41=35269C
    OriginalBankPointer42=3526A4
    NumberOfMapsInBank0=4
    NumberOfMapsInBank1=122
    NumberOfMapsInBank2=59
    NumberOfMapsInBank3=65
    NumberOfMapsInBank4=3
    NumberOfMapsInBank5=5
    NumberOfMapsInBank6=7
    NumberOfMapsInBank7=9
    NumberOfMapsInBank8=5
    NumberOfMapsInBank9=7
    NumberOfMapsInBank10=19
    NumberOfMapsInBank11=9
    NumberOfMapsInBank12=7
    NumberOfMapsInBank13=1
    NumberOfMapsInBank14=9
    NumberOfMapsInBank15=3
    NumberOfMapsInBank16=1
    NumberOfMapsInBank17=1
    NumberOfMapsInBank18=1
    NumberOfMapsInBank19=0
    NumberOfMapsInBank20=0
    NumberOfMapsInBank21=1
    NumberOfMapsInBank22=1
    NumberOfMapsInBank23=2
    NumberOfMapsInBank24=1
    NumberOfMapsInBank25=2
    NumberOfMapsInBank26=1
    NumberOfMapsInBank27=0
    NumberOfMapsInBank28=0
    NumberOfMapsInBank29=0
    NumberOfMapsInBank30=0
    NumberOfMapsInBank31=6
    NumberOfMapsInBank32=4
    NumberOfMapsInBank33=4
    NumberOfMapsInBank34=7
    NumberOfMapsInBank35=7
    NumberOfMapsInBank36=4
    NumberOfMapsInBank37=4
    NumberOfMapsInBank38=0
    NumberOfMapsInBank39=0
    NumberOfMapsInBank40=0
    NumberOfMapsInBank41=1
    NumberOfMapsInBank42=0
    MapLabelData=3F1CAC
    NumberOfMapLabels=109
    PokemonFrontSprites=2350AC
    PokemonBackSprites=23654C
    PokemonNormalPal=23730C
    PokemonShinyPal=2380CC
    IconPointerTable=3D37A0
    IconPalTable=3D3E80
    CryTable=48C914
    CryTable2=48DB44
    CryConversionTable=2539D4
    FootPrintTable=43FAB0
    PokemonAttackTable=25D7B4
    PokemonEvolutions=74002C
    TMHMCompatibility=252BC8
    TMHMLenPerPoke=8
    MoveTutorCompatibility=459B7E
    EnemyYTable=2349CC
    PlayerYTable=235E6C
    EnemyAltitudeTable=23A004
    AttackData=900000
    AttackDescriptionTable=904000
    AbilityDescriptionTable=9507F0
    AttackAnimationTable=90336C
    IconPals=3D3740
    JamboLearnableMovesTerm=0000FF
    StartSearchingForSpaceOffset=71A240
    FreeSpaceSearchInterval=100
    NumberOfEvolutionsPerPokemon=8
    NumberOfEvolutionTypes=15
    EvolutionName0=None
    EvolutionName1=Happiness
    EvolutionName2=Happiness (Day)
    EvolutionName3=Happiness (Night)
    EvolutionName4=Level
    EvolutionName5=Trade
    EvolutionName6=Trade w/ Item
    EvolutionName7=Item
    EvolutionName8=Atk > Def
    EvolutionName9=Atk = Def
    EvolutionName10=Atk < Def
    EvolutionName11=High Personality
    EvolutionName12=Low Personality
    EvolutionName13=Allow Pokemon Creation
    EvolutionName14=Create Extra Pokemon
    EvolutionName15=Max Beauty
    Evolution0Param=none
    Evolution1Param=evolvesbutnoparms
    Evolution2Param=evolvesbutnoparms
    Evolution3Param=evolvesbutnoparms
    Evolution4Param=level
    Evolution5Param=evolvesbutnoparms
    Evolution6Param=item
    Evolution7Param=item
    Evolution8Param=level
    Evolution9Param=level
    Evolution10Param=level
    Evolution11Param=level
    Evolution12Param=level
    Evolution13Param=evolvesbutnoparms
    Evolution14Param=level
    Evolution15Param=evolvesbasedonvalue
    EggMoveTable=25EF0C
    EggMoveTableLimiter=45CC4
    HabitatTable=452C4C
    ItemAnimationTable=45FD54
    TrainerTable=23EAF0
    NumberOfTrainers=742
    TrainerClasses=23E558
    NumberOfTrainerClasses=6B
    TrainerImageTable=23957C
    NumberOfTrainerImages=147
    TrainerPaletteTable=239A1C
    TrainerClassMoney=24F220
    DexSizeTrainerSprite=135
    TradeData=26CF8C
    NumberOfTrades=9
    PokedexAlphabetTable=443FC0
    PokedexLightestTable=4442F6
    PokedexSmallestTable=4445FA
    PokedexTypeTable=4448FE
    IPS file

    Just so you know, this is based off the Dollsteak base. Also, I looked at the errors.txt in the folder, and it said "Error! ROMName is missing for ROM BPRE!" and "Error! NumberOfEvolutionTypes is missing for ROM BPRE!" but I clearly have both of those in the ini.
     
    Last edited:

    Trev

    [span="font-size: 8px; color: white;"][font="Monts
    1,505
    Posts
    11
    Years
    • Age 27
    • Seen Nov 15, 2023
    So, apparently, the solution to this was to re-apply the patch to a fresh ROM? Not sure how that works... exactly. But if this problem ever occurs for you, well, there's your solution.
     
    Back
    Top