Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2011-06-21 11:39:34

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

Helping ''Me'' is not a crime!

aloha.
this is my problems thread!
let's start of with this.

I tried improvising at scripting , i copy'd the data of the pokeball in the elm's lab. deleted that event
and recopy'd the data from that event into a new event in your room.
It shows the picture - elms talks - yes or no - you receive the pokemon -> here's the problem
it doesn't disappear.. the event doesn't disappear!
A picture perfectly showing it. I already got the pokemon.
kl1eoci5pr0ft0n8jwf.png

I will post next problems after the previous problem is solved!
thank you.

Offline

#2 2011-06-21 14:02:32

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 727/3,474

Re: Helping ''Me'' is not a crime!

Well there should have been a command in the script to set a bit flag, and to hide the event. The event itself should have the same flag listed in its data, so that it will be hidden when that flag is set. That way, it hides the event so it disappears then, and then it stays gone when you leave the map and come back.

Offline

#3 2011-06-21 18:23:35

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

Re: Helping ''Me'' is not a crime!

about the flags! i recopy'd everything
flag index - 40
flag bit - 6.
as suspected , i didn't manage to find anything about disappearing.
i will try something if it works out i will post my next problem .
if it doesn't i'll continue.

Offline

#4 2011-06-21 18:26:04

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 729/3,474

Re: Helping ''Me'' is not a crime!

Did you just copy the part of the script that set them without assigning the event itself to have them listed in its event data? You havent really made that part clear, sorry.

Offline

#5 2011-06-21 18:32:32

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

Re: Helping ''Me'' is not a crime!

i copy's everything! i said everything! the data in the map editor and the data in the script editor. now im trying to find a place in the map editor where somebody gives you a pokemon so i can see an example.

Offline

#6 2011-06-21 20:02:45

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 730/3,474

Re: Helping ''Me'' is not a crime!

When you said everything, the way it was worded I took it to mean everything from the script editor.

If you want an example of where someone gives you a Pokemon, try looking at Bill in his house in Goldenrod. He gives you the Eevee there.

Offline

#7 2011-06-22 11:32:35

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

Re: Helping ''Me'' is not a crime!

But is there a pokeball that contains a pokemon which can be picked up so it disappears!
except elm's lab?

edit:
ahahah i copy'd the data from Bill , lol.. now when i talk to the pokemon , it shows up credits!
yaaay i have completed the game before i get my first pokemon.

edit:
how can i get off the ''1Df'' thing in the end of the text?
it probably symbolizes that the text is too short or too long.

edit:
i can't still figure out how to make it disappear,
i made the whole script a lot shorter.

edit: ^^ that is not correct,
i can't make the script shorter. each time i compile , exit the script editor , the script generates back to it's state where it was in the beginning.

Last edited by Cheestendo (2011-06-22 14:53:16)

Offline

#8 2011-06-22 15:47:02

Miksy91
Member
Registered: 2010-10-16
Post 419/2,311

Re: Helping ''Me'' is not a crime!

Here is what you've gotta do:

1) Change the script pointer of that event point to blank space (00, 00, 00...)
2) Change its flag to whatever you desire that won't be used in your hack elsewhere

After that, go to the offset where you pointed the script with a hex editor.
There you write a script for making the game:
load font, display text, close text box, "waitbutton", give pokemon, hide person (the pokemon event), load moving sprites, return code2.

Last edited by Miksy91 (2011-06-22 15:49:22)

Offline

#9 2011-06-23 08:55:22

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

Re: Helping ''Me'' is not a crime!

1) where is the the script pointer of that event point to blank space?
is that in hex editor?
2) how can i know which flag is used and unused? :)
hmm sorry for my stupid'ness




EDIT:
i think i got it a little ..
But where is the script in the hex editor and how long is it?
I just have to make the script to 00 in hex editor and then make the script however i like it?

Last edited by Cheestendo (2011-06-25 11:01:45)

Offline

#10 2011-06-25 11:24:32

Miksy91
Member
Registered: 2010-10-16
Post 430/2,311

Re: Helping ''Me'' is not a crime!

What you've gotta do is to repoint the script elsewhere - I recommend pointing to blank space (00, 00, 00...) somewhere in the end of the bank where there is currently no written data. Then, you write your script in that offset.

Offline

#11 2011-06-25 14:58:14

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

Re: Helping ''Me'' is not a crime!

oh i think i got it :) so the offset is written in the ''script'' bar in the map editor?

ohhh. but i got to write the numbers in the hex editor?
i don't know which are which! like what number is faceplayer and all the other

Last edited by Cheestendo (2011-06-25 15:00:09)

Offline

#12 2011-06-25 15:03:41

Miksy91
Member
Registered: 2010-10-16
Post 434/2,311

Re: Helping ''Me'' is not a crime!

Cheestendo wrote:

oh i think i got it :) so the offset is written in the ''script'' bar in the map editor?

ohhh. but i got to write the numbers in the hex editor?
i don't know which are which! like what number is faceplayer and all the other

You don't write the offset in the script bar - you write the pointer to the offset.
I've made a tutorial about pointers in youtube so find my channel and check it out (should help a little bit understanding what to do).

Use scripting compendium for that problem: http://skeetendo.110mb.com/scriptingcodes_eng.htm

Last edited by Miksy91 (2011-06-25 15:03:53)

Offline

#13 2011-06-25 15:22:12

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

Re: Helping ''Me'' is not a crime!

oh geez. i hate pointers.
and the website doesn't work. errorz.
and i'll watch that tutorial about pointers and i'll post what i got out of it.

Offline

