Lua script hot update scheme

Hot update, in layman's terms, is a patch. Players know that they can update the client by restarting the client. They don't need to uninstall and reinstall the app. Compared with stand-alone games, this is also a thing that is used more in online games.

First, the approximate process is as follows:


Are You Ready?

Go!

The content of the luaFileList.json file is generally the key-value pair of the lua file, the key is the lua file path + file name, and the value is the MD5 value:

This configuration can be exported by the writer tool:

There are many interfaces for obtaining MD5 used in the above, so I will not write them here.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325874285&siteId=291194637