The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Emulation & ROM Hacking
Register New Account FAQ/Rules Chat Blogs Mark Forums Read

Notices

Emulation & ROM Hacking The center for the community emulation scene. Come and discuss all things emulation and develop your own hacks!



Reply
Thread Tools
  #24076  
Unread March 4th, 2013, 07:16 AM
miksy91's Avatar
miksy91
A GB/C Rom Hacker since 2010
 
Join Date: Oct 2008
Location: A small country in the North
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by karatekid552 View Post
Most likely, it is a part of the routine that is carried out when you tell your pokemon to attack. It probobly runs though and sees your highest badge, then branches off, checks if the pokemon's and your IDs match, then, if not, compares the levels and sees if the pokemon is higher, if so, it goes on to calculate the chance of the pokemon not obeying. If any one of the checks passes, the routine return to the starting point and runs as normal. I have not a clue as to where said routine is located though:/. I just stared learning ASM and still have trouble finding things like that. I wish I could help more.
These kind of routines are often found with debugging. If you've got "nothing" to begin with, you might want to first look for the asm routine used for giving you a badge. For this, you also use debugger by tracking down the routine used by that "givebadge X" command.

If I was to do that myself, I would start looking what is executed when you talk to a person event which does nothing more than give you a certain badge and execute "return to gameplay" then.

Once you've found the asm routine used to give you a badge, you'll also find where in ram 1 is written and next, you start debugging the obeying routine using this ram address as a breakpoint. The program will stop executing code when this ram address is looked for during the code which, like you said, happens next to the code of comparing the ID of the pokemon attacking to the ID of the player.

You modify the routine there and... job finished.
__________________
My Rom Hack



Hacks I support





Learn how to hack GB/C games:

Check my GameBoy/Color hacking videos in Youtube
-The video set uses Pokemon Silver (U) rom for demonstrations
Reply With Quote
  #24077  
Unread March 4th, 2013, 09:56 AM
Jambo51's Avatar
Jambo51
Thinking about quitting...
 
Join Date: Jun 2009
Location: Livingston, Scotland
Gender: Male
Nature: Quiet
Quote:
Originally Posted by karatekid552 View Post
Most likely, it is a part of the routine that is carried out when you tell your pokemon to attack. It probobly runs though and sees your highest badge, then branches off, checks if the pokemon's and your IDs match, then, if not, compares the levels and sees if the pokemon is higher, if so, it goes on to calculate the chance of the pokemon not obeying. If any one of the checks passes, the routine return to the starting point and runs as normal. I have not a clue as to where said routine is located though:/. I just stared learning ASM and still have trouble finding things like that. I wish I could help more.
Having looked at the code which takes care of this, I can tell you you're nearly 100% right. The code is pretty simple, it checks the flags which are tied to the badges, and branches if they're set. It then compares the Pokémon's level against a hard coded value, which would be easy to change with a simple hex edit. It then performs a random if the Pokémon's OTID doesn't match yours. If I remember right, it's a weighted random. That is, the higher over the level cap, the more likely it is to disobey. However, what would be better would be rewriting if to support more flags and level caps. Reading from tables is always a good way to support such extendability.
__________________


Guys, please don't send me question which belong in the Simple Questions or Scripting Help threads. I don't mind the occasional question about ASM or something, though. And definitely don't send me PMs or VMs asking for help with your hack or requesting custom ASM. I will not answer.
Reply With Quote
  #24078  
Unread March 4th, 2013, 10:21 AM
karatekid552's Avatar
karatekid552
Scyther
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552
Quote:
Originally Posted by destinedjagold View Post


I've encountered the same problem during my hacking time with Life of Guardians, and yes, I believe there is a limit of how many NPCs are to be displayed on the screen. :\
This I know is a definable. The game can only have so many OAMs displayed at once.

Quote:
Originally Posted by Jambo51 View Post
Having looked at the code which takes care of this, I can tell you you're nearly 100% right. The code is pretty simple, it checks the flags which are tied to the badges, and branches if they're set. It then compares the Pokémon's level against a hard coded value, which would be easy to change with a simple hex edit. It then performs a random if the Pokémon's OTID doesn't match yours. If I remember right, it's a weighted random. That is, the higher over the level cap, the more likely it is to disobey. However, what would be better would be rewriting if to support more flags and level caps. Reading from tables is always a good way to support such extendability.
Awesome, my guessing skills are getting better. I was actually banking on the hope that you or Darth would come along and see this and give me some help.:p Now to find it....

