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.


Advertise here

Reply
 
Thread Tools
  #1    
Old February 5th, 2013, 09:48 AM
Akwarelek
 
Join Date: Jan 2013
Gender: Male

Advertise here
The One GSC Trainer Editor

Code:
img33.imageshack.us/img33/5532/onegsctrainer.png
OneGSCTrainer is an another program written in Python which enables you to edit trainer data. What are its main features?

1. Supports Gold, Silver and Crystal versions.

2. Allows to add, delete and edit trainers and their pokemons - no limitations! The only limit is amount of empty space left.

3. Reads pointers. Note that if your trainer data contains trash bytes you won't be able to use the tool.

4. Versatility - just see by yourself.

Credit me if you use my tool to edit your data.

Note: This is first released version - I might not be aware of some bugs. For the safety of your project, use 'Save as...' instead of 'Save' option.

Waiting for your feedback, feel free to test for bugs I haven't found out yet. Also, mind that due to preparing comboboxes of names, moves and items for all 6 pokemon the program takes few seconds to load.


Download v. 1.0 link:
Code:
mediafire.com/?z4gmg2mryau889x
Reply With Quote
  #2    
Old April 11th, 2013, 04:02 PM
abhmul
 
Join Date: Apr 2012
I downloaded and tried it but it keeps on just freezing and not responding when I try to load a ROM with added trainers.
Reply With Quote
  #3    
Old April 12th, 2013, 04:42 AM
Akwarelek
 
Join Date: Jan 2013
Gender: Male
I can't give you precise answer if I can't see your ROM, but I can assume it's because your ROM file trainer data structure is not correct. For example, not ending one trainer name with 0x50 causes program to freeze, while in game this can be undetectable if you don't fight with such trainer.

I would send you a link to article about trainer structure in Gen 2, but this forum doesn't allow me to because of irrational reasons.
Reply With Quote
  #4    
Old April 14th, 2013, 08:54 AM
abhmul
 
Join Date: Apr 2012
I tried using it with Pokemon Silver and it worked. All my trainers in my hack work fine in game, even the ones I added and edited. If there are more than 494 trainers and the pointers to these trainers' data is different than the original Silver Rom would that cause it to crash? I've been using another GSC trainer Editor before I found yours but that one did not allow me to add trainers and change their data type, etc. So I had to do all of that manually but otherwise that trainer editor works fine with all of my trainers. I also went ahead and copied my hack, got rid of all the extra trainers so there were only 494 trainers, and I redid my pointers. The 494 trainers were still not the same as the original silver but I didn't think it should have mattered because the pointers still pointed to the correct offsets. However, after all the effort, it still wouldn't respond. I know for a fact there are no errors in my trainer data or else my other GSC trainer editor would have crashed as well. Is there a way I could send you my hack?

I really want to use your hack because through yours I can add and edit trainer data without having to move things around in the rom with a hex editor.
Reply With Quote
  #5    
Old April 14th, 2013, 02:25 PM
Akwarelek
 
Join Date: Jan 2013
Gender: Male
Well, you can upload it on a storage site like speedyshare.com and send me a private message with link.

Ok, I've got your PM with ROM file.
I'm not into the code of my tool anymore because it's few months since I've released it, but let me try to explain:
In the beginning, the program loads trainer class pointers. These pointers point to start of each trainer class data. In order to find ending of current class data, the tool finds a pointer which points to lowest offset which is higher than start data offset (finds the next higher value).
It seems like you have some bad pointers. For example 915C at offset 0x39958 which points to 0x39c91 which is in the middle of Karen data, before Koga entry. The tool recognizes it as the end of Karen data and then freezes because this incomplete part of Karen data doesn't end with 0xFF.
It's very possible that there are more errors of this kind in your data.

That's all for now, I've got to go sleeping.

Google "wiki iimarck trainers", the first result should link you to article explaining trainer data.
Reply With Quote
  #6    
Old July 9th, 2013, 02:47 PM
abhmul
 
Join Date: Apr 2012
Thank you so much. You were right, two of my pointers were off. Before I had found your program I did all the editing manually for trainers. It turned out I made a typo like you noticed in Karen's pointer and one in the Twins pointer. Now its working fine
Reply With Quote
  #7    
Old January 25th, 2014, 03:00 PM
dragonite trainer's Avatar
dragonite trainer
Retro Gamer
 
Join Date: Sep 2009
Location: The State of Denial
Age: 17
Gender: Male
Nature: Naughty
If this is in python, would you release the python files so linux/unix users can use it too? I'd really appreciate it. It isn't working in WINE for me. PyInstaller makes it so hard to decompile...
*edit*
I noticed your username and the compile paths and things in your PYZ file. You might want to remove those for privacy. :)

*edit 2*
well, it took lots of work, but I got the program extracted from the EXE and decompiled. I changed the encodings to UTF-8 for compatibility with more OSes than windows, and was able to get it to run :)
I attached the file below, and I also posted a link to it on dropbox so people hopefully don't have to register.


This should now work on Linux, Mac OS X (may need to install python), or windows (will definitely need to install python). Run it with Python 2.7, with something like this:
Code:
python2.7 OneGSCTrainer.py
or if you can't find 'python2.7' try
Code:
python OneGSCTrainer.py
Happy hacking!

