Closed Pain260495 closed 3 weeks ago
If you already have the current rocket version, perhaps try to disable Uessential's /vehicle. as for RFGarage, remember that plugin isn't mantained anymore.
I need to use that uEssentials because it could turn on and off pvp for my server to play RP.
I need to use that uEssentials because it could turn on and off pvp for my server to play RP.
You can disable only the vehicule one I think, on /Servers/unturnedCommands.config.xml
Look for
<Command Name="Vehicle"
and the one that says Uessentials, put it on false.
then, search for this one:
<Command Name="vehicle" Enabled="true" Priority="Low">Rocket.Unturned.Commands.UnturnedCommands/vehicle</Command>
and put it on true
same for this one:
<Command Name="v" Enabled="true" Priority="Normal">Rocket.Unturned.Commands.CommandV/v</Command>
Command Name="vehicle" Enabled="true" Priority="Low">Rocket.Unturned.Commands.UnturnedCommands/vehicle</Command
Command Name="v" Enabled="true" Priority="Normal">Rocket.Unturned.Commands.CommandV/v</Command the 2 command you told me to put on true it always on. and i didnt see any uEssentials
ah rip lmao
so would Nelson gonna help fix this or all of this have to wait for the plugin to update? Cause many server using these plugin for their server. Like Zaup Shop can't /buy v.id, uEssentials can't spawn vehicle, RFgarage can't put vanilla vehicle in garage.
so would Nelson gonna help fix this or all of this have to wait for the plugin to update? Cause many server using these plugin for their server. Like Zaup Shop can't /buy v.id, uEssentials can't spawn vehicle, RFgarage can't put vanilla vehicle in garage.
It's already fixed I think, it'd be the mantainers of these plugins who have to update their plugins tho
This isn't something the base game can fix, unfortunately, sorry. A plugin developer will need to update the command. I did patch the LDM /v command for the same issue: The reason for the problem is that it's expecting a vehicle asset but receiving a vehicle redirector asset. If we were lucky the plugin commands would have been using the vanilla vehicle spawning methods or not casting the result to vehicle asset, but it's also understandable why they were doing it the way they were for the time.
[uEssentials] [ERROR] An error ocurred while executing command: 'v 1' [uEssentials] [ERROR] System.InvalidCastException: Specified cast is not valid. at Essentials.Common.Util.VehicleUtil.GetVehicle (System.UInt16 id) [0x00008] in:0
at Essentials.Common.Util.VehicleUtil.GetVehicle (System.String name) [0x00025] in :0
at Essentials.Commands.MiscCommands.VehicleCommand (Essentials.Api.Command.Source.ICommandSource src, Essentials.Api.Command.ICommandArgs args, Essentials.Api.Command.ICommand cmd) [0x00049] in :0
at Essentials.Core.Command.MethodCommand.OnExecute (Essentials.Api.Command.Source.ICommandSource source, Essentials.Api.Command.ICommandArgs args) [0x00018] in :0
at Essentials.Core.Command.CommandAdapter.Execute (Rocket.API.IRocketPlayer caller, System.String[] args) [0x00115] in :0
I can's spawn any vanilla vehicle with name or id anymore. I could still spawn modded vehicle but has to be exact id. And everytime i get a vanilla vehicle put it in the Virtual garage another error pop up.
Error while executing /GarageRetrieve [RFGarage] Message: Object reference not set to an instance of an object [RFGarage] Details: System.NullReferenceException: Object reference not set to an instance of an object at RocketExtensions.Utilities.ThreadTool.RunOnGameThreadAsync (RocketExtensions.Utilities.ThreadTool+VoidPattern action) [0x0009c] in <475e0b7f57954ab0a214b2a1e64aca85>:0 at RFGarage.Commands.GarageRetrieveCommand.Execute (RocketExtensions.Models.CommandContext context) [0x004dd] in <52ea1d9933394db5a7c2f055238b96ce>:0 at RocketExtensions.Plugins.RocketCommand.Run (RocketExtensions.Models.CommandContext context) [0x001fc] in <475e0b7f57954ab0a214b2a1e64aca85>:0