Getting this error:
(17:37:59) | Error while compiling: ImageLibrary.cs(150,19): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
(17:37:59) | Error while compiling: ImageLibrary.cs(150,19): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
Error after update:
Error while compiling: ImageLibrary.cs(150,19): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
private IEnumerator GetWorkshopSkins()
{
var query = SteamServer.Workshop.CreateQuery();
query.Page = 1;
query.PerPage = 50000;
query.RequireTags.Add("version3");
query.RequireTags.Add("skin");
query.RequireAllTags = true;
query.Run();
Puts("Querying Steam for available workshop items. Please wait for a response from Steam...");
yield return new WaitWhile(() => query.IsRunning);
Puts($"Found {query.Items.Length} workshop items. Gathering image URLs");
foreach (var item in query.Items)
{
if (!string.IsNullOrEmpty(item.PreviewImageUrl))
{
foreach (var tag in item.Tags)
{
var adjTag = tag.ToLower().Replace("skin", "").Replace(" ", "").Replace("-", "");
if (workshopNameToShortname.ContainsKey(adjTag))
{
string identifier = $"{workshopNameToShortname[adjTag]}_{item.Id}";
if (!imageUrls.URLs.ContainsKey(identifier))
imageUrls.URLs.Add(identifier, item.PreviewImageUrl);
skinInformation.skinData[identifier] = new Dictionary<string, object>
{
{"title", item.Title },
{"votesup", item.VotesUp },
{"votesdown", item.VotesDown },
{"description", item.Description },
{"score", item.Score },
{"views", item.WebsiteViews },
{"created", item.Created },
};
}
}
}
}
query.Dispose();
SaveUrls();
SaveSkinInfo();
}to
private IEnumerator GetWorkshopSkins()
{
yield return null;
} 35 ImageLibrary - Failed to compile: ImageLibrary.cs(150,19): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
receiving this error as of the update.
In response to Orange ():read my message above. I posted information about how to fix it
Merged post
I...
Web request callback raised an exception (NullReferenceException: routine is null)
at UnityEngine.MonoBehaviour.StartCoroutine (System.Collections.IEnumerator routine) [0x00007] in <ab8720fd7146431da2176de7b624c626>:0
at Oxide.Plugins.ImageLibrary.<GetItemSkins>m__1 (System.Int32 code, System.String response) [0x00224] in <8d22096a82ac4a38ab489f22de78492b>:0
at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00034] in <4452f821def6406d834e4149849fe7ea>:0