OutpostUniverse / OP2Utility

C++ library for working with Outpost 2 related files and tasks.
MIT License
4 stars 0 forks source link

Allow writing custom tilesets #369

Closed Brett208 closed 3 years ago

Brett208 commented 3 years ago

@DanRStevens,

Just finished testing tilesets created by OP2Utility with Outpost 2 itself. After loading the original custom tilesets into memory and then saving them back to disk in the custom format, the game worked fine.

When loading the custom tilesets into memory and then saving them to disk as standard bitmaps, the game worked, but the tilesets were in reverse order.

Multiplying the bitmap height by -1 fixes the issue.

I think we need to probably invert the height whenever a custom tileset is loaded into memory and then invert it back before saving the custom tilesets to disk. This isn't implemented in this branch yet.

Also, the newly created tilesets are the exact same size on disk as the original custom tilesets, so besides fixing this sign issue, everything looks in order. Very encouraging to test.