Translation files were successfully downloaded(2.65MB) and extracted to '/home/container/oxide/data/Translations'.
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
ArgumentException: Path is empty
at System.IO.Directory.CreateDirectory (System.String path) [0x00016] in <fb001e01371b4adca20013e0ac763896>:0
at Ionic.Zip.ZipEntry.InternalExtract (System.String baseDir, System.IO.Stream outstream, System.String password) [0x00298] in <510a9a0a2eb84c1caa23d4acd845fea7>:0
at Ionic.Zip.ZipEntry.Extract (System.String baseDirectory, Ionic.Zip.ExtractExistingFileAction extractExistingFile) [0x00007] in <510a9a0a2eb84c1caa23d4acd845fea7>:0
at Oxide.Plugins.RustTranslationAPI+TranslationsDownloader+<DownloadTranslations>c__Iterator0.MoveNext () [0x00257] in <70b8be738f904f5e8ab9805a0fb76605>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <0b31faaf1c50461d95c83ac166a20393>:0
Latest errorFixed
Hello.
For the record... concerning Rust Translation API 1.1.0.
I had a similar issue on Linux with Pterodactyl.
It seams that IonicZip has some problems with Linux path separator.
The translation zip file is downloaded correctly, but the unzip step failed.
In order to solve my issue, I replaced the lines 502 to 508 by :
using (var zip = ZipFile.Read(translationsZipPath, new ReadOptions { Encoding = Encoding.Default })) {
foreach (var entry in zip) {
if (entry.IsDirectory) {
Directory.CreateDirectory(Path.Combine(extractDirectory, entry.FileName));
}
else {
MemoryStream MemoryStream = new();
entry.OpenReader().CopyTo(MemoryStream);
File.WriteAllBytes(Path.Combine(extractDirectory, entry.FileName), MemoryStream.ToArray());
}
}
}
Fixed in latest vestion
Locked automatically