Cocos Creator v1.7.0 内测版发布帖(11月17日更新 rc.2)

中下部的控制台啊

看楼主的贴。

没看到1.7的文档链接

1赞

API注释请看cocos/scripting/js-bindings/jswrapper/jsc下面的源码,其他引擎的还没拷贝过去。接口都是一模一样的,看jsc这份就可以了。

1赞

请问分辨率适配这个是还没弄好吗?之前的版本fixWidth是正常的,现在就只是显示设计分辨率大小了

1.7 beta2, Mac上构建web mobile,在safari上打不开,但是在火狐浏览器上可以打开,工程就是helloworld。还是就是编译helloworld的ios都编译不成功

大家似乎不怎么活跃啊 :slight_smile:

之前在1.6.2测试的热更新没有问题,现在在1.7.0 beta2上,重启的时候,就要当机,谁还遇到过?

在C++中注册了一个回调函数,之后在js中要怎么才能调用.

cc.Class({


testJB: function(){
__getOS(); // 这是系统的回调函数
myCFunction(); // 这是我定义的回调函数
},

});
以上两处调用都不起作用

楼顶的教程看了一遍,没找到这个说明.

请大侠指点.谢谢

2017-10-18T01:05:20.793Z - normal: Simulator: jsb: ERROR: File /Users/nantas/fireball-x/cxp/cocos/scripting/js-bindings/manual/jsb_socketio.cpp: Line: 192, Function: SocketIO_emit
2017-10-18T01:05:20.793Z - normal: Simulator: Converting payload failed!

解决了. 是\build\jsb-default\src\project.dev.js没更新

哪个平台?用default或者link模版查一下堆栈信息,如果还不行,提供一下复现demo吧。

你emit的第二个参数传递的不是字符串或者数字吧?目前SocketIO只支持传字符串。如果要用二进制数据,最好base64一下。这个问题不是1.7新引入的问题。放在后续重构SocketIO的时候修复。

能透露一下大概什么时候发版本吗

憋大招呢,别着急

看微信公众号号说21号发1.7正式版,不知道是不是真的

ok,我在跑跑~

可以了,第2个参数传null好像也不行; 随便传个字符过去就行了

模板:binary;
构建===》编译 时报下面的错

/Users/chenfuquan/examples/build/jsb-binary/frameworks/runtime-src/proj.ios_mac/ios/AppController.mm:63:21: warning: ‘wantsFullScreenLayout’ is deprecated: first deprecated in iOS 7.0 [-Wdeprecated-declarations]
_viewController.wantsFullScreenLayout = YES;
^
In file included from /Users/chenfuquan/examples/build/jsb-binary/frameworks/runtime-src/proj.ios_mac/ios/AppController.mm:1:
In file included from /Users/chenfuquan/examples/build/jsb-binary/frameworks/runtime-src/proj.ios_mac/ios/Prefix.pch:7:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:253:34: note: ‘wantsFullScreenLayout’ has been explicitly marked deprecated here
@property(nonatomic,assign) BOOL wantsFullScreenLayout NS_DEPRECATED_IOS(3_0, 7_0) __TVOS_PROHIBITED; // Deprecated in 7_0, Replaced by the following:
^

** BUILD FAILED **

The following build commands failed:
CompileC build/hello_world.build/Release-iphonesimulator/hello_world-mobile.build/Objects-normal/i386/AppDelegate.o /Users/chenfuquan/examples/build/jsb-binary/frameworks/runtime-src/Classes/AppDelegate.cpp normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Build failed: Take a look at the output above for details.