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

hemtt dev generate SymLinks #669

Open
mrschick opened this issue Mar 14, 2024 · 4 comments
Open

hemtt dev generate SymLinks #669

mrschick opened this issue Mar 14, 2024 · 4 comments
Labels
bug Something isn't working need info

Comments

@mrschick
Copy link

mrschick commented Mar 14, 2024

Very recently, help on the ACE3 Discord finally allowed me to get file patching to work on a project I integrated HEMTT into.
As it turned out, the issue was simply that symlinks from the Arma 3 directory to the project's repo were not set up, because I didn't know they had to be.
At the same time I was mislead by file patching working on my copies of ACE3 and ACRE2. Only after resolving did I realize that ACE3 and ACRE2 have setup.py that must have setup those symlinks automatically, while my project does not.

LinkGrim on the Discord confirmed that HEMTT does auto-setup those symlinks, but only when running hemtt launch, and I usually just run hemtt dev to use file patching, launching Arma 3 via the launcher to have a better UX for selecting mods.

Since both launch and dev are used to generate builds that work with file patching and disabled CBA function caching, IMO it would be best for both commands to generate symlinks, for more automation and circumvention of user ignorance.

@BrettMayson
Copy link
Owner

BrettMayson commented Mar 14, 2024

hemtt dev already creates symlinks, exact same code as hemtt launch. hemtt launch just runs hemtt dev internally, then launches Arma, there shouldn't be any other difference than if Arma opens after

@mrschick
Copy link
Author

Huh, then I'll have to figure out why it didn't create the symlinks on my machine.

@BrettMayson BrettMayson added bug Something isn't working need info labels Mar 15, 2024
@BrettMayson BrettMayson changed the title Feature Request - Make hemtt dev generate SymLinks hemtt dev generate SymLinks Mar 15, 2024
@mrschick
Copy link
Author

So I'm tracking what the code does when running hemtt dev -v on this repo branch, while having added some additional debug!() logs.

bin\src\link.rs:create_link():12 is called to create a symlink, but apparently only once by bin\src\modules\file_patching.rs:pre_build() to generate links in .hemttout\dev\addons\ to each of the project's addons.
What I would expect is a link from Arma 3\z\DRNP\ to my project's folder to be created in order to get file patching to work, but that doesn't happen.

@mrschick
Copy link
Author

mrschick commented Apr 1, 2024

Which exact function should create the link in %armadir%\mainprefix\prefix to the project?
Knowing it might help me debug the issue on my machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need info
Projects
None yet
Development

No branches or pull requests

2 participants