Hey I’ve copied the above lines into my DefaultEngine.ini files.
There’s only 2 of those files, one in Config and one in Temp (I think the one in Temp is just a backup and not really changing anything?).
I still get the same error “CreateNamedNetDriver failed to create driver from definition BeaconNetDriver” whenever I try to InitHost().
It doesn’t matter, just be sure to call it and then restart the editor. Add a check, to prevent adding multiple definition, somethings like this before add the beacondriverdefinition
for (auto& Definition : GEngine->NetDriverDefinitions)
{
if (Definition.DefName == NAME_BeaconNetDriver)
{
return;
}
}
I was running into the same issue, and instead of adding it via code, you can fix the ini file. It is supposed to be set in “[/Script/Engine.Engine]” not “[/Script/Engine.GameEngine]”