You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
引发了异常: GoPowerup 中的“System.MissingMethodException”(“Method not found: 'Boolean Godot.FileAccess.StoreBuffer(Byte[])'.”)
引发了异常: GoPowerup 中的“System.MissingMethodException”(“Method not found: 'Boolean Godot.FileAccess.StoreBuffer(Byte[])'.”)
System information
WINDOWS 11
Issue description
no
Steps to reproduce
no
Minimal reproduction project (MRP)
voidOnRequestCompleted(longresult,longresponseCode,string[]headers,byte[]body,TaskCompletionSource<string>tcs){GD.Print("OnRequestCompleted"+localFileName);if(responseCode==200){try{//var filePath = $"user://{localFileName}";usingvarfile=Godot.FileAccess.Open(localFileName,Godot.FileAccess.ModeFlags.Write);{if(FileDownloader.IsStopDownloadResource==true){GD.PrintErr("Download is canceled By OnRequestCompleted");FileDownloader.IsStopDownloadResource=false;if(downloadTaskCompletionSource.Task.IsCompleted==false)downloadTaskCompletionSource.TrySetResult("Download is canceled");return;}file.StoreBuffer(body);file.Close();if(tcs.Task.IsCompleted==false)tcs.SetResult(localFileName);}}catch(Exceptionex){if(tcs.Task.IsCompleted==false)tcs.SetException(ex);}}else{if(tcs.Task.IsCompleted==false)tcs.SetException(newException($"Failed to download the file. HTTP Response Code: {responseCode}"));}// CleanuphttpRequest.QueueFree();httpRequest=null;}
The text was updated successfully, but these errors were encountered:
The System.MissingMethodException exception usually happens when Godot breaks compatibility. In this case, the method Godot.FileAccess.StoreBuffer was changed in #78289 (4.4-dev6).
This means that your project or one of its dependencies were built against an older/newer version of the Godot bindings (the GodotSharp package). Make sure your C# project and all its dependencies are built against the same version of the Godot bindings, and that this version matches the version of the Godot editor you are using (presumably 4.4 beta 1).
You didn't provide a minimal reproduction project, only a code snippet that references undefined variables. This is not enough because, as explained above, the issue is not with the code you are using.
Tested versions
引发了异常: GoPowerup 中的“System.MissingMethodException”(“Method not found: 'Boolean Godot.FileAccess.StoreBuffer(Byte[])'.”)
System information
WINDOWS 11
Issue description
no
Steps to reproduce
no
Minimal reproduction project (MRP)
The text was updated successfully, but these errors were encountered: