1. How i get animals list from game in my plugin?
     
  2. Wulf

    Wulf Community Admin

    Are you wanting spawned animals, animal names, animal prefabs?
     
  3. I want names
     
  4. Wulf

    Wulf Community Admin

    Code:
    foreach (var str in GameManifest.Get().pooledStrings)
    {
        if (!str.str.StartsWith("assets/bundled/prefabs/autospawn/animals/")) continue;
        var animal = str.str.Substring(str.str.LastIndexOf("/", StringComparison.Ordinal) + 1).Replace(".prefab", "");
        Puts(animal);
    }
     
  5. Error while compiling: ... error CS0117: `GameManifest' does not contain a definition for `Get'
     
  6. Wulf

    Wulf Community Admin

    Replace Get() with Current.
     
  7. Use FileStorage
    Code:
    FileStorage.server.cache