The PokéCommunity Forums  

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

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 July 13th, 2014 (10:22 AM).
iv0's Avatar
iv0 iv0 is offline
 
Join Date: Mar 2014
Gender: Male
Posts: 145
Code:
#dynamic 0x?????
#org @starscript
checkflag 0x82C
if 0x0 goto @cantenter
applymovement 0x7 @cannpc
waitmovement 0x0
msgbox @youcan 0x2
callstd 0x2
closeonkeypress
releaseall
end

#org @cantenter
applymovement 0x7 @cantnpc
waitmovement 0x0
msgbox @youcant 0x2
callstd 0x2
closeonkeypress
applymovement MOVE_PLAYER @cant
release
end

#org @youcan
= Go ahead, [player].\nCongrats, you're a truth CHAMPION.

#org @youcant
= Only true trainers can enter here,\nsorry.

#org @cantnpc
#raw 0x62
#raw 0x2
#raw 0xFE

#org @cant
#raw 0x10
#raw 0xFE

#org @cannpc
#raw 0x2
#raw 0xFE
I'm using XSE, and when I'm walking in these script the game break down.
Please, help me, thanks.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old July 13th, 2014 (10:38 AM).
machomuu's Avatar
machomuu machomuu is offline
Stuck in Hot Girl Summer
 
Join Date: Apr 2008
Location: Take a left, turn right at the next stop, bear left for a few mil
Gender: Female
Nature: Relaxed
Posts: 10,505
Just...initial question, why did you input question marks for your offset?
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old July 13th, 2014 (10:48 AM).
iv0's Avatar
iv0 iv0 is offline
 
Join Date: Mar 2014
Gender: Male
Posts: 145
Quote:
Originally Posted by machomuu View Post
Just...initial question, why did you input question marks for your offset?
I put this for make the movements with increments, and I can't undestand, I put the same script in the two, but only person event works (sorry for my English).

follow the image:
http://prntscr.com/42bk8y
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old July 13th, 2014 (10:53 AM).
machomuu's Avatar
machomuu machomuu is offline
Stuck in Hot Girl Summer
 
Join Date: Apr 2008
Location: Take a left, turn right at the next stop, bear left for a few mil
Gender: Female
Nature: Relaxed
Posts: 10,505
Oh, I know what you're problem is here.

Be sure to add this:

to your script tile.

Image courtesy of diegoisawesome.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old July 13th, 2014 (11:50 AM). Edited July 13th, 2014 by iv0.
iv0's Avatar
iv0 iv0 is offline
 
Join Date: Mar 2014
Gender: Male
Posts: 145
Quote:
Originally Posted by machomuu View Post
Oh, I know what you're problem is here.

Be sure to add this:
to your script tile.

Image courtesy of diegoisawesome.
freeze stop but script dont work.
on compiling:
http://prntscr.com/42c8d6
a can't fix it in replacing offsets
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old July 13th, 2014 (12:10 PM).
machomuu's Avatar
machomuu machomuu is offline
Stuck in Hot Girl Summer
 
Join Date: Apr 2008
Location: Take a left, turn right at the next stop, bear left for a few mil
Gender: Female
Nature: Relaxed
Posts: 10,505
They're the same offset, the 8 in front, if I'm correct, denotes an address.

Anyway, when exactly does the script freeze?
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old July 13th, 2014 (12:59 PM).
iv0's Avatar
iv0 iv0 is offline
 
Join Date: Mar 2014
Gender: Male
Posts: 145
Quote:
Originally Posted by machomuu View Post
They're the same offset, the 8 in front, if I'm correct, denotes an address.

Anyway, when exactly does the script freeze?
Without diegoisawesome's "fix" the game freeze starts when player is on the script tile.
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old July 13th, 2014 (1:02 PM).
machomuu's Avatar
machomuu machomuu is offline
Stuck in Hot Girl Summer
 
