Linux support?
Is there any intention to support linux?
Yes, but it will be a long time in the future, probably a few years. We need to convert all WPF to Avalonia. However, there is currently a compatibility method that supports transparency for wine and other Windows emulators. Simply add "linux" to the startup parameters #459
Usage: VPet-Simulator.Windows.exe linux
When using the linux parameter it gives me this error: 游戏发生错误,可能是游戏或者MOD导致的 如有可能请发送 错误信息截图和引发错误之前的操作 给开发者:[email protected] 感谢您对游戏开发的支持 System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'VPet_Simulator.Windows.MainWindow' that matches the specified binding constraints threw an exception. ---> System.InvalidOperationException: WindowStyle.None is the only valid value for WindowStyle when AllowsTransparency is true. at System.Windows.Window.VerifyConsistencyWithAllowsTransparency(WindowStyle style) at System.Windows.Window.CreateSourceWindow(Boolean duringShow) at System.Windows.Interop.WindowInteropHelper.EnsureHandle() at VPet_Simulator.Windows.MainWindow..ctor() in D:\Documents\Visual Studio 2022\Projects\VPet\VPet-Simulator.Windows\MainWindow.xaml.cs:line 125 at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) --- End of inner exception stack trace --- at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc) at System.Windows.Application.DoStartup() at System.Windows.Application.<.ctor>b__1_0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
WindowStyle.None is the only valid value for WindowStyle when AllowsTransparency is true.
@Felixer123456 It looks this change fix it. https://github.com/LorisYounger/VPet/commit/44a2adabfd1824a9283f6480c4d216a16263c776
TLDR see #505
Использование:
VPet-Simulator.Windows.exe linux
It helped me, thank you! However, there are some minor artifacts during animations: dark frames.