Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!

TrollandToad.com
Reply
 
Thread Tools
  #1    
Old December 5th, 2010 (2:26 AM).
knizz's Avatar
knizz knizz is offline
     
    Join Date: Aug 2007
    Posts: 192
    About:
    This IDA-Script decompiles PokeScript ... in IDA. (obviously)

    Instructions:
    Once per database: "File"->"IDC File..."->"fix.idc"
    For every script: 1. Select Script 2. "File"->"IDC File..."->"pokedec.idc"

    Result:
    Code:
    081A8DFD     scr_081A8DFD:   .byte lockall           @ DATA XREF: per_step_scripts+60
    081A8DFD                                             @ per_step_scripts:off_0806D700
    081A8DFE                     .byte change_text_color
    081A8DFF                     .byte 3
    081A8E00                     .byte special_call
    081A8E01                     .short 0xC7
    081A8E03                     .byte set_to_waitstate
    081A8E04                     .byte cmp_var_val
    081A8E05                     .short 0x800D
    081A8E07                     .short 1
    081A8E09                     .byte if_jump
    081A8E0A                     .byte 1
    081A8E0B                     .long scr_081A8E11
    081A8E0F                     .byte release
    081A8E10                     .byte end
    081A8E11     scr_081A8E11:   .byte check_money       @ DATA XREF: ROM:081A8E0B
    081A8E12                     .long 1
    081A8E16                     .byte 0
    081A8E17                     .byte cmp_var_val
    081A8E18                     .short 0x800D
    081A8E1A                     .short 0
    081A8E1C                     .byte if_jump
    081A8E1D                     .byte 1
    081A8E1E                     .long scr_081A8E2E
    081A8E22                     .byte cmp_var_val
    081A8E23                     .short 0x800D
    081A8E25                     .short 1
    081A8E27                     .byte if_jump
    081A8E28                     .byte 1
    081A8E29                     .long scr_081A8E3C
    081A8E2D                     .byte end
    081A8E2E     scr_081A8E2E:   .byte load_message      @ DATA XREF: ROM:081A8E1E
    081A8E2F                     .byte 0
    081A8E30                     .long unk_081A61E5
    081A8E34                     .byte callstd
    081A8E35                     .byte 4
    081A8E36                     .byte goto
    081A8E37                     .long scr_081A8E4D
    081A8E3B                     .byte    2
    081A8E3C     scr_081A8E3C:   .byte special_call      @ DATA XREF: ROM:081A8E29
    081A8E3D                     .short 0x175
    081A8E3F                     .byte load_message
    081A8E40                     .byte 0
    081A8E41                     .long unk_081A6197
    081A8E45                     .byte callstd
    081A8E46                     .byte 4
    081A8E47                     .byte goto
    081A8E48                     .long scr_081A8E4D
    081A8E4C                     .byte    2
    081A8E4D     scr_081A8E4D:   .byte special_call      @ DATA XREF: ROM:081A8E37
    081A8E4D                                             @ ROM:081A8E48
    081A8E4E                     .short 0x14C
    081A8E50                     .byte set_to_waitstate
    081A8E51                     .byte screen_special_effect
    081A8E52                     .byte 1
    081A8E53                     .byte special_call
    081A8E54                     .short 0xC8
    081A8E56                     .byte set_to_waitstate
    081A8E57                     .byte end
    This is the whiteout-script btw.
    Attached Files
    File Type: zip ida-poke-script..zip‎ (9.7 KB, 46 views) (Save to Dropbox)
    __________________
    Firered IDA 6.6 DB: https://www.dropbox.com/s/d856o3pyndyr5sr/firered.idb
    VBA-M with lua scripting support
    Reply With Quote

    Relevant Advertising!

      #2    
    Old December 7th, 2010 (11:31 PM).
    colcolstyles's Avatar
    colcolstyles colcolstyles is offline
    Yours truly
    • Crystal Tier
     
    Join Date: May 2008
    Location: The Bay Area
    Gender: Male
    Nature: Lonely
    Posts: 1,584
    Do you mind explaining a little more? I have absolutely no idea what you're talking about here and if I can't comprehend it, chances are most forum-goers can't either.
    __________________

    Brother of Vrai
    Reply With Quote
      #3    
    Old December 8th, 2010 (12:18 AM).
    Darthatron's Avatar
    Darthatron Darthatron is offline
    巨大なトロール。
    • Silver Tier
     
    Join Date: Jan 2006
    Location: Melbourne, Australia
    Age: 25
    Gender: Male
    Nature: Modest
    Posts: 1,152
    Quote:
    Originally Posted by colcolstyles View Post
    Do you mind explaining a little more? I have absolutely no idea what you're talking about here and if I can't comprehend it, chances are most forum-goers can't either.
    It's a script for IDA that allows you to decompile scripts from the FireRed ROM.

    Generally IDA is mainly used for disassembling, but with this, it can be used for other stuff.
    __________________
    あなた は しきしゃ です
    わたし は ばか です
    Reply With Quote
      #4    
    Old December 8th, 2010 (7:04 AM).
    knizz's Avatar
    knizz knizz is offline
       
      Join Date: Aug 2007
      Posts: 192
      It makes more sense to those who use IDA on a regular basis.
      __________________
      Firered IDA 6.6 DB: https://www.dropbox.com/s/d856o3pyndyr5sr/firered.idb
      VBA-M with lua scripting support
      Reply With Quote
      Reply

      Quick Reply

      Join the conversation!

      Create an account to post a reply in this thread, participate in other discussions, and more!

      Create a PokéCommunity Account

      Sponsored Links
      Thread Tools

      Posting Rules
      You may not post new threads
      You may not post replies
      You may not post attachments
      You may not edit your posts

      BB code is On
      Smilies are On
      [IMG] code is On
      HTML code is Off

      Forum Jump


      All times are GMT -8. The time now is 11:18 PM.