Depending on your current situation, the setup for the Map Editor may take around 30 minutes to complete.
Please complete all steps below.
Software | Version / Option | Recommendation |
---|---|---|
Python | 3.10.7 | Required |
Microsoft C++ Build Tools | Desktop development with C++ | Required |
Blender | Latest | Strongly recommended |
Visual Studio Code | Latest | Strongly recommended |
- Click on
Add Python to PATH
in the Setup Wizard and then choose Install
- After the installation is complete, reboot your computer
- No additional information required. Just follow the installation wizard
- No additional information required. Just follow the installation wizard
- In
📁 Setup
, double click on📄INSTALLER.bat
to start the process
- Since Blender uses its own Python interpreter, you must install a few libraries from the previous step into Blender's Python Environment
- Open Blender as administrator, then click on the
Scripting
tab (top right corner) - A new grey window appears, click on
📁 Open
- Navigate to
...\MM1-Map-Editor\Setup
and selectblender_python_libraries.txt
- The grey window is now filled with Python code. Next, click on the
▶️ button or holdALT + P
to start - The process may take 30 - 120 seconds and Blender may freeze
- After the libraries have been installed, a log file will automatically open with the results
- Verify that all libraries (6) have been installed succesfully
- Close Blender (the application will likely be frozen)
- Launch Visual Studio Code as administrator and open
MAP_EDITOR_ALPHA_v1.py
- Next, click on the three-line menu icon at the top left corner. Then click on
File
and then onAdd Folder to Workspace...
- Make sure that the folder you select is
MM1-Map-Editor
and you click onAdd
at the bottom right of explorer menu -
- If you get a pop up asking for confirmation, click
Trust Workspace & Continue
- If you get a pop up asking for confirmation, click
- Go back to Visual Studio Code with
MAP_EDITOR_ALPHA_v1.py
open, and holdCTRL + SHIFT + P
. - A Command Palette opens. Now type and search for
Blender: Start
and click it
- Next, click on the Blender executable - if available, or click on
Choose a new Blender executable...
and navigate to e.g.:
C:\Program Files\Blender Foundation\Blender 4.0
and select theblender.exe
- Now hold
CTRL + SHIFT + P
to open the Command Palette again. Type and search forBlender: Start
and click it - If you see the following message in Visual Studio Code, it means VScode and Blender have succesfully connected:
- Note:
MAP_EDITOR_ALPHA_v1.py
contains a Test City, you may find the polygon data by searching for===TEST_CITY===
in the script (holdCTRL + F
to search) - Next, in VScode (with Blender connected), hold
CTRL + SHIFT + P
and type and search forBlender: Run Script
and click it. The script will now start - Only and only when you see a message very similar to this, it means the script has fully ran:
-
Note if the VScode Keybindings installed succesfully, you can invoke
Blender: Start
by holdingShift + Q
, and subsequentlyBlender: Run Script
by holdingShift + W
-
Alternatively, you can build the prepared Map without Blender connected. To do this, open
powershell.exe
in the main folder, then type:
python MAP_EDITOR_ALPHA_v1.py
- Tip: type
python m
and pressTAB
to autofill the script's name - If you are building without Blender connected and have
play_game = True
in the script, the script will automatically boot the game after it finished processing