< >
Hello, guest! Please log in or register.

The PokéCommunity

Go Back     The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub > Beginner’s Lounge [ARCHIVE] Simple Questions (SEARCH BEFORE ASKING A QUESTION)

Notices

Beginner’s Lounge Where all good (and bad) ideas start. This is the Beginner’s Lounge, where if you need a helping hand or want to develop your small ideas, you bring it here. We won't bite.

Closed Thread Closed Thread
 
Thread Tools
  #25426    
Old June 5th, 2013 (12:14 PM).
GoGoJJTech's Avatar
GoGoJJTech GoGoJJTech is offline
http://GoGoJJTech.com (WIP!)
Gold Tier
 
Join Date: Nov 2012
Location: Earth
Age: 17
Gender: Female
Nature: Jolly
Posts: 2,352
#include stditems.rbh

'---------------
#org 0x800200
checkitem ITEM_RARECANDY 0x5
compare LASTRESULT 0x5
if 0x1 goto 0x880020D
end

'---------------
#org 0x80020D
lock
end

Do this, It should work if your level script is correct.

Relevant Advertising!

  #25427    
Old June 5th, 2013 (12:34 PM).
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Posts: 1,766
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by buckeyestilidie View Post
What do you mean? Also KarateKid serious question..... Are you Albert Einstein?? Lol seriously dude not a question goes unasked without you giving the correct answer to it. Much love and respect to you dude.
Gogojjtech beat me to the answer of your first question.

Unfortunately, I am not Albert Einstein, but I do learn quickly and I really enjoy rom hacking and I like to share what I have learned with others, which is why I answer questions so much. There are many more hackers around that are much better than me, but have chosen not to help out as much. No disrespect meant to them, it just isn't their thing. I tend to enjoy helping people out, but most don't which is why they don't frequent these threads, and that is their personal feelings and choices which I respect also.

Paired with Simba
  #25428    
Old June 5th, 2013 (2:53 PM).
Zemekis's Avatar
Zemekis Zemekis is offline
The Booze Cruise
 
Join Date: Feb 2013
Location: 'Murica
Gender: Male
Posts: 22
Zem here, back with yet ANOTHER problem. Can anybody take a guess as to why my msgboxes and signposts look like this now (see attached image).

I don't think I did anything too drastic to the ROM, but this appears to have only happened since I patched with diegoisawesome's Force Male Gender patch.

Thanks again guys.
Attached Images
File Type: png WhyMe.png‎ (70.0 KB, 5 views) (Save to Dropbox)
  #25429    
Old June 5th, 2013 (3:17 PM).
GoGoJJTech's Avatar
GoGoJJTech GoGoJJTech is offline
http://GoGoJJTech.com (WIP!)
Gold Tier
 
Join Date: Nov 2012
Location: Earth
Age: 17
Gender: Female
Nature: Jolly
Posts: 2,352
You need to repoint msgboxes that don't work.
  #25430    
Old June 5th, 2013 (7:24 PM). Edited June 5th, 2013 by Zemekis.
Zemekis's Avatar
Zemekis Zemekis is offline
The Booze Cruise
 
Join Date: Feb 2013
Location: 'Murica
Gender: Male
Posts: 22
Quote:
Originally Posted by gogojjtech View Post
You need to repoint msgboxes that don't work.
Do you mean like just make a new "@[something]" in the script? I'll give it a shot.
*edit* It worked perfectly, thanks gogojjtech!
  #25431    
Old June 5th, 2013 (7:39 PM).
BlackWhiteRobin BlackWhiteRobin is offline
 
Join Date: Sep 2012
Age: 18
Gender: Male
Nature: Quirky
Posts: 448
Hiya guys!

Umm... When I re position the battle textboxes (the one showing HP, EXP, name, lvl etc.), do I have to hack the Video RAM too? I wanted to move it so (I could make sideview battles. I hate making backsprites.). If so, how? If not, how will I do it?

Sorry for the question that is a bit pointless for others!

Oh and what's this about #includestditems.rbh?

What does it do? Why is it needed?

  #25432    
Old June 5th, 2013 (7:55 PM).
Zemekis's Avatar
Zemekis Zemekis is offline
The Booze Cruise
 
Join Date: Feb 2013
Location: 'Murica
Gender: Male
Posts: 22
Quote:
Originally Posted by robin22gongon View Post
Oh and what's this about #includestditems.rbh?

What does it do? Why is it needed?
I'm interested too, i'd like to know where I can find the other include commands for XSE. I remember them being super useful when I'm writing in C++. I didn't even think to add in libraries in XSE. I'd be grateful for more info on this as well.
  #25433    
Old June 5th, 2013 (8:13 PM).
DrFuji's Avatar
DrFuji DrFuji is offline
Helfen, Wehren, Heilen
Crystal Tier
 
Join Date: Sep 2009
Location: Downia-upside
Age: 23
Gender: Male
Nature: Jolly
Posts: 1,322
Quote:
Originally Posted by robin22gongon View Post
Oh and what's this about #includestditems.rbh?

What does it do? Why is it needed?
Quote:
Originally Posted by Zemekis View Post
I'm interested too, i'd like to know where I can find the other include commands for XSE. I remember them being super useful when I'm writing in C++. I didn't even think to add in libraries in XSE. I'd be grateful for more info on this as well.
#includestditems.rbh allows you to substitute actual items names in place of hex values in XSE. In order to use it you will need the actual stditems.rbh file that comes bundled with most XSE downloads (If you don't have it you can download it here).

For example, in the line 'giveitem 0x15E 0x1 0x1', instead of typing '0x15E' I could type 'ITEM_POKEFLUTE' and XSE will be able to compile the script. This makes it easier for people who find it hard to work with numbers rather than names, or if they just don't know the hex value for a Pokemon, item, move etc.
  #25434    
Old June 5th, 2013 (8:26 PM).
BlackWhiteRobin BlackWhiteRobin is offline
 
Join Date: Sep 2012
Age: 18
Gender: Male
Nature: Quirky
Posts: 448
Quote:
Originally Posted by DrFuji View Post
#includestditems.rbh allows you to substitute actual items names in place of hex values in XSE. In order to use it you will need the actual stditems.rbh file that comes bundled with most XSE downloads (If you don't have it you can download it here).

For example, in the line 'giveitem 0x15E 0x1 0x1', instead of typing '0x15E' I could type 'ITEM_POKEFLUTE' and XSE will be able to compile the script. This makes it easier for people who find it hard to work with numbers rather than names, or if they just don't know the hex value for a Pokemon, item, move etc.
Oh so that's what it was about. Hey I can edit that right? So in the stditems.rbh it says ITEM_POKEFLUTE I can edit it to make it say just POKEFLUTE so when I type i in XSE I just type POKEFLUTE? (If I don't make sense, please let me know.)

  #25435    
Old June 5th, 2013 (8:49 PM).
Zemekis's Avatar
Zemekis Zemekis is offline
The Booze Cruise
 
Join Date: Feb 2013
Location: 'Murica
Gender: Male
Posts: 22
Quote:
Originally Posted by DrFuji View Post
#includestditems.rbh allows you to substitute actual items names in place of hex values in XSE. In order to use it you will need the actual stditems.rbh file that comes bundled with most XSE downloads (If you don't have it you can download it here).

For example, in the line 'giveitem 0x15E 0x1 0x1', instead of typing '0x15E' I could type 'ITEM_POKEFLUTE' and XSE will be able to compile the script. This makes it easier for people who find it hard to work with numbers rather than names, or if they just don't know the hex value for a Pokemon, item, move etc.
Awesome, thanks for clearing that up!
  #25436    
Old June 5th, 2013 (9:17 PM).
DrFuji's Avatar
DrFuji DrFuji is offline
Helfen, Wehren, Heilen
Crystal Tier
 
