јAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;u=313;area=showposts;start=45e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index1793.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;u=313e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index1793.html.zxошg^џџџџџџџџџџџџџџџџџџџџШАU’ЯOKtext/htmlISO-8859-1gzip@је’ЯџџџџџџџџTue, 10 Mar 2020 19:38:29 GMT0ѓАА Ў0ЎPЎ€ЇВ№Ўншg^џџџџџџџџ3+’Я Show Posts - Gedankenschild

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Gedankenschild

Pages: « 1 2 3 4 5 6 7 »
46
Final Fantasy IV Research & Development / Re: 4bpp Graphics Backport
« on: August 14, 2015, 08:04:04 AM »
My biggest concern was all of the extra graphics data interfering with the extra assembly I've added. I imagine the monster graphics oddities you noticed are simply due to the graphics data being moved/altered, and finding and inserting the right pointers should fix those issues.
Assuming I can get the kinks worked out, do I have your permission to make this an actual part of my project? Of course you'd get due credit when it's released.

Absolutely, use it!
My hope was always to ensure compatibility with other hacks as far as possible. That's one of the reasons I stay away from the bits of free space in the ROM and limit myself to the new, expanded area.
Your contributions here (special sizes in particular) are part of what even made this possible. So if there are any questions I'd be glad to help. :wink:

47
Final Fantasy IV Research & Development / Re: 4bpp Graphics Backport
« on: August 14, 2015, 04:30:26 AM »
One question (for the time being anyway):  Are the Weapon graphics still in 3BPP?

Seems you figured it out already. ;) The game uses the same graphics loader for summons and weapons, so I had to set up a 4bpp version of the weapons graphics at the end. As long as you copy your changes over to that one everything should work.

My reasoning:
1. It's actually easier to just rewrite the subroutine that shovels graphics into VRAM than to try and work in a jump to brand new one. That always got me into trouble somehow.
2. My goal is to in the end have everything in 16-color mode, so doing it this way means taking care of stuff that would have to be done anyway.

This is very impressive! Especially since graphics code totally stumps me.  :eek:

It's really not that hard. Once you've rewritten one you kinda know how they all work.

Holymoly, this works with my project?!
That might be the best news ever!

It KINDA works with your project...
The chocobo was invisible and Old Trees were messed up. The deal is this:
The basic formula stays the same:

[100000] Monster Graphics 1
[108000] Monster Graphics 2
[110000] Monster Graphics 3
[118000] Monster Graphics 4
[11A000] Zeromus Transformed Graphics
[120000] Summoned Monster Graphics

Monster Graphics 1, 2, 3 used to fill an entire bank. As a result not all graphics fit in them anymore. The Leftovers now have their own new bank at the end:

[128000] Monster Graphics Leftovers

