COCOS2DX3.4 New project cannot be commissioned with VS Babelua

cocos2dx 3.4 to create a new lua project, follow http://www.cocoachina.com/bbs/read.php?tid-205043-page-1.html operation, there is no way to enter the breakpoint. The project can run normally, but when the temp project generated by the Lua plug-in is set as the startup project, the simulator runs with a black screen,

This is a log:
——————————— Setting Info —- ————————————-
Setting name: test_lua3.4_script
Lua scripts folder: E:\test_lua3.4\src
Lua exe path: E:\test_lua3.4\runtime\win32\test_lua3.4.exe
Working path: E:\test_lua3.4\runtime\win32
Command line:
——————————————– ——————————————–
E:\test_lua3.4\runtim e\win32\test_lua3.4.exe
Debugger attached to process
0x037501c0: VM created

package.path: .\?.lua;E:\ test_lua3.4\runtime\win32\lua\?.lua;E:\test_lua3.4\runtime\win32\lua\?\init.lua;
< br style="outline:none; color:rgb(51,51,51); font-family:'Helvetica Neue',Helvetica,STheiti,Microsoft Yahei,Heibody,Arial,Tahoma,sans-serif,serif; font- size:14px; line-height:24px"> Load script(0): E:\test_lua3.4\src\@Untitled1.lua relative (file not exist)
Load script(1): E:\test_lua3. 4\src\@Untitled2.lua relative (file not exist)
Load script(2): E:\test_lua3.4 \src\@Untitled3.lua relative (file not exist)
Load script(3): E:\test_lua3.4\src\@Untitled4.lua relative (file not exist)
Load script(4): E:\test_lua3.4\src\@Untitled5.lua relative (file not exist)
Load script(5): E:\test_lua3.4\src\@Untitled6.lua relative (file not exist)
Load script (6): E:\test_lua3.4\src\@Untitled7.lua relative (file not exist)
Load script( 7): E:\test_lua3.4\src\@Untitled8.lua relative (file not exist)
Load script(8): E:\test_lua3.4\src\@Untitled9.lua relative (file not exist)
Load script(9): E:\test_lua3.4\src\@Untitled10.lua relative (file not exist)


I tossed for 2 days, but still no success, I hope to help, just Start with vs.

When creating a new lua project with VS3.4 at the beginning, Directly black screen, can not run directly, you have to refresh every time. Later, in AppDelegate.cpp’s bool AppDelegate::applicationDidFinishLaunching(), add it at the beginning position:
//add search paths////////////////////// ///////
string strPath = CCFileUtils::getInstance()->getWritablePath();
vector vtPath = CCFileUtils::getInstance()->getSearchPaths();

vtPath. push_back(strPath + “res/”);
vtPath.push_back(strPath + “src/”);

CCFileUtils::getInstance()->setSearchPaths(vtPath);

Add to the main.lua file in the src directory

package.path = package.path..”;src/ ?.lua”

This is the configuration

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3684 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.