Skip to content

Commit a0bb027

Browse files
committed
fix: fix "no publishing info" bug
1 parent 5dd4410 commit a0bb027

7 files changed

Lines changed: 32 additions & 9 deletions

File tree

contributes/meta3d-action-mod-unit-publish-to-game/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "meta3d-action-mod-unit-publish-to-game",
3-
"version": "1.3.66",
3+
"version": "1.3.67",
44
"publisher": "meta3d",
55
"protocol": {
66
"name": "meta3d-action-mod-unit-publish-to-game-protocol"

contributes/meta3d-action-mod-unit-publish-to-game/src/Main.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,19 @@ export let getContribute: getContributeMeta3D<actionContribute<uiData, state>> =
5959
info: api.nullable.return(getLanguageTextData(api, meta3dState, api.action.getActionState<initState>(meta3dState, initActionName).languageTextData, languageKey.Publishing))
6060
})
6161

62+
meta3dState = api.action.setActionState<initState>(meta3dState, initActionName, {
63+
...api.action.getActionState<initState>(meta3dState, initActionName),
64+
isShowPublishModal: false
65+
})
66+
67+
6268
api.flow.deferExec(api, (meta3dState) => {
6369
let initState = api.action.getActionState<initState>(meta3dState, initActionName)
6470

65-
meta3dState = api.action.setActionState<initState>(meta3dState, initActionName, {
66-
...api.action.getActionState<initState>(meta3dState, initActionName),
67-
isShowPublishModal: false
68-
})
71+
// meta3dState = api.action.setActionState<initState>(meta3dState, initActionName, {
72+
// ...api.action.getActionState<initState>(meta3dState, initActionName),
73+
// isShowPublishModal: false
74+
// })
6975

7076
let author = getUserName(api)
7177
return publish(api,

contributes/meta3d-action-mod-unit-upload-model-snapshot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "meta3d-action-mod-unit-upload-model-snapshot",
3-
"version": "1.3.8",
3+
"version": "1.3.9",
44
"publisher": "meta3d",
55
"protocol": {
66
"name": "meta3d-action-mod-unit-upload-model-snapshot-protocol"

contributes/meta3d-action-mod-unit-upload-model-snapshot/src/Main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ let _loadSnapshot = (api: api): Promise<base64> => {
2222
console.log(`loading ${loaded / total} %`)
2323
}, () => {
2424
resolve(api.nullable.getEmpty())
25-
}, 0.5 * 1024 * 1024)
25+
// }, 0.5 * 1024 * 1024)
26+
}, 0.1 * 1024 * 1024)
2627
})
2728
}
2829

contributes/meta3d-ui-control-mod-publish-modal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "meta3d-ui-control-mod-publish-modal",
3-
"version": "1.3.18",
3+
"version": "1.3.22",
44
"displayName": "发布模态框",
55
"publisher": "meta3d",
66
"description": "",

contributes/meta3d-ui-control-mod-publish-modal/src/Main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ let _loadModIcon = (api: api): Promise<imageBase64> => {
2626
console.log(`loading ${loaded / total} %`)
2727
}, () => {
2828
resolve(api.nullable.getEmpty())
29-
})
29+
}, 0.05 * 1024 * 1024)
3030
})
3131
}
3232

@@ -175,6 +175,10 @@ export let getContribute: getContributeMeta3D<uiControlContribute<inputFunc, spe
175175
}
176176

177177

178+
return meta3dState
179+
}).catch((error) => {
180+
api.message.error(error)
181+
178182
return meta3dState
179183
}).then(meta3dState => {
180184
meta3dState = endModal(meta3dState)

doc/1.3.1.org

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3297,6 +3297,18 @@ use 士兵参考图片.png
32973297
* DONE set characterType
32983298

32993299

3300+
* DONE fix
3301+
3302+
Some network problems identified, when uploading LOD1 and LOD2, it is fast and immediatelly the page says "success". When trying to publish the game, very ofter page says after couple of minutes "UserNetworkTooSlow" and model is not published
3303+
3304+
TODO post too large: due to icon?
3305+
TODO limit snapshot size
3306+
3307+
3308+
* DONE fix: no publishing info
3309+
3310+
3311+
33003312

33013313

33023314

0 commit comments

Comments
 (0)