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

好的,我有空的时候查查,如果你不忙的话先找找问题,感谢

v1.7.0b7, win模拟器 
this.node.runAction (cc.sequence(
                cc.moveBy(0.2, cc.p (100,0)),
                // cc.callFunc(function () {
                //     cc.log ("complete");
                // },this)
            ));

sequence只有单个的时候崩溃:
ERROR: Uncaught Error: cc.Node.runAction(): action must be non-null

这个早就不能这么用了?你上一个版本是多少?把这个动作直接放在action里就可以了,不用sequence

我是在升级以前1.4.2的项目,想不到这种api也在变化

之前我也遇到了这个错误,panda给解释说用法改了@wuzhialex

jsb.reflection.callStaticMethod 更改了 接口吗??

11-08 11:59:13.263 4767-6856/com.siwuliu.game I/System.out: [OkHttp] sendRequest>>
11-08 11:59:13.263 4767-6856/com.siwuliu.game I/System.out: [OkHttp] sendRequest<<
11-08 11:59:13.317 4767-6856/com.siwuliu.game W/art: Native thread exiting without having called DetachCurrentThread (maybe it’s going to use a pthread_key_create destructor?): Thread[21,tid=6856,Native,Thread*=0xe1aebc00,peer=0x12f500a0,“Thread-16756”]
11-08 11:59:13.317 4767-6856/com.siwuliu.game D/JniHelper: JniHelper::getJavaVM(), pthread_self() = -526528512
11-08 11:59:15.102 4767-6874/com.siwuliu.game I/System.out: [CDS]rx timeout:1
11-08 11:59:15.103 4767-6874/com.siwuliu.game I/System.out: [CDS]EAGAIN in Recvfrom
11-08 11:59:15.103 4767-6874/com.siwuliu.game I/System.out: [CDS]read byte is 0
11-08 11:59:15.103 4767-6874/com.siwuliu.game I/System.out: [CDS]rx timeout:60000
11-08 11:59:15.103 4767-6874/com.siwuliu.game I/System.out: [CDS]rx timeout:60000
11-08 11:59:15.103 4767-6874/com.siwuliu.game I/System.out: [OkHttp] sendRequest>>
11-08 11:59:15.104 4767-6874/com.siwuliu.game I/System.out: [OkHttp] sendRequest<<
11-08 11:59:15.181 4767-6874/com.siwuliu.game W/art: Native thread exiting without having called DetachCurrentThread (maybe it’s going to use a pthread_key_create destructor?): Thread[21,tid=6874,Native,Thread*=0xe1aebc00,peer=0x12f50c40,“Thread-16757”]
11-08 11:59:15.182 4767-6874/com.siwuliu.game D/JniHelper: JniHelper::getJavaVM(), pthread_self() = -526528512
11-08 11:59:17.079 4767-6893/com.siwuliu.game I/System.out: [CDS]rx timeout:1
11-08 11:59:17.083 4767-6893/com.siwuliu.game I/System.out: [CDS]EAGAIN in Recvfrom
11-08 11:59:17.083 4767-6893/com.siwuliu.game I/System.out: [CDS]read byte is 0
11-08 11:59:17.083 4767-6893/com.siwuliu.game I/System.out: [CDS]rx timeout:60000
11-08 11:59:17.084 4767-6893/com.siwuliu.game I/System.out: [CDS]rx timeout:60000
11-08 11:59:17.084 4767-6893/com.siwuliu.game I/System.out: [OkHttp] sendRequest>>
11-08 11:59:17.086 4767-6893/com.siwuliu.game I/System.out: [OkHttp] sendRequest<<
11-08 11:59:17.161 4767-6893/com.siwuliu.game W/art: Native thread exiting without having called DetachCurrentThread (maybe it’s going to use a pthread_key_create destructor?): Thread[21,tid=6893,Native,Thread*=0xe1aebc00,peer=0x12fe69a0,“Thread-16758”]
11-08 11:59:17.161 4767-6893/com.siwuliu.game D/JniHelper: JniHelper::getJavaVM(), pthread_self() = -526528512
11-08 11:59:19.114 4767-6917/com.siwuliu.game I/System.out: [CDS]rx timeout:1
11-08 11:59:19.123 4767-6917/com.siwuliu.game I/System.out: [CDS]EAGAIN in Recvfrom
11-08 11:59:19.123 4767-6917/com.siwuliu.game I/System.out: [CDS]read byte is 0
11-08 11:59:19.123 4767-6917/com.siwuliu.game I/System.out: [CDS]rx timeout:60000
11-08 11:59:19.124 4767-6917/com.siwuliu.game I/System.out: [CDS]rx timeout:60000
11-08 11:59:19.124 4767-6917/com.siwuliu.game I/System.out: [OkHttp] sendRequest>>
11-08 11:59:19.143 4767-6917/com.siwuliu.game I/System.out: [OkHttp] sendRequest<<
11-08 11:59:19.203 4767-6917/com.siwuliu.game W/art: Native thread exiting without having called DetachCurrentThread (maybe it’s going to use a pthread_key_create destructor?): Thread[21,tid=6917,Native,Thread*=0xe1aebc00,peer=0x12eea520,“Thread-16759”]
11-08 11:59:19.203 4767-6917/com.siwuliu.game D/JniHelper: JniHelper::getJavaVM(), pthread_self() = -526528512

