Community

The PokéCommunity

We are still working on a better slogan!

Visit Index



Advertise here

Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Notices

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
New threads in this forum are to be approved by a moderator before they are displayed.

Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #276    
Old November 25th, 2008, 12:01 AM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006

Advertise here
Quote:
Originally Posted by Roland Auron View Post
Where do I go to change that?
There's an Open button in the toolbar. Click it and and Open dialog will be shown. From there, you'll see a combobox where "Script Files" is selected by default.
  #277    
Old November 25th, 2008, 04:07 PM
VanillaThunderbolt's Avatar
VanillaThunderbolt
Generic User Title
 
Join Date: Aug 2008
Gender:
Send a message via AIM to VanillaThunderbolt Send a message via Skype™ to VanillaThunderbolt
Mmkay, I'm a scripting noob, not gonna lie.
I followed the tutorial and understand basic scripting.
How do I
1) Make it so after the script the player moves a certain direction? [Say down 1 space.]
2) After another event, this script isn't there anymore? [Like with the old guy in FR before/after you get the Pokedex].
  #278    
Old November 25th, 2008, 11:50 PM
Roland Auron
Beginning Trainer
 
Join Date: Nov 2008
Gender:
Whenever I click the open button it goes to my documents, so I do not see anything about Open dialog. Sorry I am very new to this.
  #279    
Old November 26th, 2008, 05:39 AM
machomuu's Avatar
machomuu
The Lights in the Sky are Stars
Community Supporter
 
Join Date: Apr 2008
Location: 'Murca
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by Roland Auron View Post
Whenever I click the open button it goes to my documents, so I do not see anything about Open dialog. Sorry I am very new to this.
At the bottom right of the documents thingy, it will say it's only looking for rubikons, it's a drop-down menu, click to and change it to gameboy advance roms
  #280    
Old November 26th, 2008, 06:41 AM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Quote:
Originally Posted by VanillaThunderbolt View Post
Mmkay, I'm a scripting noob, not gonna lie.
I followed the tutorial and understand basic scripting.
How do I
1) Make it so after the script the player moves a certain direction? [Say down 1 space.]
2) After another event, this script isn't there anymore? [Like with the old guy in FR before/after you get the Pokedex].
1) You just need to use the applymovement command (plus waitmovement 0x0).
The applymovement command has 2 params. The first one is the people number, the second is the pointer to the movements. For movements, see the tutorials around here.

2) In this case you need to use checkflag/setflag.
  #281    
Old November 27th, 2008, 03:46 AM
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL
Im comin' home...
Community Supporter Tier 1
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
Quote:
Originally Posted by HackMew View Post
1) You just need to use the applymovement command (plus waitmovement 0x0).
The applymovement command has 2 params. The first one is the people number, the second is the pointer to the movements. For movements, see the tutorials around here.

2) In this case you need to use checkflag/setflag.
I think that was a bit complicated... you might wanna try speaking... typing in a way that people can understand.. not everyone is as experienced in scripting or XSE as much as you or I....

To put what HackMew just said a bit simpler...

1) Try putting the applymovement command in your script, where you want it of course.
it looks like this. (In XSE)
applymovement 0 @pointer1

Applymovemnt is the command, and the 2 things after it are the parameters that are required to make the script work.

0 stands for the persons "People #" the People # can be found in Advance Map. when you click on a person.

the @pointer1 in the applymovement command is the thing that tells the command where to look for your movements.
You can type anything other than pointer1 if you want, so long as it does not have any spaces in it.

later in the script you have to type...

#org @pointer1

This is our movements!

underneath that, you would type #raw 00 FE

#raw tells XSE that you are typing in a line of raw code.
00 is the games movement code for the "Step one space down"
and FE tells the game to stop movements. If you don't have this, the game will freeze.

after your applymovemnt command is writen you need to put
waitmovement 0x0
or the script will freeze also...


alltogether, your applymovement would look like this....

Example:
#dynamic 0x800000

#org @start
lock
applymovement 0 @pointer1
waitmovement 0x0
release
end

#org @pointer1
#raw 00 FE


If you want that script to go away after you have done it, include the checkflag 0x1001 command before all of it...

it will check and see if flag # 1001 is set.
a flag is an in-game bit of information that tells tha game that something has happened, in short, it is a huge help in controlling in-game events.

