oOtroyOo

Results 29 issues of oOtroyOo

![屏幕截图 2021-06-16 104752](https://user-images.githubusercontent.com/19978148/122150457-57e26780-ce90-11eb-954e-271e1890f27b.png) Then I have to setup language to en. ![屏幕截图 2021-06-16 104944](https://user-images.githubusercontent.com/19978148/122150611-a2fc7a80-ce90-11eb-9c29-4f08bd7a4220.png)

就是刚新搭建的项目,忽然发现Unity能识别.lua的文件了,而不是从前的教程中说的 需要改成.lua.txt。 一路发现了 这次今年的提交 #[c2cbaf8d ](https://github.com/Tencent/xLua/commit/c2cbaf8d0cdd59a7deb8d16e8963c6f298b709ae)。 新增有 `LuaImporter`,`LuaAsset` ,`XXTEA` 这些文件。似乎是关于导入和加密的 不过我并没有查到怎么使用。简单的`require`似乎找不到文件。

因为[faq教程](https://github.com/Tencent/xLua/blob/master/Assets/XLua/Doc/faq.md#%E6%9C%89%E7%9A%84unity%E5%AF%B9%E8%B1%A1%E5%9C%A8c%E4%B8%BAnull%E5%9C%A8lua%E4%B8%BA%E5%95%A5%E4%B8%8D%E4%B8%BAnil%E5%91%A2%E6%AF%94%E5%A6%82%E4%B8%80%E4%B8%AA%E5%B7%B2%E7%BB%8Fdestroy%E7%9A%84gameobject)中提到了这个问题,所以我只是想提一个建议,加在教程里。 可惜的是,如果没有按照教程,没有预先配置一个`IsNull()`方法,那这个问题在Lua里写代码就很尴尬了。 经过我尝试,可以用以下代码解决,我这里版本为2019.4 ,其他Unity多种版本还没测试 参考Unity引擎源码为: https://github.com/Unity-Technologies/UnityCsReference/blob/2019.4/Runtime/Export/Scripting/UnityEngineObject.bindings.cs ``` csharp public override bool Equals(object other) { Object otherAsObject = other as Object; // A UnityEngine.Object can only be equal to another UnityEngine.Object...

core.py :729 `uncensored = int(unce) if isinstance(unce, bool) else int(is_uncensored(number))` [-] int() argument must be a string, a bytes-like object or a number, not 'NoneType' 似乎是可以这样改: `uncensored = int(unce) if...

这几行LuaPanda源码,会出现这样的错误 ``` --sync breaks to c if hookLib ~= nil then hookLib.sync_breakpoints(); end ``` ``` Error:Editor/LuaPanda:1132: bad argument #-1 to 'sync_breakpoints' (string expected, got nil) stack traceback: [C]: in function...

如果说,Unity 项目中。有人用vscode做主开发,其中,lua根目录在Unity项目的Assets某目录里。而不是与Unity同级根目录。如果就这样LuaHelper-Attach ,将会找不到路径。 但是呢,可以调整json - 例如 lua根目录在 Unity项目中Assets/LuaScript/ - LuaHelper-Attach 下面添加 ``` "cwd": "${workspaceFolder}/Assets/LuaScript/" ``` 经测试,甚至可以C#,lua 两种调试同一个vscode同时开启。将会带来巨大的方便。

100% crash when open Taobao APP. java.lang.RuntimeException: Unable to create application android.taobao.atlas.startup.AtlasBridgeApplication: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5531) at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method) at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:360) at android.app.ActivityThread.handleBindApplication() at android.app.ActivityThread.-wrap2(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1611) at android.os.Handler.dispatchMessage(Handler.java:102) at...

java.lang.RuntimeException: Unable to create application android.taobao.atlas.startup.AtlasBridgeApplication: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5531) at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method) at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:360) at android.app.ActivityThread.handleBindApplication() at android.app.ActivityThread.-wrap2(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1611) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:163) at android.app.ActivityThread.main(ActivityThread.java:6360) at java.lang.reflect.Method.invoke(Native Method)...

First of all , now I can run these code running in VSCode or command line ``` //const {app, BrowserWindow} = require('electron') import { app, BrowserWindow } from 'electron' ```...

![批注 2020-06-22 095354](https://user-images.githubusercontent.com/19978148/85241470-7759d680-b46e-11ea-9835-1d04a819a3bf.png) In this screenshot , It's a file with UTF-BOM I selected letter 's' , but the hex lead me to [2]bf , whitch 's' should be [4]73...