-
Notifications
You must be signed in to change notification settings - Fork 8
Home
Zakary Boven edited this page Sep 19, 2023
·
5 revisions
Welcome to the Warcraft Legacies wiki. It contains guidance on contributing changes to the map, as well as explanations of some of the more esoteric Warcraft III mechanics.
- Clone the
main
branch of the repository to your local machine. - Run the
WarcraftLegacies.Launcher
project from Visual Studio or Jetbrains Rider using theWarcraftLegacies: Test
launch setting. - You should get an error saying it can't find your Warcraft 3 path. Navigate to
src\WarcraftLegacies.Launcher\
and openappsettings.{YOURUSERNAME}.json
. Change the Warcraft3ExecutablePath setting to wherever your Warcraft 3 executable is, then repeat step 2. It should now launch.
Follow these steps to contribute changes to the Warcraft Legacies project. This section assumes that you have not contributed before.
- Use Github Desktop, Visual Studio, or Jetbrains Rider to clone the repository at https://github.com/AzerothWarsLR/WarcraftLegacies
- Pull the
main
branch - Make a local new branch based on
main
- Run the
Launcher: WarcraftLegacies: Convert MapData to W3X
launch configuration - Make the changes you want to make using either Visual Studio or the World Editor
- If you used the World Editor to make any changes, run the
Launcher: WarcraftLegacies: Convert W3X to MapData
launch configuration - Commit your changes to your local branch
- Ensure that your local branch is up to-do-date with
main
; if it's not, mergemain
into your local branch - Push your changes
- Navigate back to https://github.com/AzerothWarsLR/WarcraftLegacies
- Make a Pull Request from your branch to either
dev
ormain
. See our https://github.com/AzerothWarsLR/WarcraftLegacies/wiki/Branching-and-merging-strategy to determine which
Warcraft Legacies uses a custom build system; map files are stored as .json instead of binaries, which makes editing object data and committing it a little complicated. Here's how you can do it:
- Clone the repository to your local machine.
- Run the
WarcraftLegacies.Launcher
project from Visual Studio using theWarcraftLegacies: MapData to W3X
launch etting. - Check the
maps
folder; you should have a new folder calledWarcraftLegacies.w3x
. - Open
WarcraftLegacies.w3x
using the Warcraft 3 World Editor. - Make any changes you want to make in the Editor, then save the map.
- Using Visual Studio, run
WarcraftLegacies: W3X to MapData
. - Your changes should now be reflected in the
mapdata\WarcraftLegacies
folder. These changes can be committed back to version control.
- There is no documentation specific to this project, but attempts have been made to keep the code readable, and there are plenty of explanatory comments.
- You will also need to understand the Warcraft 3 API. Unfortunately documentation is scarce, but method signatures can be found here. I recommend using Hive Workshop Discord or forum if you need more information.