im not sure what the problem was (maybe some wrong byte in a text file), but while experimenting with creating a new file (copying default file and then editing it from scratch), i noticed a different exception:
Code:
"Member Name Cannot Be the Same as Enclosing Type"
then to fix it, in code block
Code:
public class MyOtherPlayersPlugin : BasePlugin, IInGameWorldPainter
{
public Dictionary<HeroClass, WorldDecoratorCollection> DecoratorByClass { get; set; } = new Dictionary<HeroClass, WorldDecoratorCollection>();
public float NameOffsetZ { get; set; } = 8.0f;
public void MyOtherPlayersPlugin()
{
Enabled = true;
}
i had to either comment
Code:
public void MyOtherPlayersPlugin()
{
Enabled = true;
}
or rename
"public void MyOtherPlayersPlugin()"
to something like:
"public void My1OtherPlayersPlugin()",
because it must be different from a class name, which we can see from first code block.
This name related requirement is random (probably bugged), same addons earlier worked fine with the same names, some other addons still work fine with the same names., but that is a possible cause of topic's discussed bug.
Update:
probably im wrong about this workaround, when name is different - plugin does not raise exceptions, but it doesn't work (unlike my other plugin, which does not require different names and works well). Looks like compiling is bugged on my pc.