A constant value is expectedFixed

155 ScientistNames - Failed to compile: ScientistNames.cs(57,113): error CS0150: A constant value is expected

the plugin does not work after updating the game - please update the plugin!!!

Merged post

Error while compiling: ScientistNames.cs(57,113): error CS0150: A constant value is expected

I'm not a plugin author, so I can't post a patch, and this plugin is unmaintained, so who knows when it will be fixed:  BUT

it's fairly simple to fix:
line 34(ish):
replace

foreach (BaseNetworkable baseNetworkable in BaseNetworkable.serverEntities.Where(w => w is BasePlayer && (w is NPCPlayer || w is HTNPlayer || w is NPCMurderer)).Cast<BasePlayer>())
​


with
foreach (BaseNetworkable baseNetworkable in BaseNetworkable.serverEntities.Where(w => w is BasePlayer && (w is HumanNPC)).Cast<BasePlayer>())
​


Merged post

argh..  can't edit to add the second part:

also edit line 55ish:
replace
if (initialized && entity is BasePlayer && (entity is NPCPlayer || entity is HTNPlayer || entity is NPCMurderer))
​

with
if (initialized && entity is BasePlayer && entity is HumanNPC)
​

performed minimal testing, plugin loads, error goes away scientists have names
Locked automatically