Join Date: Sep 2009
Location: Downia-upside
Age: 23
Gender: Male
Nature: Jolly
Posts: 1,322
Quote:
Originally Posted by robin22gongon View Post
Oh so that's what it was about. Hey I can edit that right? So in the stditems.rbh it says ITEM_POKEFLUTE I can edit it to make it say just POKEFLUTE so when I type i in XSE I just type POKEFLUTE? (If I don't make sense, please let me know.)
Yup, you can do that. Just be careful to not make the same as other commands or they might get mixed up. That's why they're initially written as 'ITEM_POKEFLUTE' because you're never going to use that exact same line anywhere else in your scripts.
  #25437    
Old June 5th, 2013 (9:26 PM).
BlackWhiteRobin BlackWhiteRobin is offline
 
Join Date: Sep 2012
Age: 18
Gender: Male
Nature: Quirky
Posts: 448
I have another question also related to this:

Quote:
Originally Posted by robin22gongon View Post
Hiya guys!

Umm... When I re position the battle textboxes (the one showing HP, EXP, name, lvl etc.), do I have to hack the Video RAM too? I wanted to move it so (I could make sideview battles. I hate making backsprites.). If so, how? If not, how will I do it?

Sorry for the question that is a bit pointless for others!
Where's the Battle Textbox raw?

  #25438    
Old June 6th, 2013 (2:16 AM).
GoGoJJTech's Avatar
GoGoJJTech GoGoJJTech is offline
http://GoGoJJTech.com (WIP!)
Gold Tier
 
Join Date: Nov 2012
Location: Earth
Age: 17
Gender: Female
Nature: Jolly
Posts: 2,352
Most likely next to the battle textboxes in unlz. Or the pointer after the pointer to the textbox is the raw.
  #25439    
Old June 6th, 2013 (3:32 AM). Edited June 6th, 2013 by BlackWhiteRobin.
BlackWhiteRobin BlackWhiteRobin is offline
 
Join Date: Sep 2012
Age: 18
Gender: Male
Nature: Quirky
Posts: 448
Quote:
Originally Posted by gogojjtech View Post
Most likely next to the battle textboxes in unlz. Or the pointer after the pointer to the textbox is the raw.
Well, in unLZ there was none. (Unless it was Deep-Scan.) I don't know about this Pointer after the Pointer thing though.

Oh. And is there anything else I can use to export tilemaps.raw from a ROM except unLZ?

  #25440    
Old June 6th, 2013 (4:51 AM).
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Posts: 1,766
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by robin22gongon View Post
Well, in unLZ there was none. (Unless it was Deep-Scan.) I don't know about this Pointer after the Pointer thing though.

Oh. And is there anything else I can use to export tilemaps.raw from a ROM except unLZ?
GBA Graphics editor. It can be better as it allows you to search by offset instead of Lz number.

Paired with Simba
  #25441    
Old June 6th, 2013 (5:47 AM).
BlackWhiteRobin BlackWhiteRobin is offline
 
Join Date: Sep 2012
Age: 18
Gender: Male
Nature: Quirky
Posts: 448
Quote:
Originally Posted by karatekid552 View Post
GBA Graphics editor. It can be better as it allows you to search by offset instead of Lz number.
Thanks bro.

BTW guys, can someone link me to "A-Map 1.92 Hacked"? I found it in Petalburg Woods Forums. It says that it can support Jambo51's Map Name Extension Hack. I can't download it there because it's in a package. Link's dead too.

  #25442    
Old June 6th, 2013 (7:06 AM).
buckeyestilidie buckeyestilidie is offline
 
Join Date: May 2013
Gender: Male
Posts: 34
Quote:
Originally Posted by karatekid552 View Post
If checkitemamount won't compile, then that is because the name has been changed. Hit F1 in XSE and you will see a command database pop up. Now, scroll through the commands until you get to the command with the number "0x46". This is the command for checkitemamount. See what it's new name is and change your script accordingly.
Are you sure it's not 0x47? 0x46 is checkitemroom but 0x47 is checkitem.
  #25443    
Old June 6th, 2013 (7:13 AM).
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Posts: 1,766
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by buckeyestilidie View Post
Are you sure it's not 0x47? 0x46 is checkitemroom but 0x47 is checkitem.
Try both. On PokeScript, 0x46 wasn't checkitemroom, it was checkitemamount, so I don't know what to think.

