【super-html】🧙 使用魔法 将构建的Web项目打包成一个html

I unchecked the 3D module in the module settings from the start, because my project is 2D. After checking again I still get the same error (cc is not defined)

Wait a long time, “cc is not defined” is usually caused by MD5.
Now I don’t know what causes this problem. Can you provide a demo that can be reproduced.
thank you

1
I fixed that error, it was because in my game folder there was build-templates folder, when I deleted it and rebuilt the project, the errors were resolved

我的项目资源文件如果有50M,打包成一个HTML后,还是会加载50M的资源么?

I’m glad you can find the problem. The external index.html will indeed bring unexpected changes

理论上会是如此,但一个50M的index.html,对设备的性能是一个巨大的考验 :cold_face:
会有漫长的下载、加载过程,以及巨大的内存占用

麻烦问一下 mraid初始化的接口是啥啊,我在marid文档没看到,是mraidReadyCallback吗? 还有就是我pa里3d物体能在unity里正常显示,2d物体不能正常显示,您可以看看我发的帖子

mraid 函数是接入试玩平台,试玩平台提供的函数吧,根据文档提示调用即可。
第二个问题你是直接把web-mobile压缩上传上去的么?先用一个简单的项目验证下是否是自己哪里没有处理好,web版在本地浏览器能正常跑,在试玩平台上应该也是能正常

大神,问下video已经支持了吗

你好,请问能否介绍下可玩工具呀,我想买几个进行测试

是的,在1.1.0版本中增加了对video视频的支持

我不是直接压缩上传的,我是打包成html文件上传的, 我用简单的项目测试过, canvas节点下的节点在unity试玩平台内都不能正常渲染,在其他试玩平台(applovin, ironsource)均能正常渲染, canvas节点外的节点在uinty试玩平台能正常渲染,其他平台也能正常渲染. 但是如果在unity试玩平台中,不加前置视频,我canvas下的节点还是能正常渲染的,加上前置视频的话就不能正常渲染了

facebook里面有个试玩,会查找httpXMLHttpRequest这个代码~能不能去掉或者用其他来代替~

image
I got this error when building Hello World project from creator 3.6.1


Hello, I’m sorry. Wasm, please switch to another physical engine

1赞

image

image
取消勾选成功了

Hi everyone, I am having some error with Mintegral ad network, they informed me an error encountered with playable ads : “【Technical error】Please do not rewrite the set method of the src of the script tag” and send me some pictures
test


I did some research and found the error is located here: “.CocosCreator\extensions\super-html\dist\custom_script\34x\custom-34x.js”

When i use superHTML for Cocos Creator version 3.3 and above, it gives this error, from version 2.4.10 and below it doesn’t. So now what do I do so that when using document.createElement it will log out ƒ createElement() { [native code] }. Thanks

Thank you for your use. The compatibility of rewriting script tags is very good.

However, this method may pose risks to the advertising platform.

This weekend I will update a new version without rewriting to deal with this problem

Thanks for your help