The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
New threads in this forum are to be approved by a moderator before they are displayed.


Reply
 
Thread Tools
  #1    
Old 3 Weeks Ago, 01:43 PM
itari's Avatar
itari
Community Supporter
 
Join Date: Mar 2010
Location: 渦潮隠れの里
Age: 17
Gender: Female
Nature: Relaxed

Python IPS Patcher



Hello, all! I recently purchased an Apple computer, and I needed an easy way to apply IPS patches without using an app. So, to solve that problem I wrote up a little python script complete with a GUI to help out, keeping Mac users in mind.

Screens


Spoiler:


The patcher running on Mac.


The patcher running on Windows. Thanks Shufflejoy!


The patcher running on Linux. Thanks Shiny Quagsire!


Download


Version 1.0: Click
Note: To get it to run on Linux, change the first line to "#!/usr/bin/python2". Thanks to Shiny Quagsire.

I've only tested this on Mac, so if you use it on anything else let me know how it goes!
Also, should I improve it? Add a way to make a patch?
__________________

Last edited by itari; 2 Weeks Ago at 04:51 PM.
Reply With Quote
  #2    
Old 2 Weeks Ago, 06:17 PM
Shufflejoy's Avatar
Shufflejoy
♀ not ♂
 
Join Date: Sep 2013
Location: Iowa
Gender: Female
Nature: Timid
It appears to work perfectly well on Windows! I have Python 2.7.6 installed.



It looks like it should work fine on Linux, but on my Arch install I don't have Tk configured and don't feel like setting it up to test. I do think you should add support for creating patches! I also think it would be cool if you added a way to use it from the command line. Something like:

./ips.py patch [IPS] [ROM]
./ips.py create [OLD] [NEW] [IPS]
Reply With Quote
  #3    
Old 2 Weeks Ago, 07:25 PM
itari's Avatar
itari
Community Supporter
 
Join Date: Mar 2010
Location: 渦潮隠れの里
Age: 17
Gender: Female
Nature: Relaxed
Quote:
Originally Posted by Shufflejoy View Post
It appears to work perfectly well on Windows! I have Python 2.7.6 installed.

It looks like it should work fine on Linux, but on my Arch install I don't have Tk configured and don't feel like setting it up to test. I do think you should add support for creating patches! I also think it would be cool if you added a way to use it from the command line. Something like:

./ips.py patch [IPS] [ROM]
./ips.py create [OLD] [NEW] [IPS]
Thanks for trying it out for me!
It would be a simple matter to either add the command line format, or create a second script with that feature, so I'll probably do it.
__________________
Reply With Quote
  #4    
Old 2 Weeks Ago, 09:14 PM
Shufflejoy's Avatar
Shufflejoy
♀ not ♂
 
Join Date: Sep 2013
Location: Iowa
Gender: Female
Nature: Timid
Awesome. Looking forward to it! ^_^
Reply With Quote
  #5    
Old 2 Weeks Ago, 12:58 PM
Shiny Quagsire's Avatar
Shiny Quagsire
Unexpectedly Gone until Aug 13
 
Join Date: May 2009
Location: Hoenn Safari Zone
Age: 16
Gender: Male
Nature: Jolly
Quote:
Originally Posted by Shufflejoy View Post
It looks like it should work fine on Linux, but on my Arch install I don't have Tk configured and don't feel like setting it up to test.
Just tested on my personal Arch install, from the original .py I had to change the first line to this for it to work just executing it in bash:
Code:
#!/usr/bin/python2
But that's only because it seemed to refuse to work with python 3, so launching it using python 2.7 is working so far:

(The lack of border is due to my tiling window manager, since I only use keyboard shortcuts to close and resize windows).
__________________



Reply With Quote
  #6    
Old 2 Weeks Ago, 04:52 PM
itari's Avatar
itari
Community Supporter
 
Join Date: Mar 2010
Location: 渦潮隠れの里
Age: 17
Gender: Female
Nature: Relaxed
Quote:
Originally Posted by Shiny Quagsire View Post
Just tested on my personal Arch install, from the original .py I had to change the first line to this for it to work just executing it in bash:
Code:
#!/usr/bin/python2
But that's only because it seemed to refuse to work with python 3, so launching it using python 2.7 is working so far:

(The lack of border is due to my tiling window manager, since I only use keyboard shortcuts to close and resize windows).
Thanks for trying it out!
I don't have Linux on any of my computers, so I appreciate you testing this for me.
__________________
Reply With Quote
  #7    
Old 2 Weeks Ago, 09:37 PM
Shufflejoy's Avatar
Shufflejoy
♀ not ♂
 
Join Date: Sep 2013
Location: Iowa
Gender: Female
Nature: Timid
Quote:
Originally Posted by Shiny Quagsire View Post
Just tested on my personal Arch install, from the original .py I had to change the first line to this for it to work just executing it in bash:
Code:
#!/usr/bin/python2
But that's only because it seemed to refuse to work with python 3, so launching it using python 2.7 is working so far:

(The lack of border is due to my tiling window manager, since I only use keyboard shortcuts to close and resize windows).
Yeah, I had to change that line as well since my only Python install exists in /opt/android-build/python :p
Reply With Quote
  #8    
Old 2 Weeks Ago, 09:05 PM
TheAmazingSpiderMan's Avatar
TheAmazingSpiderMan
Aka Ansirent
 
Join Date: Sep 2013
Location: India
Gender: Male
Nature: Gentle
NEW IPS PATHCER !!!!!!!!! Yes i was thinking to find something like this. Hope this will be lot easier then Lunar ips.
__________________
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 12:05 PM.


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.