Why does a COMPILE ERROR occur when I use Vanilla+ with CYNHUD?
Updated 11 months agoWhy?
If you use Vanilla+ v2.4.1 or earlier, you'll notice that CYNHUD causes a COMPILE ERROR.
To fix this, please either:
- Use full Northstar.
- Disable CYNHUD.
The reason why this happens is a missing file in Vanilla+. I spoke to Cyn (the developer) and they said that they'll fix this in the next release (v2.4.2). I have provided instructions on fixing this error yourself below.
Tech jargon: why this happens, advanced
This mod uses an auto-update checker function that uses Northstar's HTTP API. When rSquirrel tries doing this, it first sees a type from the missing file (sh_ns_http_requests.gnut
), HttpRequestResponse
. It doesn't know what to do (because the file is missing) and throws the COMPILE ERROR.
Manual fix: may be hard for average user
Cyn also noted that they expect to have the patch ready soon.
Add the following code in Vanilla+'s mod.json
(inside the mod's folder), below the part that says "safeio". Also, add a comma to the end of the closing bracket ( } ) for the "safeio" section.
{
"Path": "sh_ns_http_requests.gnut",
"RunOn": "CLIENT || SERVER || UI"
}
Then, grab the file sh_ns_http_requests.gnut
from the latest release of CYNHUD from GitHub and place it in the folder scripts/vscripts
.