#14 2011-06-25 18:50:43

Sawakita
Administrator
Registered: 2010-10-16
Post 143/364

Re: Helping ''Me'' is not a crime!

Offline

#15 2011-06-26 10:57:38

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

Re: Helping ''Me'' is not a crime!

What if find the elm's labs give pokemon script and just make it double zero?? what then will happen? :0
And i watched that video, woah how can calculate that if my offset is 16e960?  or is it decimal 1501536?
so if..
[bank] = 0x16e960 : 0x4000 = ? it is impossible with the E inside of it.
16e960 = [bank * 0x4000] + [Pointer MOD(0x4000)]?






edit:
woaw this could be a huge problem either , i remade a map and this how it look when i talk to each of the trainers.
5o2s485o7tdm80l7ovnu.png

Last edited by Cheestendo (2011-06-26 11:23:15)

Offline

#16 2011-06-26 11:32:40

Miksy91
Member
Registered: 2010-10-16
Post 440/2,311

Re: Helping ''Me'' is not a crime!

You used johtomap to edit the map, right ?
If so, scripts of each trainer is messed up because Johtomap messes up the [Function] bytes of each person in the map (normal events will remain the same, items and trainers won't work anymore).

About calculating the pointer - you've to use a hexadecimal calculator.
Use Calculator (if you've Windows) and choose "Hex" mode.

Offline

#17 2011-06-26 16:01:20

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

Re: Helping ''Me'' is not a crime!

no i used gold map ! this never happened to me when i use goldmap. gold map probably messes up the [function] too. and normal events such as a talk script worked only once, i talked to him and he said
what he had to say , and next time i talk to him , he doesn't speak.

so the calculations are correct? the correct numbers?


edit: aha
i found a online calculator is this picture correct ? is the bank the decimal number?
nq3pdff90wvjxy3ovjzj.png

OH shiiiit this picture is incorrrect!
i wrote everything in the decimal field.but when i write it in hexadecimal it turns out like (10023525) something like that


edit: is the bank 16?

Last edited by Cheestendo (2011-06-26 16:10:46)

Offline

#18 2011-06-26 16:19:25

Miksy91
Member
Registered: 2010-10-16
Post 443/2,311

Re: Helping ''Me'' is not a crime!

The bank is 5B because,
0x16E960 : 0x4000 = 0x5B


And...
0x5B * 0x4000 = 0x16C000
0x5C * 0x4000 = 0x170000

and 0x16E960 is clearly an offset between those two.

Last edited by Miksy91 (2011-06-26 16:20:54)

Offline

#19 2011-06-26 16:29:55

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 745/3,474

Re: Helping ''Me'' is not a crime!

Also no, Goldmap does not mess up the function byte unless you change it yourself and do it wrong. When you say you remade a map, did you rebuild the events as well? Because if you rebuilt the events and didn't fix all the data in them you will get errors.

Offline

#20 2011-06-27 09:41:36

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

Re: Helping ''Me'' is not a crime!

gosh @mateo yes :( i rebuilt the event in johtomap and went mapping to goldmap :D

@miksy but where did you get the 5C?
and these are calculations what you pulled out .

[Bank] = 0x16E960 : 0x4000 = 0x5B
[Offset] = 0x16C000 + [Pointer MOD(0x4000)]?

now i have to .. hmm the pointer is - 0x16E960 - 0x16C000 = B960? or A960?

Offline

#21 2011-06-27 12:44:22

Miksy91
Member
Registered: 2010-10-16
Post 448/2,311

Re: Helping ''Me'' is not a crime!

0x5B * 0x4000 = 0x16C000

0x16E960 - 0x16C000 = 0x2960
0x2960 + 0x4000 = 0x6960 <--> 60 69

Offline

#22 2011-06-27 16:34:51

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

Re: Helping ''Me'' is not a crime!

wow now i understand so the pointer is 0x6960 but why did you change to 60 69? what's the difference?
hmm but in johtomap it shows different script location.
and how can i know which flags are used and which aren't?

Offline

#23 2011-06-27 17:12:00

Miksy91
Member
Registered: 2010-10-16
Post 451/2,311

Re: Helping ''Me'' is not a crime!

Cheestendo wrote:

wow now i understand so the pointer is 0x6960 but why did you change to 60 69? what's the difference?
hmm but in johtomap it shows different script location.
and how can i know which flags are used and which aren't?

60 69 is the form of a gameboy pointer in little-endian
69 60 is the form in big endian that Johtomap uses

http://www.pokecommunity.com/showthread.php?t=127374

Last edited by Miksy91 (2011-06-27 17:12:34)

Offline

#24 2011-06-28 09:19:42

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

Re: Helping ''Me'' is not a crime!

it looks like the post doesn't contain flag list.
so in johtomap i have to write 6960? what do i have to do further? I have to write the script in the hex editor?
or i just write it in pksv and it writes it self in-hex?

Offline

#25 2011-06-28 12:24:09

Miksy91
Member
Registered: 2010-10-16
Post 453/2,311

Re: Helping ''Me'' is not a crime!

Cheestendo wrote:

it looks like the post doesn't contain flag list.

that's exactly what it does contain, a flag list.
Bit Numbers (or "flags") for both Bittable1 and Bittable2 are listed in there.

Cheestendo wrote:

so in johtomap i have to write 6960? what do i have to do further? I have to write the script in the hex editor?
or i just write it in pksv and it writes it self in-hex?

whatever, both are used for doing the same thing.

Last edited by Miksy91 (2011-06-28 12:24:30)

Offline

Board footer

Powered by FluxBB