Comparison with default
Requirements
- Squad SDK
- Python 3.6+
- PIL (pip install pillow)
Usage
-
Open up SDK, and open up a layer (don't open master layer unless you know how to add lighting) you want to render (first time it will take a very long time).
-
Open world properties and find minimap generation tool. Ingame minimaps have a resolution 4096 with a tile of 1. Increasing tiles will increase final resolution, however it might use up too much ram and crash if you choose a too large of a resolution-tile combo.
IMPORTANT! Before generating minimap tiles execute this command -
r.ViewDistanceScale.SecondaryScale 100
in the editor to disable LOD optimizations so it renders all actors everything. -
Create a master folder where you will keep all squad minimap generation folders (eg. SquadMinimaps). Create a folder with the layer name (eg. Sumari_AAS_v1) within that master folder and export images from the minimap tool to that folder.
-
Copy
BP_FlagExport.uasset
into{SquadEditor}\Squad\Content\Blueprints\Tools
(or any other folder) then inside the editor drag the copied blueprint into the viewport. In the world outliner select the added bp and under details fill out the necesary boxes. Use the same markers that you used when creating the minimap. Finaly, click on the generate json button. -
Copy json from
{SquadEditor}\Squad
directory into the directory you extracted your images to. Your folder should look something like this. -
Open
stitcher.py
and inside change the input/output settings (line 10 - 29). Run the script. If you did everything correctly there will be a generated image (formated as {layer}_stitched.jpg) in the same folderIMG_DIR
folder.
TODO
Major
Fix flag zone rendringFind out why the minimap tool only renders actors in the middle of the map and fix itFixed withr.ViewDistanceScale.SecondaryScale 100
Better json exporting - printing in console nowMap border export + rendering- Support more gamemodes (Only AAS tested)
Minor
- Change material of fields when rendring
- Vehicle spawns
- GUI tool
- Multithreading
- Test non square maps (probably all minimaps are square but not sure)
Custom minimap rendering bluprintFound fix for stockConnect both blueprints into a single tool
- Fully automate everything
- Finish documentation