提交 cda33f16 编写于 作者: Z ZouJin

修复玩家反馈bug

上级 3854e5da
......@@ -23,7 +23,16 @@ namespace VPet_Simulator.Windows
var expt = e.Exception.ToString();
if (expt.Contains("value") && expt.Contains("Panuon.WPF.UI.Internal.Utils") && expt.Contains("NaN"))
{
MessageBox.Show("由于修改游戏数据导致数据溢出,存档可能会出错\n开发者提醒您请不要使用过于超模的MOD".Translate());
MessageBox.Show("由于修改游戏数据导致数据溢出,存档可能会出错\n开发者提醒您请不要使用过于超模的MOD".Translate());
return;
}
else if (expt.Contains("System.IO.FileNotFoundException") && expt.Contains("cache"))
{
MessageBox.Show("缓存被其他软件删除,游戏无法继续运行\n请重启游戏重新生成缓存".Translate());
return;
}else if (expt.Contains("0x80070008"))
{
MessageBox.Show("游戏内存不足,请修改设置中渲染分辨率以便降低内存使用".Translate());
}
string errstr = "游戏发生错误,可能是".Translate() + (string.IsNullOrWhiteSpace(CoreMOD.NowLoading) ?
......
......@@ -50,6 +50,7 @@ namespace VPet_Simulator.Windows
public void Show(Food.FoodType type)
{
mw.Topmost = false;
IsEnabled = true;//逃出
if (_searchTextBox != null)
_searchTextBox.Text = "";
if (LsbCategory.SelectedIndex == (int)type)
......@@ -66,14 +67,14 @@ namespace VPet_Simulator.Windows
{
var name = sub.Name.Substring(8);
var food = mw.Foods.FirstOrDefault(x => x.Name == name);
if(food != null)
if (food != null)
{
food.LoadEatTimeSource(mw);
food.NotifyOfPropertyChange("Eattime");
}
}
}
Show();
}
public void OrderItemSource(Food.FoodType type, int sortrule, bool sortasc, string searchtext = null)
......@@ -189,7 +190,7 @@ namespace VPet_Simulator.Windows
var Button = sender as Button;
var item = Button.DataContext as Food;
IsEnabled = false;
//看是什么模式
if (mw.Set.EnableFunction)
{
......@@ -221,7 +222,7 @@ namespace VPet_Simulator.Windows
mw.Set.PetData.SetDateTime("buytime_" + item.Name, now.AddHours(eattimes));
//通知
item.LoadEatTimeSource(mw);
item.NotifyOfPropertyChange("Eattime");
item.NotifyOfPropertyChange(DateTime.Now.ToString());
mw.Core.Save.Money -= item.Price;
//统计
......@@ -273,6 +274,7 @@ namespace VPet_Simulator.Windows
var b = mw.Main.FindDisplayBorder(ig);
ig.Run(b, item.ImageSource, () =>
{
Dispatcher.Invoke(() => IsEnabled = true);
mw.Main.DisplayToNomal();
mw.Main.EventTimer_Elapsed();
});
......
......@@ -68,7 +68,7 @@ namespace VPet_Simulator.Windows
sb.Append("&content=" + HttpUtility.UrlEncode(tContent.Text));
sb.Append("&contact=" + HttpUtility.UrlEncode(tContact.Text));
sb.Append($"&steamid={Steamworks.SteamClient.SteamId.Value}");
sb.Append($"&ver={mw.verison}");
sb.Append($"&ver={mw.version}");
sb.Append("&save=");
sb.AppendLine(HttpUtility.UrlEncode(save));
var request = (HttpWebRequest)WebRequest.Create(_url);
......
......@@ -6,4 +6,6 @@
保存游戏#Save game:|
手动保存桌宠存档,就算不手动保存,桌宠也会在退出的时候自动保存#Manually save the desktop pet archive, even if you do not manually save, the desktop pet will automatically save when you exit.:|
保存成功#Save successfully:|
模组 {0} 插件损坏\n虚拟桌宠模拟器未能成功加载该插件\n请联系作者修复该问题#Module {0} plug-in damage\nVirtual desktop pet simulator failed to load the plug-in\nPlease contact the author to fix the problem.:|
\ No newline at end of file
模组 {0} 插件损坏\n虚拟桌宠模拟器未能成功加载该插件\n请联系作者修复该问题#Module {0} plug-in damage\nVirtual desktop pet simulator failed to load the plug-in\nPlease contact the author to fix the problem.:|
缓存被其他软件删除,游戏无法继续运行\n请重启游戏重新生成缓存#Cache is deleted by other software, the game can not continue to run\nPlease restart the game to regenerate the cache.:|
游戏内存不足,请修改设置中渲染分辨率以便降低内存使用#Game memory is insufficient, please modify the rendering resolution in the settings to reduce memory usage.:|
\ No newline at end of file
......@@ -6,4 +6,6 @@
保存游戏#保存游戏:|
手动保存桌宠存档,就算不手动保存,桌宠也会在退出的时候自动保存#手动保存桌宠存档,就算不手动保存,桌宠也会在退出的时候自动保存:|
保存成功#保存成功:|
模组 {0} 插件损坏\n虚拟桌宠模拟器未能成功加载该插件\n请联系作者修复该问题#模组 {0} 插件损坏\n虚拟桌宠模拟器未能成功加载该插件\n请联系作者修复该问题:|
\ No newline at end of file
模组 {0} 插件损坏\n虚拟桌宠模拟器未能成功加载该插件\n请联系作者修复该问题#模组 {0} 插件损坏\n虚拟桌宠模拟器未能成功加载该插件\n请联系作者修复该问题:|
缓存被其他软件删除,游戏无法继续运行\n请重启游戏重新生成缓存#缓存被其他软件删除,游戏无法继续运行\n请重启游戏重新生成缓存:|
游戏内存不足,请修改设置中渲染分辨率以便降低内存使用#游戏内存不足,请修改设置中渲染分辨率以便降低内存使用:|
\ No newline at end of file
......@@ -6,4 +6,6 @@
保存游戏#保存遊戲:|
手动保存桌宠存档,就算不手动保存,桌宠也会在退出的时候自动保存#手動保存桌寵存檔,就算不手動保存,桌寵也會在退出的時候自動保存:|
保存成功#保存成功:|
模组 {0} 插件损坏\n虚拟桌宠模拟器未能成功加载该插件\n请联系作者修复该问题#模組 {0} 插件損壞\n虛擬桌寵模擬器未能成功加載該插件\n請聯繫作者修復該問題:|
\ No newline at end of file
模组 {0} 插件损坏\n虚拟桌宠模拟器未能成功加载该插件\n请联系作者修复该问题#模組 {0} 插件損壞\n虛擬桌寵模擬器未能成功加載該插件\n請聯繫作者修復該問題:|
缓存被其他软件删除,游戏无法继续运行\n请重启游戏重新生成缓存#緩存被其他軟體刪除,遊戲無法繼續運行\n請重啟遊戲重新生成緩存:|
游戏内存不足,请修改设置中渲染分辨率以便降低内存使用#遊戲內存不足,請修改設置中渲染分辨率以便降低內存使用:|
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册