Jump to content

Give seed command broken since Rust update

Fixed 2.1.2 2.1.3

MaxiJonson
MaxiJonson

Posted

Hey, this command used to work, but doesn't anymore since this wipe:

givedrugseed 76561198240236336 "Weed Seeds" 10

> ERROR: Incorrect command syntax: givedrugseed <steamid> <drug item display name> <amount>

It seems the new `arg` syntax doesn't play well with "Spaced Strings" 

MaxiJonson

Posted

Actually, maybe it's not related to that... I tried debugging the value that the DrugsAPI receives, but it's like it's never actually being called

// DrugDeals.ConsoleCMD_DD_GiveDrugSeed
Puts($"Giving {amount} of {arg.Args[1]} seeds to {target.displayName}");
var item = DrugsAPI.Call<Item>("API_CreateDrugSeed", arg.Args[1], amount);

// DrugsAPI.API_CreateDrugSeed
public Item API_CreateDrugSeed(string displayName, int amount)
{
  Puts($"CreateDrugSeed: {displayName}, amount: {amount}");
  
// Output
[DrugDeals] Giving 1 of Weed Seeds seeds to MaxiJonson
[DrugDeals] ERROR: Incorrect command syntax: givedrugseed <steamid> <drug item display name> <amount>

The API log never comes through, as if it never got called...

Yaki

Posted

related to june update. uploading fix now

Yaki

Posted

Changed Status from Pending to Fixed

Changed Fixed In to Next Version

  • Love 1

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.6m
Total downloads
Customers
11.3k
Customers served
Files Sold
162.1k
Total sales
Payments
3.5m
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.