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
  #51    
Old June 3rd, 2010, 04:16 PM
altariaking's Avatar
altariaking
Needs NO VMs...
 
Join Date: Dec 2009
Location: Scotland, Lesmahagow
Age: 39
Gender: Male
Nature: Naive
Send a message via Windows Live Messenger to altariaking
that would make the pokemon take a step after the player, which would be really bad looking and annoying
__________________
http://www.pokecommunity.com/member.php?u=253113
Reply With Quote
  #52    
Old June 4th, 2010, 02:54 AM
simdu68's Avatar
simdu68
asleep all summer zzZZ
 
Join Date: Feb 2010
Location: France
Age: 19
Gender: Male
Nature: Calm
oh I see! yeah, I didn't thought about that, because we can't make a sprite change map right? I see, so your idea is better because at least it will work not like mine

edit: oh, in fact why not put at every map entrance a script applymovement like this the same OW can always follow and your not obliged to put on every map a new OW.....I know there is a script where you follow another OW to an another map, we can do the same but just of one tile like this it doens't seem like you are walking unfreely
...
...
aarrghhh!!! I hate my english, I can never explain clearly what I want to say!! I bet no one understood what I mean '
I must really improve in scripting and in english to explein ly ideas.....
__________________
MY HACK:

Updated ;D



___________________________________________________________________



Supporter of:







Reply With Quote
  #53    
Old June 4th, 2010, 07:52 AM
Shiny Quagsire's Avatar
Shiny Quagsire
Author of MEH
 
Join Date: May 2009
Location: Hoenn Safari Zone
Age: 16
Gender: Male
Nature: Jolly
Let's just be cheap and put the pokemon away when the person rides the bike!

Anyways, I noticed while playing heart gold, that the pokemon just echo's the player's movements, like this:

player moves up
player moves up - pokemon moves up
player moves down - pokemon moves up
player moves right - pokemon moves down

...

and so on. Why don't we just make a list of the player's last three movements somewhere in the RAM, then use an ASM routine to apply it to the pokemon.
__________________



Reply With Quote
  #54    
Old June 4th, 2010, 07:57 AM
Full Metal's Avatar
Full Metal
C(++) Developer.
 
Join Date: Jan 2008
Location: In my mind.
Age: 18
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
Well, correct me if i'm wrong but...don't we have to find the routine that is executed on the player's movement?
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote
  #55    
Old September 23rd, 2010, 10:44 PM
colcolstyles's Avatar
colcolstyles
Yours truly
 
Join Date: May 2008
Location: The Bay Area
Gender: Male
Nature: Lonely
Good thing there's no revival rule here...

