PHO - Pokémon Hackers Online
Go Back   PHO - Pokémon Hackers Online > Discussion Board > Archive

Notices

Archive Old threads that serve no purpose are here.

 
 
Thread Tools Display Modes
Old 31st October 2013, 06:09 PM   #1
mewthree9000
Junior Trainer
 
mewthree9000's Avatar
 
Join Date: May 2010
Location: U.S.A.
Age: 27
Posts: 70
mewthree9000 mewthree9000
Default Instant MoveCamera in FireRed and Emerald!


Translated by: Mewthree9000

Instant MoveCamera in FireRed and Emerald!

Hi friends! Well, as the topic title suggests, this here will explain a routine in ASM and Hex code that I found ... The first corresponds to Fire Red USA and has been made by TSK on PokéCommunity, while the latter corresponds to Emerald USA and has been done by Sonicarvalho ... I do not think it necessary to specify the credits if you use something from here, but if you feel the need go and contact the original authors.


Fire Red USA

Well this is quite simple, you just have to insert this ASM routine in a Fire Red ROM
(You must place it on an offset multiple of 4 ... or where the offset ends in 0, 4, 8 or C):

Code:
Spoiler:

07B5 0548 0168 054A 1288 0A80 0231 044A 1288 0A80 07BD C046 0850 0003 BC70 0302 BE70 0302


Paste it into a blank spot in your ROM with any Hex editor.

And here are the specials you have to use:
Spoiler:

special 0x113 '(to remove the camera and the movements)
special 0x114 '(to return normal camera and movements)
special 0x8E


Well, that's not all, this is how to use it properly(you will have to use this instead of the writebytetooffset):

Code:
Spoiler:

setvar 0x8002 0xXX '(XX = coordinate of the camera)
setvar 0x8003 0xYY '(YY = coordinate of the camera)
callasm 0x[OFFSET OF CODE YOU INSERTED + 1]



----

Emerald USA (Sonicarvalho)

Well, this time the process is even easier! Especially if you've expanded the ROM to 32 MB (since there is really little room in Emerald). You'll need to paste this into a blank space in your ROM
(You must place it on an offset multiple of 4 ... or where the offset ends in 0, 4, 8 or C):

Code:
Spoiler:

07 B5 05 48 01 68 05 4A 12 88 0A 80 02 31 04 4A 12 88 0A 80 07 BD C0 46 8C 5D 00 03 DC 75 03 02 DE 75 03 02



Once again use the setvar instead of writebytetooffset:

Code:
Spoiler:

setvar 0x8002 0xXX '(XX = coordinate of the camera)
setvar 0x8003 0xYY '(YY = coordinate of the camera)
callasm 0x[OFFSET OF CODE YOU INSERTED + 1]



Finally, you have to insert these specials instead of the original Ruby USA:
Spoiler:

special special 0x116 instead of 0x113
special 0x91 0x8E instead of special
special special 0x117 instead of 0x114



Finally here is a sample script:
Spoiler:

#org 0x869C95
lock
faceplayer
msgbox 0x8869D62 MSG_NORMAL '"Echa un vistazo a esto..."
special 0x116
setvar 0x8002 0x7
setvar 0x8003 0xD
callasm 0x99557F1
special 0x91
movesprite 0xFF 0x11 0x7
movesprite 0x2 0x11 0x6
fadescreen 0x0
pause 0x40
msgbox 0x886A139 MSG_NORMAL '"żNo es extrańo?"
fadescreen 0x1
special 0x116
setvar 0x8002 0x11
setvar 0x8003 0x7
callasm 0x99557F1
special 0x91
movesprite 0xFF 0x11 0x7
movesprite 0x2 0x11 0x6
special 0x117
fadescreen 0x0
msgbox 0x886A14B MSG_NORMAL '"Pero si es rarísimo!"
release
end

__________________
-Mewthree9000
We all fight a war within ourselves, a war of greatness, a war to become the best.
LIVE THE REVOLUTION, PHO!
Gotta Hack'em All!!




My current projects:
-Pokemon ChaosBlack[v2]
-!!Elite FireRed ROM Base!!
mewthree9000 is offline  
Likes Elsa, Linkandzelda liked this post
Sponsored Links
Old 31st October 2013, 11:14 PM   #2
droomph
握りモンスター
Ex-StaffPHO VIP
 
droomph's Avatar
 
