Some information in the Ulua group, turn around to see
Ulua Learning Order. Please take your seat according to your knowledge. Beginner: Simpleframework Framework Intermediate: Ulua plugin, Cstolua advanced: Bottom Library compilation. The role of the framework is divided into 2 types, the first, for the framework of the factory, it is a use of Ulua+cstolua a relatively complete demo. Second, for the students without a framework, you can modify and expand it on its own. Wrap is the interface file that C # classes provide to Lua
Attempt to index global ' System ' (a nil) has just been downloaded and needs to be done in two steps (1) Lua/gen Lua wrap files Generate wrap (2) game/build Bundle Resource (Ngui version Generate Resources Game/build Assetbundles (Ugui edition) build resources
About Unknow LUA error Lua file encoding problem processing if the Lua file to protect information such as Chinese comments, files saved as Utf8-bom, if you are afraid of trouble simply remove the Chinese, and then save to UTF8 can solve the problem.
Unprotected error in the call to LUA API LuaInterface.LuaException:unprotected the error in the call to LUA API (Loader file failed: game) Check that the LUA variable is not missing the local keyword. or turn off the variable check Strict.lua, comment out the require "strict" in the Golbal.lua
The Mac compiles the project cannot find the Lua.h method to delete the Ulua/source directory, retry~
Ulua Bottom Library &mingw compilation tool download, Baidu Network disk: http://pan.baidu.com/s/1gd1Wyx9 Ulua has all open source, you can customize the library you need, Mac, iOS is LUAVM, need xcode6.0 above , Android needs the NDK 8,windows compiler tool MINGW32/64. I put it in
D Packing Directory: 32-bit: D:\MinGW\x86\msys\1.0\msys.bat 64-bit: D:\MinGW\x64\msys\1.0\msys.bat Real Android version of the compiled file under this: Source\android\jni
Ulua Data Location Ngui version, Ugui version, Winphone version frame address: http://www.ulua.org/simpleframework.html The most complete document annotation: Group sharing inside Simpleframework_ v0.2.7 Annotations-Full version
_luaopen_pack, referenced from: "Error" _luaopen_pack ", referenced from:" _lua_tocbuffer ", referenced from: Remove the error function declaration in LuaDLL.cs, and its related error code can be.
Lua relationship Ulua-"very early." A JIT version of LUAVM cstolua-based on Luainterface, a unity version of LUA binding luajit-, was originally based on Ulua, Now the optimizations are great and the Ulua Association is not much of a static export-based LUA binding
The game has been developed to the late, how to access Ulua? (1) Activity (2) timer (in seconds) drives Lua's update (3) network management left to the interface that LUA can interact with the server (not currently available). Activities this part of the most variable, many problems before the launch is unpredictable, such as on-line if the data
Not ideal, or very hot, these conditions are unpredictable, and depending on the circumstances, it is easy to update the requirements. And it's not always possible to sit in front. Operational planning is all about the root
Do unknown activity adjustments according to online operations. There is a part of what I call, the procedure to leave the posterior, if most of them are C #, it is likely to produce a bug after the launch, such as:
Novice guide, in what place stuck up and so on. The client initiates a timer that drives a ontimer of Lua, which dynamically adjusts the control of the game, depending on the game's operating conditions. And there is more
Leave a protocol interface for the LUA backup.
Unity Hand Tour There is no need to do code hot update Unity Hot update is necessary: (development period) to reduce the number of hand travel packaging, greatly shorten the development cycle, improve program debugging efficiency. (operating period) reduces the number of large version updates to reduce user flow
Loss, complaining, raising retention, paying, etc.
Simpleframework download run crash method because the development period is not known to everyone unity version, in order to reduce the error, wrap files are clear when the release, so when everyone started the download run, this part is missing, need to
To click the menu Lua/gen Lua Wrap Files. Additional resource files also need to be regenerated according to their own version. Operation steps: (1) Click menu Lua/gen Lua Wrap Files. (2) Click
Game/build Bundle Resource.
Simpleframework Baidu Network Disk if the group sharing and ulua.org up and down, please go to Baidu Disk backup Http://yun.baidu.com/s/1jGzN78q#path=%252FSimpleFramework
GUI Prefab Damage Solution put gui.zip, unzip, and replace. The camera field below the GUI is changed to Everything,tag to Guicamera,gui and changed to default. The reason for the loss is because I switch back and forth
Unity version. It can be solved by the above method.
Manually regenerate the Wrap file method Delete source/luawrap/The following CS file, the base directory and its following files must not be deleted, and then clear the error code. Then click Lua/gen luabinding files to generate a new wrap
Files can
U5 does not recommend the use of Ngui reasons U5 new format packaging, Ngui does not support, the author is not ready to repair (let me happy, I changed), the old packaging function is also marked discarded, how to see the possibility of being discarded, and then turn may have a very
Big risk. Therefore, the new project recommended the use of Ugui, the framework already has UGUI+U5 new packaging version, address: Http://ulua.org/simpleframework.html not support part: The new assetbundle in the prefab can not have drag script, Which of the Ngui does not have this atlas drag script? No one is willing to modify each of the assembled Atlas to become
Gameobject, huh???
Apple New Deal prohibits developers to join the check Update function method mainly stay in the audit period, the server set a switch, the audit period to check the update function closed, the audit period, and then open.
Modifying the LUA code call path if you use the Simpleframework framework, the location of the LUA code file is specified in the Luapath function of the Util.cs class.
Do not print Chinese bug modified Lua.cs, search Encoding.default, changed to UTF8.
object contains non-primitive or XXX object contains non-primitive or non-blittable data error, this is an iOS il2cpp run bug, please refer to HTTP.// Ulua.org/simpleframework.html
simpleframework_v0.2.0 Patch1 Patch to modify the upgrade.
Luawrap/xxxwrap.cs does nontain for ' xx ' Assets/source/luawrap/xxxwrap.cs (218,21): Error cs1061:type ' unityengine.xxx ' Does not contain a definition for ' xxx ' and no
extension method ' xxx ' of type ' unityengine.xxx ' could be found (is missing a using directive or an assembly REFERENC E?) Compile
Error Resolution: Because Unity has different platform version APIs, it is not particularly uniform, and you can simply remove the error code if you encounter this problem.
Ulua (Android +ios), Nlua (Windows Phone) Ulua contains two C modes (Luajit version + native LUAVM edition), plus Tolua C # provides direct access to channels. Therefore, the pursuit of efficiency, please choose Ulua. But Ulua because the underlying uses Luajit
, and Luajit currently can not be used in the WP platform, so if Ulua support WP platform requires a second native LUAVM of the underlying library. The Nlua contains 2 modes (Keralua C version) (Kopilua C # version), which supports the full platform because of the original LUAVM (non-Luajit) of the C version underlying. But lack of support for Tolua C #
, so the efficiency is slightly lower than Ulua, but the WP platform is supported (and supported by other platforms).
Dllnotfoundexception:ulua solution (1) Put the plugins directory to the outermost and restart unity. (2) Missing VC + + Runtime. (3) Mac run time without option iOS platform. Generate a real-computer re-select iOS. (4) The real machine does not pack libulua.so into the package, or the simulator is also some wrong settings. Pack the libulua.so into the libs\armeabi-v7a when you pack.
Luastudio Debug Card Control Panel-user account-change user Account Control Settings panel-always notify instead of never notify
Attempt to index global ' unityengine ' uascriptexception: [string "Define.lua"]:1:attempt to index Global ' unityengine ' (a Nil value) Resolved: Generate the Wrap file.
Entrypointnotfoundexception: Solution entrypointnotfoundexception: This type of error is not very single, you can choose the following 2 methods to solve: (Scenario 1) Remove all but assets and projectsettings directories,
Re-open the project. (Scenario 2) If on Mac, select iOS platform, it is easy to appear, switch to the MAC/PC platform basically solved, you can not ask to be sure to run iOS Dynamic library under Mac.
Luastudio, please use Administrator Administrator privileges, otherwise it will hang dead!!!
Use Uibutton.current in LUA to determine which button to click
Ulua learning materials and problem solving solutions