-
Notifications
You must be signed in to change notification settings - Fork 46
Building from source
Marvin1099 edited this page Dec 8, 2023
·
31 revisions
I you want to build from source, you can do so on Windows and Linux.
Here is a detailed step by step guide.
Grab Python
Download the repository
Fix a later Issue
Download Dependency's
Sound Effects
Update Submodules
Run Pyinstaller
Add BEE Items
Linux Puzzlemaker Fix
Run BEE 2
- On Linux
- Download python from your your package manager (also grab python-pip and git)
- If you want to you can try and grab the required packages from your package manager
- Not all of them will exist in your package manager
- So grab the rest or just all of the required packages over a python venv
- For this you will need to run something like this
-
python -m venv %YOUR-PREFERRED-PATH-FOR-VENV%
(You will need to change this to any path you like to use) - At this point you will need to source the venv, so on a bash terminal you will need to run
source %YOUR-PREFERRED-PATH-FOR-VENV%/bin/activate
- On Windows
- Download python on the website python.org/downloads or over the winget package manager
- Download the git from git-scm.com/download/win or over the winget package manager
- For that go copy the main github repo link (so
https://github.com/BEEmod/BEE2.4
) - Then clone the repo (you can also download the zip on the main github repo)
- Run
git clone --recurse-submodules https://github.com/BEEmod/BEE2.4.git
for the main repo - Alternatively you can run
git clone -b dev --recurse-submodules https://github.com/BEEmod/BEE2.4.git
to get the dev branch
- Run
- Here you will need to rename or delete the geocable.py that is not working right now (and is not required anyway)
- So on Linux run
mv BEE2.4/hammeraddons/transforms/geocable.py BEE2.4/hammeraddons/transforms/geocable.py.disabeled
- On Windows run
ren BEE2.4\hammeraddons\transforms\geocable.py BEE2.4\hammeraddons\transforms\geocable.py.disabeled
- So on Linux run
- For that fist go into the cloned BEE2.4 directory
- So type
cd Bee2.4
- So type
- So now install the requirements from the requirements.txt file
- So run
pip install -r requirements.txt
- You also need to run
pip install -r dev-requirements.txt
if you grabbed the dev branch
- So run
- For that you will need a copy of FFmpeg
- You will need to put these in the lib-32 and/or lib-64/ folders (if you are in the BEE2.4 Folder).
- Then copy the contents of the bin folder into the appropriate lib-XX folder mentioned.
- Here just run
git submodule update --init
- To do this run
cd src
from the BEE2.4 directory (your terminal should still be in there) - Compile the app
- Here run
pyinstaller --distpath ../dist/64bit/ --workpath ../build_tmp compiler.spec
- Also run
pyinstaller --distpath ../dist/64bit/ --workpath ../build_tmp BEE2.spec
- Here run
- Change directory to ../dist/64bit/BEE2/packages/
- So on Linux run
cd ../dist/64bit/BEE2/
- On Windows you will need
cd ..\dist\64bit\BEE2\
- Keep in mind if you build for 32 bit you will need to use the 32bit folder
- So on Linux run
- Create the packages folder
- So run
mkdir packages
- So run
- Here you will need to grab the items from the newest release
- Download the music_packages.zip and packages.zip BEE2-items/releases/latest
- Then copy over the files inside the zip into the package directory
- On Linux the puzzlemaker seems to be broken
- One way that was found to fix it is here portal2/issues/403
- Essentially what you will need to do is download a old version and copy over the working library file
- Fist make sure steam is not running
- Then run
steam -console
orsteam-native -console
- After steam has started click on console
- Then in there run
download_depot 620 661 2854055004190207766
- Then go to the folder ~/.local/share/Steam/ubuntu12_32/steamapps/content/app_620/depot_661/bin/linux32
- There copy the filesystem_stdio.so to ~/.local/share/Steam/steamapps/common/Portal 2/bin/linux32
- You can also use this command for that
cp "~/.local/share/Steam/ubuntu12_32/steamapps/content/app_620/depot_661/bin/linux32/filesystem_stdio.so" " ~/.local/share/Steam/steamapps/common/Portal 2/bin/linux32/filesystem_stdio.so"
- You can also use this command for that
- Finally go back to the BEE2.4/dist/64bit/BEE2/ folder and run the BEE2 file
- At this point you can do any use BEE2 as you expect it to like setting presets and exporting to portal 2