The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > 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!
Research & Development programs in this forum are subject to moderator approval before they are displayed.


Reply
 
Thread Tools
  #1    
Old July 24th, 2011, 07:18 PM
Teh Blazer's Avatar
Teh Blazer
Divider of Zero
 
Join Date: Feb 2009
Location: 'MERICA
Age: 18
Gender: Male
Nature: Relaxed
Every hack I've seen has had a problem with the dreaded sideways stairs. Sure, they look pretty nice when not stepped on, but when stepped on they turn the seemingly multi-platformed and 3-D area turned flatter than soda in a broken down fridge. In Fire Red there is the small animation where the player goes up the stairs which seems good enough to use as a lead.

Would it be possible for us to make the stairs work?
__________________
Coming soon...
Reply With Quote
  #2    
Old July 26th, 2011, 05:30 AM
Jambo51's Avatar
Jambo51
Glory To Arstotzka
 
Join Date: Jun 2009
Gender: Male
Nature: Quiet
Personally, I think it would be better to look into the animations for downwards stairs for some clues on how we should be implementing this. There's a barely noticeable delay when walking down stairs.

If we could find this, and how it works, we could look at the behaviour bytes/background bytes which control how it affects the player's movement.

Thing is, we'd need to make the camera move too (not that difficult imo), and change the way that the existing stairs work, to create the illusion of the upstairs areas being above the lower areas.
__________________
Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
Reply With Quote
  #3    
Old July 27th, 2011, 05:52 AM
diegoisawesome's Avatar
diegoisawesome
Not the Script Help Thread
Community Supporter
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 17
Gender: Male
Nature: Quirky
To Teh Blazer:
Do you mean having the stair animations in RSE, or what..?
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
Reply With Quote
  #4    
Old July 27th, 2011, 09:58 AM
Teh Blazer's Avatar
Teh Blazer
Divider of Zero
 
Join Date: Feb 2009
Location: 'MERICA
Age: 18
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by diegoisawesome View Post
To Teh Blazer:
Do you mean having the stair animations in RSE, or what..?
Does RSE have sideways stairs? If so, then yes. I don't think it does (but maybe I'm crazy) however I will look into it.

I've just noticed a lot of hacks which are graphically great but the sideways stairs kills the game for me. Some hacks, like my demake, might have run into a big problem with the sideways stairs, which I think should be updated.
__________________
Coming soon...
Reply With Quote
  #5    
Old July 27th, 2011, 10:05 AM
diegoisawesome's Avatar
diegoisawesome
Not the Script Help Thread
Community Supporter
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 17
Gender: Male
Nature: Quirky
Quote:
Originally Posted by Teh Blazer View Post
Does RSE have sideways stairs? If so, then yes. I don't think it does (but maybe I'm crazy) however I will look into it.

I've just noticed a lot of hacks which are graphically great but the sideways stairs kills the game for me. Some hacks, like my demake, might have run into a big problem with the sideways stairs, which I think should be updated.
It doesn't, but I still don't get what you mean.
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
Reply With Quote
  #6    
Old July 27th, 2011, 10:20 AM
~Anbuja's Avatar
~Anbuja
Let's Keep It Simple
 
Join Date: Oct 2010
Location: In Snorlax Stomach
Gender: Male
Nature: Lonely
Send a message via Skype™ to ~Anbuja
Quote:
Originally Posted by diegoisawesome View Post
It doesn't, but I still don't get what you mean.
no he means like in platinum or black and white when u walk on a stair that leads to the side it should bring u kinda vertically down but in FR/LG R/S/E if u have an side stair in the hero walks straight that makes it unnaturally.
dont know if i was clear enough....
and yeah i have met this problem on FR to and i think it's not possible to get that animation in.....maybe it is but im not smart enough to do it....
__________________
Reply With Quote
  #7    
Old July 27th, 2011, 10:20 AM
Teh Blazer's Avatar
Teh Blazer
Divider of Zero
 
Join Date: Feb 2009
Location: 'MERICA
Age: 18
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by diegoisawesome View Post
It doesn't, but I still don't get what you mean.
Ok, I'll try to explain (but I'm terrible at explanations):

Some hacks decided to put in sideways stairs so when people are on a mountain, instead of getting off on the front, they can get off on the side. Not all hacks have this because it's not in the actual Fire Red ROM, but some hackers put it in.

Since they only put in the tile of the sideways stairs, it's flat just like all the other tiles when stepped on. I'd like for us to figure out a way that, when stepped on, some stuff will make the player go up or down just like in actual stairs.
__________________
Coming soon...
Reply With Quote
  #8    
Old July 27th, 2011, 10:23 AM
diegoisawesome's Avatar
diegoisawesome
Not the Script Help Thread
Community Supporter
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 17
Gender: Male
Nature: Quirky
Quote:
Originally Posted by Teh Blazer View Post
Ok, I'll try to explain (but I'm terrible at explanations):