Paired with Simba
  #25444    
Old June 6th, 2013 (9:10 AM).
buckeyestilidie buckeyestilidie is offline
 
Join Date: May 2013
Gender: Male
Posts: 34
Quote:
Originally Posted by karatekid552 View Post
Try both. On PokeScript, 0x46 wasn't checkitemroom, it was checkitemamount, so I don't know what to think.
#include stditems.rbh

'---------------
#org 0x800200
checkitem ITEM_RARECANDY 0x5
compare LASTRESULT 0x5
if 0x5 goto 0x880020D
end

'---------------
#org 0x80020D
lock
end

Tried checkitem, checkitemamount, and checkitemroom. Nothing. Lol if it helps I'm running Advancedmap 1.95
  #25445    
Old June 6th, 2013 (9:39 AM).
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Posts: 1,766
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by buckeyestilidie View Post
#include stditems.rbh

'---------------
#org 0x800200
checkitem ITEM_RARECANDY 0x5
compare LASTRESULT 0x5
if 0x5 goto 0x880020D
end

'---------------
#org 0x80020D
lock
end

Tried checkitem, checkitemamount, and checkitemroom. Nothing. Lol if it helps I'm running Advancedmap 1.95
Don't use 1.95. It probably isn't the problem, but it is an unfinished beta that is quite buggy. Also, try using the hex value for rarecandy. That might work better as your rbh file may be wrong.

Paired with Simba
  #25446    
Old June 7th, 2013 (4:11 AM).
AtecainCorp.'s Avatar
AtecainCorp. AtecainCorp. is offline
Rejishan awake...
 
Join Date: Jun 2008
Location: Takoabe Town (Region Thonsu)
Age: 23
Gender: Male
Nature: Hardy
Posts: 773
I have one question. How change wild Pokemon Battle theme in Pokemon Ruby? I want add to my expansion patch an JOHTO region isnide. And my question is about to change music to JOHTO WILD POKEMON THEME <Which I paste in header of TEST LITTLEROOT THEME> When you in Johto.
POKEMON RUBY RENEV - http://www.pokecommunity.com/showthread.php?t=341964
  #25447    
Old June 7th, 2013 (4:40 AM).
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Posts: 1,766
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by Ksiazek Bartlomiej View Post
I have one question. How change wild Pokemon Battle theme in Pokemon Ruby? I want add to my expansion patch an JOHTO region isnide. And my question is about to change music to JOHTO WILD POKEMON THEME <Which I paste in header of TEST LITTLEROOT THEME> When you in Johto.
You would have to branch the music loading routine to check which region you are in and play different music based on it.

Paired with Simba
  #25448    
Old June 7th, 2013 (5:16 AM).
AtecainCorp.'s Avatar
AtecainCorp. AtecainCorp. is offline
Rejishan awake...
 
Join Date: Jun 2008
Location: Takoabe Town (Region Thonsu)
Age: 23
Gender: Male
Nature: Hardy
Posts: 773
But can you told me where is that ROUTINE and how I would change it?
POKEMON RUBY RENEV - http://www.pokecommunity.com/showthread.php?t=341964
  #25449    
Old June 7th, 2013 (5:23 AM).
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Posts: 1,766
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by Ksiazek Bartlomiej View Post
But can you told me where is that ROUTINE and how I would change it?
Nope. You need to find that. Why? Becuase I would have to find it to tell you. Learn ASM and eventually you will be able to figure it out.

Paired with Simba
  #25450    
Old June 7th, 2013 (5:39 AM).
AtecainCorp.'s Avatar
AtecainCorp. AtecainCorp. is offline
Rejishan awake...
 
Join Date: Jun 2008
Location: Takoabe Town (Region Thonsu)
Age: 23
Gender: Male
Nature: Hardy
Posts: 773
This is Helpless answer...
POKEMON RUBY RENEV - http://www.pokecommunity.com/showthread.php?t=341964
Closed Thread Closed Thread
Quick Reply

Sponsored Links
Thread Tools

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 1:27 AM.


Contact Us Archive Privacy Statement Terms of Service Top