• Blitz Shadow Player
  • Caius
  • redboot
  • Rules
  • Chain of Command
  • Members
  • Supported Ladders & Games
  • Downloads


Slopes Mod
08-01-2021, 10:24 AM, (This post was last modified: 08-01-2021, 11:24 PM by Xerxes77.)
#1
Slopes Mod
Previous reference: https://www.theblitz.club/message_boards...?tid=74747

Hi gents,
A few weeks ago I posted a few screenshots in the thread above with the results of my experimental attempts to add a simple 3D effect to the map elevations in 2D view. I'm now ready to share the final product packaged as what I call the "Slopes mod".

This is a visual mod that modifies the stock game's .map files. in my opinion, it considerably enhances the readability of elevations in most maps. The stock outline option is essential, but just doesn't cut it for some of the more complex terrain. Also, I was basically envious of other games like PzB or the Civil War series, which do have sloped terrain and IMO look really good, so I wanted to see just how close we could get to mimicking their appearance.

As I described in that earlier thread the solution I came up with involves repurposing one of the terrain hexsides so that it looks like a slope. Once the hexside graphic was modified to look slightly 3D, it had to be applied along the contour lines to follow the elevations changes. This would be of course too much of a hassle to do manually for every map, so I ended up creating a small program that automates the whole process.

This approach has two downsides. The biggest by far is that one of the existing hexsides in the game must be sacrificed to become the ersatz "Slope" hexside. Eventually I chose to get rid of the "Embankment" hexside. Due to the way hexsides are handled internally, there were only two other candidates: Cliffs and Escarpments, but the former is tied to a specific game mechanic and the latter has a more significant effect on unit movement/protection. Embankments are comparatively milder in terms of game effects and infrequent enough to be the natural choice.

The second downside is that the hex info box will show "Embank" instead of "Slope" on any hex side next to an elevation change. A possibly minor but annoying side effect nonetheless.

If you're hesitant about the whole thing, my suggestion is give it a try. The mod is fun, completely reversible and, for maps that do not originally include embankments, it doesn't affect gameplay in any way. For maps that *do* contain embankments, it all depends on how much prevalent they are and whether you feel the tradeoff is worth it. In my opinion, it is so for the vast majority of cases.

Instructions:
The mod is ready for use with JSGME (It can be applied manually, but you have to take care of copying and replacing the files yourself). Below is the procedure for the one-time installation needed for each game; once completed, the mod can be enabled/disabled with JSGME like any regular mod. These steps assume you have a "MODS" subfolder created within the main program folder.

1) Choose your SB game and extract the contents of "Slopes Mod.zip" provided below into the "MODS" folder:
https://www.theblitz.club/uploads/files/...%20Mod.zip

2) Copy all maps (.map files) and all PDTs (.pdt files) from the main game folder to the "MODS/Slopes - Base" folder.
3) Run "slopify.exe" included in "Slopes - Base" (either double-click on it or invoke it from a command prompt). This little program does all the heavy lifting. It will modify all .map files in the same subfolder to create the needed slopes. It is cautious by default. If it encounters a map with embankments, it will ask the user for permission to overwrite them. You can choose to modify just that map, to overwrite all further maps, or to skip all further maps that include embankments. I tried to be as conservative as possible, even when we're already working with copies of all the original files.
After processing the maps, slopify.exe will move on to the .PDTs and will set the movement/protection values of embankments to 0 (this is needed so as not to affect normal gameplay).
4) After slopify.exe is done, it will exit. You can now enable "Slopes - Base" with JSGME and enjoy the new vistas.

Final notes:
- The simplest and fastest option is just process all maps and .pdts and see how you like the end results. If you prefer to skip a map because you don't want to break the existing embankments, make sure to identify its associated .pdt to manually restore the embankment values. If the .pdt is shared with other maps, a decision must be made either for that batch (which the option to create specific .pdts for each map).
- Submaps are not true maps, but "viewports" to the original maps- they don't contain any terrain data, so Slopify.exe will automatically skip them.
- Slopify.exe can be run with a few optional switches that are disabled by default:
/l will create a detailed log file in the same folder under the name "Output.txt", and will open it for review after all the processing is done.
/b will create a backup (.bak) of every file it modifies. This is probably overkill, but the option is there.
/v will enable "Verbose Mode", which will output a detailed log of the program's activity on the screen.

Hope you enjoy the mod and like the results. Feel free to ask if you have any doubts, questions and of course I will greatly appreciate any feedback!

EDIT: A couple more screenies for comparison. First, the vanilla game with elevation outlines, depicting a battle in Mozambique (playing with mod Africa at War):
[Image: Mozambique_NoSlopes.jpg]

The same section of the map, now with slopes, outlines deactivated:
[Image: Mozambique_Slopes_NoContour.jpg]

Elevation outlines can coexist with the slopes, which is especially helpful in some scenarios with dense tree coverage. The combined effect results in a bit of an extra oomph:
[Image: Mozambique_Slopes_Contour.jpg]


Attached Files
.zip   Slopes Mod.zip (Size: 199.13 KB / Downloads: 32)
Quote this message in a reply


Messages In This Thread
Slopes Mod - by Xerxes77 - 08-01-2021, 10:24 AM
RE: Slopes Mod - by LostLT - 08-03-2021, 12:30 AM
RE: Slopes Mod - by Xerxes77 - 08-03-2021, 06:53 AM
RE: Slopes Mod - by Warhorse - 08-04-2021, 10:06 AM
RE: Slopes Mod - by Compass Rose - 08-04-2021, 10:27 AM
RE: Slopes Mod - by bigus - 08-14-2021, 03:43 AM
RE: Slopes Mod - by Xerxes77 - 08-14-2021, 09:28 AM
RE: Slopes Mod - by Wyvern666 - 12-31-2021, 03:09 AM
RE: Slopes Mod - by Xerxes77 - 12-31-2021, 05:06 AM
RE: Slopes Mod - by Pinetree - 01-02-2022, 09:26 PM
RE: Slopes Mod - by Xerxes77 - 01-02-2022, 10:03 PM
RE: Slopes Mod - by Yeray - 01-06-2022, 09:22 AM
RE: Slopes Mod - by Xerxes77 - 01-06-2022, 09:56 AM
RE: Slopes Mod - by Compass Rose - 01-06-2022, 10:31 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)