Modding Map Sky Colors – Raifu Wars

Modding Map Sky Colors – Raifu Wars 1 - steamclue.com
Modding Map Sky Colors – Raifu Wars 1 - steamclue.com

How to edit map files for custom sky colors. Let’s make the sky red!
 
 

Introduction

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] !
 
 
Modding Map Sky Colors - Raifu Wars - Introduction - 4A6D45F97
 
 
 

Raifu Wars Map (.rwm) Format

On Windows, maps are saved in:
 

%LOCALAPPDATA%/RaifuWars/maps/

 
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.
 
 
Modding Map Sky Colors - Raifu Wars - Raifu Wars Map (.rwm) Format - D12E53C9F
 
 
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 assigned 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!
 
 
Modding Map Sky Colors - Raifu Wars - Publishing to Steam Workshop - A455B45A0
 
To publish the changes to Steam Workshop, just go to the menu and save again!
 
 
Modding Map Sky Colors - Raifu Wars - Publishing to Steam Workshop - 05F6345F8
 
Just hit OK, overwrite the map, and then hit “Yes” when prompted to publish to Steam Workshop.
 
 
Modding Map Sky Colors - Raifu Wars - Publishing to Steam Workshop - 70A150093
 
 

Written by birubawa

 
 
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!
 


Be the first to comment

Leave a Reply

Your email address will not be published.


*