Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2011-12-08 09:01:21

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 337/649

MY connection data problem

Yes, we all know by now that my hack is a remake.

I made the maps the same width and height. And the tiles are practically the same(I exported a map from Pikamap into GoldMap and it worked like a charm). Then came the connection data.

I found the connection data offset and both blue and silver for Route 3 and 4. So I basically(noticing that Silver has a extra spot for determining the bank AND map where Blue its only the bank)and the rest was just about the same I assume. So I copied the values and the part to the next map still wouldn't let me pass(the border blocks blocked my way). So I read that the calculated values are a bit different, so I used JohtoMap to calculate it for me..and it's the same.


This is fustrating. Shouldn't I just be able go from Blue's data?


Pokemon Blue DX is reborn!

Offline

#2 2011-12-08 13:33:38

Tauwasser
Member
Registered: 2010-10-16
Post 247/448

Re: MY connection data problem

tysonrss wrote:

noticing that Silver has a extra spot for determining the bank AND map where Blue its only the bank

RBGY don't have maps sorted into banks. They just have map numbers going from 0x00 to 0xFF, where some maps in-between are actually missing.

tysonrss wrote:

So I read that the calculated values are a bit different, so I used JohtoMap to calculate it for me..and it's the same.

So what did you calculate? This is again an example of providing very little to no information on the actual problem at all...

tysonrss wrote:

This is fustrating. Shouldn't I just be able go from Blue's data?

Since RBGY use a different RAM layout, you won't be able to do this. You will have to recalculate all values correctly for Silver.

cYa,

Tauwasser

Offline

#3 2011-12-08 18:19:30

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 338/649

Re: MY connection data problem

So what did you calculate? This is again an example of providing very little to no information on the actual problem at all...

It was the Connection strip, not the current posistion one.

Anyhow, I guess that makes sense. Any suggestions on converted the values to make it readible for Silver?


Pokemon Blue DX is reborn!

Offline

#4 2011-12-08 19:25:16

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 339/649

Re: MY connection data problem

I think I kinda understand. Based on the offset of the block, the pointer should be entered into the right spots correct?

Problem with JothoMap is that it isn't always accurate with Cstrip. The pointer I got wasn't far off, but still.

Anyway, am I making this harder than it has to be?


Pokemon Blue DX is reborn!

Offline

#5 2011-12-08 19:41:41

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

Re: MY connection data problem

Not really, connections are a real pain sometimes.
Again, you should read a tutorial I've written and try to get used to them that way.

Offline

#6 2011-12-08 20:47:07

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 340/649

Re: MY connection data problem

Yes, I was about to get on that.

It's detailed, but there are some things that aren't explained well like the Window. You put in values without saying where they belong too, or what they are.

Window
C706 + 2 * 1E = C742 (and by rotating the bytes around, 42 C7)

For example, I have no idea what you are referring to with C706. Is that the value of a certain map? Or is that the formula? Where did 2 come from, and 1E? This is what I mean... You don't go into what these things mean or say if they're apart of the map, confusing people like myself.

Again.

Current Map Position
In this case:
C700 + (A + 6) * (0 + 3) = C730 (and by rotating the bytes around, you get 30 C7)

What does C700 mean? Is that apart of a certain map or is it formula? These things have to be explained as to exactly what they mean or where they fit. Same goes for A + 6. I have not clue where this came from. It's like saying "yeah 56 = 108." But what exactly? Are we subtracting 56 away from a higher number or adding to 56?

See what I mean?

Last edited by tysonrss (2011-12-08 20:58:25)


Pokemon Blue DX is reborn!

Offline

#7 2011-12-08 21:07:12

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

Re: MY connection data problem

Actually, he did explain it.

He started by listing the bytes that make up the connections for New Bark Town.
Then he went through and said the structure and formulas for the different connection directions.
Then he showed how the data from those maps plugs in to those formulas to come up with the values that are there. That's why it said "in this case". Apparently you skipped over the part where he listed the formulas and just read (and were confused) by the part where he plugged random numbers into a random formula. He lists the formulas, and then says "Now let me explain these using the data from the West connection". So clearly the numbers he lists there are relevant to New Bark Town, and can be explained by looking at the formula listed above (particularly, the formulas labeled "west").

Hope that didn't come across sounding like a jerk, but it really is explained in the tutorial already.