We'll use 0x1001 as our flag, since I know for a fact it is safe.
(There are many flags, but some are used by the game, so you don't want to use them...)

so, add checkflag 0x1001 right after the lock command

Example:
lock
checkflag 0x1001


next, you need to tell the game what to check 1001 for...
after the line checkflag 0x1001, add if b_true goto @pointer2

this will make the game check to see if the flag is set, if it is, it will skip over whatever is underneath it, and move to a new section of the script.

We are not done yet... just activating the script wont set the flag, no, we need to set it maually, by adding a setflag command right under our waitmovement 0x0

Example:
waitmovement 0x0
setflag 0x1001


finally, we need to make a new section of the script, so, above the line
#org @pointer1

type in...
#org @pointer2

Example:
...
end

#org @pointer2

#org @pointer1
#raw 00 FE


now, if we do this, and we try activating the script twice, it will freeze, since the 2nd section of the script has no commands... so we want to add...

release
end

right under it.

all together, our script would look like this.
[spoiler]
Example:
#dynamic 0x800000

#org @start
lock
checkflag ox1001
if b_true goto @pointer2
applymovement 0 @pointer1
waitmovement 0x0
setflag 0x1001
release
end

#org @pointer2
release
end

#org @pointer1
#raw 00 FE


That is all about that really...

Too long? Too bad... or as we say on 4chan... tl:dr... To long;didn't read

And now a question to those who actually read this sentence, let alone read the whole script...

Should I write an XSE tutorial? In your opinion...
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
  #282    
Old November 27th, 2008, 04:05 AM
Shadowlink77's Avatar
Shadowlink77
WOW - LETHON - GANKEDD/ERASEDD
 
Join Date: Jul 2008
Location: HentaiLand
Nature: Quiet
Send a message via Windows Live Messenger to Shadowlink77
When i first started hacking pokemon roms I began with Pokescript what exactly are the Pros and Consof XSE?

It would be awasome if someone could list that for me. I need to know if i should be switching.
Please and Ty
  #283    
Old November 27th, 2008, 04:22 AM
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL
Im comin' home...
Community Supporter Tier 1
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
Quote:
Originally Posted by Shadowlink77 View Post
When i first started hacking pokemon roms I began with Pokescript what exactly are the Pros and Consof XSE?

It would be awasome if someone could list that for me. I need to know if i should be switching.
Please and Ty
Pros of XSE:
  1. Over 200 listed commands
  2. A debugging app built in, so if there is an error in your script, it will tell you 99% of the time
  3. A De-Compiling engine that is much more accurate than Pokescript
  4. There are no Compiling errors in XSE
  5. A GUI (Graphical User Interface)
  6. A built in Hex-Decimal Calculator
  7. A text-adjuster to help you tell when your text is too large for the game's text boxes
  8. Correct De-compilation of level scripts
  9. You can use both Static offsets, and Dynamic offsets, even in the same script.
    Example:
    Static offset 0x8800000 Dynamic offset @start
  10. A live updat, so you can check for updates, without having to browse the internet!

Cons of XSE................. Hmm....... An un-editable database? heh, not that important...
_______________________________________________________________________
Pros of PokeScript........ Editable database? lol That is all I can think of...

Cons of Pokescript
  1. You have to type the script in notepad. (Or a similar program)
  2. Errors in the coding of hte program, leads to ROM corruption / ccrashing
  3. not having as many features and helpful stuff as XSE...

As you can clearly see, XSE out-classes Pokescript.

Make the switch, it is worth it.
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
  #284    
Old November 30th, 2008, 06:30 PM
Roland Auron
Beginning Trainer
 
Join Date: Nov 2008
Gender:
I'm confused again. When I go to compile the Compiler Output pops up. I have tried to save it, but I'm unsure what to do. What am I messing up now?
  #285    
Old November 30th, 2008, 06:36 PM
pokemon hacker id's Avatar
pokemon hacker id
cute child
 
Join Date: Jul 2008
Location: ohio
Gender: Female
Nature: Gentle
for some reason it wont load my rom it u cant even see the rom

any 1 no wats rong??
  #286    
Old November 30th, 2008, 08:36 PM
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL
Im comin' home...
Community Supporter Tier 1
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
Quote:
Originally Posted by pokemon hacker id View Post
for some reason it wont load my rom it u cant even see the rom

any 1 no wats rong??
When you go to poen your ROM, there is a dropdown box that allows you to pick between script files. ( .rbh .rbc etc etc...) and roms
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
  #287    
Old December 1st, 2008, 01:02 PM
Hoshiko Aki's Avatar
Hoshiko Aki
Avatar rules
 
Join Date: Oct 2008
How do i made a give pokemon script?
  #288    
Old December 6th, 2008, 01:01 PM
Raizaiel's Avatar
Raizaiel
Well, I'll be conflabbed!
 
Join Date: Dec 2008
Location: Game Freak's outer space location.
Gender:
Nature: Impish
Send a message via AIM to Raizaiel Send a message via Yahoo to Raizaiel
Bah. I'm running XSE through Advance Map and I cannot get any of these damned scripts to work. The messages keep overriding the others and bleeding through, and half of the scripts decompile back into "checkobedience" after I compile them, therefore not doing anything when I walk up to some one and try to talk to them. Also, what XSE likes to do is alter my coding after I open the rom. It'll change my @talk or @speak or @garbledyflook to an offset number, which is fine...if it didn't duplicate a digit when it used that offset number again in the ending two lines of the script. Therefore, the message never pops up because, despite me doing everything exactly like the book, somehow my scripts mess up and change themselves into something that just doesn't work.

I've been stumped for hours. Could somebody help me?

An example of two message scripts, first is a person, second is another person.



#dynamic 0x16580B
#org @start
lock
faceplayer
message @text '"Technology is incredible!\pYou can ..." [THIS PART IS AUTOMATIC]
boxset 0x6
release
end

#org @text
= Technology is incredible!\pYou can now download and burn all\nsorts of movies via the Internet!



#dynamic 0x800323
#org @start
lock
faceplayer
message @text
boxset 0x6
release
end

#org @text
= The gym leader here is a secret./pI think it's someone from another town.

Last edited by Raizaiel; December 6th, 2008 at 01:16 PM.
  #289    
Old December 6th, 2008, 01:44 PM
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL
Im comin' home...
Community Supporter Tier 1
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
Quote:
Originally Posted by Raizaiel View Post
Bah. I'm running XSE through Advance Map and I cannot get any of these damned scripts to work. The messages keep overriding the others and bleeding through, and half of the scripts decompile back into "checkobedience" after I compile them, therefore not doing anything when I walk up to some one and try to talk to them. Also, what XSE likes to do is alter my coding after I open the rom. It'll change my @talk or @speak or @garbledyflook to an offset number, which is fine...if it didn't duplicate a digit when it used that offset number again in the ending two lines of the script. Therefore, the message never pops up because, despite me doing everything exactly like the book, somehow my scripts mess up and change themselves into something that just doesn't work.

I've been stumped for hours. Could somebody help me?

An example of two message scripts, first is a person, second is another person.



#dynamic 0x16580B
#org @start
lock
faceplayer
message @text '"Technology is incredible!\pYou can ..." [THIS PART IS AUTOMATIC]
boxset 0x6
release
end

#org @text
= Technology is incredible!\pYou can now download and burn all\nsorts of movies via the Internet!



#dynamic 0x800323
#org @start
lock
faceplayer
message @text
boxset 0x6
release
end

#org @text
= The gym leader here is a secret./pI think it's someone from another town.
Well, your first problem is trying to compile a script while running through A-map... I suggest just writing the script you need, then compiling it to the rom, then trying it out.... It would save you the hassle of your problem. Just load up XSE, write your scripts, then save them into the same folder, then go to tools, and batch compiler... select your ROM< and the folder where your script are, then check the scripts you want and hit compile!
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
  #290    
Old December 6th, 2008, 01:54 PM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Quote:
Originally Posted by Raizaiel View Post
Bah. I'm running XSE through Advance Map and I cannot get any of these damned scripts to work. The messages keep overriding the others and bleeding through, and half of the scripts decompile back into "checkobedience" after I compile them, therefore not doing anything when I walk up to some one and try to talk to them. Also, what XSE likes to do is alter my coding after I open the rom. It'll change my @talk or @speak or @garbledyflook to an offset number, which is fine...if it didn't duplicate a digit when it used that offset number again in the ending two lines of the script. Therefore, the message never pops up because, despite me doing everything exactly like the book, somehow my scripts mess up and change themselves into something that just doesn't work.

I've been stumped for hours. Could somebody help me?
[...]
See my answer in the other thread.
  #291    
Old December 6th, 2008, 03:33 PM
machomuu's Avatar
machomuu
The Lights in the Sky are Stars
Community Supporter
 
Join Date: Apr 2008
Location: 'Murca
Gender: Male
Nature: Relaxed
I've been wondering this for a while, when you decompile a script, is there a way to recompile it into regular script form?
  #292    
Old December 6th, 2008, 06:53 PM
Darthatron's Avatar
Darthatron
巨大なトロール。
Community Supporter
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 23
Gender: Male
Nature: Modest
Quote:
Originally Posted by machomuu View Post
I've been wondering this for a while, when you decompile a script, is there a way to recompile it into regular script form?
You mean decompile them into a Dynamic Script? Not in the public version. :D
あなた は しきしゃ です
わたし は ばか です
  #293    
Old December 7th, 2008, 02:36 AM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Quote:
Originally Posted by machomuu View Post
I've been wondering this for a while, when you decompile a script, is there a way to recompile it into regular script form?
Let me say that what you get is the regular form. On the newest version, through, you will be able to refactor the script after decompiling aka converting it to dynamic.
  #294    
Old December 7th, 2008, 12:36 PM
machomuu's Avatar
machomuu
The Lights in the Sky are Stars
Community Supporter
 
Join Date: Apr 2008
Location: 'Murca
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by HackMew View Post
Let me say that what you get is the regular form. On the newest version, through, you will be able to refactor the script after decompiling aka converting it to dynamic.
Ooooh. Thanks Hackmew :D.
  #295    
Old December 7th, 2008, 04:15 PM
pokemon hacker id's Avatar
pokemon hacker id
cute child
 
Join Date: Jul 2008
Location: ohio
Gender: Female
Nature: Gentle
I have something like this but it won't load my rom any one know whats wrong ???????
  #296    
Old December 8th, 2008, 02:40 AM
Darthatron's Avatar
Darthatron
巨大なトロール。
Community Supporter
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 23
Gender: Male
Nature: Modest
Quote:
Originally Posted by pokemon hacker id View Post
I have something like this but it won't load my rom any one know whats wrong ???????
Unless you have this specific program, or tell us exactly which program you are using, we can't help you. :\
あなた は しきしゃ です
わたし は ばか です
  #297    
Old December 8th, 2008, 03:59 AM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Quote:
Originally Posted by pokemon hacker id View Post
I have something like this but it won't load my rom any one know whats wrong ???????
It will load the ROM. You just need to select "GameBoy Advance ROMs" from the Open dialog.
  #298    
Old December 8th, 2008, 07:51 AM
groudonlover's Avatar
groudonlover
Mateus readies Hellfire...
 
Join Date: Aug 2008
Location: Lilycove City, Hoenn
Gender: Male
Nature: Modest
Send a message via Windows Live Messenger to groudonlover
How do you use the givepokemon command???
"How dare you enter the Sacred and Awesome presence of the Everlasting Know-it-all, Yoghurt!" --Yoghurt


WordPress Widget for GPXPlus by me!

Please help me hatch 'em!
  #299    
Old December 8th, 2008, 07:59 AM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Quote:
Originally Posted by groudonlover View Post
How do you use the givepokemon command???
Why don't you just decompile an in-game, working script? You'll get what you need in no time.
Don't forget to check the Command Help too.
  #300    
Old December 8th, 2008, 02:51 PM
pokemon hacker id's Avatar
pokemon hacker id
cute child
 
Join Date: Jul 2008
Location: ohio
Gender: Female
Nature: Gentle
yes it's the x.s.e. and I'm using Pokemon Fire Red (U)(Squirrels)
Closed Thread
Quick Reply

Sponsored Links


Advertise here
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 04:27 AM.

About Us
© 2002 - 2014 The PokéCommunity™, pokecommunity.com. Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.

Copyright
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com. PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator. Header artwork by Jordanice of deviantART.

Social Media
If you would like to stay up-to-date with us on the go, when we're down, or other such things, follow us on social media sites--most notibly Twitter, Facebook, and Google Plus--by clicking on the links provided.

Design presented by Peitharchia. Special thanks to Hiroshi Sotomura and Ausaudriel.