- A way to use
git
such as Git Bash or the Windows-Linux Subsystem - Python 3.x
- Scons
- Godot
- A programming IDE such as Visual Studio Code
1. Git Bash
- Download and run the 64-bit Windows installer
- Leave settings as default
2. Python
- Download the latest version of Python (this includes
pip
)
- Check "Add python.exe to PATH" and use the "Install Now" option
- Open Windows Powershell and run the command
pip install scons==4.7.0
4. Godot
- Download Godot 4.3 The current version for the project will be on the main README page.
- Unzip the Godot executable wherever you prefer to have it
5. Visual Studio Code (IDE)
- For editing the C++ portion of the codebase, you may use any IDE that you are comfortable using
- Visual Studio Code is a popular choice of IDE
-
Go to the main repository page on Github
-
Get the link to clone the repo
- Using Git, clone the repo:
git clone https://github.com/OpenVicProject/OpenVic
-
Move into the OpenVic directory:
cd OpenVic
-
Retrieve submodules:
git submodule update --init --recursive
- Create and checkout a new git branch for your changes:
git switch -c my-cool-branch
- You should give your branch a descriptive name of the changes you intend to make
- Build the C++ portion of the project by running
scons
in Powershell- It will take a minute to initially compile. Any future C++ changes only need to recompile the files that were changed and are much faster
-
Run the Godot executable
-
Select the 'Import' project button
- Navigate to the
OpenVic/game/
directory and select theproject.godot
file
- Select "Import & Edit"
- This will open the Godot editor! Make your changes as desired and press the "Play" button in the top-right corner to run the game in-editor.
Whenever you are ready to commit your changes follow this process:
- Run
git status
to show what files are new or changed
- Run
git add ...
for each of the modified files
- Run
git commit -m "A descriptive commit message"
to make a commit with your staged changes
- Run
git push
to upload your current commits to your working branch- If you're warned that your branch has no upstream branch, run
git push --set-upstream origin my-cool-branch
, replacing "my-cool-branch
" with whatever your branch is named in Part 6 of Project Setup
- If you're warned that your branch has no upstream branch, run