Enemy Palette Data is at 11E000. It also follows the original formula: 1. is the Imp. 2. is the Basilisk, etc.
(It's really the original routine with an ASL A to jump 16 colors from palette to palette instead of 8...)

The point being: If you've already familiarized yourself with how and where the game loads stuff it shouldn't be hard to just adapt your changes. Things still work the same way, basically everything has simply been transplanted elsewhere.

48
Final Fantasy IV Research & Development / Re: 4bpp Graphics Backport
« on: August 13, 2015, 04:18:25 PM »
That was a total coincidence. I thought "Let's take a screenshot with Grimoire's patch.", loaded the game, ran into the first dungeon, and there it was! :happy:

49
Final Fantasy IV Research & Development / Re: 4bpp Graphics Backport
« on: August 13, 2015, 03:03:41 PM »
I just realized it's been about a year since I first introduced my project here. And I'm starting to feel like a miser looking at all of you sharing at least alpha versions of your stuff... :blush:
So it's time to throw something out there and show I wasn't posting mock-ups here all along!

Below is a link to a beta patch that replaces all the 8-color enemies and summons with their 16-color Wonderswan counterparts. It should be applied to a headerless ROM of the 1.1 US version (1.0 might work - never checked).

I tested it with some of your patches and it seems to work up to the point where changes to graphics and palettes and the corresponding tables were made. These will obviously be overwritten by THIS patch...

Feel free to post feedback, bug reports and the like.
If you'd like to incorporate this into a hack of your own and have questions feel free to ask.



https://www.dropbox.com/s/6pwe7oldoo1qb9h/FF2enemies.zip?dl=0

Regards!

50
Agreed. There's quite a few really nice hacks that escaped my attention for some time because they didn't get a deserved bulletin... :sad:

51
Looks really interesting! Congrats on finishing the project and its release! I'm looking forward to trying it out... :happy:

52
Absolutely, I would recommend using a visual help like that when dealing with this stuff. Copy the hex data into a text editor and adjust the window size to reflect the layout in the picture - it helps a lot. The pic I included above is a screengrab from FF4Tools by Phoenix, who made a lot of contributions to this board.

You can find it here:
http://www.romhacking.net/utilities/634/

53
No problem! Glad it helped. When questions come up, just ask.

54
OK, so the plan is to change the cave's 'S' save point back to the original campfire one. Since I would have to gather the data myself at some point anyway, I'll just do that conversion and document the process.

First, let's see what changes Square made. I saved the game at the campfire save point in the Watery Pass and then loaded that save with both versions of the game. I use the bsnes debugger because of its neat Palette Viewer:



As you can see, there is no difference between the versions, so they didn't alter the palettes but simply associated the tiles with another one.

Next we go where we always go first when we need to locate something in the ROM: To Yousei's FFIV hacking document! :happy: Here we find this:

Code: [Select]
A2000-A5FFF (149E00-14DDFF) Town Map Tile Formation Data (*4)


*4 -- Town Map Tile Formation Data, 2 bytes

0x0000 8x8 tile (0x00-0xFF)
0x0001:0...1 ?
0x0001:2-4 Palette Index
0x0001:5 Tile Priority (0 = behind character, 1 = in front of character)
0x0001:6 Flip tile horizontally
0x0001:7 Flip tile vertically

What Yousei identified as "Town Map Tile Formation Data" actually contains formation data for all locations! I always work with unheadered ROMs, so I converted his data and broke it down to this:

Code: [Select]
A1E00-A5DFF (149E00-14DDFF) Location Map Tile Formation Data

A1E00-A21FF (149E00-14A1FF) Airship
A2200-A25FF (14A200-14A5FF) Lunar Core
A2600-A29FF (14A600-14A9FF) Cave Magnes/Sealed Cave
A2A00-A2DFF (14AA00-14ADFF) Castle Exterior
A2E00-A31FF (14AE00-14B1FF) Town Exterior
A3200-A35FF (14B200-14B5FF) Town Interior
A3600-A39FF (14B600-14B9FF) Castle Interior
A3A00-A3DFF (14BA00-14BDFF) Crystal Room
A3E00-A41FF (14BE00-14C1FF) Tower (Save Room)/Big Whale
A4200-A45FF (14C200-14C5FF) Sylvan Cave/Land of Monsters
A4600-A49FF (14C600-14C9FF) Tower
A4A00-A4DFF (14CA00-14CDFF) Giant
A4E00-A51FF (14CE00-14D1FF) Lunar Subterrane
A5200-A55FF (14D200-14D5FF) Mountain
A5600-A59FF (14D600-14D9FF) Cave
A5A00-A5DFF (14DA00-14DDFF) Ship

What this "Tile Formation Data" does is take the individual tilesets in the ROM...


(left:US, right:Japanese)

and arrange them into 16x16 pixel "building blocks" that the game will then construct the maps from:



Now the fun part! Let's take a look at the Tile Formation Data for the Cave.

Japanese version:
Code: [Select]
43 0C 8A 04 1F 04 86 04 81 04 81 04 92 04 1C 04 20 04 22 04 22 04 83 04 0E 04 01 04 93 44 24 11
40 04 42 04 42 04 83 04 01 04 01 04 01 04 4E 04 90 04 A4 04 91 44 D0 04 D2 04 D4 04 00 04 6A 04
B0 04 8A 04 8A 04 23 0D 20 0D 00 04 00 04 4A 04 B6 04 B8 04 BA 04 97 44 96 44 9B 04 8A 04 01 04
D6 04 D8 04 DA 04 76 04 25 04 14 04 8A 04 8A 04 06 04 02 04 04 04 8A 04 8A 04 99 44 98 44 5E 44
84 04 37 08 82 08 57 48 58 08 59 48 39 08 60 04 01 04 60 04 01 04 01 04 72 04 74 44 8A 04 8A 04
9C 24 83 24 01 24 01 24 92 04 94 04 93 44 94 04 2E 04 90 04 91 44 9C 24 9C 24 21 0D 99 44 98 44
BE 04 B8 04 BA 04 B0 04 9E 04 BA 04 8A 04 EC 18 01 24 A4 04 DC 04 BA 04 23 34 00 04 01 04 7C 04
78 04 78 04 3C 04 2A 04 DE 04 D8 04 DA 04 F0 1C F2 1C 23 0D 3C 04 2A 04 9B 04 8A 04 3E 04 F6 18
44 0C 8B 04 49 04 81 04 81 04 86 44 93 04 1D 04 21 04 6B 04 20 44 01 04 8B 04 83 44 92 44 6B 04
41 04 6D 04 40 44 01 04 01 04 83 44 5E 04 4F 04 91 04 A5 04 90 44 D1 04 D3 04 D5 04 00 04 6D 04
8B 04 8B 04 B5 04 23 0D 20 0D 96 04 97 04 4B 04 B7 04 B9 04 BB 04 00 04 00 04 8B 04 9B 44 01 04
D7 04 D9 04 DB 04 77 04 26 04 15 04 8B 04 8B 04 06 04 03 04 05 04 98 04 99 04 8B 04 8B 04 01 04
85 04 38 08 57 08 82 48 59 08 58 48 0F 08 61 04 01 04 61 04 01 04 74 04 73 04 01 04 98 04 99 04
9C 24 01 24 01 24 83 64 93 04 95 04 92 44 95 04 2F 04 91 04 90 44 9C 24 9C 24 21 0D 8B 04 8B 04
B7 04 B9 04 BF 04 8B 04 B7 04 9F 04 B5 04 ED 18 83 64 A5 04 B7 04 DD 04 24 34 00 04 01 04 7D 04
79 04 79 04 3D 04 2B 04 D7 04 D9 04 DF 04 F1 1C F3 1C 23 0D 3D 04 2B 04 8B 04 9B 44 3F 04 F7 18
45 0C 8C 04 1F 04 83 04 01 04 01 04 A2 04 2C 04 30 04 32 04 32 04 83 04 0C 04 01 04 8C 04 25 11
50 04 52 04 52 04 10 04 12 04 12 04 01 04 8C 04 A0 04 8C 04 8C 04 00 04 B2 04 B4 04 00 04 52 04
9D 04 C2 04 C4 04 23 0D 22 09 00 04 00 04 5A 04 C6 04 C8 04 CA 04 A7 44 A6 44 AB 04 8C 04 88 04
E6 04 E8 04 EA 04 8E 04 29 04 16 04 8C 04 8C 04 0B 04 07 04 09 04 8C 04 8C 04 A9 44 A8 44 01 04
18 04 47 08 66 08 67 48 68 08 69 48 35 08 70 04 01 04 62 04 1A 44 01 04 64 04 75 44 8C 04 8C 04
01 24 83 24 01 24 01 24 A2 04 8C 04 8C 04 8C 04 A1 04 A0 04 8C 04 01 24 01 24 00 04 A9 44 A8 44
CE 04 BD 04 CD 04 9D 04 AE 04 CA 04 C4 04 EE 18 01 24 8C 04 6F 04 CA 04 33 34 00 04 01 04 7E 04
7A 04 7A 04 4C 04 3A 04 E0 04 E2 04 E4 04 F4 1C F4 1C 23 0D 4C 04 3A 04 AB 04 8C 04 5C 04 F8 18
46 0C 8D 04 49 04 01 04 01 04 83 44 8D 04 2D 04 31 04 6C 04 30 44 01 04 8D 04 83 44 A2 44 6C 04
51 04 6E 04 50 44 11 04 11 04 10 44 01 04 8D 04 8D 04 8D 04 A0 44 B1 04 B3 04 00 04 00 04 6E 04
C1 04 C3 04 AD 04 23 0D 22 09 A6 04 A7 04 5B 04 C7 04 C9 04 CB 04 00 04 00 04 8D 04 AB 44 89 04
E7 04 E9 04 EB 04 8F 04 13 04 17 04 8D 04 8D 04 0B 04 08 04 0A 04 A8 04 A9 04 8D 04 8D 04 01 04
19 04 48 08 67 08 66 48 69 08 68 48 36 08 71 04 1A 04 63 04 01 04 75 04 65 04 01 04 A8 04 A9 04
01 24 01 24 01 24 83 64 8D 04 8D 04 A2 44 8D 04 A3 04 8D 04 A0 44 01 24 01 24 00 04 8D 04 8D 04
BC 04 CC 04 CF 04 C1 04 C7 04 AF 04 AD 04 EF 18 83 64 8D 04 C7 04 7F 04 34 34 00 04 01 04 80 04
7B 04 7B 04 4D 04 3B 04 E1 04 E3 04 E5 04 F5 1C F5 1C 23 0D 4D 04 3B 04 8D 04 AB 44 5D 04 F9 18

US version:
Code: [Select]
43 0C 8A 04 1F 04 86 04 81 04 81 04 92 04 1C 04 20 04 22 04 22 04 83 04 0E 04 01 04 93 44 24 11
40 04 42 04 42 04 83 04 01 04 01 04 01 04 4E 04 90 04 A4 04 91 44 D0 04 D2 04 D4 04 00 04 6A 04
B0 04 8A 04 8A 04 23 0D 20 0D 00 04 00 04 4A 04 B6 04 B8 04 BA 04 97 44 96 44 9B 04 8A 04 01 04
D6 04 D8 04 DA 04 76 04 25 04 14 04 8A 04 8A 04 06 04 02 04 04 04 8A 04 8A 04 99 44 98 44 5E 44
84 04 37 08 82 08 57 48 58 08 59 48 39 08 60 04 01 04 60 04 01 04 01 04 72 04 74 44 8A 04 8A 04
9C 24 83 28 01 28 01 28 92 04 94 04 93 44 94 04 2E 04 90 04 91 44 9C 28 9C 24 21 0D 99 44 98 44
BE 04 B8 04 BA 04 B0 04 9E 04 BA 04 8A 04 EC 18 01 24 A4 04 DC 04 BA 04 23 34 00 04 01 04 7C 04
78 04 78 04 3C 04 2A 04 DE 04 D8 04 DA 04 F0 1C F2 1C 23 0D 3C 04 2A 04 9B 04 8A 04 3E 04 F6 1C
44 0C 8B 04 49 04 81 04 81 04 86 44 93 04 1D 04 21 04 6B 04 20 44 01 04 8B 04 83 44 92 44 6B 04
41 04 6D 04 40 44 01 04 01 04 83 44 5E 04 4F 04 91 04 A5 04 90 44 D1 04 D3 04 D5 04 00 04 6D 04
8B 04 8B 04 B5 04 23 0D 20 0D 96 04 97 04 4B 04 B7 04 B9 04 BB 04 00 04 00 04 8B 04 9B 44 01 04
D7 04 D9 04 DB 04 77 04 26 04 15 04 8B 04 8B 04 06 04 03 04 05 04 98 04 99 04 8B 04 8B 04 01 04
85 04 38 08 57 08 82 48 59 08 58 48 0F 08 61 04 01 04 61 04 01 04 74 04 73 04 01 04 98 04 99 04
9C 24 01 28 01 28 83 68 93 04 95 04 92 44 95 04 2F 04 91 04 90 44 9C 28 9C 24 21 0D 8B 04 8B 04
B7 04 B9 04 BF 04 8B 04 B7 04 9F 04 B5 04 ED 18 83 64 A5 04 B7 04 DD 04 24 34 00 04 01 04 7D 04
79 04 79 04 3D 04 2B 04 D7 04 D9 04 DF 04 F1 1C F3 1C 23 0D 3D 04 2B 04 8B 04 9B 44 3F 04 F7 1C
45 0C 8C 04 1F 04 83 04 01 04 01 04 A2 04 2C 04 30 04 32 04 32 04 83 04 0C 04 01 04 8C 04 25 11
50 04 52 04 52 04 10 04 12 04 12 04 01 04 8C 04 A0 04 8C 04 8C 04 00 04 B2 04 B4 04 00 04 52 04
9D 04 C2 04 C4 04 23 0D 22 09 00 04 00 04 5A 04 C6 04 C8 04 CA 04 A7 44 A6 44 AB 04 8C 04 88 04
E6 04 E8 04 EA 04 8E 04 29 04 16 04 8C 04 8C 04 0B 04 07 04 09 04 8C 04 8C 04 A9 44 A8 44 01 04
18 04 47 08 66 08 67 48 68 08 69 48 35 08 70 04 01 04 62 04 1A 44 01 04 64 04 75 44 8C 04 8C 04
01 24 83 28 01 28 01 28 A2 04 8C 04 8C 04 8C 04 A1 04 A0 04 8C 04 01 28 01 24 00 04 A9 44 A8 44
CE 04 BD 04 CD 04 9D 04 AE 04 CA 04 C4 04 EE 18 01 24 8C 04 6F 04 CA 04 33 34 00 04 01 04 7E 04
7A 04 7A 04 4C 04 3A 04 E0 04 E2 04 E4 04 F4 1C F4 1C 23 0D 4C 04 3A 04 AB 04 8C 04 5C 04 F8 1C
46 0C 8D 04 49 04 01 04 01 04 83 44 8D 04 2D 04 31 04 6C 04 30 44 01 04 8D 04 83 44 A2 44 6C 04
51 04 6E 04 50 44 11 04 11 04 10 44 01 04 8D 04 8D 04 8D 04 A0 44 B1 04 B3 04 00 04 00 04 6E 04
C1 04 C3 04 AD 04 23 0D 22 09 A6 04 A7 04 5B 04 C7 04 C9 04 CB 04 00 04 00 04 8D 04 AB 44 89 04
E7 04 E9 04 EB 04 8F 04 13 04 17 04 8D 04 8D 04 0B 04 08 04 0A 04 A8 04 A9 04 8D 04 8D 04 01 04
19 04 48 08 67 08 66 48 69 08 68 48 36 08 71 04 1A 04 63 04 01 04 75 04 65 04 01 04 A8 04 A9 04
01 24 01 28 01 28 83 68 8D 04 8D 04 A2 44 8D 04 A3 04 8D 04 A0 44 01 28 01 24 00 04 8D 04 8D 04
BC 04 CC 04 CF 04 C1 04 C7 04 AF 04 AD 04 EF 18 83 64 8D 04 C7 04 7F 04 34 34 00 04 01 04 80 04
7B 04 7B 04 4D 04 3B 04 E1 04 E3 04 E5 04 F5 1C F5 1C 23 0D 4D 04 3B 04 8D 04 AB 44 5D 04 F9 1C

These are basically hex representations of the "building blocks" pic above. Each 8x8 tile is represented by 2 bytes. The first byte is the value of the tile itself (in the original tileset), the second one holds three properties at once: palette association, tile priority and horizontal/vertical flipping (see the bit from Yousei's document above).

I get confused very easily when working on the binary level as described by Yousei, therefore I went ahead and wrote down all the possible combinations one might encounter in the second byte:

Code: [Select]
04,08,0C,10,14,18,1C Palette 1-7 behind character
24,28,2C,30,34,38,3C Palette 1-7 in front of character
44,48,4C,50,54,58,5C Palette 1-7 behind character, horizontally flipped
64,68,6C,70,74,78,7C Palette 1-7 in front of character, horizontally flipped
84,88,8C,90,94,98,9C Palette 1-7 behind character, vertically flipped
A4,A8,AC,B0,B4,B8,BC Palette 1-7 in front of character, vertically flipped
C4,C8,CC,D0,D4,D8,DC Palette 1-7 behind character, h&v flipped
E4,E8,EC,F0,F4,F8,FC Palette 1-7 in front of character, h&v flipped

If all you want is to change a tile's palette, locate its 2nd byte number in the table above and change it to one in the same line.

There is one additional twist to the hex data above: It is arranged in the following way: All upper left tiles first, then upper right, lower left, and finally all lower right tiles. (Anything else would have been too easy!)

Let's just do the campfire and see if we know what we did afterwards...

The tiles (in both versions) are F6, F7, F8, F9. If you look at the "building block" pic you'll see that the save point graphic is the very last in the lower right corner, which is great! We should therefore find it right at the very end of our hex data. And there it is. "F9 18" (Palette 6, behind character) in the Japanese version and "F9 1C" (Palette 7, behind character) in the US version.
So where are F6, F7, F8? Right at the end of their own segments! I think a picture can't hurt here for clarity:



All that's necessary now is to restore these four values and copy over the original graphics (you could also just copy and paste the entire thing, but that would also undo the palette changes they made to make secret passages more obvious).

It's kinda late here and I hope I'm making sense... If anyone has suggestions to make things clearer or more precise, please tell me! And feel free to ask anything.

Regards!

55
I remember seeing the title screen discussion and thinking it will be very uselful to a lot of people (including me). Great work!
I will just finish a few things and post my stuff tomorrow, probably.

Regards!

56
chillyfeez to the rescue! You're willingnes to do some extra work to help others is commendable!  :cycle:

If all you want is to change the palette a tile uses, that's pretty easy. I researched that stuff for my own hack. I've been meaning to bring some order to my notes anyway, so I can post it for you in a bit, if you still need it.

57
Final Fantasy IV Research & Development / Re: 4bpp Graphics Backport
« on: March 16, 2015, 06:08:18 PM »
Now That looks much better! Good work so far!
That last one was from the Wonderswan version...  :happy:
But thanks anyway, I'm working on it!  :cycle:

58
Final Fantasy IV Research & Development / Re: 4bpp Graphics Backport
« on: March 16, 2015, 05:00:12 PM »
Other than the inky water and the green squares around the bushes, this looks pretty grand Gedankenschild!

And I worked so hard on that water!  :happy:
Yes, the moving parts have their own loading code - I haven't looked at that, yet. The remake does indeed only have those kinds of bushes. They solved this by having these "edge of the road" tiles that take up A LOT of tiles. I do want to introduce them, though. It really does smooth things out.

59
Final Fantasy IV Research & Development / Re: 4bpp Graphics Backport
« on: March 16, 2015, 11:50:18 AM »
Time to report some more progress! I spent a bit of time staring at those DMA routines the game uses to load overworld/location protagonist and location graphics and finally understood how they work (at least enough for my needs). Some simplifications will be necessary - at least with some locations. I need to look at the way the game decides which tileset to load. If it's possible to have more than one town tileset and make different towns load different sets that would be pretty neat! On the other hand it sounds like quite a drag, rewriting the properties and palette associations to this point took a bit of time! I need a break...  :sleep:

P.S. And of course the game has to use different routines for all sprites - world map protagonists, location protagonists, protagonists splitting up for a cutscene (no kidding), townspeople, vehicles...  :bah:

60
Final Fantasy IV Research & Development / Re: Japanese Title Screen
« on: March 10, 2015, 01:32:08 PM »
I would recommend the bsnes debugger. Its palette viewer is very helpful in figuring palette stuff out. The game rotates the color white through two of the palettes to create the shimmering effect.
It might also be helpful to look at the Easy Type version, since that one has an additional fade in for the "Easy Type" subtitle. More to compare to is usually better...

Pages: « 1 2 3 4 5 6 7 »