Page 1 of 1

Need help on editor... (ra interior tileset only for now)

Posted: Sun Dec 11, 2022 1:21 pm
by PacmanGraphics
Hi folks,

https://github.com/HakkaTjakka/Project- ... Map-Editor

I've started also with a kind of map editor thing.

For now i have a c/c++ program that can read / write the map.bin file in the my_map.oramap (.zip) file, and produce map.yaml data.

I started with a file interior.yaml i found in the source or so, where the tilesetdata is defined. And i can read it.

I also found the tiles images in a file called interior.mix, i extracted them with XCC_Utilities.exe, a windows program.
(I'm working under Ubuntu Linux only...)
These tile images match the interior.yaml data perfectly.

Then the data from the map.bin file, there are 3 bytes for the map-tile in a first block, and 2 in the second block for things like sprout, emeralds etc.

The 3 bytes for each tile consists of a 16 bit (2 bytes) number pointing to the "Id: #" in the interior.yaml file.
The third byte is AN OFFSET TO A TILE INSIDE THE (multi-tile) IMAGE, for tiles that can have multiple variants of the tile (like floor or wall), or multiple tiles inside the image giving a construction of some of the tiles inside the image.
(This can be a little confusing).

So i did that, and connected the bytes in the map.bin (first 3) to the correct tile in the images.
But lot don't match ok.....

How it looks (interior map: https://github.com/HakkaTjakka/Project- ... R/spyvsspy )
https://github.com/HakkaTjakka/Project- ... uction.png

How it should look like:
https://github.com/HakkaTjakka/Project- ... uld_be.png

As you can see some tiles don't mach. Not from the image files from the interior.mix, or from the tilesets/interior.yaml, or from the map.bin file, or my program... Somehow they mixing things up or their are different versions or a trick, i don't know by now.....

Maybe we combine or share our efforts knowledge and stuff to get things going.....?