Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools - Use HEMTT documentation for installs #10430

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/vehicles/functions/fnc_setVehicleStartDelay.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* None
*
* Example:
* [hemmt, 3.2] call ace_vehicles_fnc_setVehicleStartDelay
* [hemtt, 3.2] call ace_vehicles_fnc_setVehicleStartDelay
*
* Public: Yes
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ This page describes how you can setup your development environment for ACE3, all

**HEMTT:** _(recommended)_
- [Windows] PowerShell v3.0+ _(pre-installed on Windows 8 or newer)_
- [HEMTT](https://github.com/BrettMayson/HEMTT/releases) (>=v1.7.2) in project root _(Windows users can double-click `tools/setup.bat`)_
- `hemtt` (Linux) or `hemtt.exe` (Windows)
- [HEMTT](https://hemtt.dev/installation) (>=v1.7.2)
- `hemtt` (Linux / MacOS) or `hemtt.exe` (Windows)

**Mikero Tools:**
- P-drive
Expand Down Expand Up @@ -50,7 +50,9 @@ _Replace `hemtt` with `hemtt.exe` on Windows. P-drive is **not** required for HE

### 4.1 Initial Setup

Execute `tools\setup.bat` (double-click on Windows) or download [HEMTT](https://github.com/BrettMayson/HEMTT/releases/latest) and place the executable in project root (Windows and Linux - binarization supported only on Windows at this time).
Install HEMTT using the instructions provided in [The HEMTT Book](https://hemtt.dev/installation).

(Windows and Linux - binarization supported only on Windows at this time).

#### 4.1.1 File Patching Setup

Expand Down
6 changes: 3 additions & 3 deletions tools/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"kind": "build",
"isDefault": true
}
}
},
{
"label": "Extension: x64",
"command": "cargo",
Expand All @@ -131,7 +131,7 @@
"group": {
"kind": "build"
}
}
},
{
"label": "Extension: Release",
"command": "cargo",
Expand All @@ -147,4 +147,4 @@
}
}
]
}
}
10 changes: 5 additions & 5 deletions tools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
import os
import sys
import subprocess
import shutil

######## GLOBALS #########
MAINPREFIX = "z"
PREFIX = "ace_"
##########################

def tryHemttBuild(projectpath):
hemttExe = os.path.join(projectpath, "hemtt.exe")
if os.path.isfile(hemttExe):
if shutil.which("hemtt"):
os.chdir(projectpath)
ret = subprocess.call([hemttExe, "pack"], stderr=subprocess.STDOUT)
print("Using hemtt: {}".format(ret));
ret = subprocess.call(["hemtt", "pack"], stderr=subprocess.STDOUT)
print("Using hemtt: {}".format(ret))
return True
else:
print("hemtt not installed");
print("hemtt not installed")
return False

def mod_time(path):
Expand Down
16 changes: 0 additions & 16 deletions tools/setup.bat

This file was deleted.

14 changes: 7 additions & 7 deletions tools/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ def main():
if repl.lower() != "y":
return 3

hemmt_path = os.path.join(projectpath, ".hemttout", "dev")
print("\n# Use Hemmt Dev Path for arma filepatching:")
print(f" y: {hemmt_path}")
hemtt_path = os.path.join(projectpath, ".hemttout", "dev")
print("\n# Use HEMTT Dev Path for arma filepatching:")
print(f" y: {hemtt_path}")
print(f" n: {projectpath}")
repl = input("(y/n): ")
filepatching_path = projectpath
if repl.lower() == "y":
if not os.path.exists(hemmt_path):
print(f"creating {hemmt_path}")
os.makedirs(hemmt_path)
filepatching_path = hemmt_path
if not os.path.exists(hemtt_path):
print(f"creating {hemtt_path}")
os.makedirs(hemtt_path)
filepatching_path = hemtt_path

if os.path.exists("P:\\{}\\{}".format(MAINDIR, PROJECTDIR)):
print("Link on P: already exists. Please finish the setup manually.")
Expand Down