Ok i finally got it to work. I redid everything from scratch and now it works somehow. I dont know what exactly made it work this time, but ok i will go through everything step by step (also since theres no tutorial about this, as far as i know).
-So i used faust. I created a new faust file and replaced all variables and stringnames of parameters by non-generic names like "gainer1" or "againer".
-Then i opened hise. Created a new project. From this point on i didnt close or reopen hise whatsoever. When i close hise and reopen the xml it looks like this.
Instead of this, and i dont know why.
So thats why i keep hise open.
-I created a new scriptFX node add the faust dsp file to the correct folder.
-Added the parameter for the gain, and linked it with the cable thingy. And gave all elements and parameter things non-generic names. I did not added a knob to the interface view yet (I think this might be important).
-Then i compiled the dll.
-Checked the box "replace scriptFX modules"
-Added a hardcodedFX node to the FX node (Your script should pop up here)
-Then i removed the scriptFX node.
-I went to the interface designer and added a new knob to the interface view.
-Make sure to select hardcodedMasterFX1 as processorID in the property editor.
-You can add a waveform generator to see if the knob and effect works. (make sure to remove it again).
-Then i exported it as FX plugin
-Now i got the dll in the binaries file and it works.
HiseSnippet 778.3ocuV80aZCCD2FvUC1ezpz164w1opIBzBTsGVW4OqnUnnktp9VkqioXQhcjiS6PS66w93rOR6avlcRnIrh5nnskGfb9ty2Oe2u6bFIEDZXnPBfUNcV.E.eBxYFWMo8DLiC52A.KitR+JUZCNbV.NLj5Bfvhu2nFVtDH94Gu8PrGlSnYKA.mIXD5wLelJa0QG7AlmWOrK8TleNq28f9DAusvSDogRQTUP.lLEeEcH1XVAD3Hb3D.7Un8aX61zc+p0aTu19spQ1kT2dupMpUqoMYrcc6VDJsVyVWBfaz0koDRGEVQC0a5gB2YNSD2vSBvYrP1kdTifMvQG4jkAsmv7bGMOuDB.vRixxRESxRu.Mf4xtc8rr0yiUXk4Q9jFrv8AI6G.jf4fToDHsIxgHYApLMF77XTethJGi00l7PIwV.76n1BsAb0q8wSo8jZgacXqFUqtik9msey3HNQwDbKAenPQOgu01U9RkxU9ZEqeW03wKUmILRgmGUtT0F5f79bbKdj+kT4NVWi8hn2Zn93uXNciUKmRRN04LTv6yYpSBnox8Ddtlbk486VA.ooMSsHEgZSUwUhmkVIb7XtTIf4luIJF94aS.epeGrBOeiz6oNNATohYNNvNzq0sQIk3xnNzvoJQPrs9ABtAAvMVgv9Y.DAOFB.yLu7McXCleZ56Z3yGgktDg9DO.Gpq+8N2V2BJ0ceZg9KrUf6x8zrdgajGVsXqfYHQpBcsbA9mgjwCYpY4Gh7.5Opdu8GqJD2DMhoHSVNFKrDLpqR+KvX5Tkmh5NdLknx.XITuyW2QHUW8QHnj3+xLVfUBMvRGdCNVJ+HOtFRU2HjSyySl+e9jWw+RC.AeTDoX7qFfURlgaOLx2Qe2AgpycbN0KzPyKX5SSjqZjMPvgxciE9o9IUosQFlpzdtx+KwvGSjhKHISPLkkGEuh9byiu4qLZfQ1ZICN70WzbAgr3VcGGqstNVeccb200w8VWGartN1bccr0e1Qy2A7tHkvOYvB.LXT23A8PXWNVyxi6a.+BvUgltC