Last edited by Mateo (2011-12-08 21:08:50)

Offline

#8 2011-12-08 21:13:24

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

Re: MY connection data problem

These:

Miksy91 wrote:

Current map position
North: $C700 + X Movement of Connection Strip
South: $C703 + (Height of Map + 3) * (Width of Map + 6) + X Movement of Connection Strip
West: $C700 + (Width of Map + 6) * (Y Movement of "Connection Strip" + 3)
East: $C6FD + (Width of Map + 6) * (Y Movement of "Connection Strip" + 4)

Window
North: $C701 + [Height of connected map] * [Width of connected map + 6]
South/East: $C707 + [Width of connected map]
West: $C706 + 2 * [Width of connected map]

Also, $C700, $C6FD, etc. are RAM locations; they are part of a buffer used by the program to store the whole map data. So, since the buffer has a regular structure, you can calculate the address of a specific piece of information by using these formulas and using those RAM locations as "starting point" (for example, the "+ 6" in West/East C.M.P formula is a consequence of the fact that borders are 3 blocks wide).

Last edited by Sawakita (2011-12-08 21:30:02)

Offline

#9 2011-12-08 21:16:39

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 341/649

Re: MY connection data problem

Well what threw me off was this

Current map position

North: C700 + X Movement of Connection Strip
South: C703 + (Height of Map + 3) * (Width of Map + 6) + X Movement of Connection Strip
West: C700 + (Width of Map + 6) * (Y Movement of "Connection Strip" + 3)
East: C6FD + (Width of Map + 6) * (Y Movement of "Connection Strip" + 4)

Window

North: C701 + [Height of connected map] * [Width of connected map + 6]
South/East: C707 + [Width of connected map]
West: C706 + 2 * [Width of connected map]

X Movement of Connection Strip =
Y Movement of Connection Strip =

They were above "Explanations". So I didn't quite understand that anyhow.

But anyway, from what I've gathred, I used the formula's as a test for already existing maps and the values  I always get are a little off. I use calculator and the formulas specified.

Example time.

North: C701 + [Height of connected map] * [Width of connected map + 6]

For CERULEAN CITY(BAT-RULEAN CITY) the Window/Other Map Data is C709.

So, I inputted C701 + (9/Height) * (10/Width + 6) = and I get  C7C7.

And it's always like this. It's always a bit off. Why?

And Miksy, if I came off rude I apologize. I just wish things were in the correct position so it does not cause confusion, like Haunter did to my Bayleef :)

EDIT: Realized that I didn't input things in Hex. Now the answer is C791, which is still off...

Last edited by tysonrss (2011-12-08 21:28:15)


Pokemon Blue DX is reborn!

Offline

#10 2011-12-08 21:31:16

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 342/649

Re: MY connection data problem

Oh dear god.

Actually the value I got belonged to C.M.P. I used the Window formula. So either Miksy labled them wrong...or JohtoMap. I think it might be the latter as I think I read about that in one of the threads...


Pokemon Blue DX is reborn!

Offline

#11 2011-12-08 21:32:44

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

Re: MY connection data problem

tysonrss wrote:

So, I inputted C701 + (9/Height) * (10/Width + 6) = and I get  C7C7.

Is your map 9 blocks high and 16 blocks wide? Or is it rather 9 and 10? If the latter, then you're confusing hexadecimal numbers and decimal numbers.

10 is $A in hex notation.

Offline

#12 2011-12-08 21:33:45

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 343/649

Re: MY connection data problem

Yes, I edited my post about that. Overall, JohtoMap labled C.M.P and Window in the wrong locations. So it can be confusing. If I knew the language, I'd go in and fix that.


Pokemon Blue DX is reborn!

Offline

#13 2011-12-08 21:34:13

Tauwasser
Member
Registered: 2010-10-16
Post 248/448

Re: MY connection data problem

You C709 is the pointer to where the connection strip starts, not the position of the window after map change...

So for a North connection -- which you totally explained you were using as an example -- this is C700 + X_Movement_of_Connection_Strip, which happens to be +9

connectionu.png

I highlighted the connection strip. See how it is located 9 blocks away from the left edge of map data in RAM? That's the X_Movement_of_Connection_Strip.

cYa,

Tauwasser

Offline

#14 2011-12-08 21:37:29

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

Re: MY connection data problem