DOWNLOAD MIRROR
https://dl.dropboxusercontent.com/u/...editor.tar.bz2
Attached Files
File Type: bz2 one-gsc-trainer-editor.tar.bz2‎ (19.2 KB, 20 views) (Save to Dropbox)
__________________
Hacks I own:

Hacks I support:

Why were spoilers banned from sigs? they weren't hurting anyone.
I have worked on team rocket version a bit, but i made it so unstable that I will have to restart from scratch - hopefully I am now competent enough to do it right. (2014-01-25)

Last edited by dragonite trainer; February 7th, 2014 at 08:47 AM. Reason: Your double post has been automatically merged.
Reply With Quote
  #8    
Old February 2nd, 2014, 10:45 PM
Shiny Quagsire's Avatar
Shiny Quagsire
どないやねん, ヤドン
 
Join Date: May 2009
Location: Hoenn Safari Zone
Age: 16
Gender: Male
Nature: Jolly
Quote:
Originally Posted by dragonite trainer View Post
This should now work on Linux, Mac OS X (may need to install python), or windows (will definitely need to install python). Run it with Python 2.7, with something like this:
Code:
python2.7 OneGSCTrainer.py
or if you can't find 'python2.7' try
Code:
python OneGSCTrainer.py
Happy hacking!
Thanks for that. I'm surprised this didn't provide the .py files from the start since Python runs wonderfully on Linux and Mac OS's as well. Good to see more people using cross-platform friendly languages instead of .NET which runs horribly (in most cases) on Mono.
__________________



Reply With Quote
  #9    
Old February 7th, 2014, 08:49 AM
dragonite trainer's Avatar
dragonite trainer
Retro Gamer
 
Join Date: Sep 2009
Location: The State of Denial
Age: 17
Gender: Male
Nature: Naughty
Quote:
Originally Posted by Shiny Quagsire View Post
Thanks for that. I'm surprised this didn't provide the .py files from the start since Python runs wonderfully on Linux and Mac OS's as well. Good to see more people using cross-platform friendly languages instead of .NET which runs horribly (in most cases) on Mono.
You can make some .NET programs (especially .NET 2.x) programs that don't run in mono run with WINE and the official microsoft .NET runtime, if you use a new $WINEPREFIX

It's just too bad that a lot of these utilities also use VB6.
__________________
Hacks I own:

Hacks I support:

Why were spoilers banned from sigs? they weren't hurting anyone.
I have worked on team rocket version a bit, but i made it so unstable that I will have to restart from scratch - hopefully I am now competent enough to do it right. (2014-01-25)
Reply With Quote
  #10    
Old April 6th, 2014, 07:25 AM
cloudforgiven's Avatar
cloudforgiven
 
Join Date: Mar 2012
Gender: Male
can this tool edit the ai or computers difficulty? cause i find that if you have the correct levels in any hacked game whether its a hack meaning harder opponents, then the ai makes stupid decisions, and its rather easy just like the original game.
Reply With Quote
  #11    
Old April 16th, 2014, 07:06 AM
dragonite trainer's Avatar
dragonite trainer
Retro Gamer
 
Join Date: Sep 2009
Location: The State of Denial
Age: 17
Gender: Male
Nature: Naughty
Quote:
Originally Posted by cloudforgiven View Post
can this tool edit the ai or computers difficulty?
No, the game only has one AI as far as I can tell, so no it can't.
(sorry to bump again)
__________________
Hacks I own:

Hacks I support:

Why were spoilers banned from sigs? they weren't hurting anyone.
I have worked on team rocket version a bit, but i made it so unstable that I will have to restart from scratch - hopefully I am now competent enough to do it right. (2014-01-25)
Reply With Quote
  #12    
Old May 19th, 2014, 02:12 PM
KinkajusRevenge's Avatar
KinkajusRevenge
KinkajusRevenge
 
Join Date: May 2010
Gender: Male
I don't know if anyone's still following this or not, but I have been using this on Gold. Suddenly when I got to the trainers on route 27, on the way to the E4, it stopped working. I can't really change anything anymore. Anyone else encounter such problems?
Reply With Quote
  #13    
Old May 24th, 2014, 07:08 PM
bobby_has_no_hobbies
 
Join Date: May 2014
Gender: Male
I tried using this, and it wouldn't work for me. There wasn't any freezing, but nothing changed either. How do I get this working? Is there something I missed while I was reading these forums?
( Also, is there a tutorial on how to use this somewhere? If so, that's be really helpful. Thanks. )

Last edited by bobby_has_no_hobbies; May 24th, 2014 at 07:14 PM. Reason: Additional Thought
Reply With Quote
  #14    
Old June 19th, 2014, 03:48 PM
dragonite trainer's Avatar
dragonite trainer
Retro Gamer
 
Join Date: Sep 2009
Location: The State of Denial
Age: 17
Gender: Male
Nature: Naughty
If your trainer data has trash bytes, the original author said, you won't be able to use the tool.

Also, if your ROM is expanded or scripting has overwritten part of the data, that would do it.\

If neither of those are the reason, I can't help much. I don't know what your problem is.
__________________
Hacks I own:

Hacks I support:

Why were spoilers banned from sigs? they weren't hurting anyone.
I have worked on team rocket version a bit, but i made it so unstable that I will have to restart from scratch - hopefully I am now competent enough to do it right. (2014-01-25)
Reply With Quote
Reply
Quick Reply

Sponsored Links


Advertise here
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 06:27 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.