News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

[SM] Scenery.ttb

Started by Alisa Orlova, January 15, 2015, 06:42:24 AM

Previous topic - Next topic

Alisa Orlova

Hi everyone, I have a tiny question.

I exported "scenery.ttb" and opened it in HEX editor. Auto replace all to FF 03 (clean) and save. Open it clean file in Smile and made a to similar tiles with two different values (solid and air). Save it and export. Then i opened this new "scenery.ttb" with 2 new tiles in Hex editor and find a necessary line, but they was absolutely similar. This means "scenery.ttb" don't have information about tiles value. I'm genius right? he-he-he.  :lol:

Why did i do this sh*t? I thought tiles have a some prefix or something like this, and i can just automatically replace them in Hex Editor. But... no. So.. i want change all tiles value in "scenery.ttb" to solid by one click. How?
Why i need this? I swear, sometimes tiles just changes values without my knowledge!

Quietus

I may be assuming this is too obvious, but...

The tile table is comprised of 8x8 tiles that you use to build the 16x16 tiles in the game.  SMILE stores the BTS information only for the 16x16 tiles, and has no way to apply this information to the 8x8 tiles in the tile table.

Alisa Orlova

Quote from: Quietus on January 15, 2015, 07:50:14 AM
I may be assuming this is too obvious, but...

The tile table is comprised of 8x8 tiles that you use to build the 16x16 tiles in the game.  SMILE stores the BTS information only for the 16x16 tiles, and has no way to apply this information to the 8x8 tiles in the tile table.
Yep sir, i dare guess we speaking about two different types of files. I'm spiking exactly about .TTB (16*16), but not about . GFX.

[spoiler=16*16 .TTB] [/spoiler]

Quietus

Again, I await having my long-held thoughts challenged (:^_^:), but...

I believe that the tile table is on the right-hand side, and is comprised of 8x8 tiles.  You drag these to the tile table editor in the centre section to build 16x16 tiles, which you then save to the graphics set at the bottom.  BTS values are stored within the graphics set, but not in the tile table.  If you did what you're trying to do with the graphics set (GFX > Scenery > Export), it may well work, though it's possible the data you're after is only stored in the ROM.

[spoiler][/spoiler]

If that's not right, I'm wondering why nobody has corrected my thinking before now! :suspect:

:^_^:

Jordan5

GFX is the 8x8 tiles on the right, the tiletable tells SMILE how to arrange these 8x8 tiles into the 16x16 tiles you build with. (That is what I think, could be wrong :lol:)

The file which tells SMILE if the 16x16 tiles are solid/air etc is the .val file in SMILEs menus folder. (This also may be wrong, but I think I heard/read it somewhere. . .) I do not know how to edit this outside of SMILE as I haven't tried, I just set each tile's property for each tileset as I go :^_^:

Quietus

Clearly we're all flying by the seat of our pants when it comes to hacking.  "Just click on stuff!" :lol:

Alisa Orlova

Quote from: Quietus on January 15, 2015, 08:59:45 AM
If that's not right, I'm wondering why nobody has corrected my thinking before now! :suspect:
Looks like it's a lovely joke between the old friends. Someone wearing a T-shirt on inside out, and everyone except him know about it. But everyone keep quiet! Because it's fun!  :razz:


Quote from: Jordan5 on January 15, 2015, 10:03:19 AM
The file which tells SMILE if the 16x16 tiles are solid/air etc is the .val file in SMILEs menus folder.
Unfortunately I think that this is a wrong way. Twenty-nine files is too suspicious number. I think this is the type of values that can be used by Smile. Check the dates of these files, they are ten years old. So, we shouldn't change them.


Jordan5

There are 29 tilesets, thus there would be 29 files. Also, only the tilesets I haven't used have .val files which are 10 years old, the others are all much more recently updated (2013/14/15)

Qactis

Jordan is right.
[spoiler]

The tileset is the collection of 8x8s used to build what is in the tile table. The tiletable is the arrangement of those 8x8s, palette, and BTS of those tiles. The information for BTS is stored in the tile table, which smile compresses and writes back to the ROM when you save it. The .val files have the tile table settings stored, I'm not sure where.

[/spoiler]

Quietus

Well, that's just not good enough, I tell you.  I'm just not having it.  I have deleted my Redesign-beating hack, and uninstalled SMILE. :wink:

Jordan5

Quote from: Qactis on January 15, 2015, 05:40:31 PM
Jordan is right.

I would like to savour this once-in-a-lifetime moment now and forever :cheers: