不给钱啥意思
??你说什么
是这个文件吗?我改了并没有效果
修改完要重启cocos我记得
先mark
不需要修改底层代码,我这边是动态替换相关函数
markdown
3.3版本出了一个新的文件格式,cc自己的,叫cconb ccon,打开文件可以发现实际上就是.bin文件和文本文件,这个格式4399不支持上传会被过滤,前些天有人问我,查看了downloader源码下载函数多了
其实可以看出cconb走的是bin下载函数然后多了一个解析
所以可以这样改写cconb文件为dbbin达到上传的目的,并且url需要插入一个标识符用来判断该文件原来是bin还是cconb文件,用来调用不同下载函数,代码已经注释
py工具在原有基础上添加 url–>url_cconb
扩展名 .cconb—>.dbbin的修改
大佬,这个工具有最新地址吗
额(⊙o⊙)…,你先看帖自己整理下吧,我这边暂时没得时间,有空整理发下
整理好微信给我也发一下 
老铁,我没你微信啊,你先加我wx123456789,我发你
好好敲代码不好吗,刷什么贴,有这个功夫,已经敲几行helloworld了
- 项目新建.ts脚本
import {game, assetManager, sys} from "cc";
let is4399 = true;
(function() {
if (!is4399) return;
let selfPip = function (task: any, done: any): any {
const input = task.output = task.input;
for (let i = 0; i < input.length; i++) {
let item = input[i];
if (!item.url) continue;
let arr = item.url.split(".");
if (arr.length >= 2 && arr[arr.length - 1] == "cconb") {
item.url = "";
for (let index = 0; index < arr.length - 1; index++) {
const element = arr[index];
item.url += (element + ".");
}
item.url += "_cconb.dbbin";
}
}
return null;
}
//@ts-ignore
// if (!CC_BUILD) return;
assetManager.transformPipeline.append(selfPip);
//@ts-ignore
let dw = assetManager.downloader._downloaders;
let dbbin = dw[".dbbin"];
assetManager.downloader.register("dbbin", (url: string, options: any, onComplete: any) => {
if (url.includes("_cconb")) {
dw[".cconb"]()
} else {
dbbin();
}
})
})();
- 构建完成后,使用.py批处理修改文件名
import os
def find_file(file_path):
print(file_path)
if os.path.isfile( file_path):
portion = os.path.splitext(file_path)
if portion[1] == '.cconb':
print(file_path)
newname = portion[0] + '._cconb.dbbin'
os.rename(portion[0]+'.cconb', newname)
else:
for file_ls in os.listdir( file_path):
find_file(os.path.join( file_path,file_ls))
find_file("打包后的resource路径")
4赞
大哥,我这边2.4.7没有那个目录和文件 
你是哪个问题,2d的在最上面
那个bin文件的问题,现在找不到那个目录没法改
感谢分享!!!
该说不说,4399LOGO是真的丑!




