Jump to content

Stopped working with the new facepunch update.

Closed 1.0.9 1.1.1

Error while compiling: StoreRobbery.cs(493,28): error CS0246: The type or namespace name `NPCPlayerApex' could not be found. Are you missing an assembly reference?

Share this comment


Link to comment

Possible solution:

Line 491

object OnNpcTarget(NPCPlayerApex npcPlayer, BasePlayer player)

to

 object OnNpcTarget(HumanNPC npcPlayer, BasePlayer player)

and

Line: 877

 HumanNPC npc = GameManager.server.CreateEntity("assets/prefabs/npc/scientist/scientist.prefab", pos) as HumanNPC;

to

HumanNPC npc = GameManager.server.CreateEntity("assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_junkpile_pistol.prefab", pos) as HumanNPC;

modify.

 

Ps: 

We thank you @Billy Joe for the great plugin.

We know how Facepunch is so something like that can happen, just fix the plugin when you have the time.

Edited by MeinRust

Share this comment


Link to comment
1 hour ago, MeinRust said:

Possible solution:

Line 491

object OnNpcTarget(NPCPlayerApex npcPlayer, BasePlayer player)

to

 object OnNpcTarget(HumanNPC npcPlayer, BasePlayer player)

and

Line: 877

 HumanNPC npc = GameManager.server.CreateEntity("assets/prefabs/npc/scientist/scientist.prefab", pos) as HumanNPC;

to

HumanNPC npc = GameManager.server.CreateEntity("assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_junkpile_pistol.prefab", pos) as HumanNPC;

modify.

 

Ps: 

We thank you @Billy Joe for the great plugin.

We know how Facepunch is so something like that can happen, just fix the plugin when you have the time.

Like 877 doesnt even exist for me, like whatever you said is there, is not there.

Share this comment


Link to comment

Will try to fix it myself MeinRust just curious how can fuck it up more and test to learn something but not sure if properly edited this will it works? Just update fucked a lot of plugins so hard...  Probably this Store Robbery will works with small hotfix cuz this is static NPC for decoration and do not shoot roam etc...

Share this comment


Link to comment

I downloaded the latest version "1.1.0" to "LoneDesign" and made these changes there, and the plugin now works with us without any problems.
If not, just look for NPCPlayerApex or Apex

We are talking about the StoreRobbery.cs plugin and not about the config.

Edited by MeinRust

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

80.8k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.