Quote:
Originally Posted by miksy91 View Post
These kind of routines are often found with debugging. If you've got "nothing" to begin with, you might want to first look for the asm routine used for giving you a badge. For this, you also use debugger by tracking down the routine used by that "givebadge X" command.

If I was to do that myself, I would start looking what is executed when you talk to a person event which does nothing more than give you a certain badge and execute "return to gameplay" then.

Once you've found the asm routine used to give you a badge, you'll also find where in ram 1 is written and next, you start debugging the obeying routine using this ram address as a breakpoint. The program will stop executing code when this ram address is looked for during the code which, like you said, happens next to the code of comparing the ID of the pokemon attacking to the ID of the player.

You modify the routine there and... job finished.
I know how to debug and modify routines. It's more of a where do I start? kind of thing.:p So, thanks for giving me that clue, I'll see if I can find it!
__________________
If you didn't do it like a BOSS, you didn't do it RIGHT!
Just some of the more BOSS Pokemon....
People and Hacks I support:

Hacks I own:

Last edited by karatekid552; March 4th, 2013 at 10:26 AM. Reason: Your double post has been automatically merged.
Reply With Quote
  #24079  
Unread March 4th, 2013, 10:05 PM
Flame999's Avatar
Flame999
Togepi
 
Join Date: Nov 2008
Location: Lavaridge Town
Gender: Male
Nature: Calm
How would I go about gender based rivals as I plan to put two gender based rival Green/Red & Kris/Ethan and I have no idea how to do that so if you could point the way that would be great
__________________
Pokemon Fire Red Hack
-3rd Gen game
-four more rival
- New Tiles
- New Trainer sprites
- New Map for Hoenn (replace Sevii islands)

E Hack
Plan to make a hoenn version of my
Pokemon Fire Red Hack where you start in Hoenn
then go to Kanto

Challenges

Challenges In on hold:
Grinding Challenge - Pokemon Blaze Black

Competed Challenge
The "N" Run - Pokemon Yellow
Reply With Quote
  #24080  
Unread March 4th, 2013, 10:51 PM
awipe1's Avatar
awipe1
Unhatched Egg
 
Join Date: Sep 2012
Gender: Male
I have a stupid question that i'm pretty sure I know the answer to already, but is there away to add more memory to your ROM? I have a very bad feeling that I will run out of varibales and offsets eventually if I make my game. I just don't want to be in half way through my game then realise that I can't make anymroe because I have ran out of variables and memory.
__________________
Pokemon BC

ARTIST NEEDED!
Reply With Quote
  #24081  
Unread March 5th, 2013, 01:24 AM
karatekid552's Avatar
karatekid552
Scyther
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552
Quote:
Originally Posted by Flame999 View Post
How would I go about gender based rivals as I plan to put two gender based rival Green/Red & Kris/Ethan and I have no idea how to do that so if you could point the way that would be great
A command called "checkgender" will help you. Just set it up so that based upon which gender, it runs different scripts, activates different battles, and, in turn, creates gender based rivals. Full documentation for it can be found in diegoisawesome's XSE tutorial.

Quote:
Originally Posted by awipe1 View Post
I have a stupid question that i'm pretty sure I know the answer to already, but is there away to add more memory to your ROM? I have a very bad feeling that I will run out of varibales and offsets eventually if I make my game. I just don't want to be in half way through my game then realise that I can't make anymroe because I have ran out of variables and memory.
No way that I know of to add more variables and memory in the RAM, but you can increase the rom size from 16mb to 32mb using a function in XSE version 1.1.1, it is in one of the top menus.
__________________
If you didn't do it like a BOSS, you didn't do it RIGHT!
Just some of the more BOSS Pokemon....
People and Hacks I support:

Hacks I own:

Last edited by karatekid552; March 5th, 2013 at 01:33 AM. Reason: As usual.... Grammar.
Reply With Quote
  #24082  
Unread March 5th, 2013, 02:07 AM
FBI agent
Imagine something beautiful
 
