Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
1 user currently in Super Mario World hacking: labmaster | 3 guests
Acmlm's Board - I2 Archive - Super Mario World hacking - Tile Counter v0.5
  
User name:
Password:
Reply:
 

UserPost
Sukasa
Posts: 124/1981
With PCX, Couldn't you (once you have a GUI), have the user show the program where the PIC2SNES exe is, then have your program call it, then use the output from that program?
Juggling Joker
Posts: 582/1033
PCX is a slim possibilty, because I would have to convert from PCX to SNES before testing it anyway (PCX isn't tile based either, as far as I know), which would be a waste of time. PCX2SNES is a fine enough program.
The Kirby
Posts: 11/48
What about other formats such as PCX?
Juggling Joker
Posts: 579/1033
That's probably because the program only reads (or should I say understands?) 4bpp SNES format. There will probably never be support for bitmaps, seeing as how it's not a tile based format.

PS: I'm nearly finished with the next version, which can determine if a tile is just a flipped version of another one. I need a test file to run it on, though.
The Kirby
Posts: 10/48
Well, I just tested the program with a 8 x 8 BMP and it said there are 5 unique tiles??? What the...? I also used it with my original Hilly.bmp and it brought up around 700 unique tiles. I know that can't be right if this counts 8 x 8 tiles.
Juggling Joker
Posts: 578/1033
Counting 16x16 is kinda silly, considering that I can't think of a graphics format (for a console, anyway) that is stored in 16x16 tiles.
The Kirby
Posts: 9/48
Awesome! This is just what I needed! Thanks!

Oh! I forgot to mention that the program could really use a option for setting how big the tiles you want to have counted. Such as 8 x 8 and 16 x 16.
Juggling Joker
Posts: 575/1033
I plan on adding support for testing all permutations of tiles, too, in case anyone was curious. What this means is that flipped tiles that are otherwise identical will still register as the same tile. Another planned feature is the option to output the findings of the program into an external file, for ease of eliminating redundancies. Finally, an option to reoutput the file (backing up the original, of course) with all the redundancies eliminated. Let me know if you have any other features that would be a good addition to this program.
Jesper
Posts: 2184/2390
I once saw one of BMF's screenshots where he had basically done this by hand since he was used to it from NES development. Tools that help this are encouraged, especially with more and more intense graphics and big tilesets!
Juggling Joker
Posts: 572/1033
Main page. Scroll to the bottom for the download link. Consider this an open beta. Report any bugs here and I'll deal with them as they come.

From the readme:

=================
Tile Counter v0.5
by Juggling Joker
=================

--------------------
0. Table of Contents
--------------------

1. Version History
2. Explanation
3. Using Tile Counter
4. Future Versions
5. Contact Info


------------------
1. Version History
------------------

0.5 - *This release.* Only recognizes SNES 4BPP format. Does not support reading from a selected part of the file.


--------------
2. Explanation
--------------


Really, this program is only useful for those SMW Hackers out there who would like to streamline their graphics by eliminating redundant tiles, or make tile counting easy for M16-7K users. It goes through the file provided, and stores a copy of each unique tile it finds in memory. For you tech heads out there, don't worry too much about running out of memory for large files, there is a size restriction in place to prevent that. If you have a file that has more than 1000 unique tiles (the current cutoff), let me know, and I'll up the limit.


---------------------
3. Using Tile Counter
---------------------

Using Tile Counter is fairly simple. You can either run it from the command prompt or straight from Windows. It will ask for the file you wish to load, make sure you include the extension! After that, things are pretty much on autopilot. Once the program is finished, it will output the number of unique tiles it found, and you're done! Simple, eh?


------------------
4. Future Versions
------------------

I have a couple other planned features if there is enough demand for them.

Examples include:

- Support for other formats
- Options to read only a selected portion of the file
- Maybe a Windows App

Other suggestions are of course encouraged, just keep the basic function of the program in mind. This is not an editor by any means!


---------------
5. Contact Info
---------------

You can reach me at either jugglingjoker@gmail.com OR board.acmlm.org under the SMW Hacking forum. My username, quite obviously, is Juggling Joker.
Acmlm's Board - I2 Archive - Super Mario World hacking - Tile Counter v0.5


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.007 seconds.