跳到主要內容

發表文章

目前顯示的是 3月, 2024的文章

load the extension builder 卡著

 今天打開 cocos 項目發現一直卡在 load the extension builder 查了下發現目前的 editor log 已經被移到了項目底下 {project}\client\temp\logs\project.log 看了下沒看出甚麼問題, 轉頭去 git diff 查閱發現之前改了 extension, 裡面引用了兩個一模一樣的 obfuscation 資料, 估計是這個問題, 把 cc-obfuscated-3_x 刪除啟動就好了

android studio Plugin Error: Plugin "Dart" is incompatible

開 Android Studio  打包項目時出現錯誤 2024/3/29 15:19 Plugin Error: Plugin "Dart" is incompatible (until build 191.SNAPSHOT < AI-201.8743.12).<p/>Plugin "Flutter" is incompatible (until build 191.SNAPSHOT < AI-201.8743.12). 點開 Setting -> Plugin , 把 Dart, Flutter 更新, 再重開就可以了

接入Xbox手把

為了一勞永逸解決測試轟炸超人手機上虛擬搖桿問題, 想了很久剛好還有一把庫存的手把,於是 決定直接在PC上接入XBox手把 XBox手把配置如下 我們要用到X axis, Y axis 來作為測試用, 必須是可以圓滑操控的 在 Unity 開啟 Input Setting , 先新增兩組設定, 再 Copy "Horizontal" 並貼在新增的配置上 新增的配置如下, 將 [Horizontal] Type: Joystick Axis Axis: X axis Joy Num: Get Motion form all Joysticks [Vertical] Type: Joystick Axis Axis: Y axis Joy Num: Get Motion form all Joysticks 接著寫一段代碼測試, 沒有問題就可以開始用

接入SoftMaskForUGUI

  SoftMaskForUGUI 插件地址  https://github.com/mob-sakai/SoftMaskForUGUI/tree/main 在 manifest.json 配置如下: "com.coffee.softmask-for-ugui": "https://github.com/mob-sakai/SoftMaskForUGUI.git#1.0.0" 結果出現了下面的錯誤 An error occurred while resolving packages:   Project has invalid dependencies:     com.coffee.softmask-for-ugui: Error when executing git command. fatal: unable to connect to github.com:     github.com[0: 20.205.243.166]: errno=No error unity package manager 無法連到github u nity package manager 不使用IE代理配置, 必須要設定 http_proxy  開啟vpn自動配置系統代理, 從 vpn 可以看到 http 監聽端口為 socket port + 1 開啟後去代理設定裡面查看, 果然是 10809(10808+1) 接著參考 unity 說明添加系統配置 http_proxy :  http://127.0.0.1:10809 https_proxy :  http://127.0.0.1:10809 https://docs.unity3d.com/cn/2019.3/Manual/upm-network.html 接著把 unity 關閉後並且重啟 unity hub 開啟專案 發現還是錯的回頭去看 manifest.json, 把 https 改成 http, https 必須要有證書, 所以改成 http 試試看 package manager 重刷後發現成功了, 從 vpn log 也察看到對應的請求 http://github.com/mob-sakai/SoftMaskF...

QR CodeBarcode Scanner and Generator 插件測試使用

測試使用 QR CodeBarcode Scanner and Generator 插件 將插件引入unity項目中, 使用debug key進行打包apk, 發生下面這個錯誤 這是因為打包apk過程中要下載groovy-all-2.4.15.jar, 連接不到的緣故 我們改成 export project 打包出來再用 android studio 處理 Android執行完成 gradle files 進行安裝後出現下面問題 The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFOR 找到 intent-filter 的地方, 在前面加 android:exported="true", 如下 在打包, 出現下面問題  The application could not be installed: SHELL_UNRESPONSIVE 把手機vpn打開, 這台 pixel install apk 如果沒有翻牆就會卡住, 而且在桌面會找不到app, 但軟件清單裡面卻可以找到 最後執行閃退了 這是因為沒有打開 camera 權限, 開啟之後就好了

python inverse matrix

 之前為了參考github的轟炸超人AI, 發現source的盤面跟設計的剛好相反,於是用了python做了轉換 原本的盤面數據, 轉換如下 a = [ [0,0,0,0,2,0,2,0,0,0,0,0,1,0,1,0,2,0], [0,0,0,1,0,1,2,1,2,0,1,0,0,2,0,0,0,1], [2,0,2,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,1,2,1,2,2,0,0,0,0,1,0,1,0,1,1], [2,0,2,0,2,0,2,0,0,1,0,0,0,2,0,2,0,0], [0,1,0,1,0,1,0,1,0,1,2,2,1,0,1,2,1,0], [2,0,2,0,2,2,2,0,2,0,0,0,2,2,0,2,0,2], [0,1,0,1,0,1,0,0,0,0,2,2,0,2,0,2,0,0], [0,0,0,0,0,2,0,0,2,2,0,0,0,0,0,0,0,0] ] b = [[0 for _ in range(len(a))] for _ in range(len(a[0]))] for j in range(len(a)): for i in range(len(a[0])): b[i][j] = a[j][i]

il2cpp::vm::Class::GetVirtualMethod 錯誤

打包pc版本執行出錯, 將 dump 拉到 vs 看到 Player.log 如下, 出錯  il2cpp::vm::Class::GetVirtualMethod  後來發現打開  Deep Porfiling support 就會出現這個問題, 關掉就行了