Join Date: Apr 2012
Location: maybe.
Age: 21
Posts: 418
droomph
Default

Can you describe the point of this script?
__________________
droomph is offline  
Old 1st November 2013, 12:13 AM   #3
Pia Carrot
Orange Developer
Administrator
 
Pia Carrot's Avatar
 
Join Date: Aug 2010
Location: Valencia Island
Age: 22
Posts: 811
Pia Carrot Pia Carrot Pia Carrot Pia Carrot Pia Carrot
Default

Quote:
Originally Posted by droomph View Post
Can you describe the point of this script?
Instantly move the camera?
Pia Carrot is offline  
Likes GoGoJJTech liked this post
Old 1st November 2013, 02:10 AM   #4
droomph
握りモンスター
Ex-StaffPHO VIP
 
droomph's Avatar
 
Join Date: Apr 2012
Location: maybe.
Age: 21
Posts: 418
droomph
Default

Quote:
Originally Posted by Pia Carrot View Post
Instantly move the camera?
point of the script, not what it does.
__________________
droomph is offline  
Old 1st November 2013, 07:54 AM   #5
mewthree9000
Junior Trainer
 
mewthree9000's Avatar
 
Join Date: May 2010
Location: U.S.A.
Age: 27
Posts: 70
mewthree9000 mewthree9000
Default

Quote:
Originally Posted by droomph View Post
point of the script, not what it does.
Well it saves data space for one.
A normal camera script uses the applymovment system, so you would have to use a byte for every block crossed. 'Instant MoveCamera' uses one script to determine these movements, saves time, and all you have to do is enter the destination! You will shave off at least 30 minutes from every script you make using it.
__________________
-Mewthree9000
We all fight a war within ourselves, a war of greatness, a war to become the best.
LIVE THE REVOLUTION, PHO!
Gotta Hack'em All!!




My current projects:
-Pokemon ChaosBlack[v2]
-!!Elite FireRed ROM Base!!

Last edited by mewthree9000; 1st November 2013 at 07:57 AM.
mewthree9000 is offline  
Likes Elsa, Linkandzelda liked this post
Old 1st November 2013, 11:21 PM   #6
droomph
握りモンスター
Ex-StaffPHO VIP
 
droomph's Avatar
 
Join Date: Apr 2012
Location: maybe.
Age: 21
Posts: 418
droomph
Default

Quote:
Originally Posted by mewthree9000 View Post
Well it saves data space for one.
A normal camera script uses the applymovment system, so you would have to use a byte for every block crossed. 'Instant MoveCamera' uses one script to determine these movements, saves time, and all you have to do is enter the destination! You will shave off at least 30 minutes from every script you make using it.
ah. makes sense.

But could you explain how it works?
__________________
droomph is offline  
Old 3rd November 2013, 02:42 PM   #7
mewthree9000
Junior Trainer
 
mewthree9000's Avatar
 
Join Date: May 2010
Location: U.S.A.
Age: 27
Posts: 70
mewthree9000 mewthree9000
Thumbs up

Quote:
Originally Posted by droomph View Post
ah. makes sense.

But could you explain how it works?
Okay, that would take an explanation of ASM, for more information find a ASM tutorial: http://www.pokemonhackersonline.com/...RT-ASM-ROUTINE

The basic idea is your are calling a script with your event that then sets the location you want to use into variables, then calls the ASM routine using the script command "callasm"! The ASM routine uses the variables that you set in the script and uses them to perform a move camera operation, calculating the movement needed.
__________________
-Mewthree9000
We all fight a war within ourselves, a war of greatness, a war to become the best.
LIVE THE REVOLUTION, PHO!
Gotta Hack'em All!!




My current projects:
-Pokemon ChaosBlack[v2]
-!!Elite FireRed ROM Base!!
mewthree9000 is offline  
 

Tags
emerald, firered, instant, movecamera, [Tutorial]

Thread Tools
Display Modes

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. The time now is 06:53 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc. User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo.
Pokémon Hackers Online (PHO) is in no way affiliated with or endorsed by Nintendo LLC, Creatures, GAMEFREAK inc,
The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast.
All forum/site content (unless noted otherwise) and site designs are © 2006-2013 Pokémon Hackers Online (PHO).
Green Charizard Christos TreeckoLv100

"Black 2" by ARTPOP. Kyurem artwork by XOUS.

no new posts