Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2011-08-26 15:46:09

pkmgoldfan
Member
Registered: 2011-02-27
Post 28/51

can someone help me adding new things to my hack?

updated the questions
and I got some new (not about bugs)

1 how can I make a script longer? when adding a event with jhotomap and decompile it with PKSV the script is too small :(.

2 how can i edit the shiny rate easly? i've read another topic but i didn't understand it at all (is there a easier way?)

3 how can i make a pokemon follow you, like pikachu in yellow, would be awesome if i can add that in my hack

4 how can i insert costom music (which does loops)

5 how to add more event battles in the game? like lugia & ho-oh?

6 how to edit the text in the credits? like putting my own name in the credits?

I think these things are alot harder to add in my hack
but i do have enough time and i hope some of you guys want to help me with these things :D

Last edited by pkmgoldfan (2011-08-29 15:12:40)

Offline

#2 2011-08-27 12:14:27

Cheestendo
Member
Registered: 2011-03-30
Post 288/319

Re: can someone help me adding new things to my hack?

1: It could be the scripts problem , idk how to fix that.

2: Those data can be found in  the hex editor i guess, wait for the smarter hackers to apply that.

3: Well about the movement's, you can change them with PKSV, you just have to choose the right script and usually the movement data is at the very end of the script.

You should learn hex , download it , search for some tutorials in youtube, or somesort.

Offline

#3 2011-08-27 12:48:34

Miksy91
Member
Registered: 2010-10-16
Post 498/2,306

Re: can someone help me adding new things to my hack?

pkmgoldfan wrote:

1 - when you lose from a trainer in the game (route 38 is the only one wich is confirmed) the hero is being warped to 'cherrygrove citty' with no reason... even if you've not even been there. does anyone know how this could happen?

While visiting Mr. Pokemon's house, the flying data for Cherrygrove City is activated and unless you get to another town before losing, you'll get warped into Cherrygrove (I assume you've visited Mr. Pokemon's house before that happened). Can be fixed by editing the script header of Mr. Pokemon's house.

Edit:
The code is actually in offset $188673: 3B 1A 03

3B = Blackout modifier
1A 03 = [Map Bank][Map No]


Fix it by going to that offset with PKSV and just remove command, blackoutmod 0x1A 0x3, and click Compile.


pkmgoldfan wrote:

3 - my hack still got many movement buggs and i know i can fix them with PKSV but some movements i can't... like rivals who walk away after you beated em... my question: is there a way to edit these aswel?

By movement bugs you probably mean that people will look weird when moving, right ?
If so, font is still loaded (with loadfont command) when you make a person move.

There is not enough space in the ram to show both text and movements for people at the same time;
when you want to make a person move, moving sprites have to be loaded and when to talk, font.

Last edited by Miksy91 (2011-08-27 12:55:48)

Offline

#4 2011-08-27 13:25:35

pkmgoldfan
Member
Registered: 2011-02-27
Post 30/51

Re: can someone help me adding new things to my hack?

thank you so much Miksy91!! problem 1 is solved now! i did visit mr pokemon before i lost the battle! it's fixed now :D
also i watched your hacking toturial videos on youtube and i do understand hex alot more now
thanks again!

and i meant something else with movement bugs sorry, when you battle your rival for example and you win he walks away the wrong direction, like in houses or water. when opening PKSV you can most of the time edit the movement of people at the end of the script but some do not have a movement code on the end of the script :( how do i edit them? like curt after you battled team rocked in the slopoke well...

as for problem 2 i guess i just have to wait some longer then?

Thanks!

Offline

#5 2011-08-27 14:56:42

Miksy91
Member
Registered: 2010-10-16
Post 500/2,306

Re: can someone help me adding new things to my hack?

At 0x15319 begins a table which tells the game where you'll be sent when blackout occurs.
It's the size of 4-bytes for each map that has flying data:
[Map Bank][Map No][X][Y]

Besides, the first map is "Your House", the second "Viridian PC", third "Pallet Town" etc.
The order is the same as in Bit flag list #2:
http://www.pokecommunity.com/showthread.php?t=127374

3200 = Your House
3300 = Viridian Pokecenter
3400 = Pallet Town
3500 = Viridian City
3600 = Pewter City
3700 = Cerulean City
3800 = Rock Tunnel
3900 = Vermilion City
3A00 = Lavender Town
3B00 = Saffron City
3C00 = Celadon City
...


pkmgoldfan wrote:

and i meant something else with movement bugs sorry, when you battle your rival for example and you win he walks away the wrong direction, like in houses or water. when opening PKSV you can most of the time edit the movement of people at the end of the script but some do not have a movement code on the end of the script :( how do i edit them? like curt after you battled team rocked in the slopoke well...

Got it!

"Kurt's script" in Slowpoke Well is a tricky one. If you follow the script pointer of person event (Kurt), it will lead to "51 06 5B" which is type of a script for regular people who can only talk. Then again, the script when Kurt moves takes place after the rocket grunt in the end of the first floor is beaten.
Normally, when you beat a trainer, the trainer can only say something afterwards but it's also possible to make it so that another script starts after the trainer is beaten (used rarely but in this situation, yes).

Gym leaders then again, use different kinds of scripts (which can be seen more often)...

Last edited by Miksy91 (2011-08-27 15:18:32)

Offline

#6 2011-08-28 11:32:48

pkmgoldfan
Member
Registered: 2011-02-27
Post 31/51

Re: can someone help me adding new things to my hack?

okay i do not understand the fly data.... sorry, i opened goldfinger and looked at the offset you gave me. I found ''your house'' and the map bank and map NO where correct
but when looking at goldmap the X and Y cordinates are not the same as in the hex edit... hex edit says there is a Y 3 cordinate but in goldmap you only have 0 1 and 2...
also i do not understand the numbers 3200, 3300, 3400 etc.
and how can i go to ''cherrygrove city'' fast in the hex editor? instead of counting the bytes untill i finaly find cherrygrove...
and for Viridian pokecenter... you do not spawn in  the pokecenter do you?

as for kurt, i looked in every offset i found in the slopoke well's map but i couldn't find any movement of kurt after the battle in PKSV.
when decompile the script of the last rocket grund i didn't found any movement and so for all the others.
can you give me an offset where i can find the movement of curt after the battle? or explain me how i can find it myself?

ohh btw, thanks for reacting on my questions so fast :)

Offline

#7 2011-08-28 13:57:16

Miksy91
Member
Registered: 2010-10-16
Post 504/2,306

Re: can someone help me adding new things to my hack?

pkmgoldfan wrote:

okay i do not understand the fly data.... sorry, i opened goldfinger and looked at the offset you gave me. I found ''your house'' and the map bank and map NO where correct
but when looking at goldmap the X and Y cordinates are not the same as in the hex edit... hex edit says there is a Y 3 cordinate but in goldmap you only have 0 1 and 2...

Those  0, 1 and 2 are blocks, not tiles (or "little squares").
Think about it: how many different tiles there are in the map where player is spawned when the game begins:
8 in x-size, 6 in y-size

The most upper-left square is (0, 0), the one next to it (1, 0).
The one in as below as possible and on the right is then (7, 5)

One block then again is size of 4 tiles; two in x-size and two in y-size.

pkmgoldfan wrote:

also i do not understand the numbers 3200, 3300, 3400 etc.
and how can i go to ''cherrygrove city'' fast in the hex editor? instead of counting the bytes untill i finaly find cherrygrove...
and for Viridian pokecenter... you do not spawn in  the pokecenter do you?

Viridian's pokecenter does have flying data but it is unused and cannot be seen without hacking.

pkmgoldfan wrote:

as for kurt, i looked in every offset i found in the slopoke well's map but i couldn't find any movement of kurt after the battle in PKSV.
when decompile the script of the last rocket grund i didn't found any movement and so for all the others.
can you give me an offset where i can find the movement of curt after the battle? or explain me how i can find it myself?

Kurt's moving script is part of the script of the last rocket grunt.
You cannot open that script straight with PKSV by following the script pointer of that person because it leads to this structure:

[Bit no. (2byte)][Trainer group][Trainer][2byte pointer to Text when seen][2byte pointer to text when trainer beaten][2byte pointer to script when lost (0000=Blackout)][2byte pointer to script if won/talked to again]

[2byte pointer to script if won/talked to again]
The script where this 2-byte pointer leads contains the movement of Kurt as well.

Last edited by Miksy91 (2011-08-28 13:59:01)

Offline

#8 2011-08-28 15:47:52

pkmgoldfan
Member
Registered: 2011-02-27
Post 32/51

Re: can someone help me adding new things to my hack?

okay i havent found it yet (curts script)
i did this:
in jhotomap i looked at the offset of the last rocket grund (wich was 111A3D)
opened a hex editor and loaded offset 111A3D
i found: F1 04 1F 01 DE 5D 23 5E 00 00 49 5A 47 4C

then i looked for the 49 and 5A after the 00 00 because i think it's the pointer to the script [if won/talked t again]
then i did 3X 4000 because the rocket grund is on bank 3 = C000
and i rotated 495A to 5A49 and substracted 4000 from it = 1A49
C000+ 1A49 = DA49

then i opened PKSV in offset DA49 but i couldn't find any movements there...

what went wrong? i must have done something completely stupid :(

Offline

#9 2011-08-28 16:13:16

Miksy91
Member
Registered: 2010-10-16
Post 505/2,306

Re: can someone help me adding new things to my hack?

pkmgoldfan wrote:

okay i havent found it yet (curts script)
i did this:
in jhotomap i looked at the offset of the last rocket grund (wich was 111A3D)
opened a hex editor and loaded offset 111A3D
i found: F1 04 1F 01 DE 5D 23 5E 00 00 49 5A 47 4C

then i looked for the 49 and 5A after the 00 00 because i think it's the pointer to the script [if won/talked t again]
then i did 3X 4000 because the rocket grund is on bank 3 = C000
and i rotated 495A to 5A49 and substracted 4000 from it = 1A49
C000+ 1A49 = DA49

then i opened PKSV in offset DA49 but i couldn't find any movements there...

what went wrong? i must have done something completely stupid :(

I don't know where you get this one: "rocket grund is on bank 3"
The bank you're on is 0x111A3D / 0x4000 = 0x44 and the start of it is at offset 0x44 * 0x4000 = 0x110000
Then, you add 0x1A49 to it and get 0x111A49 (which is straight after bytes 49 5A).

So what you want to do is to load the script at that offset with pksv.

Offline

#10 2011-08-28 18:08:24

pkmgoldfan
Member
Registered: 2011-02-27
Post 33/51

Re: can someone help me adding new things to my hack?

ahh thanks again!
I was confused with the banks i thought it was on bank 3 because slopoke well is bank 3 in jhotomap :p

thanks to you problem 3 is solved too now :)

the only problem thats left is 2 but i think i can find that one out when i try some harder :)

thanks!

Offline

#11 2011-08-29 15:13:03

pkmgoldfan
Member
Registered: 2011-02-27
Post 34/51

Re: can someone help me adding new things to my hack?

updated the first post :)

Offline

Board footer

Powered by FluxBB