用法没改。你是怎么用的?你的Java类接口定义是怎么样的?

java 不会

jsb.reflection.callStaticMethod(“com/siwuliu/game/WXAPI”, “gopay”, “(Ljava/lang/String;I)V”,p_data.data,parseInt( THIS.paytype));

1.6正常 , 求1.7 的 正确调用方式( 最好提供下 demo ) java 只懂语法 其他全靠 copy
src.zip (16.8 KB) java 包

@@@@@@@@链接帖子 蛋疼的是1.6。2 没有问题:sweat_smile:

@dumganhar 大神,这个log不是我打的啊 :joy:

有方法可以去掉吗?

呃,不好意思,犯傻了我,
进源代码Mark掉不就去掉了吗…

总之不是问题就好了,谢谢 XD

无法取消定时器: Scheduler_unscheduleCommon not found

this.schedule(this.aiAction, 0.5, cc.macro.REPEAT_FOREVER, 0.5);

this.unschedule(this.aiAction, this);

undefined is not an object (evaluating ‘settings.debug’), location: /var/mobile/Containers/Data/Application/4C26ACA1-1CB1-4107-803B-4952CD9EC20A/Documents/ALLGame/sugGame/src/main.js:15:23 打包用的是调试模式

升级1.7后 报错
[.Offscreen-For-WebGL-0x7ff2d38e5400]RENDER WARNING: there is no texture bound to the unit 0
1.6.2 咩有任何问题
问题出在这个位置,我这是用tps加载的png大图。求官方人员帮忙处理,谢谢!

cc.loader.loadRes(_path, cc.SpriteAtlas, (err, atlas) => { if (err == null) { cc.log(“onLoadRes:”+_path); self.atlasArr.push(atlas); }else{ cc.log(“load error:”+err); } });

请提交一个 demo,谢谢!

请提交一个 demo,谢谢!

在main.js中加入你的JS代码

jsb.reflection.callStaticMethod("com/siwuliu/game/WXAPI", "gopay", "(Ljava/lang/String;I)V", "Hello Pay", 112);

抽出你java代码:

package com.siwuliu.game;

import android.util.Log;

public class WXAPI {

    public static void gopay(String zifu,int type){ 

        Log.d("WXAPI", "zifu: " + zifu + ", type: " + type);
    }
}

放到包名: com.siwuliu.game 下。

启动后完全正常,有如下输出:
11-09 09:35:35.204 9181-9237/org.cocos2d.examplecases D/WXAPI: zifu: Hello Pay, type: 112

你确认下你传的参数是否正确?

我在onLoad中加入这两行,没有Scheduler_unscheduleCommon not found的输出。
所以不知道你是如何使用的,还是提供复现demo吧。

testBug_wangrongm2009.zip (1.4 MB)

这是bug demo,1.6.2 没事,1.7 beta 有问题

谢谢,beta 9 会修复这个问题