The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Script warp problem?

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 August 1st, 2014 (12:52 PM).
FaeBladez's Avatar
FaeBladez FaeBladez is offline
 
Join Date: Jan 2014
Location: Calgary AB Canada
Gender: Male
Posts: 109
So I was scripting, and everything was going well...until the warp nations attacked. It warps me to a black map I can't do anything. And yes 3.66 is a map.

Spoiler:
'---------------
#org 0x800372
lock
setvar 0x7000 0x1
applymovement 0x1 0x88003F4
waitmovement 0x0
applymovement 0xFF 0x880064D
waitmovement 0x0
msgbox 0x88003FF 0x6 '"[blue_fr]Oak: Hey [player]!"
msgbox 0x8800421 0x6 '"[red_fr][player]: Hi Prof."
msgbox 0x880043A 0x6 '"[blue_fr]Oak:Hows the pokemon I ga..."
msgbox 0x880047F 0x6 '"[red_fr][player]: Great"
msgbox 0x8800496 0x6 '"[blue_fr]Oak: Remember that you ar..."
msgbox 0x88004F0 0x6 '"[red_fr][player]:Why?"
msgbox 0x880053F 0x6 '"[blue_fr]Oak: A pokemon battle can..."
msgbox 0x8800574 0x6 '"[red_fr][player] Oh ha"
msgbox 0x8800580 0x6 '"[blue_fr]Oak: Anyways, are you rea..."
msgbox 0x88005D3 0x6 '"[red_fr][player]: Yep."
msgbox 0x8800616 0x6 '"[blue_fr]Oak: Onwards then!"
applymovement 0x6 0x8800644
waitmovement 0x0
setflag 0x1
warpmuted 0x3 0x66 0x1 0x0 0x0
release
end

'---------
' Strings
'---------
#org 0x8003FF
= [blue_fr]Oak: Hey [player]!

#org 0x800421
= [red_fr][player]: Hi Prof.

#org 0x80043A
= [blue_fr]Oak:Hows the pokemon I gave you\ndoing?\l

#org 0x80047F
= [red_fr][player]: Great

#org 0x800496
= [blue_fr]Oak: Remember that you are not\nallowed to bring out your pokemon\lon the ship.

#org 0x8004F0
= [red_fr][player]:Why?

#org 0x80053F
= [blue_fr]Oak: A pokemon battle can harm the\nship duh.

#org 0x800574
= [red_fr][player] Oh ha

#org 0x800580
= [blue_fr]Oak: Anyways, are you ready?

#org 0x8005D3
= [red_fr][player]: Yep.

#org 0x800616
= [blue_fr]Oak: Onwards then!


'-----------
' Movements
'-----------
#org 0x8003F4
#raw 0x12 'Step Left (Normal)
#raw 0x54 'Jump in Place (Facing Left)
#raw 0x62 'Exclamation Mark (!)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0xFE 'End of Movements

#org 0x80064D
#raw 0x3 'Face Right
#raw 0xFE 'End of Movements

#org 0x800644
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0xFE 'End of Movements
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old August 1st, 2014 (1:52 PM).
JosefigGaming's Avatar
JosefigGaming JosefigGaming is offline
 
Join Date: May 2013
Location: Portugal
Age: 23
Gender: Male
Posts: 287
I've never heard of "warpmuted"
Try simply "warp"
Code:
warp 0x3 0x66 0x1 0x0 0x0
__________________
Working on:


#fasterSneasel :D (nohomo)

Coolest IRC with the coolest people in the coolest rooms:
http://chat.linkandzelda.com:9090/?channels=romhacking,gogo,discovery,fluorite
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old August 1st, 2014 (2:05 PM).
FaeBladez's Avatar
FaeBladez FaeBladez is offline
 
Join Date: Jan 2014
Location: Calgary AB Canada
Gender: Male
Posts: 109
Quote:
Originally Posted by JosefigGaming View Post
I've never heard of "warpmuted"
Try simply "warp"
Code:
warp 0x3 0x66 0x1 0x0 0x0
tried, still warps me to a black screen
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old August 1st, 2014 (4:00 PM).
esperance's Avatar
esperance esperance is offline
 
Join Date: Mar 2010
Location: OH
Age: 26
Gender: Male
Nature: Relaxed
Posts: 3,830
That is not the issue. warpmuted is a command. The issue, assuming you are warping to map 3.66 (as it says in Advanced Map) is that you are not using hexadecimal in the script.

The real command should look like this:
Code:
warpmuted 0x3 0x42 0x1 0x0 0x0
You're telling it to warp to map 0x66, which would actually be map 102 in decimal (3.102 in Advanced Map).
__________________
What are you so afraid of?
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old August 1st, 2014 (5:49 PM).
FaeBladez's Avatar
FaeBladez FaeBladez is offline
 
Join Date: Jan 2014
Location: Calgary AB Canada
Gender: Male
Posts: 109
Quote:
Originally Posted by itari View Post
That is not the issue. warpmuted is a command. The issue, assuming you are warping to map 3.66 (as it says in Advanced Map) is that you are not using hexadecimal in the script.

The real command should look like this:
Code:
warpmuted 0x3 0x42 0x1 0x0 0x0
You're telling it to warp to map 0x66, which would actually be map 102 in decimal (3.102 in Advanced Map).
Well the dialogue and everything goes through and it teleports me....to somewhere. It ends up teleporting me to an ocean and I cant move in any direction. I thought at first it teleported me to the water on the side of the map but when I changed movement permissions I still couldnt move anywhere.
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old August 1st, 2014 (5:55 PM).
esperance's Avatar
esperance esperance is offline
 
Join Date: Mar 2010
Location: OH
Age: 26
Gender: Male
Nature: Relaxed
Posts: 3,830
That's probably because the game couldn't find a warp event at the specified location.

There are two ways you can go about doing this warp:

1. You warp to a warp event:
Code:
warp 0x3 0x42 0x<warp#> 0x<warpX> 0x<warpY>
2. You warp to a specific (X, Y) location:
Code:
warpmuted 0x3 0x42 0xFF 0x<X> 0x<Y>
If you use the first method, make sure the command matches the warp's info exactly, or it won't work. You can get the (X, Y) from Advanced Map.
__________________
What are you so afraid of?
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old August 2nd, 2014 (4:49 AM).
JosefigGaming's Avatar
JosefigGaming JosefigGaming is offline
 
Join Date: May 2013
Location: Portugal
Age: 23
Gender: Male
Posts: 287
Quote:
Originally Posted by itari View Post
That's probably because the game couldn't find a warp event at the specified location.

There are two ways you can go about doing this warp:

1. You warp to a warp event:
Code:
warp 0x3 0x42 0x<warp#> 0x<warpX> 0x<warpY>
2. You warp to a specific (X, Y) location:
Code:
warpmuted 0x3 0x42 0xFF 0x<X> 0x<Y>
If you use the first method, make sure the command matches the warp's info exactly, or it won't work. You can get the (X, Y) from Advanced Map.
Are you sure? I always use 0x0 for both the X and Y coordinate of the command "warp" and it works just fine
__________________
Working on:


#fasterSneasel :D (nohomo)

Coolest IRC with the coolest people in the coolest rooms:
http://chat.linkandzelda.com:9090/?channels=romhacking,gogo,discovery,fluorite
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old August 3rd, 2014 (1:51 PM).
FaeBladez's Avatar
FaeBladez FaeBladez is offline
 
Join Date: Jan 2014
Location: Calgary AB Canada
Gender: Male
Posts: 109
Alright so I just basically rewrote the script from scratch and everything works fine now, thanks guys
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:11 AM.