The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Emulation & ROM Hacking > Research & Development
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

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!
New threads in this forum are to be approved by a moderator before they are displayed. The thread revival limit does not apply here.


Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #1    
Old December 5th, 2010, 02:26 AM
knizz's Avatar
knizz
 
Join Date: Aug 2007
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, 36 views)
__________________
Firered IDA 6.1 DB: https://www.dropbox.com/s/hvvmxxoo1dkmdzc/firered.idb
VBA-M with lua scripting support (no longer in development)
Reply With Quote
  #2    
Old December 7th, 2010, 11:31 PM
colcolstyles's Avatar
colcolstyles
Yours truly
 
Join Date: May 2008
Location: The Bay Area
Gender: Male
Nature: Lonely
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
巨大なトロール。
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 22
Gender: Male
Nature: Modest
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, 07:04 AM
knizz's Avatar
knizz
 
Join Date: Aug 2007
It makes more sense to those who use IDA on a regular basis.
__________________
Firered IDA 6.1 DB: https://www.dropbox.com/s/hvvmxxoo1dkmdzc/firered.idb
VBA-M with lua scripting support (no longer in development)
Reply With Quote
Reply
Quick Reply

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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 05:22 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.