-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS project missing #1
Comments
Hi there |
Compilation & Linker worked fine. Runtime errors ! Problems with file path. I added OpenQuick Lua source files to the Resources/ as a directory. In execution of main.lua sample the Lua runtime could not access the OpenQuick lua files. Ok, in Cocos2d-x regular Lua you have to add "search path" for the Lua files. Can't see where I have to add this in openquick C++ AppDelegate.cpp?!! |
Ignore anything you know about Cocos2d-x and Lua! OpenQuick does not use Cocos2d-x's existing Lua bindings, or Lua set-up code. Your iOS project needs to set its root data folder to be one level above your "quicklua" folder. This is, I believe, a setting of the Xcode project. For example, for Windows the Visual Studio project for the "Hello World" sample sets the root data folder to /samples/HelloWorld/proj.win32. Does that help? |
Yes that helps. Thanks. Will give it a spin later... |
I think that on some (many?) platforms you may well need/want the call to luaengine->addSearchPath(). cocos2dx has a virtual filesystem that knows how to look for files in one or more locations. lua (even the one That way you can also take advantage of the alternate resource dir system that cocos provides for assets and provide "HD" lua files if you really want to :) |
I was able to setup a iOS project with Cocos2d-x, but it does not worked out.
The text was updated successfully, but these errors were encountered: