How to edit map files for custom sky colors. Let’s make the sky red!
Hi, I’m Birubawa, the lead developer at Yotis Studios. I’m providing this guide to help map creators make their maps even more awesome! We’ll go over the basics of the map file format and tweak some values so our map has a red sky instead of the default blue one.
Check out the finished product – [steamcommunity.com] !
Raifu Wars Map (.rwm) Format
On Windows, maps are saved in:
You can access this folder easily by opening Run (Windows Key + R) and entering the directory above.
Find a saved map and open it with your favorite text editor.
The 1st line of the map file is a JSON – [w3schools.com] string containing metadata such as the map’s name, width/height, climate, etc. We will modify two values (skyColorPrimary and skyColorSecondary) later in this guide.
The remaining lines correspond to the tiles of the map. There are map_h lines with map_w values each delimited by a comma.
WARNING: editing maps manually is encouraged and intended to be easy, but invalid values or errors in the formatting of the file can cause the game to crash upon loading the map. Always make backups!
How to Change Sky Colors
By default, sky colors are a*signed by the chosen climate. However the map’s sky colors can be changed to anything by simply modifying the values skyColorPrimary and skyColorSecondary. These 2 values are used to make a gradient so it’s recommended that the secondary color is lighter but still similar to the primary color.
The values are decimal BGR colors used by Game Maker Studio; you can convert to this format using this tool – [chrisanselmo.com] and using the “GML Raw” value.
For the red sky on this map I changed the following values:
- skyColorPrimary: 263275
- skyColorSecondary: 4145149
Publishing to Steam Workshop
Once your changes are made, save them and load up Raifu Wars. Edit your map and behold the changes!
To publish the changes to Steam Workshop, just go to the menu and save again!
Just hit OK, overwrite the map, and then hit “Yes” when prompted to publish to Steam Workshop.
Here we come to an end for the Modding Map Sky Colors – Raifu Wars guide. I hope this guide has helped you with your gameplay. If you have something to add to this guide or believe we forgot some information to add, please let us know via comment! We check each comment manually by approving them!
- All Raifu Wars Posts List
Leave a Reply