A discussion in my Physics class today (don't ask) prompted me to give this idea a concentrated effort. After several straight hours of hacking, I managed to create the following:

Spoiler:


It's pretty basic at the moment. For example, I haven't added support for ledges, running, or biking, I haven't tested what happens when the player changes maps, the following NPC can't be passed through, and I'm sure there are a bunch of other bugs I have yet to discover as well. However, I'm still happy with it. ^_^
__________________

Brother of Vrai
Reply With Quote
  #56    
Old September 24th, 2010, 04:36 AM
Derlo's Avatar
Derlo
Braziliam Hacker!! De Mossoró
 
Join Date: Aug 2007
Send a message via Windows Live Messenger to Derlo
Simply wonderful!
But I have a question.
This system also works in FR / LG, or only in R / S?
__________________



Pokémon
Essence of Light

Comming Soon...
Reply With Quote
  #57    
Old September 24th, 2010, 04:54 PM
colcolstyles's Avatar
colcolstyles
Yours truly
 
Join Date: May 2008
Location: The Bay Area
Gender: Male
Nature: Lonely
Quote:
Originally Posted by Derlo View Post
Simply wonderful!
But I have a question.
This system also works in FR / LG, or only in R / S?
I'm fairly certain that it could be ported to FR/LG but I have no interest in doing so.
__________________

Brother of Vrai
Reply With Quote
  #58    
Old September 24th, 2010, 06:59 PM
Omega Zero's Avatar
Omega Zero
Is back...
 
Join Date: Dec 2009
Location: I'm always living aren't I?
Age: 16
Gender: Male
Nature: Relaxed
Send a message via Skype™ to Omega Zero
wow! this is awesome it'll answer all our prayers if ported to Fr lg as well
but it'll soon be overused ;_;
__________________
Reply With Quote
  #59    
Old April 8th, 2011, 06:14 PM
AimayBee's Avatar
AimayBee
Mighty Spriter
 
Join Date: Feb 2010
Location: Cloud 9
Age: 21
Gender: Female
Nature: Gentle
Quote:
Originally Posted by colcolstyles View Post
Good thing there's no revival rule here...

A discussion in my Physics class today (don't ask) prompted me to give this idea a concentrated effort. After several straight hours of hacking, I managed to create the following:

Spoiler:


It's pretty basic at the moment. For example, I haven't added support for ledges, running, or biking, I haven't tested what happens when the player changes maps, the following NPC can't be passed through, and I'm sure there are a bunch of other bugs I have yet to discover as well. However, I'm still happy with it.
That is really amazing, have you made any improvements on it since posting this? x
__________________

I've had a few requests to make this hack an actual thing now. So I'm re-inserting the tileset into an earlier, non-corrupted file.



Let me know if you want the beta 0.5.
Reply With Quote
  #60    
Old April 8th, 2011, 07:02 PM
colcolstyles's Avatar
colcolstyles
Yours truly
 
Join Date: May 2008
Location: The Bay Area
Gender: Male
Nature: Lonely
Quote:
Originally Posted by AimayBee View Post
That is really amazing, have you made any improvements on it since posting this? x
I added functionality for running and ledge jumping. My system doesn't support map switching but I don't need that feature for my purposes.
__________________

Brother of Vrai
Reply With Quote
  #61    
Old April 9th, 2011, 11:37 AM
AimayBee's Avatar
AimayBee
Mighty Spriter
 
Join Date: Feb 2010
Location: Cloud 9
Age: 21
Gender: Female
Nature: Gentle
Quote:
Originally Posted by colcolstyles View Post
I added functionality for running and ledge jumping. My system doesn't support map switching but I don't need that feature for my purposes.
Have you tried to convert it over to firered? x
__________________

I've had a few requests to make this hack an actual thing now. So I'm re-inserting the tileset into an earlier, non-corrupted file.



Let me know if you want the beta 0.5.
Reply With Quote
  #62    
Old April 9th, 2011, 10:18 PM
colcolstyles's Avatar
colcolstyles
Yours truly
 
Join Date: May 2008
Location: The Bay Area
Gender: Male
Nature: Lonely
Quote:
Originally Posted by AimayBee View Post
Have you tried to convert it over to firered? x
I have not and, as I mentioned earlier, I have no intention of attempting to.
__________________

Brother of Vrai
Reply With Quote
  #63    
Old April 10th, 2011, 03:10 AM
AimayBee's Avatar
AimayBee
Mighty Spriter
 
Join Date: Feb 2010
Location: Cloud 9
Age: 21
Gender: Female
Nature: Gentle
Quote:
Originally Posted by colcolstyles View Post
I have not and, as I mentioned earlier, I have no intention of attempting to.
Would you give it to someone who would attempt it? x
__________________

I've had a few requests to make this hack an actual thing now. So I'm re-inserting the tileset into an earlier, non-corrupted file.



Let me know if you want the beta 0.5.
Reply With Quote
  #64    
Old April 10th, 2011, 05:08 AM
Darthatron's Avatar
Darthatron
巨大なトロール。
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 22
Gender: Male
Nature: Modest
Quote:
Originally Posted by AimayBee View Post
Would you give it to someone who would attempt it? x
And capable.

Darthatron, for example.
__________________
あなた は しきしゃ です
わたし は ばか です
Reply With Quote
  #65    
Old April 10th, 2011, 05:20 AM
Crimson Stardust's Avatar
Crimson Stardust
Anime Addiction
 
Join Date: Mar 2009
Location: It is for me to noe and all of you to find out
Age: 21
Gender: Male
Nature: Relaxed
Send a message via AIM to Crimson Stardust Send a message via Windows Live Messenger to Crimson Stardust
Quote:
Originally Posted by Darthatron View Post
And capable.

Darthatron, for example.
haha..yeah!
It would be great..
__________________



Reply With Quote
  #66    
Old April 10th, 2011, 09:29 AM
knizz's Avatar
knizz
 
Join Date: Aug 2007
Quote:
Originally Posted by Darthatron View Post
And capable.

Darthatron, for example.
And don't forget me. I have the database.
__________________
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
  #67    
Old April 10th, 2011, 10:06 AM
AimayBee's Avatar
AimayBee
Mighty Spriter
 
Join Date: Feb 2010
Location: Cloud 9
Age: 21
Gender: Female
Nature: Gentle
Quote:
Originally Posted by Darthatron View Post
And capable.

Darthatron, for example.
Quote:
Originally Posted by knizz View Post
And don't forget me. I have the database.
Like these people. lol They could do it.
__________________

I've had a few requests to make this hack an actual thing now. So I'm re-inserting the tileset into an earlier, non-corrupted file.



Let me know if you want the beta 0.5.
Reply With Quote
  #68    
Old April 10th, 2011, 05:03 PM
Full Metal's Avatar
Full Metal
C(++) Developer.
 
Join Date: Jan 2008
Location: In my mind.
Age: 18
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
Don't count me out!
I wouldn't even use it for a hack, only for a learning experience; IE To better myself.
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote
  #69    
Old April 10th, 2011, 06:18 PM
colcolstyles's Avatar
colcolstyles
Yours truly
 
Join Date: May 2008
Location: The Bay Area
Gender: Male
Nature: Lonely
...friggin' peer pressure.

Eh, I'll think about it. There's too much PC drama at the moment.
__________________

Brother of Vrai
Reply With Quote
  #70    
Old April 10th, 2011, 07:05 PM
AimayBee's Avatar
AimayBee
Mighty Spriter
 
Join Date: Feb 2010
Location: Cloud 9
Age: 21
Gender: Female
Nature: Gentle
Quote:
Originally Posted by colcolstyles View Post
...friggin' peer pressure.

Eh, I'll think about it. There's too much PC drama at the moment.
I guess it is peer pressure but people really like the follow me idea.

Even I have a way I could use it in my hack. lol

Also, isn't your post off topic? x
__________________

I've had a few requests to make this hack an actual thing now. So I'm re-inserting the tileset into an earlier, non-corrupted file.



Let me know if you want the beta 0.5.
Reply With Quote
  #71    
Old June 3rd, 2011, 09:45 AM
Jocaro's Avatar
Jocaro
Beginning Trainer
 
Join Date: May 2011
Gender: Male
Maybe this can help us with this little trouble:

"02037078 is a structure that controls the movement of, and only of, the player. However it can be associated to any NPC on screen.

The first two bits (0x03) of 02037078+0 determine the speed. 1 is normal. 2 is bike speed. 3 gives you a bike and changes itself to 2.

No matter what you write to 02037078+1 it is set to 0 again. If the value was 2 before the reset you get a bike. If you change the bike-byte the NPC turns into the hero.

02037078+2 and 02037078+3 behave like this:
0 0 Nothing pressed
0 0 Nothing pressed
1 1 Pressed forward
2 1 Pressed forward
2 1 Pressed forward
2 1 Pressed forward
0 0 Nothing pressed
2 1 Pressed forward
2 1 Pressed forward
0 0 Nothing pressed
0 0 Nothing pressed
1 1 Pressed forward
2 1 Pressed forward
2 1 Pressed forward

I don't know about 02037078+4.
02037078+5 sets the npc-id that is controlled by the keypad. (I wonder which numbers the npcs from connected maps have)
02037078+6 locks all movement when set to 1

More info about the NPCs is stored at 02036E38 in 16 0x24-byte long structures (Does that mean that there can't be more than 16 npcs in the overworld at the same time?!)
0x00 bits 7 and 6 are set when this npc is talking
0x01-0x0A unknown
0x0B height
0x0C-0x0F unknown
0x10 from (coords)
0x14 to (coords)
0x18 unknown
0x19 direction (in which the character actually looks)
0x1A unknown
0x1C direction (set when talked to but not always copied to 0x19)
0x1E unknown
0x20 direction (set after talk)
0x21-0x23 unknown

coordinates are saved as two halfwords (x and y)

The code for moving uses a table to convert the direction to relative coordinates.
Table: 083A64C8
Function that uses the table above: 08063A20
Function that uses the function above to move npcs: 0805C4F4

Note that the table contains 9 and not 5 directions. Yes. Game Freak planned to have diagonally moving npcs."

Thanks to Knizz quote in other thread.

I tryed this but the only troubles are that change in
02037078+5 dissapear whit warping or optios menu.

i xpect have contrbute to this theme

Maybe this some Knizz have info about the NPC's moves or moving in a map FR

showthread.php?t=205158&page=4 'in this site
showthread.php?t=205158&page=3 'in this site

Last edited by Jocaro; June 3rd, 2011 at 10:00 AM. Reason: For best info and clarity ;P
Reply With Quote
  #72    
Old June 6th, 2011, 05:24 AM
Meta Paradox
Researching FireRed...
 
Join Date: Apr 2011
Gender: Male
Nature: Serious
Yah, about the Hacked Engine. Darthatron's level script for the follow-me thingy can be translated into a normal script, I guess. So compile the script and replace it with JPAN's behavior byte hack to overwrite the behavior bytes' scripts, and voila!

Oh, and yeah, that was merely a suggestion. :D
__________________
Meta Paradox On The Web:
http://metaparadox.webs.com/
Reply With Quote
  #73    
Old June 6th, 2011, 01:29 PM
cbd98's Avatar
cbd98
A bouquet of oopsie dasies
 
Join Date: Feb 2011
Location: In your closet :D
Gender: Male
Nature: Relaxed
i have an idea... does anybody else remember the old mew from faraway island that would move the same way you did? maybe if you tried edit that script a little, it would work. of course it probably wouldn't, but its a thought
__________________
White FC: 0090-4467-9042

Strong Pokémon. Weak Pokémon. That is only the selfish perception of people. Truly skilled trainers should try to win with their favorites. -Karen

We are all books because we have spines and stories to tell.

Ground Monotype for the Ultimate Pokecommunity League
Reply With Quote
  #74    
Old June 7th, 2011, 02:43 AM
Hi-Techneon's Avatar
Hi-Techneon
Trainer
 
Join Date: Dec 2010
Location: Belgium
Age: 16
Gender: Male
Nature: Rash
Quote:
Originally Posted by cbd98 View Post
i have an idea... does anybody else remember the old mew from faraway island that would move the same way you did? maybe if you tried edit that script a little, it would work. of course it probably wouldn't, but its a thought
The Mew from Faraway Island moved exactly like you do, it didn't follow you. For example, if you first go up, and then you go left, the Mew would do exactly the same, instead of going up two times like a perfectly working following script.
__________________

VDex:
White:
Reply With Quote
  #75    
Old June 7th, 2011, 04:29 AM
Full Metal's Avatar
Full Metal
C(++) Developer.
 
Join Date: Jan 2008
Location: In my mind.
Age: 18
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
Quote:
Originally Posted by cbd98 View Post
i have an idea... does anybody else remember the old mew from faraway island that would move the same way you did? maybe if you tried edit that script a little, it would work. of course it probably wouldn't, but its a thought
Although it's not quite what we're looking for, it's a good place to look at. We could probably get some info on how to animate the pokemon's sprite and move it along with the player.
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
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 09:07 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.