Jump to content

VehicleBuy.cs

Pending 2.2.12

MoonDoggy
MoonDoggy

Posted

Says to edit a line at the top of the file for Karuza vehicles.   But the listed line is not there.  

Instead of // #Requires KaruzaVehiclesCommon,, the first line is // #define TEST.

I added // Requires:  KaruzaVehiclesCommon and loaded it to the server.

Now I get an compiler error about   " VehicleBuy plugin requires missing dependencies: KaruzaVehiclesCommon"
 

Karuza doesn't appear to use KaruzaVehiclesCommon now.  There is a "KaruzaEntitiesCommon" file.  If I modify the plugin to reflect that, it goes through the complie just fine, but no Karuza vehicles appear.   During the compiling of VehicleBuy.cs, I see an error about no data in .sav files, but that seems to be a karuza problem at this point?

image.png

  • Curator
Mevent

Posted

Hi! As far as I know, you don't need to "uncomi" anything right now. You can just use the prefab paths from Karuza vehicles and spawn those Vehicles. He had a ready-made VehicleBuy config in discord

MoonDoggy

Posted

Ok, I modified your working file to add

"littlebird": {
      "Sound on purchase": true,
      "Order": 20,
      "Show": true,
      "Name": "littlebird",
      "Prefab": "assets/custom/littlebird.prefab",
      "Image link": "https://i.postimg.cc/gJCY3HcY/Littlebird1.jpg",
      "Spawn distance": 5.0,
      "Fuel": 100,
      "Currency: 0 - item, 1 - Economics, 2 - Server Rewards": 0,
      "If vehicle selling for item type him shortname": "scrap",
      "Price": 1500,
      "Skin": 3304630260,
      "Command": "littlebird.add",
      "DeployableItemId": 833533164,
      "Need add engine parts if it possible?": false,
      "Engine parts": null,
      "Pickup type (0 - command, 1 - hammer)": 0,
      "Can pickup?": true,
      "Can recall?": true,
      "Recall price": 0,
      "Recall cost need?": false,
      "Pickup price": 0,
      "Enable decay?": false,
      "Permission (still empty if not need) ex. vehiclebuy.YOURPERMISSIONNAME": null,
      "Maximum number of purchases of one vehicle by one player": 0
    }

It shows up in the list, and I can buy one, but when I place the "box", it just remains a box.   Minicopter works fine as a comparison.   Any ideas?

 

MeventSupport

Posted

18 hours ago, MoonDoggy said:

Ok, I modified your working file to add

"littlebird": {
      "Sound on purchase": true,
      "Order": 20,
      "Show": true,
      "Name": "littlebird",
      "Prefab": "assets/custom/littlebird.prefab",
      "Image link": "https://i.postimg.cc/gJCY3HcY/Littlebird1.jpg",
      "Spawn distance": 5.0,
      "Fuel": 100,
      "Currency: 0 - item, 1 - Economics, 2 - Server Rewards": 0,
      "If vehicle selling for item type him shortname": "scrap",
      "Price": 1500,
      "Skin": 3304630260,
      "Command": "littlebird.add",
      "DeployableItemId": 833533164,
      "Need add engine parts if it possible?": false,
      "Engine parts": null,
      "Pickup type (0 - command, 1 - hammer)": 0,
      "Can pickup?": true,
      "Can recall?": true,
      "Recall price": 0,
      "Recall cost need?": false,
      "Pickup price": 0,
      "Enable decay?": false,
      "Permission (still empty if not need) ex. vehiclebuy.YOURPERMISSIONNAME": null,
      "Maximum number of purchases of one vehicle by one player": 0
    }

It shows up in the list, and I can buy one, but when I place the "box", it just remains a box.   Minicopter works fine as a comparison.   Any ideas?

 

This is more likely to be an issue with the Karuza plugin. Unfortunately, I don’t have this plugin, and I’m not very familiar with how it works, so it would be best for you to contact Karuza so they can help you with this

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.7m
Total downloads
Customers
11.5k
Customers served
Files Sold
165k
Total sales
Payments
3.6m
Processed total
×
×
  • 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.