Ah, sorry, I didn't see your edit.

tysonrss wrote:

JohtoMap labled C.M.P and Window in the wrong locations (...) If I knew the language, I'd go in and fix that.

I don't think you need to know the language to edit the caption of a label, it is simple GUI editing which in Visual Studio projects is relatively trivial.

Offline

#15 2011-12-08 21:37:55

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 344/649

Re: MY connection data problem

Yes, I assume that is MegaMap?

Anyway, as I've posted, JohtoMap has a error where it labled those places wrong. So that can cause confusion drastically. Luckily I caught on.

Is MegaMap useful for indicating these?

EDIT: Saw: Do I need Visual basic or just the runtimes?

Last edited by tysonrss (2011-12-08 21:39:03)


Pokemon Blue DX is reborn!

Offline

#16 2011-12-08 23:21:51

Tauwasser
Member
Registered: 2010-10-16
Post 249/448

Re: MY connection data problem

I'm using ZeroMap, which is the program we used to do the German Midnight Hack with. A team member and friend of mine coded it. I believe "MegaMap" is a poorly translated ripoff.

cYa,

Tauwasser

Offline

#17 2011-12-08 23:25:44

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

Re: MY connection data problem

MegaMap is a poorly translated version, yes.

Offline

#18 2011-12-08 23:52:17

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 349/649

Re: MY connection data problem

I kinda am still lost sorta on this stuff. But combine JohtoMap and MegaMap along with Miksy's tutorial and it becomes a good deal. I just fixed Route 4. Now I have to do the same for Route 3 *sigh*


Pokemon Blue DX is reborn!

Offline

#19 2011-12-09 02:35:37

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 350/649

Re: MY connection data problem

Oh goodness how much of a pain of the ass I am having. Why is it that something like this has to be so damn difficult?

I did the values for both. Here it is in summation.

Everything seems correct, as I can view the next area well...that is until I step over and it then looks a bit messed up. I shouldn't have to go into much detail on that part as that's really all I can say. I don't know what problem I'd be having here. It seems everything is correct in the boxes below. I'm thinking it's maybe the X and Y alignment? I've tried. And it took me 3 hours to get all the values and make the maps "appear" as if they're working right... Please help. These images should help some.

*NOTE: On the Connection Editor of JohtoMap, CMPDL is actually Window and OMDL is actually Current Map Position.

ROUTE 4
5fr8zr.jpg

Strip Data
rr59is.jpg

ROUTE 3
2ijix38.jpg

Strip Data
t9b95z.jpg


Pokemon Blue DX is reborn!

Offline

#20 2011-12-09 04:40:00

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

Re: MY connection data problem

You should use two more blocks of left part of route 4 as the connection to make calculating a little bit easier.

Offline

#21 2011-12-09 04:48:49

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 351/649

Re: MY connection data problem

What that did was take me to the area where there are trainers....


Pokemon Blue DX is reborn!

Offline

#22 2011-12-09 20:54:23

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 355/649

Re: MY connection data problem

I'm going to commit suicide in a moment...


Pokemon Blue DX is reborn!

Offline

#23 2011-12-09 21:18:54

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

Re: MY connection data problem

Tyson, what have we told you about being impatient?

Offline

#24 2011-12-09 21:21:02

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 356/649

Re: MY connection data problem

It's been a little over 10 hours. So it's not like I posted in a 2-3 hour interval like I've done before.

Anyway, the only problem I was having was the X alignment. Which thank God, it's the same values for Bigness, Y and X alignments in the olde games.


Pokemon Blue DX is reborn!

Offline

#25 2011-12-09 21:30:00

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

Re: MY connection data problem

Admittedly, it was a little longer than you had been, but replying to your thread with claims of "I'm going to commit suicide in a minute" are completely uncalled for. As we have said before, someone will reply when they have time and have an answer. Most of us have lives outside of this message board, and do not always check this board every few minutes (or even every few hours) to see if there are new posts because we are doing other things. For example, I stopped by the board to see if there were any spambots to delete, but I stopped to reply here even though I really should be studying for an exam that I have to take in an hour and a half.

Basically, making claims like that and bothering people do not make them want to help you, they make people annoyed with you. And that "you" does not only mean you in particular, it means anyone who behaves that way, whether it is in "real life" or on a message board.

Offline

Board footer

Powered by FluxBB