Unity 中獲取 TextMesh Pro, 點 Unity.Editor.asmdef 進行編輯
50197-bp33m2y6sou.png

搜索 TextMsh Pro 加入, 滑到下方點 Apply 套用
70570-jdz869wm4yd.png

切換到 Editor 腳本

using TMPro;

//get
transform.Find("Text_ID").GetComponent<TextMeshPro>().text = "123";
55 次阅读 阅读全文

今天打包版本測試轟炸超人發現這個問題

StackOverflowException: The requested operation caused a stack overflow. at (wrapper managed-to-native) System.String.FastAllocateString(int) at System.String.CreateStringFromEncoding (System.Byte* bytes, System.Int32 byteLength, System.Text.Encoding encoding) [0x00013] in <c9d3ffd4b98649ee9989e1908eaca019>:0 at System.Text.Encoding.GetString (System.Byte* bytes, System.Int32 byteCount) [0x00033] in <c9d3ffd4b98649ee9989e1908eaca019>:0 at System.Text.Encoding.GetString (System.ReadOnlySpan1[T] bytes) [0x00013] in :0
at System.String.Ctor (System.SByte value, System.Int32 startIndex, System.Int32 length, System.Text.Encoding enc) [0x0006d] in :0
at System.String.CreateString (System.SByte
value, System.Int32 startIndex, System.Int32 length, System.Text.Encoding enc) [0x00000] in :0
at (wrapper managed-to-managed) System.String..ctor(sbyte,int,int,System.Text.Encoding)
at UnityEngine.StackTraceUtility.ExtractStackTrace () [0x0002c] in :0
at (wrapper managed-to-native) UnityEngine.DebugLogHandler.Internal_Log(UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
at UnityEngine.DebugLogHandler.LogFormat (UnityEngine.LogType logType, UnityEngine.Object context, System.String format, System.Object[] args) [0x0000b] in :0
at UnityEngine.Logger.Log (UnityEngine.LogType logType, System.Object message) [0x00027] in :0
at UnityEngine.Debug.Log (System.Object message) [0x00006] in :0
at ETModel.Log.Debug (System.String msg) [0x00000] in G:\OlgCase\bbm\source\Unity_Web\Assets\Model\Base\Log.cs:14
at ILRuntime.Runtime.Generated.ETModel_Log_Binding.Debug_8 (ILRuntime.Runtime.Intepreter.ILIntepreter __intp, ILRuntime.Runtime.Stack.StackObject
esp, System.Collections.Generic.List`1[T] mStack, ILRuntime.CLR.Method.CLRMethod method, System.Boolean isNewObj) [0x0003a] in G:\OlgCase\bbm\source\Unity_Web\Assets\Model\ILBinding\ETModel_Log_Binding.cs:222
at (wrapper delegate-invoke) .invoke_StackObject_ILIntepreter_StackObject_List1<object>_CLRMethod_bool(ILRuntime.Runtime.Intepreter.ILIntepreter,ILRuntime.Runtime.Stack.StackObject*,System.Collections.Generic.List1,ILRuntime.CLR.Method.CLRMethod,bool)
at ILRuntime.Runtime.Intepreter.ILIntepreter.Execute (ILRuntime.CLR.Method.ILMethod method, ILRuntime.Runtime.Stack.StackObject esp, System.Boolean& unhandledException) [0x0387d] in G:\OlgCase\bbm\source\Unity_Web\Assets\ThirdParty\ILRuntime\ILRuntime\Runtime\Intepreter\ILIntepreter.cs:2219
at ILRuntime.Runtime.Intepreter.ILIntepreter.Execute (ILRuntime.CLR.Method.ILMethod method, ILRuntime.Runtime.Stack.StackObject
esp, System.Boolean& unhandledException) [0x03711] in G:\OlgCase\bbm\source\Unity_Web\Assets\ThirdParty\ILRuntime\ILRuntime\Runtime\Intepreter\ILIntepreter.cs:2173
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.<>c:b0_0(Object, UnhandledExceptionEventArgs)e
`

很明顯是出現了無限循環, 但不確定問題在哪, 測試了發現是 AIPlayer 造成的, 並且問題在尋路上

不知道為什麼這邊的計算公式如果設定 depth > 200 , 就會造成 depth = 39 就卡死

private void reCalcNonPath(int[,] matrixData, ref List<int[]> path, int bombCnt, int depth, int chunkH, int chunkW)
{
    if (path.Count <= 0){
        return;
    }
    int[] last = path[path.Count - 1];
    //
    if (depth > 30){
        return;
    }

改掉了就好了

48 次阅读 阅读全文

今天把 scene 底下的介面給整理到 prefab 去, 結果出現這個錯誤

Reference "0" of "Panel_ThreeTiledGame" to external scene object "Canvas" can not be saved in prefab asset.
at D:\ProgramFiles(x86)\CocosCreator_2.3.3\resources\app.asar\editor\page\scene-utils\utils\prefab.js:1:3280
at n (D:\ProgramFiles(x86)\CocosCreator_2.3.3\resources\app.asar\editor\page\scene-utils\utils\prefab.js:1:2960)

13837-b3cpv84wtzf.png

後來發現是複製過來的Button Event 上面還掛著原本的 canvas 綁定, 把這個去掉在保存就好了
25250-arfe8cff3pr.png

51 次阅读 阅读全文

今天在同步本地sql到gcp mysql時發生了這個錯誤
09204-2k2k1p28o5z.png

[ERR] 1> 1418 - This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you might want to use the less safe log_bin_trust_function_creators variable)

切換到 gcp sql
28495-7e6p4m3wz9f.png

選擇編輯設定, 在下面新增flag
04659-33er7l5z03p.png

新增對應flag, log_bin_trust_function_creators 確認後保存。
57399-66o2o9vkhom.png

最後在執行一次同步, 可以了。
12084-c29s8yqarra.png

45 次阅读 阅读全文

前往官網下載 windows 版本

https://lmstudio.ai/
29458-kpk5u9nn19.png

安裝後執行, 切換到 Search, 搜索後出現 network error
44282-txirqxvz9ko.png

切換到安裝目錄下, 搜索 HuggingFace.co 替換成 hf-mirror.com
48028-zg983fvq8ro.png

https://hf-mirror.com/
43406-zza50654atr.png

重啟 Lm Studio 搜索 TAIDE-LX-7B-Chat 出現結果了
85205-4jyi3qljih5.png

點下載
TAIDE-LX-78-Chat.Q2_K.gguf

另外, 我把下載 model 修改掉了, 具體切換到 My Models 分頁, 點 Change 修改目錄
97488-ltln1dzi45o.png

可以看到已經在下載了
82292-0rgwxgy2po2.png

54 次阅读 阅读全文