Closed refringe closed 3 days ago
[Exception] : NullReferenceException: Object reference not set to an instance of an object VehicleBase.method_16 (EFT.Vehicle.PathSpline nextPathSpline) (at <e58db99b85e04ac28ca1bdaa10a5a9b2>:0) VehicleBase.MoveToDestination (System.String destinationID) (at <e58db99b85e04ac28ca1bdaa10a5a9b2>:0) Aki.Custom.BTR.BTRManager.BtrTraderServicePurchased (EFT.ETraderServiceType serviceType, System.String subserviceId) (at <6bd1e714cd674f3c93d11a0ed651a022>:0) Aki.SinglePlayer.Utils.TraderServices.TraderServicesManager.SetServicePurchased (EFT.ETraderServiceType serviceType, System.String subserviceId, System.String traderId) (at <53cf142c34f9453d9fbaee0077d483f2>:0) Aki.SinglePlayer.Utils.TraderServices.TraderServicesManager.AfterPurchaseTraderService (EFT.ETraderServiceType serviceType, AbstractQuestControllerClass questController, System.String subServiceId) (at <53cf142c34f9453d9fbaee0077d483f2>:0) Aki.SinglePlayer.Patches.TraderServices.PurchaseTraderServicePatch+<PatchPostFix>d__1.MoveNext () (at <53cf142c34f9453d9fbaee0077d483f2>:0) --- End of stack trace from previous location where exception was thrown --- System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <eae584ce26bc40229c1b1aa476bfa589>:0) System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) (at <eae584ce26bc40229c1b1aa476bfa589>:0) UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <ca21460feb9c47d0ac337b9893474cc6>:0) UnityEngine.DebugLogHandler:LogException(Exception, Object) Class361:UnityEngine.ILogHandler.LogException(Exception, Object) UnityEngine.UnitySynchronizationContext:ExecuteTasks()
Posted here for tracking
Originally written by Kaeno
Current solution is to split the map name from the subserviceID like the other BTR patch we have.
btrController.BtrVehicle.MoveToDestination(subserviceId.Split('/')[1]);
Posted here for tracking
Originally written by Kaeno