Expansion not working
-
@daniloprates What else have you done?
-
Here's my code:
Content.makeFrontInterface(600, 600); const var expHandler = Engine.createExpansionHandler(); expHandler.setAllowedExpansionTypes([expHandler.FileBased, expHandler.Intermediate, expHandler.Encrypted]); const expList = Engine.getExpansionList(); Console.print(trace(expList));
The file structure:
And the
expansion_info.xml
:<?xml version="1.0" encoding="UTF-8"?> <ExpansionSettings Name="Test Expansion" version="1.0.0" ProjectName="test-expansion" />
-
@daniloprates Have you set the expansion type in project preferences?
-
@d-healey here's the relevant part of
project_info.xml
:<ExpansionType value="FileBased"/> <EncryptionKey value=""/> <LinkExpansionsToProject value="Yes"/>
-
@d-healey also tried
<ExpansionType value="Files Only"/>
-
@daniloprates Send me the project, without the Samples.
-
@d-healey I've created an empty test project:
-
Can we (the community lol) get a nice template of this working to look at
-
@daniloprates The project works, once I copied in your code and set the expansion type in project preferences to FileOnly
-
No luck for me. What version of HISE are you using?
-
@d-healey
<ExpansionType value="FileOnly"/>
? -
@daniloprates set it in project preferences, don't edit the xml directly. I'm using a recent version of the develop branch. What are you expecting to see with your console print?
-
@d-healey
this was the problem, I was editing the XML file manually. It's working now.
Thanks so much!