utf8解码报错后会提示windows用户换一个游戏版本

This commit is contained in:
MrZ626
2021-10-18 16:33:50 +08:00
parent 033a770759
commit 2ba25014c6
8 changed files with 12 additions and 4 deletions

View File

@@ -374,7 +374,11 @@ local function secondLoopThread()
repeat yield()until mainLoop()
end
function love.errorhandler(msg)
if not msg then msg="Unknown error" end
if type(msg)~='string'then
msg="Unknown error"
elseif msg:find("Invaild UTF-8")and text then
msg=text.tryAnotherBuild
end
--Generate error message
local err={"Error:"..msg}

View File

@@ -126,6 +126,7 @@ return{
keySettingInstruction="Press to bind key\nescape: cancel\nbackspace: delete",
errorMsg="Techmino ran into a problem and needs to restart.\nYou can send the error log to the developers.",
tryAnotherBuild="[Invalid UTF-8] If you are on Windows, try downloading Techmino-win32 or Techmino-win64 (different from what you are using now).",
modInstruction="Choose your modifiers!\nMods allow you to change the game,\nbut they may also crash the game.\nScores will not be saved when using mods.",
modInfo={

View File

@@ -116,6 +116,7 @@ return{
-- keySettingInstruction="Press to bind key\nescape: cancel\nbackspace: delete",
errorMsg="Ha ocurrido un error y Techmino necesita reiniciarse.\nSe creó un registro de error, puedes enviarlo al autor.",
-- tryAnotherBuild="[Invalid UTF-8] If you are on Windows, try downloading Techmino-win32 or Techmino-win64 (different from what you are using now).",
-- modInstruction="",
-- modInfo={},--See lang_en.lua

View File

@@ -117,6 +117,7 @@ return{
-- keySettingInstruction="Press to bind key\nescape: cancel\nbackspace: delete",
errorMsg="Une erreur est survenue et Techmino doit redémarrer.\nDes informations concernant l'erreur ont été créées, et vous pouvez les envoyer au créateur.",
-- tryAnotherBuild="[Invalid UTF-8] If you are on Windows, try downloading Techmino-win32 or Techmino-win64 (different from what you are using now).",
modInstruction="",
modInfo={},-- See lang_en.lua

View File

@@ -115,6 +115,7 @@ return{
-- keySettingInstruction="Press to bind key\nescape: cancel\nbackspace: delete",
errorMsg="Um erro ocorreu e Techmino precisa reiniciar.\nInformação do erro foi criada, e você pode mandar ao autor.",
-- tryAnotherBuild="[Invalid UTF-8] If you are on Windows, try downloading Techmino-win32 or Techmino-win64 (different from what you are using now).",
modInstruction="Selecione mods (modificadores) para usar!\nMods irão modificar o jogo em formas diferentes\n(e possivelmente quebrar o jogo de formas estranhas).\nAlguns mods irão fazer seu jogo unranked.",
modInfo={

View File

@@ -64,8 +64,6 @@ return{
replayBroken=">x.",
errorMsg="T&chm1n0 ^@n 1nt0 @ p^0bl&m @nd n&&d$ t0 ^&$t@^t.\nY0u c@n $&nd th& &^^0^ l0g t0 th& d&v$.",
pauseStat={
"~:",
"=/''/[ ]:",

View File

@@ -126,6 +126,7 @@ return{
keySettingInstruction="点击添加键位绑定\nesc取消选中\n退格键清空选中",
errorMsg="Techmino遭受了雷击,需要重新启动.\n我们已收集了一些错误信息,你可以向作者进行反馈.",
tryAnotherBuild="[解码UTF-8错误] 如果你现在用的是Windows系统,请重新下载 Techmino-32位 或者 Techmino-64位 (和现在运行的不一样的那个).",
modInstruction="选择你要使用的Mod!\n不同Mod会用不同的方式改变初始游戏规则(可能导致不能正常游玩)\n来开发新玩法或者挑战自我吧!\n提醒:开启一些Mod会让成绩无效,你也可以用键盘开关Mod,按住shift反向",
modInfo={

View File

@@ -127,6 +127,7 @@ return{
keySettingInstruction="按绑定键\n退出:取消\n退格:删除",
errorMsg="技术米诺遇到问题,需要重新启动。\n您可以将错误日志发送给开发人员。",
tryAnotherBuild="[无效UTF-8]如果您在Windows上,请尝试下载Techmino-win32或Techmino-win64(与您现在使用的不同)",
modInstruction="选择你的修改器\n多重器官衰竭允许您更改游戏。\n它们也可能以奇怪的方式破坏游戏。\n请注意,多重器官衰竭将导致您的游戏取消排名!",
modInfo={
@@ -772,7 +773,7 @@ return{
"1下一个1等待!",
"1下一个6等待!",
"20克实际上是一个全新的游戏规则",
"40直线冲刺世界纪录:14.915秒重置_",
"40直线冲刺世界纪录:14.915秒,重置_",
"6下一个1等待!",
"6下一个6等一下?!",
"成就系统即将推出!",