Vehicle Licence + TugboatsSolved

I modified the plugin to allow purchases of tugboats, so thought i would share with you guys.

Happy wipe day!

https://pastebin.com/LhVh95WA

Lee 

Defining TugboatSettings like RowboatSettings  will cause an error when doing /kill tugboat

public class TugboatSettings : RowboatSettings
{
}

do it like this without the GetInventory member. this is because there is no fix loot container with the tugboat, just a fuel tank

        public class TugboatSettings : InvFuelVehicleSettings
        {
            public override bool IsWaterVehicle => true;

            protected override EntityFuelSystem GetFuelSystem(BaseEntity entity)
            {
                return (entity as MotorRowboat)?.GetFuelSystem();
            }
        }

Oups my mistake I was the RHIB as a guide to add it. Will you be adding this?

Have updated the pastebin with this edit/fix.

Getting this error when trying to load this:
Error while compiling: VehicleLicence.cs(2826,61): error CS0589: Internal compiler error during parsingSystem.InvalidCastException: Specified cast is not valid.

Also:
Unable to load VehicleLicence. VehicleLicence.cs(2826,61): error CS0589: Internal compiler error during parsingSystem.InvalidCastException: Specified cast is not valid.

Looking forward to being able to mess with the tugboats!

This pastebin file give error " Error while compiling: VehicleLicence.cs(2826,61): error CS0589: Internal compiler error during parsingSystem.InvalidCastException: Specified cast is not valid." Im thinking it will be better to wait until official support, I cannot wait!

Sorry about that i'm still learning C#

Here is the version I just corrected and seems to work fine on our server, give it a go and let me know. When I "/kill tugboat" it now returns fuel to inventory. Hopefully @Lorenzo can implement this better than I have done for everyone to enjoy.

https://pastebin.com/GvSTahV9

Happy sailing!

AG59nOh6qMREra4.jpg LeeFall

Sorry about that i'm still learning C#

Here is the version I just corrected and seems to work fine on our server, give it a go and let me know. When i /kill tugboat it now returns fuel to inventory

https://pastebin.com/GvSTahV9

Happy sailing!

Hey, I will try this out. Thank you for sharing and doing this!

Hmm I'll just wait for an update, I'll mess something up.. but its cool yall figured it out

Here ya go bois lol got some additions, if you'd like to use them, though are not required. Fixed multiple issues with it as well as adding tugboats. Enjoy :)

Sending this link so you can see what changes I made by comparing it's last version (version directly from uMod).

Instant Takeoff: https://github.com/ViolationHandler-exe/VehicleLicense/blob/main/VehicleLicence.cs

Without Instant Takeoff: https://github.com/ViolationHandler-exe/VehicleLicense/blob/main/VehicleLicenceNoInstantMini.cs

Instant Takeoff: 
Without Instant Takeoff:
huh? whats default with the main vehicle licence plugin?

uk0STJHPjc7ggyL.jpg TwoShoes

Instant Takeoff: 
Without Instant Takeoff:
huh? whats default with the main vehicle licence plugin?

Default is without instant mini takeoff, apologies forgot to specifiy for just minis, but the instant take off is not, and was not, apart of the original VehicleLicense plugin. I added it myself. The one without the instant takeoff is likely what you're looking for if you're trying to get the default experience.

I updated it to have all defaulted values for all of the motifications I added so nothing will be different from their vanilla versions unless you change the config to do so.

Having an issue with Transportercopter since updating to this plugin (the one without Instant Takeoff).  My back rotor doesn't work (A & D Keys) and so the thing doesn't fly.  If I spawn one from the server, it flys just fine.  For now, I'm going to try the plugin with the Instant Takeoff, and hope that helps.  Maybe something is different.

 

Mike Bare

mikebare

Having an issue with Transportercopter since updating to this plugin (the one without Instant Takeoff).  My back rotor doesn't work (A & D Keys) and so the thing doesn't fly.  If I spawn one from the server, it flys just fine.  For now, I'm going to try the plugin with the Instant Takeoff, and hope that helps.  Maybe something is different.

 

Mike Bare

Hmm, strange, what did you make the rotation scale? If its set below 1.0 for the scrap heli it will be slower than the default turning and spinning speed, if set to 0 you likely cannot turn.

wuZiP65tGvTnbPE.png ViolationHandler

Hmm, strange, what did you make the rotation scale? If its set below 1.0 for the scrap heli it will be slower than the default turning and spinning speed, if set to 0 you likely cannot turn.

Thank you, I don't know how they got set to Zero.  Infact, 1.7.43, there was nothing in that config to address Lift or Rotation.  But, it's fixed, you're getting the credit by me for helping me out, so all I can say is ...

 

I appreciate you!

mikebare

Thank you, I don't know how they got set to Zero.  Infact, 1.7.43, there was nothing in that config to address Lift or Rotation.  But, it's fixed, you're getting the credit by me for helping me out, so all I can say is ...

 

I appreciate you!

Hahaha, yea I added them as extra features, though apparently it defaulted them to 0 for you I think. I will have a look to see what/how its defaulted in the plugin so hopefully it doesn't happen to others.

Thanks man, I appreciate your kindness! 😀 ❤️

Locked automatically