Join Date: Apr 2008
Location: Take a left, turn right at the next stop, bear left for a few mil
Gender: Female
Nature: Relaxed
Posts: 10,505
Yup, that's supposed to happen without the fix.

After you use it what happens? You mentioned that the script doesn't work, but does it not start, or...?
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old July 13th, 2014 (2:12 PM).
iv0's Avatar
iv0 iv0 is offline
 
Join Date: Mar 2014
Gender: Male
Posts: 145
Quote:
Originally Posted by machomuu View Post
Yup, that's supposed to happen without the fix.

After you use it what happens? You mentioned that the script doesn't work, but does it not start, or...?
Script don't start.
Reply With Quote
  #10   Link to this post, but load the entire thread.  
Old July 13th, 2014 (2:32 PM).
JosefigGaming's Avatar
JosefigGaming JosefigGaming is offline
 
Join Date: May 2013
Location: Portugal
Age: 23
Gender: Male
Posts: 287
Did you leave the offset at ???? or did you put an actual usable offset (i.e. 800000)
__________________
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
  #11   Link to this post, but load the entire thread.  
Old July 13th, 2014 (2:45 PM).
machomuu's Avatar
machomuu machomuu is offline
Stuck in Hot Girl Summer
 
Join Date: Apr 2008
Location: Take a left, turn right at the next stop, bear left for a few mil
Gender: Female
Nature: Relaxed
Posts: 10,505
I tried it myself, works fine for me.

I assume when you step on the tile and the script is supposed to start, you just get stuck, right?
Reply With Quote
  #12   Link to this post, but load the entire thread.  
Old July 13th, 2014 (3:31 PM).
JosefigGaming's Avatar
JosefigGaming JosefigGaming is offline
 
Join Date: May 2013
Location: Portugal
Age: 23
Gender: Male
Posts: 287
Okay, if it worked fine for machomuu, then you either didn't fill in the fields on A-Map, you didn't put a viable offset, or you changed the value of the var which you assigned to your script
__________________
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
  #13   Link to this post, but load the entire thread.  
Old July 13th, 2014 (7:31 PM). Edited July 13th, 2014 by iv0.
iv0's Avatar
iv0 iv0 is offline
 
Join Date: Mar 2014
Gender: Male
Posts: 145
The ??????? it's just a example.
There are my offset in the A-map:
http://prntscr.com/42gc6w

@edit
I'm working in other way to fix it. Thank you all


MODs can close the topic now
__________________

Reply With Quote
  #14   Link to this post, but load the entire thread.  
Old July 13th, 2014 (7:55 PM).
machomuu's Avatar
machomuu machomuu is offline
Stuck in Hot Girl Summer
 
Join Date: Apr 2008
Location: Take a left, turn right at the next stop, bear left for a few mil
Gender: Female
Nature: Relaxed
Posts: 10,505
Well it worked for me, so I think your issue might be with your person event numbers.
Reply With Quote
  #15   Link to this post, but load the entire thread.  
Old July 14th, 2014 (9:22 AM).
iv0's Avatar
iv0 iv0 is offline
 
Join Date: Mar 2014
Gender: Male
Posts: 145
Quote:
Originally Posted by machomuu View Post
Well it worked for me, so I think your issue might be with your person event numbers.
I do this:
Code:
#dynamic 0x?????
#org @starscript
lockall
checkflag 0x82C
if 0x0 goto @cantenter
setvar 0x4012 0x1
releaseall
end

#org @cantenter
applymovement 0x7 @cantnpc
waitmovement 0x0
msgbox @youcant 0x2
callstd 0x2
closeonkeypress
applymovement MOVE_PLAYER @cant
waitmovement 0x0
release
end

#org @youcant
= Only advanced trainers can enter here.

#org @cantnpc
#raw 0x62
#raw 0x2
#raw 0xFE

#org @cant
#raw 0x10
#raw 0xFE
Thank you very much for attention!
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.