øAslickproductions.org/forum/index.php?PHPSESSID=b2phq0ehqc7umand281jipqej2&topic=1856.30e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index2dcb-2.htmlslickproductions.org/forum/index.php?board=13.140e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index2dcb-2.html.zx¯2g^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ ,/ÿOKtext/htmlISO-8859-1gzip8:ÖÿÿÿÿÿÿÿÿÿTue, 10 Mar 2020 06:41:09 GMT0ó°° ®0®P®€§²ð®®2g^ÿÿÿÿÿÿÿÿ<(ÿ Where are the graphics for... well... everything?

Author Topic: Where are the graphics for... well... everything?  (Read 8083 times)

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Where are the graphics for... well... everything?
« Reply #30 on: December 18, 2013, 05:26:35 PM »
Good ol FFIV... just when you think you've seen the height of needlessly complicated, you get a gem like this. Nice work deciphering that!
When I was learning to code NES homebrews, I remember reading that pointers should be handled in this same manner, rather than the way we typically find them in ROMs. It's supposed to be more efficient code-wise, although I can't remember why anymore. Maybe here the speed increase was actually worth the extra effort to store them like that.

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Re: Where are the graphics for... well... everything?
« Reply #31 on: December 19, 2013, 05:06:21 AM »
Quote
0xF1568 - 0xFE7F8: Remaining Tilesets [can break these down later] (3BPP)

Were these ever broken down after?
Let's dance!

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Where are the graphics for... well... everything?
« Reply #32 on: December 19, 2013, 07:09:12 PM »
Sorry, never got around to it.

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Re: Where are the graphics for... well... everything?
« Reply #33 on: December 20, 2013, 03:50:52 AM »
I see. I tried finding the boundaries myself but it's not straightforward. Between that and the issues I'm having getting the palettes working correctly I think I might just use hard-coded tiles for now and come back to this later. Seeing what would be involved in changing a map tile's graphic makes me skeptical that people would be inclined to do it without a devoted editor (which when the time comes I might just build into FF4kster after all!).
Let's dance!

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Where are the graphics for... well... everything?
« Reply #34 on: December 22, 2013, 10:08:13 PM »
Yeah, that's probably not a bad idea (using hard coded for now). I've always wanted to give the castle and town interior tilesets an overhaul, to use wall borders like the tower and cave tilesets do, but I'm not even sure if there are enough tiles to do it without sacrificing details. I just dislike the way those two sets still use the FF2, FF3-like exterior walls style instead of the better looking style used by the other sets.

Speaking of those borders, when you do add map editing support, tile scaling and a gamma correction features would really be appreciated. It was always a pain editing caves using FF Tools since I couldn't really make out the corner tiles at all. I ended up modifying the map editor to use a black background, which really helped.

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Re: Where are the graphics for... well... everything?
« Reply #35 on: December 23, 2013, 05:02:48 AM »
Scaling will be easy when I get the tile graphics read from the rom directly, but it's unlikely to happen while I'm using the hard-coded tiles. Gamma correction, I have no idea how to do that. The background will ideally be whatever image that map has set as its background by default and maybe an option to turn it off and on or something.
Let's dance!

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Re: Where are the graphics for... well... everything?
« Reply #36 on: January 11, 2014, 04:03:10 AM »
Ok so I managed to find almost all the tilesets:

Castle Exterior: EEF40
Sealed Cave: F0220
Town: F1768
House: F2EC0
Castle Interior: F3AC0
Crystal Room: F51E8
Lunar Subterrane: F61A8
Lunar Core: F61A8
Feymarch: F8200
Tower: F9700
Lunar Whale: F9700
Mountain: FD408
Cave: FEA88

The ones missing are the Giant, the Ship, and the Airship.

The Giant I found partial success at the same address as the Tower and Lunar Whale, but while some of the tiles would appear correct, others would not; so if that is the correct address, then there's something else going on for the Giant tileset specifically.

The Airship address I noticed was posted in the first page of this thread, and it is oddly at 4 BPP rather than 3 like the rest of them, but it too does not seem to appear correctly. The ship I have no idea whatsoever. Could be that it shares graphic tiles with the Airship tileset much like the Tower and Lunar Whale; but until I can get the Airship tileset working I don't have any way to verify that.

I can't convert the system to dynamic tile reading until I can get all the tilesets working. Does anyone have any ideas as to where I should go from here?
Let's dance!

chillyfeez

  • FF4 Hacker
  • *
  • Posts: 1,285
  • Gender: Male
  • Go ahead, ask me about Angel Feathers!
    • View Profile
Re: Where are the graphics for... well... everything?
« Reply #37 on: January 11, 2014, 11:16:48 AM »
I don't know if this helps you or not... and I can't say I've ever really looked at thow the graphics are actually encoded for the tilesets, but FFTools seems to indicate that:
-Airship and Ship are different tilesets
-Lunar Whale, Tower and Giant are all different tilesets
I imagine it's probable that these tilesets share graphics tiles, but it seems the tilesets themselves are different (according to phoenix, anyway).

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Re: Where are the graphics for... well... everything?
« Reply #38 on: January 11, 2014, 05:07:50 PM »
There's no question that they're different tilesets. However it's apparently possible that two different tilesets share the same pointer for the graphic tiles. The ship and airship do seem to have the same pointer as each other, and the Tower, Giant, and Whale all seem to share a pointer as well. The only thing is that the Giant tiles, well, some look fine, but many don't. And I can't get the airship or sea ship tilesets to look correct, even at what should be the correct pointer.
Let's dance!

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Where are the graphics for... well... everything?
« Reply #39 on: January 13, 2014, 03:05:44 PM »
Are you loading the airship/ship tiles as 4BPP? It's the only map tileset I know actually uses 16 colors per metatile. Parts of the giant might too, not sure.

Gedankenschild

  • Vargas
  • *
  • Posts: 101
  • Gender: Male
    • View Profile
Re: Where are the graphics for... well... everything?
« Reply #40 on: March 17, 2014, 09:18:30 PM »
What exactly is the problem with the ship/airship tileset? Glancing over it, it looks pretty complete (and a single one, too)...
You've got to be kidding me with that Dynasty Warriors registration question??!!
I barely know such a series exists...

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Re: Where are the graphics for... well... everything?
« Reply #41 on: March 18, 2014, 04:54:15 AM »
Whoa, I was never able to get mine to look like that! Maybe I'm just not interpreting 4BPP correctly in the code or something... I'll look into it and tinker a little, and if I still can't get it I'll post the relevant code and maybe someone else will be able to see what's going wrong.
Let's dance!

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Re: Where are the graphics for... well... everything?
« Reply #42 on: April 01, 2014, 04:24:05 AM »
Attached screenshot is what I'm getting.

Here's my code for the graphic reading funciton:

Code: [Select]

SetTiles(&hADE00, 256, 4)

sub SetTiles(start as UInteger, total_tiles as Integer, bpp as UByte = 3)

 dim b as UByte
 
 for i as Integer = 0 to total_tiles - 1
  for j as Integer = 0 to 7
   for k as Integer = 0 to 7
    sprite(i, k, j) = 0
   next
  next
 next
 
 for i as Integer = 0 to total_tiles - 1
 
  if bpp < 4 then
 
   for j as Integer = 0 to 7
    b = ByteAt(start + i * 24 + j * 2)
    for k as Integer = 0 to 7
     sprite(i, k, j) = (b \ 2^k) and 1
    next
    b = ByteAt(start + i * 24 + j * 2 + 1)
    for k as Integer = 0 to 7
     sprite(i, k, j) += ((b \ 2^k) and 1) * 2
    next
   next
   
   if bpp = 3 then
    for j as Integer = 0 to 7
     b = ByteAt(start + i * 24 + 16 + j)
     for k as Integer = 0 to 7
      sprite(i, k, j) += ((b \ 2^k) and 1) * 4
     next
    next
   end if
 
  elseif bpp = 4 then
 
   for j as Integer = 0 to 7
    b = ByteAt(start + i * 24 + j * 2)
    for k as Integer = 0 to 7
     sprite(i, k, j) = (b \ 2^k) and 1
    next
    b = ByteAt(start + i * 24 + j * 2 + 1)
    for k as Integer = 0 to 7
     sprite(i, k, j) += ((b \ 2^k) and 1) * 2
    next
   next

   for j as Integer = 0 to 7
    b = ByteAt(start + i * 24 + 16 + j * 2)
    for k as Integer = 0 to 7
     sprite(i, k, j) += ((b \ 2^k) and 1) * 4
    next
    b = ByteAt(start + i * 24 + 16 + j * 2 + 1)
    for k as Integer = 0 to 7
     sprite(i, k, j) += ((b \ 2^k) and 1) * 8
    next
   next

  end if
 
 next

end sub

Let's dance!

Gedankenschild

  • Vargas
  • *
  • Posts: 101
  • Gender: Male
    • View Profile
Re: Where are the graphics for... well... everything?
« Reply #43 on: July 27, 2014, 07:34:45 PM »
I realize I'm pointing out the obvious, but: Looking at both our screens again I notice that your tileset seems pretty exactly double the size of mine with noticable redundancy. So you seem to be extracting too much. Not exactly coding help, but well... Don't forget: It may be twice the colors, but it's only one more bit (OK, probably not helpful, but that was actually a somewhat important realization in my understanding the ASM code.) Good luck!
You've got to be kidding me with that Dynasty Warriors registration question??!!
I barely know such a series exists...

LordGarmonde

  • Baigan
  • *
  • Posts: 271
  • Gender: Male
  • "Power only breeds war..."
    • View Profile
Re: Where are the graphics for... well... everything?
« Reply #44 on: July 28, 2014, 05:10:05 AM »
I wish I could be of more help but when it comes to the graphics:  :blits:

 :offtopic:  (Sort of at least  :tongue:)

One thing I did put together yesterday (for fun!) was this comparison shot between the SNES, Wonderswan, & GBA releases. It was kinda neat to look at.

Also, is it me, or does the deck actually look best in the WSC version? But that's just a choice in style.

"Now I know; and knowing makes it even more confusing..."