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.....?
Need help on editor... (ra interior tileset only for now)
Editor for OpenRA. Interior maps / tileset for now... Some tiles dont match (interior.mix, interior.yaml, map.bin ?)
- PacmanGraphics
- Posts: 8
- Joined: Fri Nov 04, 2022 12:41 pm
- Location: Enschede
- Contact:
Need help on editor... (ra interior tileset only for now)
-----BEGIN PUBLIC KEY-----
MIIBIzANBgkqhkiG9w0BAQEFAAOCARAAMIIBCwKCAQEAoJ4ze+0XWqLKybjLLT7o
meCyA2T5TbR9LyAZsZagaBGRcSUrXq6KjdkJXl1Dl3gHLhft7CfuoHavDvjMN3eS
FO4hoSkwMywEKY2ujD8Z7VyU6PhJk+cJ2OuwejiNM6jz5LgqlH8KWAYqbHW/7Rfu
za8Nxn2fmpTlZPNeMYlXk/zEHpxUTNDomugJ435F+9JdOx+y5W9Cl3GLteILYkJb
X6ummGK+Fxo9J3PP5Colv9p+vgZ5J/zMsblGJy2Ogo6TLn5BHUFeaPM06esjwTIW
oL6GnfF5yd4U3pPCMnkv1L/lRY0WySvGJRIbL5ERdCyYoBDPcJXNQp6Ztw+DakX/
mwIEAAEAAQ==
-----END PUBLIC KEY-----
MIIBIzANBgkqhkiG9w0BAQEFAAOCARAAMIIBCwKCAQEAoJ4ze+0XWqLKybjLLT7o
meCyA2T5TbR9LyAZsZagaBGRcSUrXq6KjdkJXl1Dl3gHLhft7CfuoHavDvjMN3eS
FO4hoSkwMywEKY2ujD8Z7VyU6PhJk+cJ2OuwejiNM6jz5LgqlH8KWAYqbHW/7Rfu
za8Nxn2fmpTlZPNeMYlXk/zEHpxUTNDomugJ435F+9JdOx+y5W9Cl3GLteILYkJb
X6ummGK+Fxo9J3PP5Colv9p+vgZ5J/zMsblGJy2Ogo6TLn5BHUFeaPM06esjwTIW
oL6GnfF5yd4U3pPCMnkv1L/lRY0WySvGJRIbL5ERdCyYoBDPcJXNQp6Ztw+DakX/
mwIEAAEAAQ==
-----END PUBLIC KEY-----