Some hacks decided to put in sideways stairs so when people are on a mountain, instead of getting off on the front, they can get off on the side. Not all hacks have this because it's not in the actual Fire Red ROM, but some hackers put it in.

Since they only put in the tile of the sideways stairs, it's flat just like all the other tiles when stepped on. I'd like for us to figure out a way that, when stepped on, some stuff will make the player go up or down just like in actual stairs.
Ahh, gotcha. This makes it all clear.
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
Reply With Quote
  #9    
Old July 27th, 2011, 12:45 PM
Derlo's Avatar
Derlo
Braziliam Hacker!! De Mossoró
 
Join Date: Aug 2007
Send a message via Windows Live Messenger to Derlo
Well, I was taking a look at the RAM to see if anything happens when you use the side stairs of the houses.

More or less in 02020660, when the player up / down the stairs, a series of bytes are written, making the overworld has a diagonal movement.

But when that data is written out of the command "up / down stairs," the overworld leaves the center of the screen.
Thus the movements of the player are strangers to the map and other events on it.

Maybe this helps ... or not.
But what counts is the intention. ^ ^ v

Good luck
__________________



Pokémon
Essence of Light

Comming Soon...
Reply With Quote
  #10    
Old July 27th, 2011, 02:16 PM
Jambo51's Avatar
Jambo51
Glory To Arstotzka
 
Join Date: Jun 2009
Gender: Male
Nature: Quiet
Quote:
Originally Posted by Derlo View Post
Well, I was taking a look at the RAM to see if anything happens when you use the side stairs of the houses.

More or less in 02020660, when the player up / down the stairs, a series of bytes are written, making the overworld has a diagonal movement.

But when that data is written out of the command "up / down stairs," the overworld leaves the center of the screen.
Thus the movements of the player are strangers to the map and other events on it.

Maybe this helps ... or not.
But what counts is the intention. ^ ^ v

Good luck
This is the pre-OAM staging area. This makes sense for trying to create a form of moving upwards. Thing is, we'd need to shift the tiles up the same number of pixels too for it to actually have that sort of illusion of being above the lower area, we would also need to repeat this movement for the camera most likely. When walking over these tiles, we'd need to have a custom routine called which writes the upwards OAM movement.

Could be difficult to pull off, but not impossible!
__________________
Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
Reply With Quote
  #11    
Old August 23rd, 2011, 10:01 AM
Chaos Rush's Avatar
Chaos Rush
im sexy and i know it
 
Join Date: May 2007
Location: Taylor Swift
Gender: Male
Nature: Adamant
Just in case you guys don't get it, the topic starter is talking about this:
__________________