Join Date: Jan 2013
Location: Isle 4 - Dairy Products
Gender: Male
Quote:
Originally Posted by awipe1 View Post
I have a stupid question that i'm pretty sure I know the answer to already, but is there away to add more memory to your ROM? I have a very bad feeling that I will run out of varibales and offsets eventually if I make my game. I just don't want to be in half way through my game then realise that I can't make anymroe because I have ran out of variables and memory.
If you run out of variables you can always allocate some free space for custom variables and use writebytetooffset.

Also, you can expand your ROM if you want (there's actually tools to do it), but from what I've heard, it's a risky process.
__________________
...

Hacks I support:
http://www.pokecommunity.com/showthread.php?t=297199 --Legend of Anbuja
http://www.pokecommunity.com/showthread.php?t=200227 -- Pokemon Rose version

People I work for:
Scripter
Anbuja's_BlooDY -- Legend of Anbuja

FYI:
- You can ask me for scripting help
- I take simple ASM requests

People whom I thank:
Comrade -- For helping me with my bad hack, and for being a good friend
Darthatron -- Helping me get into basic ASM, even though I'm hopeless. (He is heartless stay away).
Anbuja's_BlooDY -- Graphics help, and being a good friend
FBI -- For having the username I wanted
Reply With Quote
  #24083  
Unread March 5th, 2013, 04:22 AM
Mr. Whiscash's Avatar
Mr. Whiscash
Unegged Hatch
 
Join Date: Sep 2008
Gender: Male
Nature: Sassy
Is there an easy way to edit the evolution method of a Pokemon in Platinum? Because it turns out the tool I'm using has the evolution method window just for show.
__________________
Reply With Quote
  #24084  
Unread March 5th, 2013, 12:27 PM
ChaosBringer41
Unhatched Egg
 
Join Date: Nov 2010
Gender: Male
Sorry if this is in the wrong part of the forum, but here goes:
How can I insert resized DS Pokemon sprites into, say, Fire Red?
- I want three of the starter choices from the DS games as the starter choices in one of my hacks - a 'this is how I want to play' type hack, not a total rewrite like Shiny Gold -

I tried using the Search function, but for some reason, it didn't show any results for inserting sprites, nevermind where to look for them.

Turtwig, Piplup, Emboar and their evolutions, if anyone is wondering - I want ones that ultimately have two Types.
__________________
I don't always know what I'm doing. Life is more interesting that way.

Last edited by ChaosBringer41; March 5th, 2013 at 12:28 PM. Reason: Keyboard doesn't want to use close brackets
Reply With Quote
  #24085  
Unread March 5th, 2013, 02:22 PM
ep!c's Avatar
ep!c
Romhacker since 2007
 
Join Date: Mar 2013
Age: 19
Gender: Male
All LZ77 compressed graphics can be inserted with the UNLZ oder NLZ GBA.
The Pokémon must be located in the UNLZ somewhere around 1200-1400..
__________________
http://www.pokecommunity.com/signaturepics/sigpic374240_2.gif
Reply With Quote
  #24086  
Unread March 5th, 2013, 03:19 PM
Aryan143's Avatar
Aryan143
The Fennekin Fan!
 
Join Date: Jul 2012
Location: Delhi, India
Age: 12
Gender: Male
Nature: Modest
Hey I have a problem. I just installed a new window yesterday and I updated my .NET framework but I am having a problem to run these programs:

NSE( both classic and 2.X)
YAPE
All the editors in the Wichu Sprite Editor series

It shows an error report. Can someone help me? They were working fine on the previous Windows
__________________

Please click both of these links once in a day and help us grow:

Reply With Quote
  #24087  
Unread March 5th, 2013, 04:05 PM
LocksmithArmy's Avatar
LocksmithArmy
Mew!
 
Join Date: Feb 2013
Age: 24
Gender: Male
what is the error report... specifically,... screenshot it or write down all the words...
__________________
Current Project:


Completed Projects:
Reply With Quote
  #24088  
Unread March 5th, 2013, 08:36 PM
karatekid552's Avatar
karatekid552
Scyther
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552
Quote:
Originally Posted by ep!c View Post
All LZ77 compressed graphics can be inserted with the UNLZ oder NLZ GBA.
The Pokémon must be located in the UNLZ somewhere around 1200-1400..
That is probably the hardest way to do it besides hex editing them in yourself:p.

I know you have been gone for a while, so I'll let you know that Wichu released a set of Pokemon sprite editors called the Advance Series. These work amazing for sprites of just pokemon, and the sprites are not required to be indexed:D. For other sprites, NSE Classic and NSE 2.X can handle just about any compressed or uncompressed image, provided you know the location of their image and palette.
__________________
If you didn't do it like a BOSS, you didn't do it RIGHT!
Just some of the more BOSS Pokemon....
People and Hacks I support:

Hacks I own:
Reply With Quote
  #24089  
Unread March 6th, 2013, 02:43 AM
Aryan143's Avatar
Aryan143
The Fennekin Fan!
 
Join Date: Jul 2012
Location: Delhi, India
Age: 12
Gender: Male
Nature: Modest
Here is the error image I am getting:



This is same on all these programs
__________________

Please click both of these links once in a day and help us grow:

Reply With Quote
  #24090  
Unread March 6th, 2013, 03:06 AM
tajaros's Avatar
tajaros
Hi I'm dawg
 
Join Date: Apr 2012
Location: Philippines
Age: 14
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to tajaros
Quote:
Originally Posted by Aryan143 View Post
Here is the error image I am getting:



This is same on all these programs
What OS are you running?

Also if the new .NET Framework doesn't work for you try the older versions.
__________________
Reply With Quote
  #24091  
Unread March 6th, 2013, 03:19 AM
Aryan143's Avatar
Aryan143
The Fennekin Fan!
 
Join Date: Jul 2012
Location: Delhi, India
Age: 12
Gender: Male
Nature: Modest
Quote:
Originally Posted by tajaros View Post
What OS are you running?

Also if the new .NET Framework doesn't work for you try the older versions.
I am using Windows XP SP3 and I have tried the older .NET Frameworks plus it worked on the old Windows
__________________

Please click both of these links once in a day and help us grow:

Reply With Quote
  #24092  
Unread March 6th, 2013, 03:25 AM
tajaros's Avatar
tajaros
Hi I'm dawg
 
Join Date: Apr 2012
Location: Philippines
Age: 14
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to tajaros
Quote:
Originally Posted by Aryan143 View Post
I am using Windows XP SP3 and I have tried the older .NET Frameworks plus it worked on the old Windows
Try redownloading the programs, it should work properly I think. I had this problem before and the only thing that fixed it is by downloading an older version of .NET Framework.
__________________
Reply With Quote
  #24093  
Unread March 6th, 2013, 03:34 AM
Aryan143's Avatar
Aryan143
The Fennekin Fan!
 
Join Date: Jul 2012
Location: Delhi, India
Age: 12
Gender: Male
Nature: Modest
Quote:
Originally Posted by tajaros View Post
Try redownloading the programs, it should work properly I think. I had this problem before and the only thing that fixed it is by downloading an older version of .NET Framework.
Ok thanks, I will try it.

EDIT: I tried the old framework and bang, it worked again. Thanks a lot tajaros!
__________________

Please click both of these links once in a day and help us grow:


Last edited by Aryan143; March 6th, 2013 at 04:19 AM.
Reply With Quote
  #24094  
Unread March 6th, 2013, 05:12 AM
Noossab Blue's Avatar
Noossab Blue
Mime Jr.
 
Join Date: Dec 2012
Location: USA
Gender: Female
Nature: Quirky
So...I want to edit the text of Oak's tutorial battle in A-text, but when I did my game glitched out and crashed. I tried it again with special text marked but it didn't help...

I did repoint a few of the strings...is that the problem? Or is it something else?

Quote:
Originally Posted by Jambo51 View Post
Having looked at the code which takes care of this, I can tell you you're nearly 100% right. The code is pretty simple, it checks the flags which are tied to the badges, and branches if they're set. It then compares the Pokémon's level against a hard coded value, which would be easy to change with a simple hex edit. It then performs a random if the Pokémon's OTID doesn't match yours. If I remember right, it's a weighted random. That is, the higher over the level cap, the more likely it is to disobey. However, what would be better would be rewriting if to support more flags and level caps. Reading from tables is always a good way to support such extendability.
So...basically I need to be able to ASM Hack to do it?
__________________
I try to hack and things...if you'd like to beta test my Fire Red hack, click the picture below to go to the thread!


Thanks to SilverGrey for the banner!

Version 0.9.10- Playable through the postgame!

Other Hacks I support:

Reply With Quote
  #24095  
Unread March 6th, 2013, 06:48 AM
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
 
Join Date: May 2007
Location: Philippines
Age: 22
Gender: Male
Nature: Careful
Send a message via Skype™ to destinedjagold
Quote:
Originally Posted by Noossab Blue View Post
So...I want to edit the text of Oak's tutorial battle in A-text, but when I did my game glitched out and crashed. I tried it again with special text marked but it didn't help...

I did repoint a few of the strings...is that the problem? Or is it something else?
A-Text causes many problems if you repoint stuff.
If you want to edit the text with the use of that tool, then you need to stay within the available character limit.

If you really need to put a longer text, then you need to manually repoint his dialogue through hex editing.
__________________
Reply With Quote
  #24096  
Unread March 6th, 2013, 10:12 AM
karatekid552's Avatar
karatekid552
Scyther
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552
Quote:
Originally Posted by Noossab Blue View Post
So...basically I need to be able to ASM Hack to do it?
You need to have ASM skills to find it. From there it is just simple byte changes with a hex editor. I plan on giving this more of a look when I find the time.
__________________
If you didn't do it like a BOSS, you didn't do it RIGHT!
Just some of the more BOSS Pokemon....
People and Hacks I support:

Hacks I own:
Reply With Quote
  #24097  
Unread March 6th, 2013, 12:51 PM
ep!c's Avatar
ep!c
Romhacker since 2007
 
Join Date: Mar 2013
Age: 19
Gender: Male
To find the routine requires NOT ASM skills.
To interprate the routine requires it neither too maybe, because its maybe one single number for the level..
__________________
http://www.pokecommunity.com/signaturepics/sigpic374240_2.gif
Reply With Quote
  #24098  
Unread March 6th, 2013, 05:32 PM
Noossab Blue's Avatar
Noossab Blue
Mime Jr.
 
Join Date: Dec 2012
Location: USA
Gender: Female
Nature: Quirky
Quote:
Originally Posted by destinedjagold View Post


A-Text causes many problems if you repoint stuff.
If you want to edit the text with the use of that tool, then you need to stay within the available character limit.

If you really need to put a longer text, then you need to manually repoint his dialogue through hex editing.
Ok, thanks for that info. I'll just shorten what I had to say.

Quote:
Originally Posted by karatekid552 View Post
You need to have ASM skills to find it. From there it is just simple byte changes with a hex editor. I plan on giving this more of a look when I find the time.
I greatly appreciate it sir.
__________________
I try to hack and things...if you'd like to beta test my Fire Red hack, click the picture below to go to the thread!


Thanks to SilverGrey for the banner!

Version 0.9.10- Playable through the postgame!

Other Hacks I support:

Reply With Quote
  #24099  
Unread March 7th, 2013, 02:03 AM
kearnseyboy6's Avatar
kearnseyboy6
Unhatched Egg
 
Join Date: Dec 2008
Gender:
Hi guys, I am wondering if there is anyway to ADD new map banks. I know there are over 100 of them but is there a way to add new ones without having to modify them. Eg: If I change PALLET TOWN the town name changes all the map names. Does this make sense? Or can I add new map headers?
Reply With Quote
  #24100  
Unread March 7th, 2013, 03:12 AM
Noossab Blue's Avatar
Noossab Blue
Mime Jr.
 
Join Date: Dec 2012
Location: USA
Gender: Female
Nature: Quirky
Ok, so I edited the Oak Tutorial in A-text without repointing...and it still glitches out and restarts the game...
__________________
I try to hack and things...if you'd like to beta test my Fire Red hack, click the picture below to go to the thread!


Thanks to SilverGrey for the banner!

Version 0.9.10- Playable through the postgame!

Other Hacks I support:

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

Forum Jump


All times are UTC. The time now is 06:14 AM.


Style by Perdition Haze, artwork by Sa-Dui.
Like our Facebook Page Follow us on TwitterMessage Board Statistics | © 2002 - 2013 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2013 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 posts belong to the user.