You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//...consttask=installTask(awaitResolveXmclVersion(version),dir,{});awaittask.startAndWait({onUpdate(task: any,chunkSize: number){//use only global task called "install"if(task.path==='install'){console.log(task.progress+" / "+task.total);constdownloadPercentage=Math.floor((task.progress*100)/task.total);console.log('Downloading: '+downloadPercentage+'%');}},onFailed(task: any,error: any){//...},onSucceed(task: any,result: any){if(task.path==='install'){//...}}});
Where I install a minecraft version (tested with 1.20 & 1.19), and track the task named install to have the global downloading.
In console:
It seems to have a first download of 34407 bytes, then another (the normal) of 23511027
This problem causes my application's progress bar to go backwards (given that download sends 100% then 0%)
is this from an error indexing the tasks names ?
or this is a new file to download before the other ?
or this is my mistake ?
Thanks for help
The text was updated successfully, but these errors were encountered:
Gagafeee
changed the title
Error indexing task in function Install()
Error tracking download in Install() function
Jul 1, 2023
Hi,
I have the folowing code
Where I install a minecraft version (tested with 1.20 & 1.19), and track the task named
install
to have the global downloading.In console:
It seems to have a first download of 34407 bytes, then another (the normal) of 23511027
This problem causes my application's progress bar to go backwards (given that download sends 100% then 0%)
is this from an error indexing the tasks names ?
or this is a new file to download before the other ?
or this is my mistake ?
Thanks for help
The text was updated successfully, but these errors were encountered: