The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Freeze on executing script

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 December 4th, 2014 (1:23 PM).
danilolc's Avatar
danilolc danilolc is offline
 
Join Date: Dec 2014
Location: PKMN wolrd
Age: 23
Gender: Male
Posts: 10
My game freeze when execute this script:
Spoiler:
'---------------
#org 0x800031
lockall
applymovement 0x1 0x8800064
waitmovement 0x0
msgbox 0x8800071 MSG_KEEPOPEN '"Hey [player]! Do you slept good?\p..."
closeonkeypress
giveitem 0xD 0x1 MSG_OBTAIN
msgbox 0x88000E1 MSG_KEEPOPEN '"Good luck!"
closeonkeypress
applymovement 0x1 0x880006B
release
end


'---------
' Strings
'---------
#org 0x800071
= Hey [player]! Do you slept good?\pIt is time to start your [PK][MN]\njourney.\pI'm so uneasy.\pHere is a potion to you start.

#org 0x8000E1
= Good luck!


'-----------
' Movements
'-----------
#org 0x800064
#raw 0x56 'Exclamation Mark (!)
#raw 0x9 'Step Up (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0x1 'Face Up

#org 0x80006B
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x2 'Face Left


I selectet to execute in a script in Advanced Map (talking level - 03).
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old December 4th, 2014 (1:30 PM).
DarkenedEclipse's Avatar
DarkenedEclipse DarkenedEclipse is offline
Project Oak
 
Join Date: Jun 2014
Location: Sinnoh
Gender: Male
Nature: Bold
Posts: 207
Quote:
Originally Posted by danilolc View Post
My game freeze when execute this script:
Spoiler:
'---------------
#org 0x800031
lockall
applymovement 0x1 0x8800064
waitmovement 0x0
msgbox 0x8800071 MSG_KEEPOPEN '"Hey [player]! Do you slept good?\p..."
closeonkeypress
giveitem 0xD 0x1 MSG_OBTAIN
msgbox 0x88000E1 MSG_KEEPOPEN '"Good luck!"
closeonkeypress
applymovement 0x1 0x880006B
release
end



'---------
' Strings
'---------
#org 0x800071
= Hey [player]! Do you slept good?\pIt is time to start your [PK][MN]\njourney.\pI'm so uneasy.\pHere is a potion to you start.

#org 0x8000E1
= Good luck!


'-----------
' Movements
'-----------
#org 0x800064
#raw 0x56 'Exclamation Mark (!)
#raw 0x9 'Step Up (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0x1 'Face Up
#raw 0xFE

#org 0x80006B
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x2 'Face Left
#raw 0xFE


I selectet to execute in a script in Advanced Map (talking level - 03).
First of all, what the heck is the program you're using? As well, you're missing:
-dynamic offset
-#org @start
- it's only lock in the second line. Lockall doesn't exist in XSE language.
-face player after that "lockall"
-your wait movement after the applymovement
-finally the end of the movements code which is #raw 0xFE (I've bolded it in the script)
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old December 4th, 2014 (1:41 PM).
danilolc's Avatar
danilolc danilolc is offline
 
Join Date: Dec 2014
Location: PKMN wolrd
Age: 23
Gender: Male
Posts: 10
No, this is the compiled form of my script. The problem is that the game freeze when I walk up the script. The uncompiled version of script:
Spoiler:
#dynamic 0x800000
#org @main
lockall
applymovement 0x01 @movein
waitmovement 0x0
msgbox @hey 0x4
closeonkeypress
giveitem 0xD 0x1 MSG_OBTAIN
msgbox @gl 0x4
closeonkeypress
applymovement 0x01 @moveout
release
end

#org @movein
#raw 0x56
#raw 0x09
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x01

#org @moveout
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x08
#raw 0x02

#org @hey
= Hey \v\h01! Do you slept good?\pIt is time to start your \h53\h54\njourney.\pI'm so uneasy.\pHere is a potion to you start.

#org @gl
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old December 4th, 2014 (1:50 PM).
DarkenedEclipse's Avatar
DarkenedEclipse DarkenedEclipse is offline
Project Oak
 
Join Date: Jun 2014
Location: Sinnoh
Gender: Male
Nature: Bold
Posts: 207
Quote:
Originally Posted by danilolc View Post
No, this is the compiled form of my script. The problem is that the game freeze when I walk up the script. The uncompiled version of script:
Spoiler:
#dynamic 0x800000
#org @main
lockall
applymovement 0x01 @movein
waitmovement 0x0
msgbox @hey 0x4
closeonkeypress
giveitem 0xD 0x1 MSG_OBTAIN
msgbox @gl 0x4
closeonkeypress
applymovement 0x01 @moveout
release
end

#org @movein
#raw 0x56
#raw 0x09
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x01

#org @moveout
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x08
#raw 0x02

#org @hey
= Hey \v\h01! Do you slept good?\pIt is time to start your \h53\h54\njourney.\pI'm so uneasy.\pHere is a potion to you start.

#org @gl
Like I just said, you're missing #raw 0xFE and that second waitmovement. That is why it won't load into the ROM and it freezes because the script is incomplete. Try that and it should fix it. No matter compiled and uncompiled versions.
__________________
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old December 4th, 2014 (1:53 PM).
danilolc's Avatar
danilolc danilolc is offline
 
Join Date: Dec 2014
Location: PKMN wolrd
Age: 23
Gender: Male
Posts: 10
I put the #raw 0xFE in the end of movements but it still freezing.
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old December 4th, 2014 (2:00 PM).
DarkenedEclipse's Avatar
DarkenedEclipse DarkenedEclipse is offline
Project Oak
 
Join Date: Jun 2014
Location: Sinnoh
Gender: Male
Nature: Bold
Posts: 207
Quote:
Originally Posted by danilolc View Post
I put the #raw 0xFE in the end of movements but it still freezing.
How many times did you write the script to the rom? You probably overflowed the data and messed up the script
__________________
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old December 4th, 2014 (2:12 PM).
danilolc's Avatar
danilolc danilolc is offline
 
Join Date: Dec 2014
Location: PKMN wolrd
Age: 23
Gender: Male
Posts: 10
I'm sure this is in a free space. When i put this script in a person this works, but i need it in a script.
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old December 4th, 2014 (2:15 PM).
DarkenedEclipse's Avatar
DarkenedEclipse DarkenedEclipse is offline
Project Oak
 
Join Date: Jun 2014
Location: Sinnoh
Gender: Male
Nature: Bold
Posts: 207
Quote:
Originally Posted by danilolc View Post
I'm sure this is in a free space. When i put this script in a person this works, but i need it in a script.
Make it a person event, with the sprite invisible to the player
__________________
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old December 4th, 2014 (2:19 PM).
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
This is a green script tile, right? Have you set the Var Number and Unknown values in AdvanceMap?
__________________
Reply With Quote
  #10   Link to this post, but load the entire thread.  
Old December 4th, 2014 (2:25 PM). Edited December 4th, 2014 by danilolc.
danilolc's Avatar
danilolc danilolc is offline
 
Join Date: Dec 2014
Location: PKMN wolrd
Age: 23
Gender: Male
Posts: 10
Quote:
This is a green script tile, right? Have you set the Var Number and Unknown values in AdvanceMap?
Yes, I set they = 00
Reply With Quote
  #11   Link to this post, but load the entire thread.  
Old December 5th, 2014 (1:45 AM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
You can contact me in PC's discord server...
 
Join Date: May 2007
Age: 32
Gender: Male
Nature: Careful
Posts: 8,579
Quote:
Originally Posted by danilolc View Post
No, this is the compiled form of my script. The problem is that the game freeze when I walk up the script. The uncompiled version of script:
Spoiler:
#dynamic 0x800000
#org @main
lockall
applymovement 0x01 @movein
waitmovement 0x0
msgbox @hey 0x4
closeonkeypress
giveitem 0xD 0x1 MSG_OBTAIN
msgbox @gl 0x4
closeonkeypress
applymovement 0x01 @moveout
release
end

#org @movein
#raw 0x56
#raw 0x09
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x01
#raw 0xFE

#org @moveout
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x08
#raw 0x02
#raw 0xFE

#org @hey
= Hey \v\h01! Do you slept good?\pIt is time to start your \h53\h54\njourney.\pI'm so uneasy.\pHere is a potion to you start.

#org @gl
= Good luck!
Fixes are in red. ;)
__________________

Reply With Quote
  #12   Link to this post, but load the entire thread.  
Old December 5th, 2014 (2:29 AM). Edited December 5th, 2014 by Percy.
Percy's Avatar
Percy Percy is offline
 
Join Date: Sep 2014
Location: Asia
Gender: Male
Nature: Quiet
Posts: 3,045
Quote:
Originally Posted by destinedjagold View Post
Fixes are in red. ;)
You forgot the second "waitmovement 0" command...
=)

So, it'll look like this:
Code:
#dynamic 0x800000

#org @main
lockall
applymovement 0x01 @movein
waitmovement 0x0
msgbox @hey 0x4
closeonkeypress
giveitem 0xD 0x1 MSG_OBTAIN
msgbox @gl 0x4
closeonkeypress
applymovement 0x01 @moveout
waitmovement 0x0
releaseall
end

#org @movein
#raw 0x56
#raw 0x09
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x01
#raw 0xFE

#org @moveout
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x08
#raw 0x02
#raw 0xFE

#org @hey
= Hey \v\h01! Do you slept good?\pIt is time to start your \h53\h54\njourney.\pI'm so uneasy.\pHere is a potion to you start.

#org @gl
= Good luck!
__________________
i don't want to have a signature
Reply With Quote
  #13   Link to this post, but load the entire thread.  
Old December 5th, 2014 (8:32 AM).
danilolc's Avatar
danilolc danilolc is offline
 
Join Date: Dec 2014
Location: PKMN wolrd
Age: 23
Gender: Male
Posts: 10
I mean the problem isn't in the script, 'couse it works in a person event. I'm using it in the green script box.
Reply With Quote
  #14   Link to this post, but load the entire thread.  
Old December 5th, 2014 (10:28 AM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
You need to set a var number equal to a variable you will use within your script. The idea is that the green script tile will run if the variable is not set to the value given in the "unknown" section of advance map iirc.
__________________
...
Reply With Quote
  #15   Link to this post, but load the entire thread.  
Old December 5th, 2014 (10:40 AM).
danilolc's Avatar
danilolc danilolc is offline
 
Join Date: Dec 2014
Location: PKMN wolrd
Age: 23
Gender: Male
Posts: 10
Quote:
Originally Posted by FBI agent View Post
You need to set a var number equal to a variable you will use within your script. The idea is that the green script tile will run if the variable is not set to the value given in the "unknown" section of advance map iirc.
Thank you! Now it works.
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:07 AM.