The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Protagonist PC 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 October 18th, 2017 (6:35 AM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
Hi all,

I recently started scripting so this might be a noob question.
Got a problem with the PC of my protagonist. I copied the script from Fire Red into my own ROM, but for some reason the script doesn't end when clicking cancel.

My problem in-game:
Protagonist PC Problem.gif

I don't see the problem in the script.

'---------------
#org 0x805C80
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x8805CB4
lockall
setvar 0x8004 0x20
special 0x17D
setvar 0x8004 0x1
special 0xD6
sound 0x4
msgbox 0x8805D20 MSG_KEEPOPEN '"[player] booted up the PC."
special 0xF9
waitstate
special 0x190
releaseall
end

'---------------
#org 0x805CB4
release
end


'---------
' Strings
'---------
#org 0x805D20
= [player] booted up the PC.
------------------------------------

Anyone knows why this occurs?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old October 18th, 2017 (4:40 PM).
Lunos's Avatar
Lunos Lunos is offline
Random Uruguayan User
 
Join Date: Oct 2008
Location: Montevideo (Uruguay)
Gender: Male
Nature: Lonely
Posts: 3,000
This is extremely weird because the script has a msgbox 0x4 without a closeonkeypress in the Vanilla ROM, but have you tried changing it to 0x6 in your ROM?
Also, make sure in the block editor, that the tile with that PC has the Background Byte 00 20 (Block is covered by Hero).
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old October 18th, 2017 (5:58 PM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
First, thanks for your interest;)

The block already has background byte 00 20. Changing the msgbox didn't have an effect.

Might there be anything else I'm missing?
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old October 19th, 2017 (3:52 PM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
I'm using JPAN's hacked engine by the way. Maybe that causes this to happen.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old October 19th, 2017 (4:05 PM).
DarkPsychic's Avatar
DarkPsychic DarkPsychic is offline
 
Join Date: Jul 2012
Location: CO
Gender: Male
Nature: Timid
Posts: 146
Try special 0xFA and test it.
I know I had this problem as well.
Been awhile though so I can't really say.
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:16 AM.