hi Wulf.
used you attachment, the NPC activation is working but not the "E" part when you get the Pet.
im getting this error when pressing "E" on the animal:
Code:NullReferenceException: Object reference not set to an instance of an object at Oxide.Plugins.Pets+NpcControl.TryGetNewPet (.BaseNPC npcPet) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Pets+NpcControl.UpdateAction () [0x00000] in <filename unknown>:0 at Oxide.Plugins.Pets+NpcControl.FixedUpdate () [0x00000] in <filename unknown>:0 (Filename: Line: -1)
Pets
Do you want a pet? This plugin is for you!
Total Downloads: 12,250 - First Release: Mar 22, 2015 - Last Update: Jun 11, 2018
- 4.63636/5, 44 likes
-
Code:
[Oxide] 5:35 AM [Error] Pets plugin failed to compile! [Oxide] 5:35 AM [Error] Pets.cs(173,89): error CS1061: Type `BaseNPC' does not contain a definition for `modelPrefab' and no extension method `modelPrefab' of type `BaseNPC' could be found. Are you missing an assembly reference?
-
I have the same error even with newest version from Wulf =((. Don`t want to tame and posts same error to console(.
-
hi !
>NullReferenceException: Object reference not set to an instance of an object
>Alway the same with this one :/
I found that UnityEngine GameObject's ToBaseEntity is null.
You should change code the 173th line.
Get().ToBaseEntity().LookupShortPrefabName().Replace("_skin", ""))
↓
Get().name.Replace("_skin", ""))
Maybe.Last edited by a moderator: Aug 11, 2015 -
just tried the fix asigaru777 said and it does fix the plugin, now it works fine, thanks!!
-
Wulf Community Admin
Great! Thanks for the fix.Attached Files:
-
-
is this going to be the same command as godmode
-
Wulf Community Admin
For permissions? No, it uses different permissions, but the base commands are the same, they are Oxide commands. -
How do you get the needed skill and levels of the skill for each animal also how do you make the pet follow you all the time
Last edited by a moderator: Aug 12, 2015 -
ok were do I set the permissions?
-
Wulf Community Admin
The available permissions are shown on the Overview. For using them, see http://oxidemod.org/threads/using-oxides-permission-system.8296/. -
Its a pity each member needs to be in a group to use this is there no way to say make a default group that auto puts all members into it once they join the server or get rid of that part and just allow member to use it
-
Wulf Community Admin
The default group for all players is "player", just assign the permissions to it and all players will get it. -
anyone have the code to get pets working it tells me that the command in game is not there
-
Code:
NullReferenceException: Object reference not set to an instance of an object Oxide.Plugins.Pets+NpcAI.Attack (.BaseCombatEntity ent, Act act) Oxide.Plugins.Pets+NpcControl.UpdateAction () Oxide.Plugins.Pets+NpcControl.FixedUpdate ()
-
this isnt working? is it because the update? please advise, i really want this for my server. thanks!
-
Wulf Community Admin
http://oxidemod.org/threads/pets.7368/page-15#post-119015
Try the above link, you likely don't have a working version. -
i had just downloaded it today on site, but ur right, it didnt work and the one u just sent me to does. thanks!
[DOUBLEPOST=1439779325][/DOUBLEPOST]where do i enter the permissions? -
Wulf Community Admin
Last edited: Aug 17, 2015 -
so much to remember... lol.
ty!
[DOUBLEPOST=1439788139,1439780263][/DOUBLEPOST]my permission system isnt working on this one... im batting about 60/40 tonight
i typed oxide.grant user BeautyKilled canhorse
what am i doing wrong???
![[CW] DonUrsin](/assets/styles/oxide/logo.og.png)