I haven’t tested it on other platform, so I’m not sure if this issue also happens on Mac/iOS/Android.
I believe it’s caused by https://github.com/cocos2d/cocos2d-x/commit/b91d8255bd1679d4148b3d46d369efeba5ed8e3f
In short:
- In 3.1.1, cocos2d-x uses
FileUtils
to search file and load file. - But in 3.2, it uses
package.path
to search file, which is determined by yourLUA_PATH
env.