The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Wild Pokemon Switching

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old June 26th, 2017 (10:01 AM).
Skyro005's Avatar
Skyro005 Skyro005 is offline
 
Join Date: Oct 2016
Location: Belgium
Gender: Male
Nature: Lax
Posts: 38
I recently incorporated primes DNS in my hack and I want to use it for as much as possible.

Now, my goal is to make a map script (05) that checks what time it is when you enter the map and changes the wildpoke table accordingly (e.g. Zigzagoon during daytime, Poochyena during nighttime)

First of all, is this at all possible?
My idea was to make the script change the pointer to the wildpoke table of the map, but that's where I get stuck ...
I know the pointer to the wildpoke table in route 101 (E4 07 55 08) is located at offset 0x550818. I tried using the writebytetooffset function in XSE to overwrite the pointer byte per byte, but that doesn't seem to have any effect...

I know there is a tool made by Jambo, but it's not made for Primes RTC and conflicts with amap.

Am I doing something wrong? Are the basic scripts not sufficient and should I use ASM? If so, can anybody help me out with creating said routine? (I can more or less understand ASM, but not good enough to make them from scratch)
__________________
Make EMERALD great again!

- - - - - - - - - - - - - - - - - - - - - - -
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old June 26th, 2017 (11:17 AM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
You can't writebytetooffset to the ROM. The ROM, as it name suggest is READ ONLY MEMORY.

What you must do is create a duplicate wild pokemon table, and write a routine which switches between the two based on time of day. This should be fairly simple to do :)
__________________
...
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old June 26th, 2017 (11:17 PM).
Skyro005's Avatar
Skyro005 Skyro005 is offline
 
Join Date: Oct 2016
Location: Belgium
Gender: Male
Nature: Lax
Posts: 38
Quote:
Originally Posted by FBI View Post
You can't writebytetooffset to the ROM. The ROM, as it name suggest is READ ONLY MEMORY.

What you must do is create a duplicate wild pokemon table, and write a routine which switches between the two based on time of day. This should be fairly simple to do :)
Thx for the reply! I think I know how to make such a routine, but where do I insert it without breaking amap? (amap searches for the pointer after 03 48 04 80 09 E0 00 00 FF FF 00 00 , if I change that pointer to point to my routine amap probably wouldn't be able to read the data anymore, right?)

Is there any way to change the pointer only when entering the map?
__________________
Make EMERALD great again!

- - - - - - - - - - - - - - - - - - - - - - -
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old June 27th, 2017 (2:45 AM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
Quote:
Originally Posted by Skyro005 View Post
Thx for the reply! I think I know how to make such a routine, but where do I insert it without breaking amap? (amap searches for the pointer after 03 48 04 80 09 E0 00 00 FF FF 00 00 , if I change that pointer to point to my routine amap probably wouldn't be able to read the data anymore, right?)

Is there any way to change the pointer only when entering the map?
No idea how Amap handles things, I don't use it.
__________________
...
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old June 27th, 2017 (12:54 PM).
Koople's Avatar
Koople Koople is offline
 
Join Date: Nov 2016
Nature: Relaxed
Posts: 88
Here is a thread that talks about Day/Night wild pokemon switching. I haven't implemented it myself but hopefully it should answer your questions!
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
Ad Content

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 9:18 AM.