How can I change the color / tileset of a map

Information and discussion for custom maps and mods.
Post Reply
Ronald
Posts: 20
Joined: Fri Aug 30, 2019 9:05 pm

How can I change the color / tileset of a map

Post by Ronald » Mon Sep 09, 2019 4:19 pm

Hello all,
I have a question is about this map "Six Below Zero" - created with the snow-tileset
I do like the layout of the map, but I do not the (too) bright white background color, so i am wondering:


A - Is it possible to turn the background color of the (tiles on the) map into the background color of another tileset (like the image below)?
Attachments
1_map_six_below_zero.jpg
1_map_six_below_zero.jpg (60.77 KiB) Viewed 181 times
2_map_editor_snow_tiles_width_500.jpg
2_map_editor_snow_tiles_width_500.jpg (78.31 KiB) Viewed 181 times
3_map_editor_green_tiles_width_500.jpg
3_map_editor_green_tiles_width_500.jpg (80.05 KiB) Viewed 181 times
Last edited by Ronald on Mon Sep 09, 2019 4:29 pm, edited 2 times in total.

Ronald
Posts: 20
Joined: Fri Aug 30, 2019 9:05 pm

Re: How can I change the color / tileset of a map

Post by Ronald » Mon Sep 09, 2019 4:25 pm

B - Or must I start to rebuild this entire map, with another (background_colored) tileset from scratch ?

C - Is there a OpenRA (MapBulders / Moders) tool, which one can use to quickly change the background colors of a given tileset into another background color?

Why?
If i'm able to replace the white colored pixels(inside the snow.mix file) with another (green / redisch) background color,
inside all tiles in the snow.mix tileset, then this challenge is solved.

Thanks for your hints, tips and tricks..
Attachments
4_map_editor_desert_tiles_width_500.jpg
4_map_editor_desert_tiles_width_500.jpg (67.63 KiB) Viewed 179 times
5_assest_browser_snow_mix_tileset.jpg
5_assest_browser_snow_mix_tileset.jpg (212.77 KiB) Viewed 179 times

Ronald
Posts: 20
Joined: Fri Aug 30, 2019 9:05 pm

Re: How can I change the color / tileset of a map

Post by Ronald » Tue Sep 10, 2019 1:39 pm

Challenge solved! thanks Willow for your kind help and assistance on the Discord server.!

Here is what I did (with the help of Willow of course)
1. Search for the relevant map folder in C:\Program Files (x86)\OpenRA\mods\ra\maps on Windows 7
2. Copy to [six-below-zero] folder into the same parent folder.
3. Renamed this copied folder to [Seven_Below_Zero].
4. Opened the map.yaml file in the [Seven_Below_Zero] folder.
5. Edited the following lines in the map.yaml file.
3rd line -> Title: Seven-Below-Zero.
5th line -> Change Tileset: SNOW into Tileset: TEMPERAT.

6. Saved the map.yaml file again to my harddisk.

-------------------------------------------------------------
10. Started OpenRA.
11. Switched to Map Editor.
12. Opened the map [Seven_Below_Zero] from the newly copied folder into the Map Editor.
13. Manually added the missing TEMPERAT tiles in the map. These are shown as black squares in the Map Editor display.
14. Saved the [Seven_Below_Zero] map to to my harddisk again.
seven_below_zero_big.jpg
seven_below_zero_big.jpg (70.94 KiB) Viewed 146 times
En voila - See here the original map called "Six-Below-Zero" with a new temperat tileset look :-)

Ronald
Posts: 20
Joined: Fri Aug 30, 2019 9:05 pm

Re: How can I change the color / tileset of a map

Post by Ronald » Tue Sep 10, 2019 8:04 pm

To be complete and to show that this method does not always work..
eight_below_zero_big.jpg
eight_below_zero_big.jpg (100.93 KiB) Viewed 122 times
I change the map.yaml - Tileset from SNOW to DESERT and this is the result in the Map Editor
As you can see the entire waterway and all coast-lines need seriious reconstruction after this tile-set switch.

Remuneration
Posts: 46
Joined: Sun Mar 09, 2014 3:49 pm

Re: How can I change the color / tileset of a map

Post by Remuneration » Wed Sep 11, 2019 2:47 am

And in RA2/YR mod Map Editor do nat want load "edited" maps from snow tileset to temperate at all.

User avatar
netnazgul
Posts: 443
Joined: Mon Jul 10, 2017 7:32 am
Location: Minsk
Contact:

Re: How can I change the color / tileset of a map

Post by netnazgul » Wed Sep 11, 2019 2:57 pm

All this of course depends on the actual tilesets setup - for TEMPERAT and SNOW the reference values for tiles are almost the same and tilesets themselves are also look similar, hence this worked. I also did this to port Snakes and Ladders to TD https://resource.openra.net/maps/27712/

User avatar
Graion Dilach
Posts: 249
Joined: Fri May 15, 2015 5:57 pm

Re: How can I change the color / tileset of a map

Post by Graion Dilach » Thu Sep 12, 2019 4:15 am

If it's the color brightness alone - map lighting is a thing now, so just use GlobalLightingPaletteEffect.

Ronald
Posts: 20
Joined: Fri Aug 30, 2019 9:05 pm

Re: How can I change the color / tileset of a map

Post by Ronald » Thu Sep 12, 2019 5:56 am

Graion Dilach wrote:
Thu Sep 12, 2019 4:15 am
If it's the color brightness alone - map lighting is a thing now.
Thanks for the remark Graion. And No.. this is not about the map brightness alone.

As you can read above, I like the TEMPERAT tileset color more, since it makes it (for me) easier to spot my units against the green background.
That is the main reason for why i wanted to learn how to do the "color-cnversion" on any map bbuild with the SNOW tileset.
Graion Dilach wrote:
Thu Sep 12, 2019 4:15 am
So just use GlobalLightingPaletteEffect.
Do you have any documentation or map? script? example where I can learn more about this "effect"? since these are the only pages I was about
to scrape from the OpenRA github account and that alone is not enough "getting-started-material" for a Map Making noob like me
https://duckduckgo.com/?q=site%3Ahttps% ... fab&ia=web

User avatar
netnazgul
Posts: 443
Joined: Mon Jul 10, 2017 7:32 am
Location: Minsk
Contact:

Re: How can I change the color / tileset of a map

Post by netnazgul » Thu Sep 12, 2019 8:03 am


Ronald
Posts: 20
Joined: Fri Aug 30, 2019 9:05 pm

Re: How can I change the color / tileset of a map

Post by Ronald » Thu Sep 12, 2019 4:19 pm

netnazgul wrote:
Thu Sep 12, 2019 8:03 am
viewtopic.php?f=83&t=20867
Thanks Netnazgul - for the reference to this forum thread
Thanks Frenzy for - making this mini-tutorial, These effects look absolutely stunning!

1. OS Palette Editor downloading
[|||||||||||||||||||||||] - Complete!

2. Searching for YAML File Editor
[||..............................]

Q: Does anyone know a good - offline - YAML file editor?

User avatar
Graion Dilach
Posts: 249
Joined: Fri May 15, 2015 5:57 pm

Re: How can I change the color / tileset of a map

Post by Graion Dilach » Thu Sep 12, 2019 4:43 pm

Notepad++ is commonplace for Windows. YAMLs are just shiny text files anyway - the reason plain Notepad wouldn't work with them, is because OpenRA uses Linux line ending and Notepad show the whole text as one really long line as a result.

I got used to Komodo Edit in the last few years myself though.

Ronald
Posts: 20
Joined: Fri Aug 30, 2019 9:05 pm

Re: How can I change the color / tileset of a map

Post by Ronald » Thu Sep 12, 2019 5:07 pm

Notepad++ editor? [x] Check!

Thanks for the reply Graion

Post Reply