O-n-y / oxy.mods

Oxy.BugTracker
14 stars 2 forks source link

Mod Manager does not update mods #93

Closed DarkDaskin closed 1 year ago

DarkDaskin commented 1 year ago

It says that the mod was updated, but actually nothing happens. There is an error in debug console.

Also tried Mod Updater mod, it updated everything successfully, so it is not a problem with my connection. But Mod Manager still shows the mods as outdated, even though everything was actually updated (I checked the files).

изображение

изображение


  [Mod Manager][1]: Mod directory: 1722760223
  [Mod Manager][1]: Backup path: C:\Users\DarkDaskin\Documents\Klei\OxygenNotIncluded\mods\backup\1722760223
  [Mod Manager][1]: Finished backup of the files (Backup-2022-08-03--20-39-03-1722760223-v1627033324.zip)
  [Mod Manager][1]: Download info: 1654249567 (Reset Build Priority)
  [Mod Manager][1]: Temp file: C:\Users\DarkDaskin\Documents\Klei\OxygenNotIncluded\mods\updates\1722760223.zip
  [Mod Manager][29]: Error writing update file (C:\Users\DarkDaskin\Documents\Klei\OxygenNotIncluded\mods\updates\1722760223.zip):
System.Net.WebException: The operation has timed out.
  at System.Net.HttpWebRequest+<RunWithTimeout>d__237`1[T].MoveNext () [0x00123] in <0463b2ef957545c0a51b42f372cd4fbb>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x0001d] in <0463b2ef957545c0a51b42f372cd4fbb>:0
  at Ony.OxygenNotIncluded.ModManager.FileDetailsDownloader.DownloadAsync (System.IAsyncResult asyncResult, System.String filePath) [0x0000c] in <e110115b507542ff85f0c5ef350259fe>:0
  at Ony.OxygenNotIncluded.Logger.PrintError (System.String msg) [0x00000] in <e110115b507542ff85f0c5ef350259fe>:0
  at Ony.OxygenNotIncluded.ModManager.FileDetailsDownloader.DownloadAsync (System.IAsyncResult asyncResult, System.String filePath) [0x00000] in <e110115b507542ff85f0c5ef350259fe>:0
  at Ony.OxygenNotIncluded.ModManager.FileDetailsDownloader+<>c__DisplayClass13_0.<Download>b__0 (System.IAsyncResult ar) [0x00000] in <e110115b507542ff85f0c5ef350259fe>:0
  at System.Threading.Tasks.TaskToApm+<>c__DisplayClass3_0.<InvokeCallbackWhenTaskCompletes>b__0 () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.AwaitTaskContinuation.InvokeAction (System.Object state) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.AwaitTaskContinuation.RunCallback (System.Threading.ContextCallback callback, System.Object state, System.Threading.Tasks.Task& currentTask) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.AwaitTaskContinuation.Run (System.Threading.Tasks.Task task, System.Boolean canInlineContinuationTask) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.FinishContinuations () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.FinishStageThree () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.FinishStageTwo () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.Finish (System.Boolean bUserDelegateExecuted) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task`1[TResult].TrySetException (System.Object exceptionObject) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].SetException (System.Exception exception) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Net.HttpWebRequest+<RunWithTimeout>d__237`1[T].MoveNext () [0x00000] in <0463b2ef957545c0a51b42f372cd4fbb>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext (System.Object stateMachine) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction (System.Action action, System.Boolean allowInlining, System.Threading.Tasks.Task& currentTask) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.FinishContinuations () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.FinishStageThree () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task`1[TResult].TrySetResult (TResult result) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.TaskFactory+CompleteOnInvokePromise.Invoke (System.Threading.Tasks.Task completingTask) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.FinishContinuations () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.FinishStageThree () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task`1[TResult].TrySetResult (TResult result) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task+DelayPromise.Complete () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task+<>c.<Delay>b__276_1 (System.Object state) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Timer+Scheduler.TimerCB (System.Object o) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  [Mod Manager][1]: Finished download```

OS: Windows 10
Game: U42-514967-S
Mod: 2.13.6.104
O-n-y commented 1 year ago

The information that "Mod Updater" said it is updated, not relative (as it stores local information, which mean it tried to download file, which should be last, but could also be not last due to steam cache, but it will mark it as last anyway to not try to download it again and again (if version is actually not correct). This is why if you remove it and all config data - it will try to download mods again (claiming those are outdated), as it would have no information it has been updated (downloaded) it previously.

It would be confirmed if you: 1) check the file and it is version number stored in file meta data (file properties) 2) checked which version number author of the mod wrote as the last version 3) compare version from 1) and 3)

O-n-y commented 1 year ago

p.s. connection is never the problem for updating the mods, only Steam cache could be, which is why Mod Manager was made in the first place.

O-n-y commented 1 year ago

When the is no correct version from internal Steam cache, Mod manager tried to download it from mod url, provided by Steam api (https://api.steampowered.com/ISteamRemoteStorage/GetPublishedFileDetails/v1/?format=json)

Could be the mod do not have proper information there, which could only be confirmed for particular mod

O-n-y commented 1 year ago

i will check what can be the issue there

O-n-y commented 1 year ago

I could not reproduce any update issue with this mod, could be you have issue with connection to the steam api at this time

O-n-y commented 1 year ago

For that particular mod you can check your connection for: https://steamusercontent-a.akamaihd.net/ugc/1832417601696570693/CCDF8B53F3DCBF4C40F48AE198DB405EF9102057/

in next version i all add information about url, so it would be easer to check out