The Chaos Emerald ROM Base (it's gonna take awhile)

DS-style 64x64 Pokémon Sprite Resource NOW COMPLETED
Custom Sugimori-style Pokémon Sprite Resource IN PROGRESS


Non-Pokémon hacks I support:
Sonic Classic Heroes
Sonic 3 Complete
Reply With Quote
  #12    
Old August 23rd, 2011, 10:12 AM
Team Fail's Avatar
Team Fail
A Little Bit Of Sparkle
Community Supporter
 
Join Date: May 2009
Age: 19
Gender: Male
Nature: Brave
Quote:
Originally Posted by Teh Blazer View Post
Sure, they look pretty nice when not stepped on, but when stepped on they turn the seemingly multi-platformed and 3-D area turned flatter than soda in a broken down fridge
Awesome way of putting it. But I do agree, it looks really ugly when stepped on.
Quote:
Originally Posted by Chaos Rush View Post
Just in case you guys don't get it, the topic starter is talking about this:
I was thinking of either that, or the stairs on the insides of buildings. But that works too. Couldn't we just modify the tile or add an animation to simulate a 3D effect? I don't think it would work too well, though.
__________________

Pairs:
Kevin, Echidna
Follow me on Twitter! @TeamFail
Alt 1, リザードン
Miiverse
Pokémon Hackers Online
Alt 2: Jack Cayman



[04:20.39] <@GoGo> I WILL INSERT WITH PLEASURE
[04:20.45] <@GoGo> shut it Bela

[05:41.55] <Team_Fail> Blue Spider is interesting, but #MEHMasterRace
[05:42.20] <diegoisawesome> Team_Fail: Sounds like a bunch of unmotivated people that still want to try to take over the world
Reply With Quote
  #13    
Old August 23rd, 2011, 01:42 PM
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
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 Jambo51 View Post
This is the pre-OAM staging area. This makes sense for trying to create a form of moving upwards. Thing is, we'd need to shift the tiles up the same number of pixels too for it to actually have that sort of illusion of being above the lower area, we would also need to repeat this movement for the camera most likely. When walking over these tiles, we'd need to have a custom routine called which writes the upwards OAM movement.

Could be difficult to pull off, but not impossible!
I believe what we would have to do would be insanely difficult.
FIRST you would have to hook on to whatever copies the mirror memory into the GBA's VRAM or whatevers. Then if you wanted a decent looking 'zoom' effect- well...actually, I think there's an SWI for that. ( resizing to make it bigger ) but we'd also have to save a z position, ( granted that is only one byte ) and we could make a pretty nice hack out of this. For example, when moving up a layer in movement permissions, z position +1 ? (: Hell. With movement permissions in place we wouldn't even have to save the z position -- we could just make a hack that zooms appropriately according to the current movement permission ( why didn't Nintendo do this, I wonder? o: )

So there's my two cents, for what it's worth.
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote
  #14    
Old August 24th, 2011, 03:20 AM
TheDarkShark
Metal Headed Hacker
 
Join Date: May 2010
Location: Germany
Gender: Male
Nature: Calm
I have never worked with graphics on ASM level before, but I have another idea: If we manage to move the camera half a block up, all we need to do is reset the player's sprite's position in the OAM, right? I don't know how easy or hard it is, to move a sprite, but Derlo has posted some information on the camera moving.
Then all we need are two behaviour bytes: one for the stairs from left to right, and one for the other way round (ie. behaviour byte X: when stepped on from the right moves the camera down, when stepped on from the left moves camera up. Behaviour byte y does the exact opposite.)
No need for a z-coordinate.

@Full Metal: Wouldn't the zoom effect be a completely different thing? I think you would implement it in the overworld's main routine, not in a camera-moving-stairs-routine. Also you would have to zoom every OW-sprite on that layer. I don't think it's worth it, interesting idea, though.
__________________
There are two things every Rom-Hacker should learn:
1. Don't give away everything you know!

Reply With Quote
  #15    
Old August 24th, 2011, 04:26 AM
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
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 TheDarkShark View Post
@Full Metal: Wouldn't the zoom effect be a completely different thing? I think you would implement it in the overworld's main routine, not in a camera-moving-stairs-routine. Also you would have to zoom every OW-sprite on that layer. I don't think it's worth it, interesting idea, though.
That's called thinking outside of the box, and thinking laterally. :O
Anywaysss. It would create a much nicer effect than just moving the camera x/y. It would generate a psuedo 3D effect.
So that is definitely worth it, and is just as challenging as any of the ideas we don't have yet.
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote
  #16    
Old August 24th, 2011, 11:00 AM
Jambo51's Avatar
Jambo51
Glory To Arstotzka
 
Join Date: Jun 2009
Gender: Male
Nature: Quiet
Yes, there is a SWI (Or possibly a piece of callable code - not sure which) for upscaling sprites. Thing is, I don't understand how it would be used, and have no idea where the routine/SWI is either.

FWIW, I think Full Metal's idea would be a very good idea, but we would have to dedicate a large amount of research to it. So, for the time being, I think we should try to replicate Gen 4's camera, which doesn't zoom, but sort of... lags behind the player while walking up steps, and "fake" the z co-ordinates at a later time.
__________________
Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
Reply With Quote
  #17    
Old August 25th, 2011, 04:27 AM
TheDarkShark
Metal Headed Hacker
 
Join Date: May 2010
Location: Germany
Gender: Male
Nature: Calm
I just checked GBATek, and if I got it right, there's no such swi, neither in the GBA, nor in the NDS. I'm not sure, since my technical English isn't thaaaat good. (What is BgAffineSet, for example? )
Err, okay, just checked again, and it seems as if BgAffineSet and ObjAffineSet are the functions you are looking for (swi 0x0e and 0x0f, respectively) :
http://nocash.emubase.de/gbatek.htm#...alingfunctions

@Jambo51: What do you mean by "lags behind the player" (gnaah, my English isn't half as good as I want it to be >< )?

By the way: When I said "It's not worth it", I meant something like "Has no priority to me". Still, it's a good idea.
__________________
There are two things every Rom-Hacker should learn:
1. Don't give away everything you know!

Reply With Quote
  #18    
Old August 25th, 2011, 01:21 PM
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 18
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
He means that the player moves faster than the camera. (:
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote
  #19    
Old August 26th, 2011, 06:39 AM
TheDarkShark
Metal Headed Hacker
 
Join Date: May 2010
Location: Germany
Gender: Male
Nature: Calm
Ah, okay.
I've just been thinking of zooming tiles and OWs in the layers above the player. I don't know if zooming the tiles is necessary, but at least, you have to modify the zoom-level for all OWs, not only the player to make it look authentic, right? Just a "small" suggestion, though.
*English-skill returned*

By the way: Shouldn't we be talking about the sideway's stairs instead of a zooming camera with z-coordinate support?
__________________
There are two things every Rom-Hacker should learn:
1. Don't give away everything you know!

Reply With Quote
  #20    
Old August 26th, 2011, 01:32 PM
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 18
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
Oh yeah....good point. xD
But the zooming camera would accomplish the same effect...only prettier. b:
Which I think is what we've been talking about?
Right Now it's my understanding that we're deciding: is the effort for the zoom worth the output, or would we rather go with the lagging camera?
__________________

★ 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 11:28 AM.


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.